2023-04-15 20:59:03 +00:00
import { b as Je , i as ce , t as xe , d as kn , e as Re , o as Vi , c as K , s as er , I as Lr , m as ff , S as tr , x as lf , F as st , f as d0 , g as of , h as mr , j as Dt , k as Rn , l as cf , u as Nn , D as uf , n as Ln , p as at , q as nr , v as hf , w as xf , y as Gi , P as df , r as pf , z as vf , A as mf , B as gf , C as _f , E as Tf , a as Ef , G as wf , L as Sf } from "./layout-f14619ef.js" ; const Af = xe ( "<div>" ) , Xi = ( { children : e , className : t } ) => ( ( ) => { const r = Af ( ) ; return Je ( r , ` flex-row-center ${ t } ` ) , ce ( r , e ) , r } ) ( ) ; function lt ( e ) { return document . getElementById ( e ) } const Ff = xe ( "<input>" ) , yf = xe ( '<label><div class="z-50 relative"></div><div class="w-full h-2 default-bg absolute bottom-1/3 z-10">' ) , Cf = xe ( '<button class="absolute right-2" title="Clear" type="reset">' ) ; function Of ( e , t ) { let r = ! 0 ; function n ( a ) { r && t ( a ) } const i = lt ( e ) ; return i ? . addEventListener ( "pointerenter" , ( ) => n ( ! 0 ) ) , i ? . addEventListener ( "pointerleave" , ( ) => n ( ! 1 ) ) , ( ) => { i ? . removeEventListener ( "pointerenter" , ( ) => n ( ! 0 ) ) , i ? . removeEventListener ( "pointerleave" , ( ) => n ( ! 1 ) ) , r = ! 1 } } function Df ( e , t , r ) { if ( e ) { const n = lt ( e ) ; n && n . value !== "" !== t && r ( n . value !== "" ) } } const zi = ( { className : e , id : t , name : r , type : n = "text" , title : i , placeholder : a , required : s = ! 1 , onChange : f , leading : l , trailing : o , inputClass : c } ) => { const [ x , h ] = Re ( ! 1 ) , [ p , _ ] = Re ( ! 1 ) , [ u , m ] = Re ( ! 1 ) ; return Vi ( ( ) => { t && i && Of ( t , _ ) } ) , K ( Xi , { className : ` relative ${ e } ` , get children ( ) { return [ l , K ( If , { title : i , get isActive ( ) { return x ( ) || p ( ) || u ( ) } , htmlFor : t } ) , ( ( ) => { const A = Ff ( ) ; return A . $$input = ( ) => { Df ( t , u ( ) , m ) , f && f ( ) } , A . addEventListener ( "blur" , ( ) => h ( ! 1 ) ) , A . addEventListener ( "focus" , ( ) => h ( ! 0 ) ) , Je ( A , ` bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500
hover : border - t - cyan - 400 $ { c } ` ),er(A,"id",t),er(A,"name",r??void 0),er(A,"type",n),er(A,"placeholder",a??void 0),A.required=s,A})(),o]}})},If=({title:e,isActive:t=!1,htmlFor:r})=>(()=>{const n=yf(),i=n.firstChild;return Je(n, ` absolute pointer - events - none
$ { t ? "-top-2 left-3 default-bg text-sm" : "left-2 top-1" }
transition - all duration - 150 text - gray - 600 dark : text - gray - 400 ` ),er(n,"for",r),ce(i,e),n})(),kf=({typingDefault:e=!1,id:t="search",className:r})=>{const[n,i]=Re(e);function a(){return lt(t)}function s(){const l=a();l&&(l.value="",i(!1),history.replaceState(null,"",location.pathname),l.focus())}function f(){const l=a();l&&l.value!==""!==n()&&i(l.value!=="")}return K(zi,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className: ` w - full $ { r } ` ,id:t,placeholder:"¬A & B -> C",type:"text",onChange:f,get leading(){return K(Lr,{path:ff,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return K(tr,{get when(){return n()},keyed:!0,get children(){const l=Cf();return l. $ $ click=s,ce(l,K(Lr,{path:lf,"aria-label":"The letter X"})),l}})}})};kn(["input","click"]);const Rf=xe("<table><thead><tr></thead><tbody>"),Nf=xe('<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">'),Lf=xe('<tr class="hover:text-black">'),Pf=xe("<td><p>"),Mf=({table:e,header:t,className:r,style:n,id:i})=>(()=>{const a=Rf(),s=a.firstChild,f=s.firstChild,l=s.nextSibling;return Je(a, ` border - 2 border - gray - 500 border - collapse table z - 10 $ { r } ` ),er(a,"id",i),ce(f,K(st,{each:t,children:o=>(()=>{const c=Nf(),x=c.firstChild;return ce(x,o),c})()})),ce(l,K(st,{each:e,children:o=>(()=>{const c=Lf();return ce(c,K(st,{each:o,children:x=>(()=>{const h=Pf(),p=h.firstChild;return Je(h, ` text - center border border - gray - 500 last : underline
$ { x ? "bg-green-700" : "bg-red-700" } ` ),ce(p,x?"T":"F"),h})()})),c})()})),d0(o=>of(a,n,o)),a})();function Fr(e,t){let r={},n=Object.keys(e);for(let i=0,a=n.length;i<a;i+=1){let s=n[i];t.includes(s)||Object.defineProperty(r,s,{get(){return e[s]},configurable:!0,enumerable:!0})}return r}var Ki=Ln();function Pn(){let e=Nn(Ki);if(e)return e;throw new Error(" ` useHeadlessDisclosureProperties ` must be used within ` < HeadlessDisclosureRoot > ` .")}function Bf(e){return typeof e=="function"&&e.length>0}function bf(e){let t=Pn();return at(()=>{let r=e.children;return Bf(r)?r(t):r})}function ht(e){return{get children(){return K(bf,{get children(){return e.children}})}}}function Uf(e){let t,r;if("defaultOpen"in e){let[n,i]=Re(e.defaultOpen);t=n,r=a=>{hf(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else t=()=>e.isOpen,r=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return t()},setState(n){e.disabled||r(n)},disabled(){return!!e.disabled}}}function Wf(e){return typeof e=="function"&&e.length>0}function Mn(e){let t=Uf(e);return K(Ki.Provider,{value:t,get children(){return at(()=>{let r=e.children;return Wf(r)?r(t):r})}})}function Ir(e,t){return K(uf,mr({get component(){return e()}},t))}function Hf(e){return typeof e=="function"}function Bn(e,t){return r=>{"ref"in e&&Hf(e.ref)&&e.ref(r),t(r)}}function bn(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function $ f(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Vf='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 Yi(e,t){let r=e.querySelectorAll(Vf),n=[];for(let i=0,a=r.length;i<a;i+=1)(!t||!t.contains(r[i]))&&n.push(r[i]);return n}function ji(e){return!e.matches('[data-sh-disabled="true"]')}function Ji(e,t,r){let n=t+r;for(;n>=0&&n<e.length;){if(ji(e[n]))return e[n];n+=r}}function qi(e,t,r){let n=t+r;for(r===1&&n===e.length&&(n=0),r===-1&&n===-1&&(n=e.length-1);t!==n;){if(ji(e[n]))return e[n];n+=r,r===1&&n>=e.length&&(n=0),r===-1&&n<0&&(n=e.length-1)}}function Gf(e,t){var r;for(let n=0,i=e.length;n<i;n+=1)if(t===e[n]){(r=qi(e,n,1))==null||r.focus();break}}function Xf(e,t){var r;for(let n=0,i=e.length;n<i;n+=1)if(t===e[n]){(r=qi(e,n,-1))==null||r.focus();break}}function Zi(e){var t;return e.length?((t=Ji(e,-1,1))==null||t.focus(),!0):!1}function zf(e){var t;return e.length?((t=Ji(e,e.length,-1))==null||t.focus(),!0):!1}function Kf(e,t){let r=Yi(e);t?!document.activeElement||!e.contains(document.activeElement)?zf(r):Xf(r,document.activeElement):!document.activeElement||!e.contains(document.activeElement)?Zi(r):Gf(r,document.activeElement)}var Yf="data-sh";function Jr(e){return{[Yf]:e}}var jf=Jr("button");function Jf(e){let[t,r]=Re();return Dt(()=>{let n=t();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),Rn(()=>{n.removeEventListener("keydown",i)})}}),Ir(()=>{var n;return(n=e.as)!=null?n:"button"},mr({get tabindex(){return e.disabled?-1:0},role:"button"},bn(()=>e.disabled),Fr(e,["as","ref"]),jf,{ref:Bn(e,n=>{r(()=>n)})}))}function Un(e,t,r){return K(tr,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return r()},get children(){return K(tr,{get when(){return t()},get children(){return r()}})}})}function q0(){var e,t;return(t=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:t.parentElement}function qf(e){if(e){let t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}}var Zf=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=q0()),Rn(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():qf(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=q0()}};function Qi(){return new Zf}fun
flex flex - col gap - 1 $ { t } ` ),ce(r,e),r})();function Hr(){}Hr.prototype={diff:function(t,r){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(u){return i?(setTimeout(function(){i(void 0,u)},0),!0):u}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,l=t.length,o=1,c=f+l;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var x=[{newPos:-1,components:[]}],h=this.extractCommon(x[0],r,t,0);if(x[0].newPos+1>=f&&h+1>=l)return s([{value:this.join(r),count:r.length}]);function p(){for(var u=-1*o;u<=o;u+=2){var m=void 0,A=x[u-1],O=x[u+1],y=(O?O.newPos:0)-u;A&&(x[u-1]=void 0);var M=A&&A.newPos+1<f,Y=O&&0<=y&&y<l;if(!M&&!Y){x[u]=void 0;continue}if(!M||Y&&A.newPos<O.newPos?(m=Al(O),a.pushComponent(m.components,void 0,!0)):(m=A,m.newPos++,a.pushComponent(m.components,!0,void 0)),y=a.extractCommon(m,r,t,u),m.newPos+1>=f&&y+1>=l)return s(Sl(a,m.components,r,t,a.useLongestToken));x[u]=m}o++}if(i)(function u(){setTimeout(function(){if(o>c)return i();p()||u()},0)})();else for(;o<=c;){var _=p();if(_)return _}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var a=r.length,s=n.length,f=t.newPos,l=f-i,o=0;f+1<a&&l+1<s&&this.equals(r[f+1],n[l+1]);)f++,l++,o++;return o&&t.components.push({count:o}),t.newPos=f,l},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function Sl(e,t,r,n,i){for(var a=0,s=t.length,f=0,l=0;a<s;a++){var o=t[a];if(o.removed){if(o.value=e.join(n.slice(l,l+o.count)),l+=o.count,a&&t[a-1].added){var x=t[a-1];t[a-1]=t[a],t[a]=x}}else{if(!o.added&&i){var c=r.slice(f,f+o.count);c=c.map(function(p,_){var u=n[l+_];return u.length>p.length?u:p}),o.value=e.join(c)}else o.value=e.join(r.slice(f,f+o.count));f+=o.count,o.added||(l+=o.count)}}var h=t[s-1];return s>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function Al(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Fl=new Hr;function yl(e,t,r){return Fl.diff(e,t,r)}var Z0=/^[A-Za-z \x C0- \u 02C6 \u 02C8- \u 02D7 \u 02DE- \u 02FF \u 1E00- \u 1EFF]+ $ /,Q0=/ \S /,la=new Hr;la.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Q0.test(e)&&!Q0.test(t)};la.tokenize=function(e){for(var t=e.split(/([^ \S \r \n ]+|[()[ \] {}'" \r \n ]| \b )/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Z0.test(t[r])&&Z0.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var oa=new Hr;oa.tokenize=function(e){var t=[],r=e.split(/( \n | \r \n )/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var Cl=new Hr;Cl.tokenize=function(e){return e.split(/( \S .+?[.!?])(?= \s +| $ )/)};var Ol=new Hr;Ol.tokenize=function(e){return e.split(/([{}:;,]| \s +)/)};function pn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(t){return typeof t}:pn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}var Dl=Object.prototype.toString,Xt=new Hr;Xt.useLongestToken=!0;Xt.tokenize=oa.tokenize;Xt.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(a,s){return typeof s>"u"?r:s}:n;return typeof e=="string"?e:JSON.stringify(l0(e,null,null,i),i," ")};Xt.equals=function(e,t){return Hr.prototype.equals.call(Xt,e.replace(/,([ \r \n ])/g," $ 1"),t.replace(/,([ \r \n ])/g," $ 1"))};function l0(e,t,r,n,i){t=t||[],r=r||
relative inline - flex h - 6 w - 11 items - center rounded - full my - 2 $ { n } ` ,_= ` $ { s ( ) ? "translate-x-6" : "translate-x-1" }
2023-04-15 21:06:40 +00:00
inline - block h - 4 w - 4 transform rounded - full bg - white transition - all ` ;return p!==h._v $ &&Je(o,h._v $ =p),_!==h._v $ 2&&Je(x,h._v $ 2=_),h},{_v $ :void 0,_v $ 2:void 0}),o})()},vn=({className:e,title:t,children:r,id:n,onClick:i,type:a="button"})=>(()=>{const s=kl();return Gi(s,"click",i,!0),er(s,"title",t),er(s,"id",n),er(s,"type",a),Je(s, ` border - rounded bg - cyan - 900 px - 2 cursor - pointer $ { e } ` ),ce(s,r),s})();kn(["click"]);const Rl=xe('<div><div class="mx-1">'),Nl=xe("<div>"),ei=({title:e,button:t,children:r,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,l]=Re(!1);function o(){l(!1)}function c(){l(!f())}return Dt(()=>{function x(p){p.target instanceof HTMLElement&&p.target.closest( ` # $ { n } ` )===null&&o()}function h(p){p.key==="Escape"&&o()}f()?(document.addEventListener("click",x),document.addEventListener("keyup",h)):(document.removeEventListener("click",x),document.removeEventListener("keyup",h))}),(()=>{const x=Nl();return Je(x, ` $ { i } ` ),er(x,"id",n),ce(x,K(vn,{title:e,onClick:c,className: ` flex - row - center $ { a } ` ,children:t}),null),ce(x,K(tr,{get when(){return f()},keyed:!0,get children(){const h=Rl(),p=h.firstChild;return Je(h, ` absolute bg - default - bg border border - gray - 500 rounded - b - xl mt - 1 w - max z - 50 $ { s } ` ),ce(p,r),h}}),null),x})()},Ll=xe('<div class="fixed inset-0 bg-black/40">'),Pl=xe('<div class="my-3">'),Ml=xe('<div class="w-fit h-fit"><button>'),Bl=({title:e,description:t,button:r,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClass:l,buttonTitle:o,acceptButtonId:c})=>{const[x,h]=Re(!1);function p(){s&&s(),h(!1)}function _(){let u=!0;function m(A){u&&A.key==="Enter"&&c&<(c)?.click()}if(x()){const O=lt("cl-6");return O?.addEventListener("keypress",m),()=>{O?.removeEventListener("keypress",m),u=!1}}else return()=>{}}return Dt(_,x()),(()=>{const u=Ml(),m=u.firstChild;return m. $ $ click=()=>h(!0),Je(m,l),er(m,"title",o??void 0),ce(m,r),ce(u,K(df,{get children(){return K(al,{get isOpen(){return x()},onClose:()=>h(!1),class: ` fixed inset - 0 flex - row - center justify - center z - 50 overflow - auto text - white $ { f } ` ,get children(){return[(()=>{const A=Ll();return er(A,"aria-hidden",!0),A})(),K(fl,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[K(ll,{class:"border-b",children:e}),K(sl,{class:"mb-4 mt-1",children:t}),a,(()=>{const A=Pl();return ce(A,K(vn,{onClick:p,className:"h-10 mr-2",id:c,children:n}),null),ce(A,K(vn,{onClick:()=>h(!1),className:"h-10",children:i}),null),A})()]}})]}})}}),null),u})()};kn(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var mn={};mn.version="0.18.5";var ca=1252,bl=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ua=function(e){bl.indexOf(e)!=-1&&(ca=e)};function Ul(){ua(1252)}var zt=function(e){ua(e)};function Wl(){zt(1200),Ul()}function Hl(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var fn=function(t){return String.fromCharCode(t)},ri=function(t){return String.fromCharCode(t)},nt,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Kt(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0,l=0,o=0;o<e.length;)r=e.charCodeAt(o++),a=r>>2,n=e.charCodeAt(o++),s=(r&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),t+=Xr.charAt(a)+Xr.charAt(s)+Xr.charAt(f)+Xr.charAt(l);return t}function Ur(e){var t="",r=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=Xr.indexOf(e.charAt(o++)),s=Xr.indexOf(e.charAt(o++)),r=a<<2|s>>4,t+=String.fromCharCode(r),f=Xr.indexOf(e.charAt(o++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),l=Xr.indexOf(e.charAt(o++)),i=(f&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(), $ r=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.b
2023-04-15 20:59:03 +00:00
` )+ ` \ r
` }function qs(d){var T=d.replace(/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7E- \x FF=]/g,function(R){var N=R.charCodeAt(0).toString(16).toUpperCase();return"="+(N.length==1?"0"+N:N)});T=T.replace(/ $ /mg,"=20").replace(/ \t $ /mg,"=09"),T.charAt(0)== `
` &&(T="=0D"+T.slice(1)),T=T.replace(/ \r (?! \n )/mg,"=0D").replace(/ \n \n /mg, `
= 0 A ` ).replace(/([^ \r \n ]) \n /mg," $ 1=0A");for(var v=[],g=T.split( ` \ r
` ),E=0;E<g.length;++E){var w=g[E];if(w.length==0){v.push("");continue}for(var k=0;k<w.length;){var b=76,I=w.slice(k,k+b);I.charAt(b-1)=="="?b--:I.charAt(b-2)=="="?b-=2:I.charAt(b-3)=="="&&(b-=3),I=w.slice(k,k+b),k+=b,k<w.length&&(I+="="),v.push(I)}}return v.join( ` \ r
` )}function Zs(d){for(var T=[],v=0;v<d.length;++v){for(var g=d[v];v<=d.length&&g.charAt(g.length-1)=="=";)g=g.slice(0,g.length-1)+d[++v];T.push(g)}for(var E=0;E<T.length;++E)T[E]=T[E].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return wr(T.join( ` \ r
` ))}function Qs(d,T,v){for(var g="",E="",w="",k,b=0;b<10;++b){var I=T[b];if(!I||I.match(/^ \s * $ /))break;var R=I.match(/^(.*?): \s *([^ \s ].*) $ /);if(R)switch(R[1].toLowerCase()){case"content-location":g=R[2].trim();break;case"content-type":w=R[2].trim();break;case"content-transfer-encoding":E=R[2].trim();break}}switch(++b,E.toLowerCase()){case"base64":k=wr(Ur(T.slice(b).join("")));break;case"quoted-printable":k=Zs(T.slice(b));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+E)}var N=qn(d,g.slice(v.length),k,{unsafe:!0});w&&(N.ctype=w)}function ef(d,T){if(Be(d.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var v=T&&T.root||"",g=(ge&&Buffer.isBuffer(d)?d.toString("binary"):Be(d)).split( ` \ r
2023-04-15 21:06:40 +00:00
` ),E=0,w="";for(E=0;E<g.length;++E)if(w=g[E],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),v||(v=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,v.length)!=v))for(;v.length>0&&(v=v.slice(0,v.length-1),v=v.slice(0,v.lastIndexOf("/")+1),w.slice(0,v.length)!=v););var k=(g[1]||"").match(/boundary="(.*?)"/);if(!k)throw new Error("MAD cannot find boundary");var b="--"+(k[1]||""),I=[],R=[],N={FileIndex:I,FullPaths:R};D(N);var z,Q=0;for(E=0;E<g.length;++E){var ne=g[E];ne!==b&&ne!==b+"--"||(Q++&&Qs(N,g.slice(z,E),v),z=E)}return N}function rf(d,T){var v=T||{},g=v.boundary||"SheetJS";g="------="+g;for(var E=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+g.slice(2)+'"',"","",""],w=d.FullPaths[0],k=w,b=d.FileIndex[0],I=1;I<d.FullPaths.length;++I)if(k=d.FullPaths[I].slice(w.length),b=d.FileIndex[I],!(!b.size||!b.content||k==" Sh33tJ5")){k=k.replace(/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7E- \x FF]/g,function(ue){return"_x"+ue.charCodeAt(0).toString(16)+"_"}).replace(/[ \u 0080- \u FFFF]/g,function(ue){return"_u"+ue.charCodeAt(0).toString(16)+"_"});for(var R=b.content,N=ge&&Buffer.isBuffer(R)?R.toString("binary"):Be(R),z=0,Q=Math.min(1024,N.length),ne=0,J=0;J<=Q;++J)(ne=N.charCodeAt(J))>=32&&ne<128&&++z;var te=z>=Q*4/5;E.push(g),E.push("Content-Location: "+(v.root||"file:///C:/SheetJS/")+k),E.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),E.push("Content-Type: "+js(b,k)),E.push(""),E.push(te?qs(N):Js(N))}return E.push(g+ ` -- \ r
2023-04-15 20:59:03 +00:00
` ),E.join( ` \ r
` )}function tf(d){var T={};return D(T,d),T}function qn(d,T,v,g){var E=g&&g.unsafe;E||D(d);var w=!E&&Ae.find(d,T);if(!w){var k=d.FullPaths[0];T.slice(0,k.length)==k?k=T:(k.slice(-1)!="/"&&(k+="/"),k=(k+T).replace("//","/")),w={name:i(T),type:2},d.FileIndex.push(w),d.FullPaths.push(k),E||Ae.utils.cfb_gc(d)}return w.content=v,w.size=v?v.length:0,g&&(g.CLSID&&(w.clsid=g.CLSID),g.mt&&(w.mt=g.mt),g.ct&&(w.ct=g.ct)),w}function nf(d,T){D(d);var v=Ae.find(d,T);if(v){for(var g=0;g<d.FileIndex.length;++g)if(d.FileIndex[g]==v)return d.FileIndex.splice(g,1),d.FullPaths.splice(g,1),!0}return!1}function af(d,T,v){D(d);var g=Ae.find(d,T);if(g){for(var E=0;E<d.FileIndex.length;++E)if(d.FileIndex[E]==g)return d.FileIndex[E].name=i(v),d.FullPaths[E]=v,!0}return!1}function sf(d){L(d,!0)}return t.find=G,t.read=re,t.parse=c,t.write=xr,t.writeFile=_r,t.utils={cfb_new:tf,cfb_add:qn,cfb_del:nf,cfb_mov:af,cfb_gc:sf,ReadShift:Ht,CheckField: $ a,prep_blob:or,bconcat:Ve,use_zlib:S,_deflateRaw: $ 0,_inflateRaw:Y0,consts:de},t}();function mo(e){return typeof e=="string"?Wn(e):Array.isArray(e)? $ l(e):e}function Qt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=Wn(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Pr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([mo(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(t)&&(t=Zt(t)),f.write(t),f.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function ze(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function ci(e,t){for(var r=[],n=ze(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function E0(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function Vn(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function go(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var En=new Date(1899,11,30,0,0,0);function ar(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=En.getTime()+(e.getTimezoneOffset()-En.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var Fa=new Date,_o=En.getTime()+(Fa.getTimezoneOffset()-En.getTimezoneOffset())*6e4,ui=Fa.getTimezoneOffset();function ya(e){var t=new Date;return t.setTime(e*24*60*60*1e3+_o),t.getTimezoneOffset()!==ui&&t.setTime(t.getTime()+(t.getTimezoneOffset()-ui)*6e4),t}var hi=new Date("2017-02-19T19:06:09.000Z"),Ca=isNaN(hi.getFullYear())?new Date("2/19/17"):hi,To=Ca.getFullYear()==2017;function rr(e,t){var r=new Date(e);if(To)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(Ca.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}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 Gn(
` ,wo={""":'"',"'":"'",">":">","<":"<","&":"&"},S0=E0(wo),A0=/[&<>'"]/g,So=/[ \u 0000- \u 0008 \u 000b- \u 001f]/g;function we(e){var t=e+"";return t.replace(A0,function(r){return S0[r]}).replace(So,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function xi(e){return we(e).replace(/ /g,"_x0020_")}var Oa=/[ \u 0000- \u 001f]/g;function Ao(e){var t=e+"";return t.replace(A0,function(r){return S0[r]}).replace(/ \n /g,"<br/>").replace(Oa,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Fo(e){var t=e+"";return t.replace(A0,function(r){return S0[r]}).replace(Oa,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function yo(e){return e.replace(/( \r \n |[ \r \n ])/g," ")}function Co(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function r0(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=i&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function di(e){var t=ot(2*e.length),r,n,i=1,a=0,s=0,f;for(n=0;n<e.length;n+=i)i=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),i=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function pi(e){return $ r(e,"binary").toString("utf8")}var cn="foo bar bazâ ð £",Wt=ge&&(pi(cn)==r0(cn)&&pi||di(cn)==r0(cn)&&di)||r0,Pr=ge?function(e){return $ r(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Oo=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[ \t \n \r ]+/,"").replace(/[ \t \n \r ]+ $ /,"").replace(/> \s +/g,">").replace(/ \s +</g,"<").replace(/[ \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}}(),Da=/(^ \s | \s $ | \n )/;function Ge(e,t){return"<"+e+(t.match(Da)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function jt(e){return ze(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function q(e,t,r){return"<"+e+(r!=null?jt(r):"")+(t!=null?(t.match(Da)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function u0(e,t){try{return e.toISOString().replace(/ \. \d */,"")}catch(r){if(t)throw r}return""}function Do(e,t){switch(typeof e){case"string":var r=q("vt:lpwstr",we(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;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",u0(e));throw new Error("Unable to serialize "+e)}var be={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"},It=["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"],cr={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 Io(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function ko(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;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(t)?26985:0);for(var f=0;f<=5;++f,a/=256)e[r+f]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var vi=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},mi=ge?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t: $ r(t)})):vi(e)}:vi,gi=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(bt(e,i)));return n.join("").replace(Ut,"")},F0=ge?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Ut,""):gi(e,t,r)}:gi,_i=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Ia=ge?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):_i(e,t,r)}:_i,Ti=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(wt(e,i)));return n.join("")},en=ge?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Ti(t,r,n)}:Ti,ka=function(e,t){var r=ur(e,t);return r>0?en(e,t+4,t+4+r-1):""},Ra=ka,Na=function(e,t){var r=ur(e,t);return r>0?en(e,t+4,t+4+r-1):""},La=Na,Pa=function(e,t){var r=2*ur(e,t);return r>0?en(e,t+4,t+4+r-1):""},Ma=Pa,Ba=function(t,r){var n=ur(t,r);return n>0?F0(t,r+4,r+4+n):""},ba=Ba,Ua=function(e,t){var r=ur(e,t);return r>0?en(e,t+4,t+4+r):""},Wa=Ua,Ha=functio
` ),t.push( ` < manifest : file - entry manifest : full - path = "/" manifest : version = "1.2" manifest : media - type = "application/vnd.oasis.opendocument.spreadsheet" / >
` );for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+ ` " / >
` );return t.push("</manifest:manifest>"),t.join("")}function Fi(e,t,r){return[' <rdf:Description rdf:about="'+e+ ` " >
` ,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+ ` " / >
` , ` < / r d f : D e s c r i p t i o n >
` ].join("")}function cc(e,t){return[' <rdf:Description rdf:about="'+e+ ` " >
` ,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+ ` " / >
` , ` < / r d f : D e s c r i p t i o n >
` ].join("")}function uc(e){var t=[Pe];t.push( ` < rdf : RDF xmlns : rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
2023-04-15 21:06:40 +00:00
` );for(var r=0;r!=e.length;++r)t.push(Fi(e[r][0],e[r][1])),t.push(cc("",e[r][0]));return t.push(Fi("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function Za(){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 '+mn.version+"</meta:generator></office:meta></office:document-meta>"}var ft=[["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 n0(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=we(t),n[n.length]=r?q(e,t,r):Ge(e,t))}function Qa(e,t){var r=t||{},n=[Pe,q("cp:coreProperties",null,{"xmlns:cp":be.CORE_PROPS,"xmlns:dc":be.dc,"xmlns:dcterms":be.dcterms,"xmlns:dcmitype":be.dcmitype,"xmlns:xsi":be.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&n0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:u0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&n0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:u0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=ft.length;++a){var s=ft[a],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&n0(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var yt=[["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"]],es=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function rs(e){var t=[],r=q;return e||(e={}),e.Application="SheetJS",t[t.length]=Pe,t[t.length]=q("Properties",null,{xmlns:be.EXT_PROPS,"xmlns:vt":be.vt}),yt.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&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+we(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function ts(e){var t=[Pe,q("Properties",null,{xmlns:be.CUST_PROPS,"xmlns:vt":be.vt})];if(!e)return t.join("");var r=1;return ze(e).forEach(function(i){++r,t[t.length]=q("property",Do(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:we(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yi={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 hc(e,t){var r=[];return ze(yi).map(function(n){for(var i=0;i<ft.length;++i)if(ft[i][1]==n)return ft[i];for(i=0;i<yt.length;++i)if(yt[i][1]==n)return yt[i];throw n}).forEach(function(n)
2023-04-15 20:59:03 +00:00
` ;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),h["!cols"]&&o(_,h["!cols"]),h["!rows"]&&c(_,h["!rows"]),_.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 M=m.s.r;M<=m.e.r;++M)for(var Y=m.s.c;Y<=m.e.c;++Y){var re=Se({r:M,c:Y});A=O?(h[M]||[])[Y]:h[re],!(!A||A.v==null&&(!A.f||A.F))&&u.push(l(A,h,M,Y))}return _.join(y)+y+u.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:x}}(),qc=function(){function e(a,s){switch(s.type){case"base64":return t(Ur(a),s);case"binary":return t(a,s);case"buffer":return t(ge&&Buffer.isBuffer(a)?a.toString("binary"):Zt(a),s);case"array":return t(Gn(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var f=a.split( `
` ),l=-1,o=-1,c=0,x=[];c!==f.length;++c){if(f[c].trim()==="BOT"){x[++l]=[],o=0;continue}if(!(l<0)){var h=f[c].trim().split(","),p=h[0],_=h[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c<f.length-1;)u+= `
` +f[++c];switch(u=u.trim(),+p){case-1:if(u==="BOT"){x[++l]=[],o=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?x[l][o]=!0:u==="FALSE"?x[l][o]=!1:isNaN(Br(_))?isNaN(Yt(_).getDate())?x[l][o]=_:x[l][o]=rr(_):x[l][o]=Br(_),++o;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*" $ /)&&(u=u.slice(2,-1)),x[l][o++]=u!==""?u:null;break}if(u==="EOD")break}}return s&&s.sheetRows&&(x=x.slice(0,s.sheetRows)),x}function r(a,s){return kt(e(a,s),s)}function n(a,s){return xt(r(a,s),s)}var i=function(){var a=function(l,o,c,x,h){l.push(o),l.push(c+","+x),l.push('"'+h.replace(/"/g,'""')+'"')},s=function(l,o,c,x){l.push(o+","+c),l.push(o==1?'"'+x.replace(/"/g,'""')+'"':x)};return function(l){var o=[],c=ye(l["!ref"]),x,h=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 p=c.s.r;p<=c.e.r;++p){s(o,-1,0,"BOT");for(var _=c.s.c;_<=c.e.c;++_){var u=Se({r:p,c:_});if(x=h?(l[p]||[])[_]:l[u],!x){s(o,1,0,"");continue}switch(x.t){case"n":var m=x.w;!m&&x.v!=null&&(m=x.v),m==null?x.f&&!x.F?s(o,1,0,"="+x.f):s(o,1,0,""):s(o,0,m,"V");break;case"b":s(o,0,x.v?1:0,x.v?"TRUE":"FALSE");break;case"s":s(o,1,0,isNaN(x.v)?x.v:'="'+x.v+'"');break;case"d":x.w||(x.w=Kr(x.z||ke[14],ar(rr(x.v)))),s(o,0,x.w,"V");break;default:s(o,1,0,"")}}}s(o,-1,0,"EOD");var A= ` \ r
` ,O=o.join(A);return O}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),os=function(){function e(x){return x.replace(/ \\ b/g," \\ ").replace(/ \\ c/g,":").replace(/ \\ n/g, `
` )}function t(x){return x.replace(/ \\ /g," \\ b").replace(/:/g," \\ c").replace(/ \n /g," \\ n")}function r(x,h){for(var p=x.split( `
` ),_=-1,u=-1,m=0,A=[];m!==p.length;++m){var O=p[m].trim().split(":");if(O[0]==="cell"){var y=Ue(O[1]);if(A.length<=y.r)for(_=A.length;_<=y.r;++_)A[_]||(A[_]=[]);switch(_=y.r,u=y.c,O[2]){case"t":A[_][u]=e(O[3]);break;case"v":A[_][u]=+O[3];break;case"vtf":var M=O[O.length-1];case"vtc":switch(O[3]){case"nl":A[_][u]=!!+O[4];break;default:A[_][u]=+O[4];break}O[2]=="vtf"&&(A[_][u]=[A[_][u],M])}}}return h&&h.sheetRows&&(A=A.slice(0,h.sheetRows)),A}function n(x,h){return kt(r(x,h),h)}function i(x,h){return xt(n(x,h),h)}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(x){if(!x||!x["!ref"])return"";for(var h=[],p=[],_,u="",m=hr(x["!ref"]),A=Array.isArray(x),O=m.s.r;O<=m.e.r;++O)for(var y=m.s.c;y<=m.e.c;++y)if(u=Se({r:O,c:y}),_=A?(x[O]||[])[y]:x[u],!(!_||_.v==null||_.t==="z")){switch(p=["cell",u,"t"],_.t){case"s":case"str":p.push(t(_.v));break;case"n":_.f?(p[2]="vtf",p[3]="n",p[4]=_.v,p[5]=t(_.f)):(p[2]="v",p[3]=_.v);break;case"b":p[2]="vt"+(_.f?"f":"c"),p[3]="nl",p[4]=_.v?"1":"0",p[5]=t(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var M=ar(rr(_.v));p[2]="vtc",p[3]="nd",p[4]=""+M,p[5]=_.w||Kr(_.z||ke[14],M);break;case"e":continue}h.push(p.join(":"))}return h.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join( `
` )}function c(x){return[a,s,f,s,o(x),l].join( `
` )}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),Zc=function(){function e(c,x,h,p,_){_.raw?x[h][p]=c:c===""||(c==="TRUE"?x[h][p]=!0:c==="FALSE"?x[h][p]=!1:isNaN(Br(c))?isNaN(Yt(c).getDate())?x[h][p]=c:x[h][p]=rr(c):x[h][p]=Br(c))}function t(c,x){var h=x||{},p=[];if(!c||c.length===0)return p;for(var _=c.split(/[ \r \n ]/),u=_.length-1;u>=0&&_[u].length===0;)--u;for(var m=10,A=0,O=0;O<=u;++O)A=_[O].indexOf(" "),A==-1?A=_[O].length:A++,m=Math.max(m,A);for(O=0;O<=u;++O){p[O]=[];var y=0;for(e(_[O].slice(0,m).trim(),p,O,y,h),y=1;y<=(_[O].length-m)/10+1;++y)e(_[O].slice(m+(y-1)*10,m+y*10).trim(),p,O,y,h)}return h.sheetRows&&(p=p.slice(0,h.sheetRows)),p}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var x={},h=!1,p=0,_=0;p<c.length;++p)(_=c.charCodeAt(p))==34?h=!h:!h&&_ in r&&(x[_]=(x[_]||0)+1);_=[];for(p in x)Object.prototype.hasOwnProperty.call(x,p)&&_.push([x[p],p]);if(!_.length){x=n;for(p in x)Object.prototype.hasOwnProperty.call(x,p)&&_.push([x[p],p])}return _.sort(function(u,m){return u[0]-m[0]||n[u[1]]-n[m[1]]}),r[_.pop()[1]]||44}function a(c,x){var h=x||{},p="",_=h.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(p=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(p=c.charAt(4),c=c.slice(6)):p=i(c.slice(0,1024)):h&&h.FS?p=h.FS:p=i(c.slice(0,1024));var m=0,A=0,O=0,y=0,M=0,Y=p.charCodeAt(0),re=!1,D=0,U=c.charCodeAt(0);c=c.replace(/ \r \n /mg, `
2023-04-15 21:06:40 +00:00
` );var L=h.dateNF!=null?xo(h.dateNF):null;function H(){var G=c.slice(y,M),X={};if(G.charAt(0)=='"'&&G.charAt(G.length-1)=='"'&&(G=G.slice(1,-1).replace(/""/g,'"')),G.length===0)X.t="z";else if(h.raw)X.t="s",X.v=G;else if(G.trim().length===0)X.t="s",X.v=G;else if(G.charCodeAt(0)==61)G.charCodeAt(1)==34&&G.charCodeAt(G.length-1)==34?(X.t="s",X.v=G.slice(2,-1).replace(/""/g,'"')):Ju(G)?(X.t="n",X.f=G.slice(1)):(X.t="s",X.v=G);else if(G=="TRUE")X.t="b",X.v=!0;else if(G=="FALSE")X.t="b",X.v=!1;else if(!isNaN(O=Br(G)))X.t="n",h.cellText!==!1&&(X.w=G),X.v=O;else if(!isNaN(Yt(G).getDate())||L&&G.match(L)){X.z=h.dateNF||ke[14];var j=0;L&&G.match(L)&&(G=po(G,h.dateNF,G.match(L)||[]),j=1),h.cellDates?(X.t="d",X.v=rr(G,j)):(X.t="n",X.v=ar(rr(G,j))),h.cellText!==!1&&(X.w=Kr(X.z,X.v instanceof Date?ar(X.v):X.v)),h.cellNF||delete X.z}else X.t="s",X.v=G;if(X.t=="z"||(h.dense?(_[m]||(_[m]=[]),_[m][A]=X):_[Se({c:A,r:m})]=X),y=M+1,U=c.charCodeAt(y),u.e.c<A&&(u.e.c=A),u.e.r<m&&(u.e.r=m),D==Y)++A;else if(A=0,++m,h.sheetRows&&h.sheetRows<=m)return!0}e:for(;M<c.length;++M)switch(D=c.charCodeAt(M)){case 34:U===34&&(re=!re);break;case Y:case 10:case 13:if(!re&&H())break e;break}return M-y>0&&H(),_["!ref"]=Le(u),_}function s(c,x){return!(x&&x.PRN)||x.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,x):kt(t(c,x),x)}function f(c,x){var h="",p=x.type=="string"?[0,0,0,0]:c2(c,x);switch(x.type){case"base64":h=Ur(c);break;case"binary":h=c;break;case"buffer":x.codepage==65001?h=c.toString("utf8"):x.codepage&&typeof nt<"u"?h=nt.utils.decode(x.codepage,c):h=ge&&Buffer.isBuffer(c)?c.toString("binary"):Zt(c);break;case"array":h=Gn(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+x.type)}return p[0]==239&&p[1]==187&&p[2]==191?h=Wt(h.slice(3)):x.type!="string"&&x.type!="buffer"&&x.codepage==65001?h=Wt(h):x.type=="binary"&&typeof nt<"u"&&x.codepage&&(h=nt.utils.decode(x.codepage,nt.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?os.to_sheet(x.type=="string"?h:Wt(h),x):s(h,x)}function l(c,x){return xt(f(c,x),x)}function o(c){for(var x=[],h=ye(c["!ref"]),p,_=Array.isArray(c),u=h.s.r;u<=h.e.r;++u){for(var m=[],A=h.s.c;A<=h.e.c;++A){var O=Se({r:u,c:A});if(p=_?(c[u]||[])[A]:c[O],!p||p.v==null){m.push(" ");continue}for(var y=(p.w||(Wr(p),p.w)||"").slice(0,10);y.length<10;)y+=" ";m.push(y+(A===0?" ":""))}x.push(m.join(""))}return x.join( `
` )}return{to_workbook:l,to_sheet:f,from_sheet:o}}(),Ri=function(){function e(S,P,C){if(S){or(S,S.l||0);for(var F=C.Enum||xr;S.l<S.length;){var V=S.read_shift(2),se=F[V]||F[65535],fe=S.read_shift(2),ae=S.l+fe,ee=se.f&&se.f(S,fe,C);if(S.l=ae,P(ee,se,V))return}}}function t(S,P){switch(P.type){case"base64":return r(wr(Ur(S)),P);case"binary":return r(wr(S),P);case"buffer":case"array":return r(S,P)}throw"Unsupported type "+P.type}function r(S,P){if(!S)return S;var C=P||{},F=C.dense?[]:{},V="Sheet1",se="",fe=0,ae={},ee=[],Fe=[],pe={s:{r:0,c:0},e:{r:0,c:0}},qe=C.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)C.Enum=xr,e(S,function(ie,dr,Rr){switch(Rr){case 0:C.vers=ie,ie>=4096&&(C.qpro=!0);break;case 6:pe=ie;break;case 204:ie&&(se=ie);break;case 222:se=ie;break;case 15:case 51:C.qpro||(ie[1].v=ie[1].v.slice(1));case 13:case 14:case 16:Rr==14&&(ie[2]&112)==112&&(ie[2]&15)>1&&(ie[2]&15)<15&&(ie[1].z=C.dateNF||ke[14],C.cellDates&&(ie[1].t="d",ie[1].v=ya(ie[1].v))),C.qpro&&ie[3]>fe&&(F["!ref"]=Le(pe),ae[V]=F,ee.push(V),F=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},fe=ie[3],V=se||"Sheet"+(fe+1),se="");var Zr=C.dense?(F[ie[0].r]||[])[ie[0].c]:F[Se(ie[0])];if(Zr){Zr.t=ie[1].t,Zr.v=ie[1].v,ie[1].z!=null&&(Zr.z=ie[1].z),ie[1].f!=null&&(Zr.f=ie[1].f);break}C.dense?(F[ie[0].r]||(F[ie[0].r]=[]),F[ie[0].r][ie[0].c]=ie[1]):F[Se(ie[0])]=ie[1];break}},C);else if(S[2]==26||S[2]==14)C.Enum=fr,S[2]==14&&(C.qpro=!0,S.l=0),e(S,function(ie,dr,Rr){switch(Rr){case 204:V=ie;break;case 22:ie[1].v=ie[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ie[3]>fe&&(F["!ref"]=Le(pe),ae[V]=F,ee.push(V),F=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},fe=ie[3],V="Sheet"+(fe+1)),qe>0&&ie[0].r>=qe)break;C.dense?(F[ie[0].r]||(F[ie[0].r]=[]),F[ie[0].r][ie[0].c]=ie[1]):F[Se(ie[0])]=ie[1],pe.e.c<ie[0].c&&(pe.e.c=ie[0].c),pe.e.r<ie[0].r&&(pe.e.r=ie[0].r);break;case 27:ie[14e3]&&(Fe[ie[14e3][0]]=ie[14e3][1]);break;case 1537:Fe[ie[0]]=ie[1],ie[0]==fe&&(V=ie[1]);break}},C);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(F["!ref"]=Le(pe),ae[se||V]=F,ee.push(se||V),!Fe.length)return{SheetNames:ee,Sheets:ae};for(var _e={},kr=[],De=0;De<Fe.length;++De)ae[ee[De]]?(kr.push(Fe[De]||ee[De]),_e[Fe[De]]=ae[Fe[De]]||ae[ee[De]]):(kr.push(Fe[De]),_e[Fe[De]]={"!ref":"A1"});return{SheetNames:kr,Sheets:_e}}function n(S,P){var C=P||{};if(+C.codepage>=0&&zt(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var F=ir(),V=ye(S["!ref"]),se=Array.isArray(S),fe=[];Z(F,0,a(1030)),Z(F,6,l(V));for(var ae=Math.min(V.e.r,8191),ee=V.s.r;ee<=ae;++ee)for(var Fe=Xe(ee),pe=V.s.c;pe<=V.e.c;++pe){ee===V.s.r&&(fe[pe]=Ye(pe));var qe=fe[pe]+Fe,_e=se?(S[ee]||[])[pe]:S[qe];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?Z(F,13,p(ee,pe,_e.v)):Z(F,14,u(ee,pe,_e.v));else{var kr=Wr(_e);Z(F,15,x(ee,pe,kr.slice(0,239)))}}return Z(F,1),F.end()}function i(S,P){var C=P||{};if(+C.codepage>=0&&zt(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var F=ir();Z(F,0,s(S));for(var V=0,se=0;V<S.SheetNames.length;++V)(S.Sheets[S.SheetNames[V]]||{})["!ref"]&&Z(F,27,Be(S.SheetNames[V],se++));var fe=0;for(V=0;V<S.SheetNames.length;++V){var ae=S.Sheets[S.SheetNames[V]];if(!(!ae||!ae["!ref"])){for(var ee=ye(ae["!ref"]),Fe=Array.isArray(ae),pe=[],qe=Math.min(ee.e.r,8191),_e=ee.s.r;_e<=qe;++_e)for(var kr=Xe(_e),De=ee.s.c;De<=ee.e.c;++De){_e===ee.s.r&&(pe[De]=Ye(De));var ie=pe[De]+kr,dr=Fe?(ae[_e]||[])[De]:ae[ie];if(!(!dr||dr.t=="z"))if(dr.t=="n")Z(F,23,H(_e,De,fe,dr.v));else{var Rr=Wr(dr);Z(F,22,D(_e,De,fe,Rr.slice(0,239)))}}++fe}}return Z(F,1),F.end()}function a(S){var P=B(2);return P.write_shift(2,S),P}function s(S){var P=B(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var C=0,F=0,V=0,se=0;se<S.SheetNames.length;++se){var fe=S.SheetNames[se],ae=S.Sheets[fe];if(!(!ae||!ae["!ref"])){++V;var ee=hr(ae["!ref"]);C<ee.e.r&&(C=ee.e.r),F<ee.e.c&&(F=ee.e.c)}}return C>8191&&(C=8191),P.write_shift(2,C),P.write_shift(1,V),P.writ
2023-04-15 20:59:03 +00:00
< 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" / >
< / m e t a d a t a T y p e s >
< futureMetadata name = "XLDAPR" count = "1" >
< bk >
< extLst >
< ext uri = "{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}" >
< xda : dynamicArrayProperties fDynamic = "1" fCollapsed = "0" / >
< / e x t >
< / e x t L s t >
< / b k >
< / f u t u r e M e t a d a t a >
< cellMetadata count = "1" >
< bk >
< rc t = "1" v = "0" / >
< / b k >
< / c e l l M e t a d a t a >
< / m e t a d a t a > ` ) , e . j o i n ( " " ) } f u n c t i o n U u ( e ) { v a r t = { } ; t . i = e . r e a d _ s h i f t ( 4 ) ; v a r r = { } ; r . r = e . r e a d _ s h i f t ( 4 ) , r . c = e . r e a d _ s h i f t ( 4 ) , t . r = S e ( r ) ; v a r n = e . r e a d _ s h i f t ( 1 ) ; r e t u r n n & 2 & & ( t . l = " 1 " ) , n & 8 & & ( t . a = " 1 " ) , t } v a r S t = 1 0 2 4 ; f u n c t i o n g s ( e , t ) { f o r ( v a r r = [ 2 1 6 0 0 , 2 1 6 0 0 ] , n = [ " m 0 , 0 l 0 " , r [ 1 ] , r [ 0 ] , r [ 1 ] , r [ 0 ] , " 0 x e " ] . j o i n ( " , " ) , i = [ q ( " x m l " , n u l l , { " x m l n s : v " : c r . v , " x m l n s : o " : c r . o , " x m l n s : x " : c r . x , " x m l n s : m v " : c r . m v } ) . r e p l a c e ( / \ / > / , " > " ) , q ( " o : s h a p e l a y o u t " , q ( " o : i d m a p " , n u l l , { " v : e x t " : " e d i t " , d a t a : e } ) , { " v : e x t " : " e d i t " } ) , q ( " v : s h a p e t y p e " , [ q ( " v : s t r o k e " , n u l l , { j o i n s t y l e : " m i t e r " } ) , q ( " v : p a t h " , n u l l , { g r a d i e n t s h a p e o k : " t " , " o : c o n n e c t t y p e " : " r e c t " } ) ] . j o i n ( " " ) , { i d : " _ x 0 0 0 0 _ t 2 0 2 " , " o : s p t " : 2 0 2 , c o o r d s i z e : r . j o i n ( " , " ) , p a t h : n } ) ] ; S t < e * 1 e 3 ; ) S t + = 1 e 3 ; r e t u r n t . f o r E a c h ( f u n c t i o n ( a ) { v a r s = U e ( a [ 0 ] ) , f = { c o l o r 2 : " # B E F F 8 2 " , t y p e : " g r a d i e n t " } ; f . t y p e = = " g r a d i e n t " & & ( f . a n g l e = " - 1 8 0 " ) ; v a r l = f . t y p e = = " g r a d i e n t " ? q ( " o : f i l l " , n u l l , { t y p e : " g r a d i e n t U n s c a l e d " , " v : e x t " : " v i e w " } ) : n u l l , o = q ( " v : f i l l " , l , f ) , c = { o n : " t " , o b s c u r e d : " t " } ; + + S t , i = i . c o n c a t ( [ " < v : s h a p e " + j t ( { i d : " _ x 0 0 0 0 _ s " + S t , t y p e : " # _ x 0 0 0 0 _ t 2 0 2 " , s t y l e : " p o s i t i o n : a b s o l u t e ; m a r g i n - l e f t : 8 0 p t ; m a r g i n - t o p : 5 p t ; w i d t h : 1 0 4 p t ; h e i g h t : 6 4 p t ; z - i n d e x : 1 0 " + ( a [ 1 ] . h i d d e n ? " ; v i s i b i l i t y : h i d d e n " : " " ) , f i l l c o l o r : " # E C F A D 4 " , s t r o k e c o l o r : " # e d e a a 1 " } ) + " > " , o , q ( " v : s h a d o w " , n u l l , c ) , q ( " v : p a t h " , n u l l , { " o : c o n n e c t t y p e " : " n o n e " } ) , ' < v : t e x t b o x > < d i v s t y l e = " t e x t - a l i g n : l e f t " > < / d i v > < / v : t e x t b o x > ' , ' < x : C l i e n t D a t a O b j e c t T y p e = " N o t e " > ' , " < x : M o v e W i t h C e l l s / > " , " < x : S i z e W i t h C e l l s / > " , G e ( " x : A n c h o r " , [ s . c + 1 , 0 , s . r + 1 , 0 , s . c + 3 , 2 0 , s . r + 5 , 2 0 ] . j o i n ( " , " ) ) , G e ( " x : A u t o F i l l " , " F a l s e " ) , G e ( " x : R o w " , S t r i n g ( s . r ) ) , G e ( " x : C o l u m n " , S t r i n g ( s . c ) ) , a [ 1 ] . h i d d e n ? " " : " < x : V i s i b l e / > " , " < / x : C l i e n t D a t a > " , " < / v : s h a p e > " ] ) } ) , i . p u s h ( " < / x m l > " ) , i . j o i n ( " " ) } f u n c t i o n _ s ( e ) { v a r t = [ P e , q ( " c o m m e n t s " , n u l l , { x m l n s : I t [ 0 ] } ) ] , r = [ ] ; r e t u r n t . p u s h ( " < a u t h o r s > " ) , e . f o r E a c h ( f u n c t i o n ( n ) { n [ 1 ] . f o r E a c h ( f u n c t i o n ( i ) { v a r a = w e ( i . a ) ; r . i n d e x O f ( a ) = = - 1 & & ( r . p u s h ( a ) , t . p u s h ( " < a u t h o r > " + a + " < / a u t h o r > " ) ) , i . T & & i . I D & & r . i n d e x O f ( " t c = " + i . I D ) = = - 1 & & ( r . p u s h ( " t c = " + i . I D ) , t . p u s h ( " < a u t h o r > t c = " + i . I D + " < / a u t h o r > " ) ) } ) } ) , r . l e n g t h = = 0 & & ( r . p u s h ( " S h e e t J 5 " ) , t . p u s h ( " < a u t h o r > S h e e t J 5 < / a u t h o r > " ) ) , t . p u s h ( " < / a u t h o r s > " ) , t . p u s h ( " < c o m m e n t L i s t > " ) , e . f o r E a c h ( f u n c t i o n ( n ) { v a r i = 0 , a = [ ] ; i f ( n [ 1 ] [ 0 ] & & n [ 1 ] [ 0 ] . T & & n [ 1 ] [ 0 ] . I D ? i = r . i n d e x O f ( " t c = " + n [ 1 ] [ 0 ] . I D ) : n [ 1 ] . f o r E a c h ( f u n c t i o n ( l ) { l . a & & ( i = r . i n d e x O f ( w e ( l . a ) ) ) , a . p u s h ( l . t | | " " ) } ) , t . p u s h ( ' < c o m m e n t r e f = " ' + n [ 0 ] + ' " a u t h o r I d = " ' + i + ' " > < t e x t > ' ) , a . l e n g t h < = 1 ) t . p u s h ( G e ( " t " , w e ( a [ 0 ] | | " " ) ) ) ; e l s e { f o r ( v a r s = ` C o m m e n t :
` +a[0]+ `
` ,f=1;f<a.length;++f)s+= ` Reply :
` +a[f]+ `
2023-04-15 21:06:40 +00:00
` ;t.push(Ge("t",we(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Wu(e,t,r){var n=[Pe,q("ThreadedComments",null,{xmlns:be.TCMNT}).replace(/[ \/ ]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(q("threadedComment",Ge("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function Hu(e){var t=[Pe,q("personList",null,{xmlns:be.TCMNT,"xmlns:x":It[0]}).replace(/[ \/ ]>/,">")];return e.forEach(function(r,n){t.push(q("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function $ u(e){var t={};t.iauthor=e.read_shift(4);var r=mt(e);return t.rfx=r.s,t.ref=Se(r.s),e.l+=16,t}function Vu(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),Rt(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Gu=je;function Xu(e){return We(e.slice(0,54))}function zu(e){var t=ir(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),W(t,632,Xu(i.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:Ue(n[0]),e:Ue(n[0])};W(t,635,Vu([a,i])),i.t&&i.t.length>0&&W(t,637,Yo(i)),W(t,636),delete i.iauthor})}),W(t,634),W(t,629),t.end()}function Ku(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^ \/ ]*[ \/ ]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Ae.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var Ts=["xlsb","xlsm","xlam","biff8","xla"],Yu=function(){var e=/(^|[^A-Za-z_])R( \[ ?-? \d + \] |[1-9] \d *|)C( \[ ?-? \d + \] |[1-9] \d *|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(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+=t.c:--c,l?o+=t.r:--o,i+(f?"":" $ ")+Ye(c)+(l?"":" $ ")+Xe(o)}return function(i,a){return t=a,i.replace(e,r)}}(),L0=/(^|[^._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,P0=function(){return function(t,r){return t.replace(L0,function(n,i,a,s,f,l){var o=O0(s)-(a?0:r.c),c=C0(l)-(f?0:r.r),x=c==0?"":f?c+1:"["+c+"]",h=o==0?"":a?o+1:"["+o+"]";return i+"R"+x+"C"+h})}}();function ju(e,t){return e.replace(L0,function(r,n,i,a,s,f){return n+(i==" $ "?i+a:Ye(O0(a)+t.c))+(s==" $ "?s+f:Xe(C0(f)+t.r))})}function Ju(e){return e.length!=1}function Ne(e){e.l+=1}function Yr(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Es(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return ws(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=Yr(e,2),f=Yr(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 ws(e){var t=Yr(e,2),r=Yr(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function qu(e,t,r){if(r.biff<8)return ws(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=Yr(e,2),s=Yr(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 Ss(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Zu(e);var n=e.read_shift(r&&r.biff==12?4:2),i=Yr(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Zu(e){var t=Yr(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function Qu(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function eh(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return rh(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=
2023-04-15 20:59:03 +00:00
` ,r= ` < 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,x=hr(a["!ref"]||"A1"),h=a["!merges"]||[],p=0,_=Array.isArray(a);if(a["!cols"])for(c=0;c<=x.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+ ` > < / t a b l e : t a b l e - c o l u m n >
` );var u="",m=a["!rows"]||[];for(o=0;o<x.s.r;++o)u=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+u+ ` > < / t a b l e : t a b l e - r o w >
` );for(;o<=x.e.r;++o){for(u=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+u+ ` >
` ),c=0;c<x.s.c;++c)l.push(t);for(;c<=x.e.c;++c){var A=!1,O={},y="";for(p=0;p!=h.length;++p)if(!(h[p].s.c>c)&&!(h[p].s.r>o)&&!(h[p].e.c<c)&&!(h[p].e.r<o)){(h[p].s.c!=c||h[p].s.r!=o)&&(A=!0),O["table:number-columns-spanned"]=h[p].e.c-h[p].s.c+1,O["table:number-rows-spanned"]=h[p].e.r-h[p].s.r+1;break}if(A){l.push(r);continue}var M=Se({r:o,c}),Y=_?(a[o]||[])[c]:a[M];if(Y&&Y.f&&(O["table:formula"]=we(_1(Y.f)),Y.F&&Y.F.slice(0,M.length)==M)){var re=hr(Y.F);O["table:number-matrix-columns-spanned"]=re.e.c-re.s.c+1,O["table:number-matrix-rows-spanned"]=re.e.r-re.s.r+1}if(!Y){l.push(t);continue}switch(Y.t){case"b":y=Y.v?"TRUE":"FALSE",O["office:value-type"]="boolean",O["office:boolean-value"]=Y.v?"true":"false";break;case"n":y=Y.w||String(Y.v||0),O["office:value-type"]="float",O["office:value"]=Y.v||0;break;case"s":case"str":y=Y.v==null?"":Y.v,O["office:value-type"]="string";break;case"d":y=Y.w||rr(Y.v).toISOString(),O["office:value-type"]="date",O["office:date-value"]=rr(Y.v).toISOString(),O["table:style-name"]="ce1";break;default:l.push(t);continue}var D=e(y);if(Y.l&&Y.l.Target){var U=Y.l.Target;U=U.charAt(0)=="#"?"#"+T1(U.slice(1)):U,U.charAt(0)!="#"&&!U.match(/^ \w +:/)&&(U="../"+U),D=q("text:a",D,{"xlink:href":U.replace(/&/g,"&")})}l.push(" "+q("table:table-cell",q("text:p",D,{}),O)+ `
` )}l.push( ` < / t a b l e : t a b l e - r o w >
` )}return l.push( ` < / t a b l e : t a b l e >
` ),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 > / < / n u m b e r : t e x t >
` ),a.push( ` < number : day number : style = "long" / >
` ),a.push( ` < number : text > / < / n u m b e r : t e x t >
` ),a.push( ` < number : year / >
` ),a.push( ` < / n u m b e r : d a t e - s t y l e >
` );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 x=o["!cols"][c];if(x.width==null&&x.wpx==null&&x.wch==null)continue;N0(x),x.ods=f;var h=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="'+h+ ` " / >
` ),a.push( ` < / s t y l e : s t y l e >
` ),++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 x=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="'+x+ ` " / >
` ),a.push( ` < / s t y l e : s t y l e >
` ),++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( ` < / s t y l e : s t y l e >
` ),a.push( ` < style : style style : name = "ce1" style : family = "table-cell" style : parent - style - name = "Default" style : data - style - name = "N37" / >
` ),a.push( ` < / o f f i c e : a u t o m a t i c - s t y l e s >
` )};return function(s,f){var l=[Pe],o=jt({"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=jt({"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(Za().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 x=0;x!=s.SheetNames.length;++x)l.push(n(s.Sheets[s.SheetNames[x]],s,x));return l.push( ` < / o f f i c e : s p r e a d s h e e t >
` ),l.push( ` < / o f f i c e : b o d y >
2023-04-15 21:06:40 +00:00
` ),f.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function bs(e,t){if(t.bookType=="fods")return Ui(e,t);var r=w0(),n="",i=[],a=[];return n="mimetype",he(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",he(r,n,Ui(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",he(r,n,Qd(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",he(r,n,Pe+Za()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",he(r,n,uc(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",he(r,n,oc(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Dn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function e2(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(Pr(e))}function r2(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function jr(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function t2(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function Jt(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Te(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Ct(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Me(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=Jt(e,r),a=i&7;i=Math.floor(i/8);var s=0,f;if(i==0)break;switch(a){case 0:{for(var l=r[0];e[r[0]++]>=128;);f=e.slice(l,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Jt(e,r),f=e.slice(r[0],r[0]+s),r[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};t[i]==null?t[i]=[o]:t[i].push(o)}return t}function He(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Te(n*8+i.type)),i.type==2&&t.push(Te(i.data.length)),t.push(i.data))})}),jr(t)}function Tr(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=Jt(e,n),a=Me(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ct(a[1][0].data),messages:[]};a[2].forEach(function(f){var l=Me(f.data),o=Ct(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+o)}),n[0]+=o}),(t=a[3])!=null&&t[0]&&(s.merge=Ct(a[3][0].data)>>>0>0),r.push(s)}return r}function Tt(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Te(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Te(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Te(s.data.length)}],n[2].push({data:He(s.meta),type:2})});var a=He(n);t.push(Te(a.length)),t.push(a),i.forEach(function(s){return t.push(s)})}),jr(t)}function n2(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Jt(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}i.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var l=0,o=0;if(a==1?(o=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(o=(t[r[0]++]>>2)+1,a==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]
2023-04-15 20:59:03 +00:00
` ,l=f.charCodeAt(0),o=new RegExp((a=="|"?" \\ |":a)+"+ $ "),c="",x=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],p=n.skipHidden&&e["!rows"]||[],_=i.s.c;_<=i.e.c;++_)(h[_]||{}).hidden||(x[_]=Ye(_));for(var u=0,m=i.s.r;m<=i.e.r;++m)(p[m]||{}).hidden||(c=g2(e,i,m,x,s,l,a,n),c!=null&&(n.strip&&(c=c.replace(o,"")),(c||n.blankrows!==!1)&&r.push((u++?f:"")+c)));return delete n.dense,r.join("")}function Ws(e,t){t||(t={}),t.FS=" ",t.RS= `
` ;var r=W0(e,t);return r}function _2(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=ye(e["!ref"]),a="",s=[],f,l=[],o=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=Ye(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=Xe(c),f=i.s.c;f<=i.e.c;++f)if(t=s[f]+a,r=o?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function Hs(e,t,r){var n=r||{},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"?Ue(n.origin):n.origin;s=l.r,f=l.c}var o,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+i}};if(a["!ref"]){var x=ye(a["!ref"]);c.e.c=Math.max(c.e.c,x.e.c),c.e.r=Math.max(c.e.r,x.e.r),s==-1&&(s=x.e.r+1,c.e.r=s+t.length-1+i)}else s==-1&&(s=0,c.e.r=t.length-1+i);var h=n.header||[],p=0;t.forEach(function(u,m){ze(u).forEach(function(A){(p=h.indexOf(A))==-1&&(h[p=h.length]=A);var O=u[A],y="z",M="",Y=Se({c:f+p,r:s+m+i});o=qt(a,Y),O&&typeof O=="object"&&!(O instanceof Date)?a[Y]=O:(typeof O=="number"?y="n":typeof O=="boolean"?y="b":typeof O=="string"?y="s":O instanceof Date?(y="d",n.cellDates||(y="n",O=ar(O)),M=n.dateNF||ke[14]):O===null&&n.nullError&&(y="e",O=0),o?(o.t=y,o.v=O,delete o.w,delete o.R,M&&(o.z=M)):a[Y]=o={t:y,v:O},M&&(o.z=M))})}),c.e.c=Math.max(c.e.c,f+h.length-1);var _=Xe(s);if(i)for(p=0;p<h.length;++p)a[Ye(p+f)+_]={t:"s",v:h[p]};return a["!ref"]=Le(c),a}function T2(e,t){return Hs(null,e,t)}function qt(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Ue(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?qt(e,Se(t)):qt(e,Se({r:t,c:r||0}))}function E2(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function w2(){return{SheetNames:[],Sheets:{}}}function S2(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)( \d +) $ /);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=s+i)!=-1;++i);}if(ks(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function A2(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=E2(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function F2(e,t){return e.z=t,e}function $ s(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function y2(e,t,r){return $ s(e,"#"+t,r)}function C2(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function O2(e,t,r,n){for(var i=typeof t!="string"?t:ye(t),a=typeof t=="string"?t:Le(t),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var l=qt(e,s,f);l.t="n",l.F=a,delete l.v,s==i.s.r&&f==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var D2={encode_col:Ye,encode_row:Xe,encode_cell:Se,encode_range:Le,decode_col:O0,decode_row:C0,split_cell: $ o,decode_cell:Ue,decode_range:hr,format_cell:Wr,sheet_add_aoa:Va,sheet_add_json:Hs,sheet_add_dom:Ms,aoa_to_sheet:kt,json_to_sheet:T2,table_to_sheet:Bs,table_to_book:qd,sheet_to_csv:W0,sheet_to_txt:Ws,sheet_to_json:In,sheet_to_html:Ps,sheet_to_formulae:_2,sheet_to_row_object_array:In,sheet_get_cell:qt,book_new:w2,book_append_sheet:S2,book_set_sheet_visibility:A2,cell_set_number_format:F2,cell_set_hyperlink: $ s,cell_set_internal_link:y2,cell_add_comment:C2,sheet_set_array_formula:O2,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 .
2023-04-22 20:27:01 +00:00
* /function I2({type:e="xlsx",name:t="Truth Table",dl:r=!1,tableId:n}){const i=document.getElementById(n),a=D2.table_to_book(i,{sheet:"sheet1"});return r?U0(a,{bookType:e,bookSST:!0,type:"base64"}):v2(a,t+"."+e)}function k2(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function R2(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 N2=xe('<span class="h-min">Simplify: '),Hi=xe('<div class="h-min relative">'),L2=xe("<p>Filename:"),Vs=xe("<p>"),P2=xe('<div class="flex justify-center m-2"><div id="table" class="h-[45rem] overflow-auto">'),M2=xe('<div id="truth-content"><div class="max-w-2xl mx-auto"><form class="flex-row-center" autocomplete="off">'),B2=xe('<p class="sr-only">Download'),b2=xe('<button class="hover:underline cursor-pointer last:mb-1 flex-row-center">'),U2=xe('<table class="table"><tbody>'),W2=xe("<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."),H2=xe("<p>API docs can be found <!>."),$2=xe("<p>using: "),V2=xe("<td>using: "),G2=xe('<tr class="border-b border-dotted border-gray-500"><td>:</td><td class="px-2">'),X2=xe("<span>"),z2=xe('<table><thead><tr class="text-left"><th>Name</th><th class="pr-2">API</th><th>Other</thead><tbody><tr><td>Not:</td><td>!</td><td>NOT</tr><tr><td>And:</td><td>&</td><td>AND</tr><tr><td>Or:</td><td>|</td><td>/</td><td>OR</tr><tr><td class="pr-2">Implication:</td><td>-></td><td class="px-2">IMPLICATION</td><td>IMP'),K2=["http://localhost:8080/simplify/table/","https://api.martials.no/simplify-truths/simplify/table/"],Y2=()=>{let e,t=!0,r=!1,n=!1;typeof location<"u"&&(e=new URLSearchParams(location.search),e.has("simplify")&&(t=e.get("simplify")==="true"),e.has("exp")&&(r=!0),e.has("hideIntermediate")&&(n=e.get("hideIntermediate")==="true"));const[i,a]=Re(t),[s,f]=Re(null),l=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[o,c]=Re(l[0]),x=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[h,p]=Re(x[0]),[_,u]=Re(n),[m,A]=Re(null),[O,y]=Re(null),[M,Y]=Re(!1);function re(j){j.preventDefault();let le=L()?.value;le&&(history.pushState(null,"",`?exp=${encodeURIComponent(le)}&simplify=${i()}&
2023-04-15 21:06:40 +00:00
hide = $ { o ( ) . value } & sort = $ { h ( ) . value } & hideIntermediate = $ { _ ( ) } ` ),D(le))}function D(j){f(null),j&&j!==""&&(j=R2(j),y(null),A(!1),fetch( ` $ { K2 [ M ( ) ? 0 : 1 ] } $ { encodeURIComponent ( j ) } ?
2023-04-15 20:59:03 +00:00
simplify = $ { i ( ) } & hide = $ { o ( ) . value } & sort = $ { h ( ) . value } & caseSensitive = false &
2023-04-15 21:06:40 +00:00
hideIntermediate = $ { _ ( ) } ` ).then(le=>le.json()).then(le=>le.status!=="OK"&&!le.ok?y({title:"Input error",message:le.message}):f(le)).catch(le=>y({title:"Fetch error",message:le.toString()})).finally(()=>A(!0)))}const U="truth-input";function L(){return lt(U)}Vi(()=>{const j=L();if(e.has("exp")){const le=e.get("exp");le&&j&&(j.value=le);const oe=e.get("hide");oe&&c(l.find(de=>de.value===oe)??l[0]);const ve=e.get("sort");ve&&p(x.find(de=>de.value===ve)??x[0]),D(le)}k2()||j?.focus()});const H="truth-table",G="excel-filename";function X(){const j=lt(G)?.value;I2({name:j!==""?j:void 0,tableId:H})}return K(Ef,{title:"Truth tables",get children(){return[K(tr,{get when(){return!1},keyed:!0,get children(){return["(DEV) Use localhost:",K(Qn,{title:"Use localhost",defaultValue:!1,onChange:Y})]}}),(()=>{const j=M2(),le=j.firstChild,oe=le.firstChild;return ce(le,K(q2,{}),oe),oe.addEventListener("submit",re),ce(oe,K(kf,{id:U,typingDefault:r}),null),ce(oe,K(vn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ce(le,K(Xi,{className:"my-1 gap-2",get children(){return[N2(),K(Qn,{onChange:a,get defaultValue(){return i()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const ve=Hi();return ce(ve,K(ei,{title:"Filter results",id:"filter-results",get button(){return K(tr,{get when(){return o().value!=="NONE"},get children(){return K(Lr,{path:vf,"aria-label":"An eye with a slash through it",get class(){return ` mx - 1 $ { o ( ) . value === "TRUE" ? "text-green-500" : "text-red-500" } ` }})},get fallback(){return K(Lr,{path:mf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return K(st,{each:l,children:de=>K( $ i,{onClick:()=>c(de),option:de,currentValue:o})})},itemsClassName:"right-0"})),ve})(),(()=>{const ve=Hi();return ce(ve,K(ei,{title:"Sort results",id:"sort-results",get button(){return K(Lr,{path:gf,"aria-label":"Filter",get class(){return ` h - 6 w - 6 $ { h ( ) . value === "TRUE_FIRST" ? "text-green-500" : h ( ) . value === "FALSE_FIRST" && "text-red-500" } ` }})},get children(){return K(st,{each:x,children:de=>K( $ i,{option:de,currentValue:h,onClick:()=>p(de)})})},itemsClassName:"right-0"})),ve})(),K(Qn,{title:"Hide intermediate values",onChange:u,get defaultValue(){return _()}}),K(tr,{get when(){return at(()=>!!m())()&&O()===null},keyed:!0,get children(){return K(Bl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[B2(),K(Lr,{"aria-label":"Download",path:_f})]},callback:X,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClass:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[L2(),K(zi,{className:"border-rounded h-10 px-2",id:G,placeholder:"Truth Table"})]}})}})]}}),null),ce(le,K(tr,{get when(){return m()===!1},keyed:!0,get children(){return K(Lr,{path:Tf,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ce(le,K(tr,{get when(){return at(()=>!!O())()&&m()},keyed:!0,get children(){return K(j2,{get title(){return O()?.title??"Error"},get error(){return O()?.message??"Something went wrong"}})}}),null),ce(le,K(tr,{get when(){return at(()=>!!i())()&&(s()?.orderOperations?.length??0)>0},keyed:!0,get children(){return K(J2,{fetchResult:s})}}),null),ce(j,K(tr,{get when(){return at(()=>!!m())()&&O()===null},keyed:!0,get children(){return[K(tr,{get when(){return i()},keyed:!0,get children(){return K(sa,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const ve=Vs();return ce(ve,()=>s()?.after),ve}})}}),(()=>{const ve=P2(),de=ve.firstChild;return ce(de,K(Mf,{get header(){return s()?.header??void 0},get table(){return s()?.table?.truthMatrix},id:H})),ve})()]}}),null),j})()]}})}, $ i=({option:e,currentValue:t,onClick:r})=>{const n=()=>t&&t().value===e.value;return(()=>{const i=b2();return Gi(i,"click",r,!0),ce(i,K(Lr,{path:wf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return ` text - white $ { ! n ( ) && "invisible" } ` }}),null),ce(i,()=>e.name,null),i})()},j2=({title:e,error:t})=>K(sa,{className