var e=function(e){return e[e.LEFT=1]=`LEFT`,e[e.CENTER=2]=`CENTER`,e[e.RIGHT=3]=`RIGHT`,e}({}),t=function(e){return e[e.TOP=1]=`TOP`,e[e.MIDDLE=2]=`MIDDLE`,e[e.BOTTOM=3]=`BOTTOM`,e}({}),n=function(e){return e[e.WRAP=3]=`WRAP`,e}({}),r=function(e){return e[e.NONE=0]=`NONE`,e[e.THIN=1]=`THIN`,e[e.HAIR=2]=`HAIR`,e[e.DOTTED=3]=`DOTTED`,e[e.DASHED=4]=`DASHED`,e[e.DASH_DOT=5]=`DASH_DOT`,e[e.DASH_DOT_DOT=6]=`DASH_DOT_DOT`,e[e.DOUBLE=7]=`DOUBLE`,e[e.MEDIUM=8]=`MEDIUM`,e[e.MEDIUM_DASHED=9]=`MEDIUM_DASHED`,e[e.MEDIUM_DASH_DOT=10]=`MEDIUM_DASH_DOT`,e[e.MEDIUM_DASH_DOT_DOT=11]=`MEDIUM_DASH_DOT_DOT`,e[e.SLANT_DASH_DOT=12]=`SLANT_DASH_DOT`,e[e.THICK=13]=`THICK`,e}({});function i(e){try{return{ok:!0,data:JSON.parse(e)}}catch{return{ok:!1,data:null}}}function a(e){return(e.sheetOrder??Object.keys(e.sheets)).map(t=>e.sheets[t]).filter(e=>!!e&&!e.hidden)}function o(e,t){return e?typeof e==`string`?t[e]??null:e:null}function s(e,t=[]){let n=1/0,r=-1/0,i=1/0,a=-1/0;for(let t of Object.keys(e)){let o=Number(t),s=e[o];for(let e of Object.keys(s)){let t=Number(e);n>o&&(n=o),r<o&&(r=o),i>t&&(i=t),a<t&&(a=t)}}for(let e of t)n>e.startRow&&(n=e.startRow),r<e.endRow&&(r=e.endRow),i>e.startColumn&&(i=e.startColumn),a<e.endColumn&&(a=e.endColumn);return n>r?null:{minRow:n,maxRow:r,minCol:i,maxCol:a}}function c(e){return typeof e==`number`&&Number.isFinite(e)}var l=`SHEET_DRAWING_PLUGIN`,u=`SHEET_DATA_VALIDATION_PLUGIN`;function d(e,t){let n=e.resources?.find(e=>e.name===l);if(!n?.data)return[];let r;try{r=JSON.parse(n.data)}catch{return[]}let i=r?.[t],a=i?.data;return a?(Array.isArray(i?.order)?i.order:Object.keys(a)).map(e=>a[e]).filter(e=>!!e):[]}function f(e,t){let n=e.resources?.find(e=>e.name===u);if(!n?.data)return[];let r;try{r=JSON.parse(n.data)}catch{return[]}let i=r?.[t];return Array.isArray(i)?i.filter(e=>!!e):[]}export{n as a,d as c,i as d,o as f,t as i,a as l,e as n,s as o,l as r,f as s,r as t,c as u};