old.martials.no/assets/main-5989351a.js

131 lines
343 KiB
JavaScript
Raw Normal View History

2023-08-14 14:40:05 +00:00
(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==
2023-07-24 18:48:39 +00:00
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"}
2023-07-24 18:56:29 +00:00
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}fun
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 W
2023-07-24 18:48:39 +00:00
relative inline-flex h-6 w-11 items-center rounded-full my-2 ${n}`,v=`${s()?"translate-x-6":"translate-x-1"}
2023-07-24 18:56:29 +00:00
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.b
2023-07-24 18:48:39 +00:00
`)+`\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(
`,hh={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},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,"&#10;")}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(/&quot;/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=functio
`),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#">
2023-07-24 18:56:29 +00:00
`);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)
2023-07-24 18:48:39 +00:00
`;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(`
2023-07-24 18:56:29 +00:00
`)}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.writ
2023-07-24 18:48:39 +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"/>
</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]+`
2023-07-24 20:22:25 +00:00
`;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
2023-07-24 18:48:39 +00:00
`,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+`>
2023-07-24 20:22:25 +00:00
`),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(op(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)=="#"?"#"+cp(V.slice(1)):V,V.charAt(0)!="#"&&!V.match(/^\w+:/)&&(V="../"+V),D=q("text:a",D,{"xlink:href":V.replace(/&/g,"&amp;")})}l.push(" "+q("table:table-cell",q("text:p",D,{}),A)+`
2023-07-24 18:48:39 +00:00
`)}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>
2023-07-24 20:22:25 +00:00
`),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]
2023-07-24 18:48:39 +00:00
`,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.
2023-07-24 20:22:25 +00:00
*/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.replaceAll(/\//g,"|").replaceAll(/¬/g,"!").replaceAll(/\sOR\s/gi," | ").replaceAll(/\sAND\s/gi," & ").replaceAll(/\s(IMPLICATION|IMP)\s/gi," -> ").replaceAll(/\sNOT\s/gi," !")}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)}?
2023-07-24 18:48:39 +00:00
simplify=${s()}&hide=${h().value}&sort=${v().value}&caseSensitive=false&
2023-07-24 18:56:29 +00:00
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(){con