@sheetxl/studio-mui 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
- package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
- package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
- package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
- package/browser/cjs/{scolQa-PxnIvyiDb.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
- package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
- package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
- package/browser/cjs/{C9TJkm0tBPD04idM.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
- package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
- package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
- package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
- package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
- package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
- package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
- package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
- package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
- package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
- package/browser/cjs/{BlBsVySC7wICKf3b.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
- package/browser/cjs/{BH160EggM2K8qaSr.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
- package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
- package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
- package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
- package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
- package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
- package/browser/esm/{DpJqkBHKECEClAah.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
- package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → B7spDz0f3MErGle0.mjs} +21 -20
- package/browser/esm/{DTW06ga7BIWfkpc3.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
- package/browser/esm/{QNCUQO7a-oixacNG.mjs → C0HMqAubZ7789bne.mjs} +1 -1
- package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
- package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
- package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
- package/browser/esm/{DJVGX60ly4BfiFse.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
- package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
- package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
- package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
- package/browser/esm/{CE3LjR3RfccnMUQt.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
- package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
- package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
- package/browser/esm/{BIQXdDApQqsa7WWH.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
- package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
- package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → Dig0J4i2Urjl9Z--.mjs} +170 -169
- package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
- package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
- package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
- package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
- package/browser/esm/{0qppnWkLyeMGOizg.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
- package/browser/esm/index.mjs +74 -73
- package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
- package/browser/esm/{B0k5xuPgYO9B-vto.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
- package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
- package/licenses/dependencies.txt +156 -178
- package/node/esm/{BiiNcUkTIcWxOabS.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
- package/node/esm/{tk69oRoeZHf4vk1z.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
- package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
- package/node/esm/{BnbhKW27rQ185mOb.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
- package/node/esm/{Br_lQeehvACsDkzu.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
- package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
- package/node/esm/{zQ0ozpm04cC2OG19.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
- package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
- package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
- package/node/esm/{CI3U9rEYT3a_Biw5.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
- package/node/esm/{cT4-HbwV7TBlRjja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
- package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
- package/node/esm/{CZA-oIez6io5vwv1.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
- package/node/esm/{CBlVCA0uvCwlok1v.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
- package/node/esm/{6L7TnSLCvI3zabFK.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
- package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
- package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
- package/node/esm/{D4ydLNNfUH8D41A7.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
- package/node/esm/{D6wjzUXEh-Q71uoB.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
- package/node/esm/{BY1cZ8MXawge5drQ.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
- package/node/esm/{BvOnjWMz5o3z-qWe.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
- package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
- package/node/esm/{fENiUIb3u1Oy7Amv.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
- package/node/esm/index.mjs +12873 -41673
- package/package.json +8 -8
- package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
- package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
- package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
- package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
- package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
- package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
- package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
- package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
- package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
- package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
- package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
- package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
- package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
- package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
- package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
- package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
- package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
- package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
- package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
- package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
- package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
- package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
- package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
- package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
- package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
- package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
- package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
- package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
- package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
- package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
- package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
- package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
- package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
- package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
- package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
- package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
- package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
- package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
- package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
- package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
- package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
- package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
- package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
- package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
- package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
- package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
- package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
- package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
- package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
- package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
- package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
- package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
- package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
- package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
- package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
- package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
- package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
- package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
- package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
- package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
- package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
- package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
- package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
- package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
- package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
- package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
- package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
- package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
- package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
- package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
- package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
- package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
- package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
- package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
- package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
- package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
- package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
- package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
- package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
- package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
- package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
- package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
- package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
- package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
- package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
- package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
- package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
- package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
- package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
- package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
- package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
- package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
- package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
- package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
- package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { NumberFormat as t, ScalarType as e, ResourceCollection as s, Tuple as i, IAutoFilter as o, AddressUtils as r, CommonUtils as n, Theme as a, JSONStableStringify as l, Workbook as c, IColor as h, CoordUtils as u, IRange as d, OutOfBoundsError as p, FormulaError as g } from "@sheetxl/sdk";
|
|
8
|
+
import { e as f } from "./index.mjs";
|
|
8
9
|
const m = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", T = new RegExp(`^[${m}][-${m}.0-9·̀-ͯ‿-⁀]*$`, "u");
|
|
9
10
|
function y(t2) {
|
|
10
11
|
return t2 >= 65 && t2 <= 90 || t2 >= 97 && t2 <= 122 || 58 === t2 || 95 === t2 || 8204 === t2 || 8205 === t2 || t2 >= 192 && t2 <= 214 || t2 >= 216 && t2 <= 246 || t2 >= 248 && t2 <= 767 || t2 >= 880 && t2 <= 893 || t2 >= 895 && t2 <= 8191 || t2 >= 8304 && t2 <= 8591 || t2 >= 11264 && t2 <= 12271 || t2 >= 12289 && t2 <= 55295 || t2 >= 63744 && t2 <= 64975 || t2 >= 65008 && t2 <= 65533 || t2 >= 65536 && t2 <= 983039;
|
|
@@ -857,7 +858,7 @@ const ht = (t2, e2, s2, i2 = null) => {
|
|
|
857
858
|
n2 && (s2 = pt[n2]);
|
|
858
859
|
let a2 = t2("tint");
|
|
859
860
|
if (a2 && (s2 += ` ${h.AdjustmentType.ETint} ${parseFloat(a2)}`), s2) return s2;
|
|
860
|
-
}, ft = (t2) => t2 ? t2.replace(/^\{([\s\S]+)\}$/, "$1") : t2, mt = (t2) => t2 ?
|
|
861
|
+
}, ft = (t2) => t2 ? t2.replace(/^\{([\s\S]+)\}$/, "$1") : t2, mt = (t2) => t2 ? f.roundAccurately(parseFloat(t2) / 12700, 4) : null, Tt = (t2) => t2 ? f.roundAccurately(parseFloat(t2) / 9525, 1) : null, yt = (t2) => parseFloat(t2) / 1e3, bt = (t2) => parseFloat(t2) / 6e4, xt = (t2) => "true" === t2 || "1" === t2;
|
|
861
862
|
class wt {
|
|
862
863
|
static {
|
|
863
864
|
this.Collapsed = 1;
|
|
@@ -899,14 +900,14 @@ class wt {
|
|
|
899
900
|
const vt = (t2, e2, s2) => {
|
|
900
901
|
if (t2[0].value[0] === t2[1].value[0]) return e2;
|
|
901
902
|
}, St = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, Ct = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (t2, h2) => {
|
|
902
|
-
const { password:
|
|
903
|
+
const { password: f2, onWarning: m2, constructorOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./D0fA-N8eAJVD4a_b.mjs"), x2 = import("./Cug20O7hGugaeSka.mjs");
|
|
903
904
|
let w2 = null;
|
|
904
905
|
try {
|
|
905
906
|
w2 = new DOMParser();
|
|
906
907
|
} catch (t3) {
|
|
907
908
|
}
|
|
908
909
|
let v2 = null;
|
|
909
|
-
w2 || (v2 = import("./
|
|
910
|
+
w2 || (v2 = import("./B794OzAyQ2S3DUvE.mjs").then((t3) => t3.i));
|
|
910
911
|
let S2 = null, C2 = null, k2 = null;
|
|
911
912
|
try {
|
|
912
913
|
const t3 = await Promise.all([b2, x2, v2]);
|
|
@@ -918,7 +919,7 @@ const vt = (t2, e2, s2) => {
|
|
|
918
919
|
const h3 = S2.read(t2, { type: "array", sheets: [], cellStyles: false, bookFiles: true });
|
|
919
920
|
if (!h3.Directory) throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
920
921
|
h3.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], h3.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
|
|
921
|
-
const
|
|
922
|
+
const p2 = new C2.FromOOXMLConverter(), f3 = w2 ?? new k2.DOMParser(), y3 = T2?.resources ?? new s(), b3 = y3.beginPersist(), x3 = {}, v3 = /* @__PURE__ */ new Set(), A2 = /* @__PURE__ */ new Map();
|
|
922
923
|
A2.set("richTypes", []);
|
|
923
924
|
const D2 = /* @__PURE__ */ new Map(), E2 = [], P2 = (t3) => h3.files[t3], O2 = (t3, e2) => {
|
|
924
925
|
const s2 = t3.lastIndexOf("/"), i2 = t3.substring(0, s2 + 1) + "_rels/" + t3.substring(s2 + 1, t3.length) + ".rels";
|
|
@@ -933,7 +934,7 @@ const vt = (t2, e2, s2) => {
|
|
|
933
934
|
n2.set(e4, s4);
|
|
934
935
|
}
|
|
935
936
|
return n2;
|
|
936
|
-
})(i2, P2,
|
|
937
|
+
})(i2, P2, f3, p2, V2), e2.set(i2, o2)), o2;
|
|
937
938
|
}, I2 = (t3, s2, a2, l2 = D2) => {
|
|
938
939
|
let c2 = O2(s2, l2).get(t3), h4 = c2?.target;
|
|
939
940
|
if (!h4) return null;
|
|
@@ -943,7 +944,7 @@ const vt = (t2, e2, s2) => {
|
|
|
943
944
|
const e2 = t4.split(/\/+/);
|
|
944
945
|
return e2.reduce((t5, e3, s3) => ("." === e3 ? t5.splice(s3, 1) : ".." === e3 && t5.splice(s3 - 1, 2), t5), e2).join("/");
|
|
945
946
|
})(h4);
|
|
946
|
-
const S3 =
|
|
947
|
+
const S3 = p2?.getVisitorParamsState().get("dxfs");
|
|
947
948
|
let C3 = l2.get(h4);
|
|
948
949
|
if (!C3) {
|
|
949
950
|
const t4 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
|
|
@@ -952,11 +953,11 @@ const vt = (t2, e2, s2) => {
|
|
|
952
953
|
C3 = t5;
|
|
953
954
|
const s3 = async () => {
|
|
954
955
|
const s4 = ((t6, s5, n2, a4, l3, c4, h5) => {
|
|
955
|
-
const
|
|
956
|
+
const p4 = new ct(), f5 = new i.TransposedBuilder();
|
|
956
957
|
let m3 = null;
|
|
957
|
-
|
|
958
|
+
p4.registerVisitor({ from: "autoFilter", to: "filter", openTag: (t7) => {
|
|
958
959
|
t7.copyTo("ref", lt);
|
|
959
|
-
} }),
|
|
960
|
+
} }), p4.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (t7) => {
|
|
960
961
|
const e2 = t7.getParent();
|
|
961
962
|
e2.conditionals || (e2.conditionals = []), e2.conditionals.push(t7.getSource());
|
|
962
963
|
const s6 = t7.getAttribute("sqref");
|
|
@@ -971,7 +972,7 @@ const vt = (t2, e2, s2) => {
|
|
|
971
972
|
}
|
|
972
973
|
}
|
|
973
974
|
delete e2.rule;
|
|
974
|
-
} }),
|
|
975
|
+
} }), p4.registerVisitor({ from: "cfRule", to: "rule", openTag: (t7) => {
|
|
975
976
|
const e2 = t7.getParent();
|
|
976
977
|
t7.copyToObject(e2, "type", lt), t7.copyToObject(e2, "priority", nt), t7.copyToObject(e2, "stopIfTrue", rt);
|
|
977
978
|
const s6 = t7.getAttribute("dxfId", nt);
|
|
@@ -980,55 +981,55 @@ const vt = (t2, e2, s2) => {
|
|
|
980
981
|
i2 || (c4?.(`Unable to load conditional color. Invalid dxfI: '${s6}' at '${t7.getPath()}'.`), i2 = {}), e2.style = i2;
|
|
981
982
|
}
|
|
982
983
|
t7.copyToObject(e2, "aboveAverage", rt), t7.copyToObject(e2, "equalAverage", rt), t7.copyToObject(e2, "stdDev", nt), t7.copyToObject(e2, "bottom", rt), t7.copyToObject(e2, "percent", rt), t7.copyToObject(e2, "rank", nt), t7.copyToObject(e2, "operator", lt), t7.copyToObject(e2, "text", lt), t7.copyToObject(e2, "timePeriod", lt);
|
|
983
|
-
} }),
|
|
984
|
+
} }), p4.registerVisitor({ from: "colorScale", to: "colorScale" }), p4.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (t7) => {
|
|
984
985
|
t7.copyTo("maxLength", nt), t7.copyTo("minLength", nt), t7.copyTo("showValue", rt);
|
|
985
|
-
} }),
|
|
986
|
+
} }), p4.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (t7) => {
|
|
986
987
|
t7.copyTo("iconSet", lt), t7.copyTo("reverse", rt), t7.copyTo("showValue", rt);
|
|
987
|
-
} }),
|
|
988
|
+
} }), p4.registerVisitor({ from: "formula", to: null, text: (t7, e2) => {
|
|
988
989
|
const s6 = e2.getParent();
|
|
989
990
|
let i2 = s6.formulas;
|
|
990
991
|
i2 || (i2 = [], s6.formulas = i2), i2.push(t7);
|
|
991
|
-
} }),
|
|
992
|
+
} }), p4.registerVisitor({ from: "cfvo", to: {}, openTag: (t7) => {
|
|
992
993
|
const e2 = t7.getParent();
|
|
993
994
|
e2.conditions || (e2.conditions = []), e2.conditions.push(t7.getSource()), t7.copyTo("type", lt), t7.copyTo("value", at, "val"), t7.copyTo("gte", rt);
|
|
994
|
-
} }),
|
|
995
|
+
} }), p4.registerVisitor({ from: "color", to: {}, openTag: (t7) => {
|
|
995
996
|
const e2 = t7.getParent();
|
|
996
997
|
e2.colors || (e2.colors = []);
|
|
997
998
|
const s6 = gt((e3) => t7.getAttribute(e3));
|
|
998
999
|
e2.colors.push(s6);
|
|
999
|
-
} }),
|
|
1000
|
+
} }), p4.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (t7) => {
|
|
1000
1001
|
const e2 = t7.getParent();
|
|
1001
1002
|
e2.fields || (e2.fields = []), e2.fields.push(t7.getSource()), t7.copyTo("offset", nt, "colId"), t7.copyTo("hiddenButton", rt), t7.copyTo("showButton", rt);
|
|
1002
|
-
} }),
|
|
1003
|
+
} }), p4.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (t7) => {
|
|
1003
1004
|
const e2 = t7.getParent();
|
|
1004
1005
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Color, t7.copyTo("cellColor", rt), t7.copyTo("styleId", nt, "dxfId");
|
|
1005
|
-
} }),
|
|
1006
|
+
} }), p4.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (t7) => {
|
|
1006
1007
|
const e2 = t7.getParent();
|
|
1007
1008
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Dynamic, t7.copyTo("dynamicType", lt, "type"), t7.copyTo("val", at), t7.copyTo("maxVal", at, "maxVal");
|
|
1008
|
-
} }),
|
|
1009
|
+
} }), p4.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (t7) => {
|
|
1009
1010
|
const e2 = t7.getParent();
|
|
1010
1011
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Icon, t7.copyTo("iconId", nt), t7.copyTo("iconSet", lt);
|
|
1011
|
-
} }),
|
|
1012
|
+
} }), p4.registerVisitor({ from: "top10", to: "top10", openTag: (t7) => {
|
|
1012
1013
|
const e2 = t7.getParent();
|
|
1013
1014
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Top10, t7.copyTo("filterVal", at), t7.copyTo("percent", rt), t7.copyTo("top", rt), t7.copyTo("val", at);
|
|
1014
|
-
} }),
|
|
1015
|
+
} }), p4.registerVisitor({ from: "filters", to: "filters", openTag: (t7) => {
|
|
1015
1016
|
const e2 = t7.getParent();
|
|
1016
1017
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Items, t7.copyTo("blank", rt), t7.copyTo("calendarType", lt);
|
|
1017
|
-
} }),
|
|
1018
|
+
} }), p4.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (t7) => {
|
|
1018
1019
|
const e2 = t7.getParent();
|
|
1019
1020
|
e2.dateGroups || (e2.dateGroups = []), e2.dateGroups.push(t7.getSource()), t7.copyTo("group", lt, "dateTimeGrouping"), t7.copyTo("day", nt), t7.copyTo("hour", nt), t7.copyTo("minute", nt), t7.copyTo("month", nt), t7.copyTo("second", nt), t7.copyTo("year", nt);
|
|
1020
|
-
} }),
|
|
1021
|
+
} }), p4.registerVisitor({ from: "filter", to: "filter", openTag: (t7) => {
|
|
1021
1022
|
const e2 = t7.getParent();
|
|
1022
1023
|
e2.items || (e2.items = []), e2.items.push(t7.getAttribute("val", at));
|
|
1023
|
-
} }),
|
|
1024
|
+
} }), p4.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (t7) => {
|
|
1024
1025
|
const e2 = t7.getParent();
|
|
1025
1026
|
e2.criteria || (e2.criteria = []), e2.criteria.push(t7.getSource()), t7.getSource().type = o.Type.Custom, t7.copyTo("and", rt);
|
|
1026
|
-
} }),
|
|
1027
|
+
} }), p4.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (t7) => {
|
|
1027
1028
|
const e2 = t7.getParent();
|
|
1028
1029
|
e2.filters || (e2.filters = []), e2.filters.push(t7.getSource()), t7.copyTo("operator", lt), t7.copyTo("value", at, "val");
|
|
1029
|
-
} }),
|
|
1030
|
+
} }), p4.registerVisitor({ from: "sortState", to: "sort", openTag: (t7) => {
|
|
1030
1031
|
t7.copyTo("ref", lt);
|
|
1031
|
-
} }),
|
|
1032
|
+
} }), p4.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (t7) => {
|
|
1032
1033
|
const e2 = t7.getParent();
|
|
1033
1034
|
e2.fields || (e2.fields = []);
|
|
1034
1035
|
const s6 = t7.getSource();
|
|
@@ -1039,28 +1040,28 @@ const vt = (t2, e2, s2) => {
|
|
|
1039
1040
|
s6.offset = o2 ? t8 - n3 : t8;
|
|
1040
1041
|
}
|
|
1041
1042
|
s6.reverse = t7.getAttribute("descending", rt) ?? false;
|
|
1042
|
-
} }),
|
|
1043
|
+
} }), p4.registerVisitor({ from: "AlternateContent", to: null });
|
|
1043
1044
|
const T5 = (t7) => {
|
|
1044
1045
|
m3 = t7.getSource(), t7.copyTo("topLeft", lt, "topLeftCell");
|
|
1045
1046
|
const e2 = xt(t7.getAttribute("defaultGridColor")), s6 = t7.getAttribute("colorId");
|
|
1046
1047
|
null === s6 || e2 || (t7.getSource().gridLineColor = "index" + parseFloat(s6)), t7.copyTo("showZeros", rt), t7.copyTo("showFormulas", rt), t7.copyTo("zoomScale", nt), t7.copyTo("showRowHeaders", rt, "showRowColHeaders"), t7.copyTo("showColumnHeaders", rt, "showRowColHeaders"), t7.copyTo("showRowGridlines", rt, "showGridLines"), t7.copyTo("showColumnGridlines", rt, "showGridLines");
|
|
1047
1048
|
};
|
|
1048
|
-
|
|
1049
|
+
p4.registerVisitor({ from: "sheetView", to: "view", openTag: (t7) => {
|
|
1049
1050
|
T5(t7);
|
|
1050
1051
|
}, closeTag: () => {
|
|
1051
1052
|
m3 = null;
|
|
1052
|
-
} }),
|
|
1053
|
+
} }), p4.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (t7) => {
|
|
1053
1054
|
t7.setSource([]);
|
|
1054
|
-
} }),
|
|
1055
|
+
} }), p4.registerVisitor({ from: "customSheetView", to: [], openTag: (t7) => {
|
|
1055
1056
|
T5(t7);
|
|
1056
1057
|
}, closeTag: () => {
|
|
1057
1058
|
m3 = null;
|
|
1058
|
-
} }),
|
|
1059
|
+
} }), p4.registerVisitor({ from: "selection", to: "selection", openTag: (t7) => {
|
|
1059
1060
|
if (!m3) return;
|
|
1060
1061
|
t7.copyTo("cell", lt, "activeCell"), t7.copyTo("rangeIndex", nt, "activeCellId");
|
|
1061
1062
|
const e2 = t7.getAttribute("activeCell"), s6 = t7.getAttribute("sqref");
|
|
1062
1063
|
s6 && s6 !== e2 && (t7.getSource().ranges = s6.split(" "));
|
|
1063
|
-
} }),
|
|
1064
|
+
} }), p4.registerVisitor({ from: "pane", to: "pane", openTag: (t7) => {
|
|
1064
1065
|
if (m3 && "frozen" === t7.getAttribute("state")) {
|
|
1065
1066
|
const e2 = {};
|
|
1066
1067
|
m3.freezePanes = e2, t7.copyToObject(e2, "topLeft", lt, "topLeftCell");
|
|
@@ -1069,22 +1070,22 @@ const vt = (t2, e2, s2) => {
|
|
|
1069
1070
|
const o2 = { colIndex: s6.colIndex + i2.colIndex, rowIndex: s6.rowIndex + i2.rowIndex };
|
|
1070
1071
|
e2.coords = r.cellToString(o2);
|
|
1071
1072
|
}
|
|
1072
|
-
} }),
|
|
1073
|
+
} }), p4.registerVisitor({ from: "tabColor", to: null, openTag: (e2) => {
|
|
1073
1074
|
const s6 = gt((t7) => e2.getAttribute(t7));
|
|
1074
1075
|
s6 && (t6.tabColor = s6);
|
|
1075
|
-
} }),
|
|
1076
|
-
} }),
|
|
1077
|
-
} }),
|
|
1078
|
-
} }),
|
|
1079
|
-
} }),
|
|
1080
|
-
} }),
|
|
1076
|
+
} }), p4.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (t7) => {
|
|
1077
|
+
} }), p4.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (t7) => {
|
|
1078
|
+
} }), p4.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (t7) => {
|
|
1079
|
+
} }), p4.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (t7) => {
|
|
1080
|
+
} }), p4.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (t7) => {
|
|
1081
|
+
} }), p4.registerVisitor({ from: "mergeCells", to: "merges", openTag: (t7) => {
|
|
1081
1082
|
t7.setSource([]);
|
|
1082
|
-
} }),
|
|
1083
|
+
} }), p4.registerVisitor({ from: "mergeCell", to: [], openTag: (t7) => {
|
|
1083
1084
|
const e2 = t7.getAttribute("ref");
|
|
1084
1085
|
t7.setSource(e2);
|
|
1085
|
-
} }),
|
|
1086
|
+
} }), p4.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (t7) => {
|
|
1086
1087
|
t7.setSource([]);
|
|
1087
|
-
} }),
|
|
1088
|
+
} }), p4.registerVisitor({ from: "hyperlink", to: [], openTag: (t7) => {
|
|
1088
1089
|
const e2 = t7.getAttribute("r:id"), i2 = t7.getAttribute("ref");
|
|
1089
1090
|
if (!i2) return void console.warn("No ref found for hyperlink");
|
|
1090
1091
|
t7.setKey(i2);
|
|
@@ -1097,42 +1098,42 @@ const vt = (t2, e2, s2) => {
|
|
|
1097
1098
|
let a5;
|
|
1098
1099
|
const l4 = t7.getAttribute("tooltip");
|
|
1099
1100
|
a5 = l4 ? { address: o2, tooltip: l4 } : o2, t7.setSource({ r: i2, v: a5 });
|
|
1100
|
-
} }),
|
|
1101
|
+
} }), p4.registerVisitor({ from: "drawing", to: "movables", openTag: (t7) => {
|
|
1101
1102
|
const e2 = t7.getAttribute("r:id");
|
|
1102
1103
|
if (!e2) return;
|
|
1103
1104
|
const i2 = s5(e2);
|
|
1104
1105
|
i2 ? t7.setSource(i2.movables) : console.warn("no drawing found for rId", e2);
|
|
1105
|
-
} }),
|
|
1106
|
+
} }), p4.registerVisitor({ from: "tableParts", to: "tables", openTag: (t7) => {
|
|
1106
1107
|
t7.setSource([]);
|
|
1107
|
-
} }),
|
|
1108
|
+
} }), p4.registerVisitor({ from: "tablePart", to: [], openTag: (t7) => {
|
|
1108
1109
|
const e2 = t7.getAttribute("r:id");
|
|
1109
1110
|
if (!e2) return;
|
|
1110
1111
|
const i2 = s5(e2);
|
|
1111
1112
|
i2 ? t7.setSource(i2) : console.warn("no table found for rId", e2);
|
|
1112
|
-
} }),
|
|
1113
|
-
} }),
|
|
1113
|
+
} }), p4.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (t7) => {
|
|
1114
|
+
} }), p4.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (t7) => {
|
|
1114
1115
|
let e2 = false;
|
|
1115
1116
|
if (t7.hasAttribute("sheet") && rt(t7.getAttribute("sheet")) && (e2 = true), !e2) return void t7.setSource(void 0);
|
|
1116
1117
|
const s6 = (t8) => true === t8 || "1" === t8 || "on" === t8 || "true" === t8 || false === t8 || "0" === t8 || "off" === t8 || "false" === t8 || null;
|
|
1117
1118
|
t7.copyTo("autoFilter", s6), t7.copyTo("deleteColumns", s6), t7.copyTo("formatCells", s6), t7.copyTo("formatColumns", s6), t7.copyTo("formatRows", s6), t7.copyTo("insertColumns", s6), t7.copyTo("insertHyperlinks", s6), t7.copyTo("insertRows", s6), t7.copyTo("objects", s6), t7.copyTo("pivotTables", s6), t7.copyTo("scenarios", s6), t7.copyTo("selectUnlockedCells", s6), t7.copyTo("selectUnlockedCells", s6), t7.copyTo("sort", s6);
|
|
1118
1119
|
const i2 = {};
|
|
1119
1120
|
t7.copyToObject(i2, "hash", lt, "hashValue"), t7.copyToObject(i2, "algorithm", lt, "algorithmName"), t7.copyToObject(i2, "salt", lt, "saltValue"), t7.copyToObject(i2, "spinCount", nt), Object.keys(i2).length > 0 && (t7.getSource().password = i2);
|
|
1120
|
-
} }),
|
|
1121
|
+
} }), p4.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (t7) => {
|
|
1121
1122
|
t7.setSource({});
|
|
1122
|
-
} }),
|
|
1123
|
+
} }), p4.registerVisitor({ from: "protectedRange", to: {}, openTag: (t7) => {
|
|
1123
1124
|
const e2 = t7.getAttribute("sqref");
|
|
1124
1125
|
t7.setKey(e2), t7.copyTo("name"), t7.copyTo("securityDescriptor");
|
|
1125
1126
|
const s6 = {};
|
|
1126
1127
|
t7.copyToObject(s6, "hash", lt, "hashValue"), t7.copyToObject(s6, "algorithm", lt, "algorithmName"), t7.copyToObject(s6, "salt", lt, "saltValue"), t7.copyToObject(s6, "spinCount", nt), Object.keys(s6).length > 0 && (t7.getSource().password = s6);
|
|
1127
|
-
} }),
|
|
1128
|
+
} }), p4.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e2) => {
|
|
1128
1129
|
e2.copyToObject(t6, "defaultColSize", at, "defaultColWidth"), e2.copyToObject(t6, "outlineLevelCol", nt, "outlineLevelCol");
|
|
1129
1130
|
const s6 = e2.getAttribute("customHeight");
|
|
1130
1131
|
"1" !== s6 && "true" !== s6 || e2.copyToObject(t6, "defaultRowSize", at, "defaultRowHeight"), e2.copyToObject(t6, "outlineLevelRow", nt, "outlineLevelRow");
|
|
1131
|
-
} }),
|
|
1132
|
+
} }), p4.registerVisitor({ from: "cols", to: "cols", openTag: (t7) => {
|
|
1132
1133
|
t7.setSource([]);
|
|
1133
|
-
} }),
|
|
1134
|
+
} }), p4.registerVisitor({ from: "col", to: [], openTag: (t7) => {
|
|
1134
1135
|
t7.copyTo("min", (t8) => parseInt(t8) - 1), t7.copyTo("max", (t8) => parseInt(t8) - 1), t7.copyTo("sz", at, "width"), t7.copyTo("cs", rt, "customWidth"), t7.copyTo("h", rt, "hidden"), t7.copyTo("l", nt, "outlineLevel"), t7.copyTo("s", nt, "style");
|
|
1135
|
-
} }),
|
|
1136
|
+
} }), p4.registerVisitor({ from: "oleObjects", to: null, openTag: (t7) => {
|
|
1136
1137
|
t7.warn("'OLE Objects' are not supported.");
|
|
1137
1138
|
} });
|
|
1138
1139
|
let y4 = null;
|
|
@@ -1146,7 +1147,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1146
1147
|
}, onError: (t7) => {
|
|
1147
1148
|
} };
|
|
1148
1149
|
return ((t7, s6, i2, o2, n3, a5) => {
|
|
1149
|
-
let l4 = false, c5 = false, h6 = [],
|
|
1150
|
+
let l4 = false, c5 = false, h6 = [], p5 = false, f6 = null, m4 = null, T6 = null, y5 = null, b5 = null, x4 = null;
|
|
1150
1151
|
const w4 = a5?.get("richData") ?? [], v4 = r.normalizeA1ToR1C1, S4 = u.createConflatingRanges(), C4 = /* @__PURE__ */ new Map(), k3 = [];
|
|
1151
1152
|
let A3 = null;
|
|
1152
1153
|
const D3 = u.createConflatingRanges();
|
|
@@ -1207,17 +1208,17 @@ const vt = (t2, e2, s2) => {
|
|
|
1207
1208
|
switch (s8.t ?? null) {
|
|
1208
1209
|
case null:
|
|
1209
1210
|
case "normal":
|
|
1210
|
-
|
|
1211
|
+
p5 = true;
|
|
1211
1212
|
break;
|
|
1212
1213
|
case "shared":
|
|
1213
1214
|
const t9 = s8.si;
|
|
1214
|
-
m4 = s8.ref,
|
|
1215
|
+
m4 = s8.ref, f6 = t9;
|
|
1215
1216
|
break;
|
|
1216
1217
|
case "array":
|
|
1217
|
-
|
|
1218
|
+
p5 = true, m4 = s8.ref, A3 = [m4, false];
|
|
1218
1219
|
break;
|
|
1219
1220
|
case "datatable":
|
|
1220
|
-
|
|
1221
|
+
p5 = true, m4 = s8.ref, p5 = true;
|
|
1221
1222
|
}
|
|
1222
1223
|
void 0 !== s8.ca && D3.append(O3, I3);
|
|
1223
1224
|
break;
|
|
@@ -1284,7 +1285,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1284
1285
|
}
|
|
1285
1286
|
}
|
|
1286
1287
|
}
|
|
1287
|
-
const t8 =
|
|
1288
|
+
const t8 = g.getBuiltInByLabel(s7);
|
|
1288
1289
|
t8 ? V3 = { t: e.Error, v: t8.getCode() } : (V3 = s7, o2?.(`Unknown formula error '${s7}' in cell ${r.cellToString({ colIndex: I3, rowIndex: O3 })}`));
|
|
1289
1290
|
break;
|
|
1290
1291
|
case "str":
|
|
@@ -1293,29 +1294,29 @@ const vt = (t2, e2, s2) => {
|
|
|
1293
1294
|
}
|
|
1294
1295
|
null !== V3 && t7.addValue(O3, I3, V3);
|
|
1295
1296
|
}
|
|
1296
|
-
if (A3 && ("e" === L3 && (A3[1] = true), k3.push(A3), A3 = null),
|
|
1297
|
+
if (A3 && ("e" === L3 && (A3[1] = true), k3.push(A3), A3 = null), f6) if (b5 === f6) y5 = x4;
|
|
1297
1298
|
else {
|
|
1298
|
-
if (y5 = C4.get(
|
|
1299
|
+
if (y5 = C4.get(f6), !y5) {
|
|
1299
1300
|
const t8 = [];
|
|
1300
|
-
T6 = v4(s7, O3, I3, t8), y5 = [T6, t8, s7], C4.set(
|
|
1301
|
+
T6 = v4(s7, O3, I3, t8), y5 = [T6, t8, s7], C4.set(f6, y5);
|
|
1301
1302
|
}
|
|
1302
|
-
b5 =
|
|
1303
|
+
b5 = f6, x4 = y5;
|
|
1303
1304
|
}
|
|
1304
|
-
if (
|
|
1305
|
+
if (p5) {
|
|
1305
1306
|
const t8 = [];
|
|
1306
1307
|
T6 = v4(s7, O3, I3, t8), y5 = [T6, t8, s7];
|
|
1307
1308
|
}
|
|
1308
|
-
if (y5) return S4.append(O3, I3, y5), y5 = null,
|
|
1309
|
+
if (y5) return S4.append(O3, I3, y5), y5 = null, p5 = false, f6 = null, void (m4 = null);
|
|
1309
1310
|
P3 ? n3?.onText(s7) : l4 || i2?.onText(s7);
|
|
1310
1311
|
} };
|
|
1311
|
-
})(
|
|
1312
|
+
})(f5, t6, p4.createEventHandler(t6, () => {
|
|
1312
1313
|
}, c4), c4, b4, h5);
|
|
1313
1314
|
})(t5, (t6, e2 = false) => I2(t6, h4, e2) ?? null, j2, S3, 0, (t6) => {
|
|
1314
1315
|
m2 && (t6 = h4 + ": " + t6, m2?.(t6));
|
|
1315
1316
|
}, A2), a3 = ht(h4, P2), c3 = await (async (t6, e2 = 8388608) => {
|
|
1316
1317
|
await (async () => {
|
|
1317
1318
|
if ("undefined" == typeof ReadableStream) if ("undefined" == typeof window) {
|
|
1318
|
-
const { ReadableStream: t7 } = await import("./
|
|
1319
|
+
const { ReadableStream: t7 } = await import("./ILfHRiSFod9A2fKN.mjs");
|
|
1319
1320
|
global.ReadableStream = t7;
|
|
1320
1321
|
} else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
|
|
1321
1322
|
})();
|
|
@@ -1333,27 +1334,27 @@ const vt = (t2, e2, s2) => {
|
|
|
1333
1334
|
} catch (t6) {
|
|
1334
1335
|
throw console.warn(`Error parsing sheet: '${h4}'`, t6), new Error(`Error parsing sheet: '${h4}'`, { cause: t6 });
|
|
1335
1336
|
}
|
|
1336
|
-
const
|
|
1337
|
-
let
|
|
1338
|
-
if (
|
|
1337
|
+
const p3 = O2(h4, l2);
|
|
1338
|
+
let f4, T4 = /* @__PURE__ */ new Map();
|
|
1339
|
+
if (p3) {
|
|
1339
1340
|
const e2 = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
|
|
1340
1341
|
let s5;
|
|
1341
|
-
|
|
1342
|
+
p3.forEach((t6, s6) => {
|
|
1342
1343
|
if (t6.type === e2) {
|
|
1343
1344
|
const t7 = I2(s6, h4, false, l2);
|
|
1344
|
-
|
|
1345
|
+
f4 = t7?.comments, f4 && f4.forEach((t8) => {
|
|
1345
1346
|
T4.set(t8.id, t8);
|
|
1346
1347
|
});
|
|
1347
1348
|
}
|
|
1348
1349
|
});
|
|
1349
1350
|
const i2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
|
1350
|
-
if (
|
|
1351
|
+
if (p3.forEach((t6, e3) => {
|
|
1351
1352
|
if (t6.type === i2) {
|
|
1352
1353
|
const t7 = I2(e3, h4, false, l2);
|
|
1353
1354
|
s5 = t7;
|
|
1354
1355
|
}
|
|
1355
|
-
}), s5 ||
|
|
1356
|
-
const e3 =
|
|
1356
|
+
}), s5 || f4) {
|
|
1357
|
+
const e3 = f4 ?? [], i3 = s5?.comments;
|
|
1357
1358
|
if (i3) {
|
|
1358
1359
|
const t6 = s5?.authors;
|
|
1359
1360
|
for (let s6 = 0; s6 < i3.length; s6++) {
|
|
@@ -1374,7 +1375,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1374
1375
|
} else C3 = a2 ? ht(h4, P2, (t5) => {
|
|
1375
1376
|
const e2 = y3.add({ buffer: t5 });
|
|
1376
1377
|
return e2.addReference(x3), v3.add(e2), b3.toResourceId(e2);
|
|
1377
|
-
}, V2) : ut(h4, P2,
|
|
1378
|
+
}, V2) : ut(h4, P2, f3, p2, V2);
|
|
1378
1379
|
}
|
|
1379
1380
|
return C3;
|
|
1380
1381
|
}, V2 = { paramMap: A2, getRefs: O2, getRef: I2, parsedRefs: D2, onWarning: m2, addPerson: (t3) => null }, L2 = [];
|
|
@@ -1389,7 +1390,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1389
1390
|
if (void 0 !== e2) return e2;
|
|
1390
1391
|
const s2 = M2;
|
|
1391
1392
|
return $2.set(t3, M2++), L2.push(t3), s2;
|
|
1392
|
-
}, H2 = (dt("richstructure", h3,
|
|
1393
|
+
}, H2 = (dt("richstructure", h3, f3, p2, V2), dt("richdata", h3, f3, p2, V2), /* @__PURE__ */ new Map()), F2 = /* @__PURE__ */ new Map(), X2 = dt("people", h3, f3, p2);
|
|
1393
1394
|
let B2 = null;
|
|
1394
1395
|
if (X2.size > 0 && (B2 = X2.entries().next()?.value?.[1]?.persons, B2)) {
|
|
1395
1396
|
const t3 = B2.length;
|
|
@@ -1398,16 +1399,16 @@ const vt = (t2, e2, s2) => {
|
|
|
1398
1399
|
H2.set(t4.id, t4), H2.set(t4.displayName, t4);
|
|
1399
1400
|
}
|
|
1400
1401
|
}
|
|
1401
|
-
const W2 = dt("themes", h3,
|
|
1402
|
+
const W2 = dt("themes", h3, f3, p2, V2);
|
|
1402
1403
|
let _2 = null;
|
|
1403
1404
|
if (W2 && W2.entries) {
|
|
1404
1405
|
let t3 = W2.entries().next();
|
|
1405
1406
|
t3?.value?.[1] && (_2 = t3.value[1]);
|
|
1406
1407
|
}
|
|
1407
|
-
const q2 = new a(_2), z2 = dt("styles", h3,
|
|
1408
|
+
const q2 = new a(_2), z2 = dt("styles", h3, f3, p2, V2);
|
|
1408
1409
|
let U2 = z2.entries().next()?.value[1];
|
|
1409
1410
|
U2 && (U2 = JSON.parse(l(U2)));
|
|
1410
|
-
const G2 = dt("workbooks", h3,
|
|
1411
|
+
const G2 = dt("workbooks", h3, f3, p2, V2);
|
|
1411
1412
|
await Promise.all(E2);
|
|
1412
1413
|
const Z2 = { ...G2.entries().next().value[1], styles: U2, theme: q2.toJSON() };
|
|
1413
1414
|
L2.length > 0 && (Z2.strings = L2), B2 && B2.length > 0 && (Z2.people = B2);
|
|
@@ -1417,10 +1418,10 @@ const vt = (t2, e2, s2) => {
|
|
|
1417
1418
|
}), b3.endPersist(), J2;
|
|
1418
1419
|
} catch (t3) {
|
|
1419
1420
|
let e2 = "Unable to parse XLSX.";
|
|
1420
|
-
throw t3 instanceof
|
|
1421
|
+
throw t3 instanceof p && (e2 = "Unable to open XLSX. There are too many rows or columns."), new Error(e2, { cause: t3 });
|
|
1421
1422
|
}
|
|
1422
1423
|
}, toBufferXLSX: async (s2, i2) => {
|
|
1423
|
-
const o2 = await import("./
|
|
1424
|
+
const o2 = await import("./D0fA-N8eAJVD4a_b.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
|
|
1424
1425
|
for (let i3 = 0; i3 < r2.sheets.length; i3++) {
|
|
1425
1426
|
const a2 = r2.sheets[i3], l2 = o2.utils.json_to_sheet([{}]);
|
|
1426
1427
|
o2.utils.book_append_sheet(n2, l2, a2.name);
|