From 7bd3e9079dbadc795dd7d5e2c04aa23161676720 Mon Sep 17 00:00:00 2001 From: YanivZalach Date: Thu, 25 Jan 2024 11:39:23 +0000 Subject: [PATCH] deploy: f12b4e161885d6806381ba60349b55a5645b3d96 --- assets/{index-fdmnu53B.js => index-IlI9Ug67.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-fdmnu53B.js => index-IlI9Ug67.js} (99%) diff --git a/assets/index-fdmnu53B.js b/assets/index-IlI9Ug67.js similarity index 99% rename from assets/index-fdmnu53B.js rename to assets/index-IlI9Ug67.js index 478c5dc..83e27bb 100644 --- a/assets/index-fdmnu53B.js +++ b/assets/index-IlI9Ug67.js @@ -37,7 +37,7 @@ `,f=c.charCodeAt(0),l=new RegExp((s=="|"?"\\|":s)+"+$"),o="",h=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],v=t.s.c;v<=t.e.c;++v)(x[v]||{}).hidden||(h[v]=He(v));for(var u=0,g=t.s.r;g<=t.e.r;++g)(d[g]||{}).hidden||(o=kd(e,t,g,h,i,f,s,n),o!=null&&(n.strip&&(o=o.replace(l,"")),(o||n.blankrows!==!1)&&r.push((u++?c:"")+o)));return delete n.dense,r.join("")}function wd(e,a){a||(a={}),a.FS=" ",a.RS=` `;var r=oi(e,a);return r}function Fd(e){var a="",r,n="";if(e==null||e["!ref"]==null)return[];var t=Oe(e["!ref"]),s="",i=[],c,f=[],l=Array.isArray(e);for(c=t.s.c;c<=t.e.c;++c)i[c]=He(c);for(var o=t.s.r;o<=t.e.r;++o)for(s=ze(o),c=t.s.c;c<=t.e.c;++c)if(a=i[c]+s,r=l?(e[o]||[])[c]:e[a],n="",r!==void 0){if(r.F!=null){if(a=r.F,!r.f)continue;n=r.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}f[f.length]=a+"="+n}return f}function li(e,a,r){var n=r||{},t=+!n.skipHeader,s=e||{},i=0,c=0;if(s&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?nr(n.origin):n.origin;i=f.r,c=f.c}var l,o={s:{c:0,r:0},e:{c,r:i+a.length-1+t}};if(s["!ref"]){var h=Oe(s["!ref"]);o.e.c=Math.max(o.e.c,h.e.c),o.e.r=Math.max(o.e.r,h.e.r),i==-1&&(i=h.e.r+1,o.e.r=i+a.length-1+t)}else i==-1&&(i=0,o.e.r=a.length-1+t);var x=n.header||[],d=0;a.forEach(function(u,g){Dr(u).forEach(function(S){(d=x.indexOf(S))==-1&&(x[d=x.length]=S);var y=u[S],_="z",N="",b=ue({c:c+d,r:i+g+t});l=Ya(s,b),y&&typeof y=="object"&&!(y instanceof Date)?s[b]=y:(typeof y=="number"?_="n":typeof y=="boolean"?_="b":typeof y=="string"?_="s":y instanceof Date?(_="d",n.cellDates||(_="n",y=ir(y)),N=n.dateNF||de[14]):y===null&&n.nullError&&(_="e",y=0),l?(l.t=_,l.v=y,delete l.w,delete l.R,N&&(l.z=N)):s[b]=l={t:_,v:y},N&&(l.z=N))})}),o.e.c=Math.max(o.e.c,c+x.length-1);var v=ze(i);if(t)for(d=0;d=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var r=e.SheetNames.indexOf(a);if(r>-1)return r;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function E0(){return{SheetNames:[],Sheets:{}}}function T0(e,a,r,n){var t=1;if(!r)for(;t<=65535&&e.SheetNames.indexOf(r="Sheet"+t)!=-1;++t,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);t=s&&+s[2]||0;var i=s&&s[1]||r;for(++t;t<=65535&&e.SheetNames.indexOf(r=i+t)!=-1;++t);}if(lx(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=a,r}function Cd(e,a,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Sd(e,a);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function yd(e,a){return e.z=a,e}function hi(e,a,r){return a?(e.l={Target:a},r&&(e.l.Tooltip=r)):delete e.l,e}function Dd(e,a,r){return hi(e,"#"+a,r)}function Od(e,a,r){e.c||(e.c=[]),e.c.push({t:a,a:r||"SheetJS"})}function Rd(e,a,r,n){for(var t=typeof a!="string"?a:Oe(a),s=typeof a=="string"?a:_e(a),i=t.s.r;i<=t.e.r;++i)for(var c=t.s.c;c<=t.e.c;++c){var f=Ya(e,i,c);f.t="n",f.F=s,delete f.v,i==t.s.r&&c==t.s.c&&(f.f=r,n&&(f.D=!0))}return e}var ui={encode_col:He,encode_row:ze,encode_cell:ue,encode_range:_e,decode_col:i0,decode_row:s0,split_cell:Vc,decode_cell:nr,decode_range:Ta,format_cell:br,sheet_add_aoa:vs,sheet_add_json:li,sheet_add_dom:si,aoa_to_sheet:ka,json_to_sheet:Ad,table_to_sheet:ii,table_to_book:Yx,sheet_to_csv:oi,sheet_to_txt:wd,sheet_to_json:Yt,sheet_to_html:Kx,sheet_to_formulae:Fd,sheet_to_row_object_array:Yt,sheet_get_cell:Ya,book_new:E0,book_append_sheet:T0,book_set_sheet_visibility:Cd,cell_set_number_format:yd,cell_set_hyperlink:hi,cell_set_internal_link:Dd,cell_add_comment:Od,sheet_set_array_formula:Rd,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Id(e){return new Promise((a,r)=>{if(e){const n=new FileReader;n.onload=function(t){try{const s=new Uint8Array(t.target.result),i=kt(s,{type:"array"}),c=[];for(let f=0;fh.split(","));c.push(o)}a([c,i.SheetNames])}catch(s){r(s)}},n.onerror=function(t){r(t)},n.readAsArrayBuffer(e)}else r(new Error("File is not provided."))})}function Nd(e){return new Promise((a,r)=>{if(e){const n=new FileReader;n.onload=function(t){try{const s=t.target.result,i=kt(s,{type:"array"}),f=ui.sheet_to_csv(i.Sheets[i.SheetNames[0]]).split(` -`).map(l=>l.split(","));a(f)}catch(s){r(s)}},n.onerror=function(t){r(t)},n.readAsArrayBuffer(e)}else r(new Error("File is not provided."))})}function Pd(e){return e.slice(e.lastIndexOf("."))}async function On(e,a){if(e){e=Bd(e);const r=document.createElement("table"),n=document.createElement("thead"),t=document.createElement("tbody");for(let s=0;s{r.unshift(n+1)});const a=e[0].map((r,n)=>n);return e.unshift(a),e}async function bd(e,a){let r=e.files[0];if(r){const n=Pd(r.name);if(a.innerHTML="",a.appendChild(document.createElement("hr")),n===".xlsx")try{let t;[r,t]=[...await Id(r)];for(let s=0;sl.split(","));a(f)}catch(s){r(s)}},n.onerror=function(t){r(t)},n.readAsArrayBuffer(e)}else r(new Error("File is not provided."))})}function Pd(e){return e.slice(e.lastIndexOf("."))}async function On(e,a){if(e){e=Bd(e);const r=document.createElement("table"),n=document.createElement("thead"),t=document.createElement("tbody");for(let s=0;s{r.unshift(n+1)});const a=e[0].map((r,n)=>n);return e.unshift(a),e}async function bd(e,a){let r=e.files[0];if(r){const n=Pd(r.name);if(a.innerHTML="",a.appendChild(document.createElement("hr")),n===".xlsx")try{let t;[r,t]=[...await Id(r)];for(let s=0;s
`;const Hd=document.getElementById(xi),Vd=document.getElementById(di);document.getElementById("fileInput").addEventListener("change",()=>{bd(Hd,Vd)}); diff --git a/index.html b/index.html index 1fb2f74..0a6758d 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Excel and CSV Viewer - +