@sheetxl/studio-vanilla 0.6.20 → 0.6.21
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/{CryIly0AXO1huJEa.cjs → 1sqglEtVgYoAtz1e.cjs} +2 -2
- package/browser/cjs/{Dye2yg85ya1SlTRm.cjs → B4-tNidE5Yxfy7gW.cjs} +1 -1
- package/browser/cjs/{D3_vQZqJZBTL44mH.cjs → B9FIdY7BsKz5o-SB.cjs} +1 -1
- package/browser/cjs/{DyV7TapvEVbCnogy.cjs → BDPNWMIllqkhLuBy.cjs} +1 -1
- package/browser/cjs/{DB8pWCC-wzML431A.cjs → BE7E5UOox_eRRpz5.cjs} +1 -1
- package/browser/cjs/{CU_V0SES2Ezbw7Qw.cjs → BEqvZr1B6QvZ2SHP.cjs} +1 -1
- package/browser/cjs/{DHnmvtbCSH8llLWl.cjs → BGXsj9w_Cqmag4lH.cjs} +1 -1
- package/browser/cjs/{BG5cKyoYMMGQ90Tb.cjs → BZbOFwTUcYhNItwy.cjs} +1 -1
- package/browser/cjs/{BGEVg7vPp57a0szQ.cjs → BZmnsg0tgpqLiKxE.cjs} +1 -1
- package/browser/cjs/{DTQyweRqO70tDGZW.cjs → BeO25qjih_3ZGlVh.cjs} +1 -1
- package/browser/cjs/{DrzXgY9JDVrH5iEY.cjs → BeTL9x99vC40kKHt.cjs} +1 -1
- package/browser/cjs/{BTC_osNFyP_ADrKt.cjs → Bh26aRCF4yo5ZF2R.cjs} +2 -2
- package/browser/cjs/{D3xFv_dNVcJ8w4V_.cjs → Bk6VbyJabdAY2yvS.cjs} +2 -2
- package/browser/cjs/{D-u9i00CTvX6LrXE.cjs → BkQFK3u0rywPT90D.cjs} +4 -4
- package/browser/cjs/{DfVB0u3dbpeMUbYC.cjs → Bq8G_2QPyZm1tPmA.cjs} +1 -1
- package/browser/cjs/{jbWQBAxI7b-RbY-P.cjs → Brhgtw4od1FP1CoB.cjs} +1 -1
- package/browser/cjs/{Bg2i0yblmAGtdiFc.cjs → Bt5tHJ8tYki9iGKK.cjs} +6 -6
- package/browser/cjs/{Cf8VisaF0rorl-tj.cjs → BwvZG5tY_kF3woW3.cjs} +1 -1
- package/browser/cjs/{DMDNaISazcSZlVH3.cjs → CF5wfCRL0cddknRP.cjs} +4 -4
- package/browser/cjs/{Cynv9hvkhWz2y5cz.cjs → CFX-SBIaReSVIBCC.cjs} +4 -4
- package/browser/cjs/{CyCZEcCQyS5_Clj4.cjs → CH9O0XG7rH3Y2UtP.cjs} +2 -2
- package/browser/cjs/{BFUZIobonpjCl8XN.cjs → CIMBOnl6X564xy0l.cjs} +1 -1
- package/browser/cjs/{Oeta7KJW-eE_O6jB.cjs → CJ3lrKDXqmEO96La.cjs} +2 -2
- package/browser/cjs/{Dh_a8B09uAbDmQKp.cjs → CJkxt25rhMqU0K66.cjs} +1 -1
- package/browser/cjs/{Df_yPTqMbEL5Kmrb.cjs → CJos8GZc-cvnXuNA.cjs} +2 -2
- package/browser/cjs/{UumaeSTNb532IkUa.cjs → CUXSXdQUE0dWAenI.cjs} +2 -2
- package/browser/cjs/{D3qssZYpCKQ4azNw.cjs → CWG-4NrlAqdTde6e.cjs} +2 -2
- package/browser/cjs/{CFZq2q6w_H005jSH.cjs → CdQDfNj_ZoOhmU3g.cjs} +1 -1
- package/browser/cjs/Ch5M7RXr_h53q5-X.cjs +6 -0
- package/browser/cjs/{C9U2ZtGN0mZ4PSk9.cjs → CkC-DVDPzmVmZfmq.cjs} +1 -1
- package/browser/cjs/{DM1ync0cxRMMxdjT.cjs → Ckive25RrDR-iJFD.cjs} +1 -1
- package/browser/cjs/{CrzSa7cp4z7G7InJ.cjs → Clixx0eJCe4dW-8f.cjs} +2 -2
- package/browser/cjs/{BSwwQVlUj2gjBbtB.cjs → CzUEiQL8wVwzp47x.cjs} +3 -3
- package/browser/cjs/{CNuar4mfODnx2Cu-.cjs → D37RJ7SIhWyud8dD.cjs} +26 -26
- package/browser/cjs/{D6BhTn2o_dt4xRpw.cjs → DCLf0eKKoaBbE3eZ.cjs} +1 -1
- package/browser/cjs/{B-1AHd4iSvyyLnZ_.cjs → DFmpOg41Q4SguhJ1.cjs} +2 -2
- package/browser/cjs/{DzksZ54tujCKOPtx.cjs → DHM2nxB8WGvi5SXI.cjs} +1 -1
- package/browser/cjs/{D23gTPdc77moj027.cjs → DPFLft-ViAfXLNk_.cjs} +3 -3
- package/browser/cjs/{BI4NHszjLSwlAXJ2.cjs → DVgqz5DZW2Fp4U9K.cjs} +1 -1
- package/browser/cjs/{BLF7wTCR52CzSeao.cjs → DjZX0bAo9vkTZcaH.cjs} +1 -1
- package/browser/cjs/{BAZ54W_A3EB1_N8w.cjs → Dk2gIRN5DeldM38t.cjs} +58 -58
- package/browser/cjs/{CHqKiAFxLI_8vaif.cjs → DmGcMrKTZ72YBMBG.cjs} +1 -1
- package/browser/cjs/{BFdxhgihyO4m-75F.cjs → DmWMQnBH7nkZtCKs.cjs} +1 -1
- package/browser/cjs/{Cfmx7vatFZyYWWoM.cjs → DrygXwcigmIAG2oY.cjs} +2 -2
- package/browser/cjs/{CCxwq1Zg9qqd7S4H.cjs → DxKQf_D_9EGLELUg.cjs} +1 -1
- package/browser/cjs/{CwTL-XMW_FWrKeIs.cjs → Dya9SkaBYjHwn0hu.cjs} +1 -1
- package/browser/cjs/{C9f1Ole7JQlhQUyI.cjs → GnQ7HlKTOR-DRPOc.cjs} +2 -2
- package/browser/cjs/{CFuyeot98-XObD03.cjs → MrRJ8DL83xUQEC5V.cjs} +1 -1
- package/browser/cjs/{DVqaEf3KR8vjwxq_.cjs → PSsAv8Xg3WOON2r5.cjs} +2 -2
- package/browser/cjs/{LUyya4C90CLC19FG.cjs → UsCfczD3Mf_PhLCp.cjs} +1 -1
- package/browser/cjs/_LljJ_rtlRIprcWk.cjs +6 -0
- package/browser/cjs/{C2J2kQ9SvYC1V9Xr.cjs → csfZGgCUiFyYBzm3.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{1xkrqBTebDVyM-I6.cjs → itcYsRB8GxNimpp-.cjs} +1 -1
- package/browser/cjs/{_pV8QpcCMj-56pc7.cjs → kVdyrgJwSUF-llMY.cjs} +1 -1
- package/browser/cjs/{BWFJ4m55DeRNh2zG.cjs → uS-vuno7s_tpaLIR.cjs} +1 -1
- package/browser/cjs/{CdwXhalXfUOXFLbN.cjs → xzFCOaWRjDtEsnVU.cjs} +2 -2
- package/browser/cjs/{1_db5ZmyUnakQtWV.cjs → yHwyFs7f27gFBG6Q.cjs} +2 -2
- package/browser/esm/{C9DEqpjw4dAf8K6Y.mjs → 07o-PZIJxTOqY3AC.mjs} +2 -2
- package/browser/esm/{kayvsdMuiDJqziEd.mjs → 7mV6MWcma1etUFZv.mjs} +2 -2
- package/browser/esm/{C6J0fCCQgBJUxTnK.mjs → 8VF8CvvzVxAsqoHP.mjs} +1 -1
- package/browser/esm/{CUlI7PrUr6138-QS.mjs → AXGqiDKlGW8PxPH4.mjs} +1 -1
- package/{cdn/assets/CZ-Tzx9g328jH3ED.js → browser/esm/B-loZMkEsDyaPdOh.mjs} +1 -1
- package/{cdn/assets/X7_yAomm4lFKewTT.js → browser/esm/BBUSUCuReopuZ2tO.mjs} +1 -1
- package/browser/esm/{CWKF1AhStHbx4Vbs.mjs → BBcQOauRT8jGgG3N.mjs} +2 -2
- package/browser/esm/{gqLR_ILyOOChluxW.mjs → BZbZGYyUbtoAyMBP.mjs} +2 -2
- package/{cdn/assets/bVXoA_TW765SVczB.js → browser/esm/BiA4_9ikfiKm0qU_.mjs} +1 -1
- package/{cdn/assets/zLSKKjUavHIaEg-q.js → browser/esm/BiGrgUmF1fe-gAHx.mjs} +1 -1
- package/browser/esm/{z35KN3PUrdO8g25t.mjs → BkHVG3ug8hX4oEeu.mjs} +9 -9
- package/{cdn/assets/BdgtWo6kMY1Mxgsz.js → browser/esm/Bvhc5zlE0K4-vpjD.mjs} +1 -1
- package/browser/esm/{BPk8eDfHrcp_jtKB.mjs → C0DCDzIgoob1-pLV.mjs} +2 -2
- package/browser/esm/{CgwN7-ynygeCc3Vn.mjs → C0mFWxLbs2NvkMFr.mjs} +2 -2
- package/browser/esm/{6xnxyqlypi25fKIf.mjs → C5m9RsvIQ6BnIUZU.mjs} +3 -3
- package/browser/esm/{8XcDvNGBzW1J4MZR.mjs → CA4ubxaCo47RFhwQ.mjs} +1 -1
- package/{cdn/assets/DOJ5TeGKDhDYlGsj.js → browser/esm/CCxRdwG5AF7kEkOa.mjs} +1 -1
- package/{cdn/assets/B0Tja2Mv-oQRkuOE.js → browser/esm/CDnDa2ceAd0pBmcn.mjs} +1 -1
- package/browser/esm/{BBMn5JBh7hEndr2e.mjs → CLGA7GL6jvXT2e1P.mjs} +6 -6
- package/browser/esm/{DQQhwtcPhjll6OA4.mjs → CM9Iw3rY5kWYbm7n.mjs} +2 -2
- package/browser/esm/{DINOrudlPwMfN2ED.mjs → CehS00A6V9E_84jb.mjs} +1 -1
- package/browser/esm/{CJ7isvzFF2ZUBRsK.mjs → Cf7icRZXMYxDbj0J.mjs} +1 -1
- package/browser/esm/{DwqIT9OfaRURwAJz.mjs → Csy4g9WBlkCisEGk.mjs} +1 -1
- package/browser/esm/{ClyP9sJxDNs3k-RY.mjs → Cuk-hTzDBdK5IOwa.mjs} +1 -1
- package/browser/esm/{DRmq0WkjiJ74ata7.mjs → Cuu8yjwDk9n-7GtF.mjs} +1 -1
- package/browser/esm/{BftXk8JIS_WeFsQr.mjs → CzXIQvdY3f1Ef-Xy.mjs} +3 -3
- package/browser/esm/{V3-bkRlm8M87qz1t.mjs → DETLPuVhq1Nm9Hrl.mjs} +1 -1
- package/browser/esm/{D_PqQU0_2O0RR1OW.mjs → DFs2aa5l7Sx2SCZK.mjs} +45 -45
- package/browser/esm/{ISQ_m2O-qATyJYA8.mjs → DGYph7dnWUJTX3QL.mjs} +2 -2
- package/{cdn/assets/CotiEFIDFTB0M6K2.js → browser/esm/DKiR9CAwQ8Gpr5S5.mjs} +2 -2
- package/browser/esm/{mUPX0FQAAhyiFtls.mjs → DNSSZmQqEn-SMbOn.mjs} +1 -1
- package/browser/esm/{U80rzZp5JeShjQW_.mjs → DQGvHM04A_OA0Hrn.mjs} +3 -3
- package/{cdn/assets/CdvfatgOzqZ9AGPi.js → browser/esm/DXjaYUuNY0bpBvY-.mjs} +1 -1
- package/browser/esm/{CkTIL2J3ZUjw6-H5.mjs → DY-R5Sxd046z9Sns.mjs} +1 -1
- package/browser/esm/{BQ_-3xGvuxR0P2IQ.mjs → Da-IgVQra1xRt0mt.mjs} +10299 -10292
- package/browser/esm/{HIStIZbhUk91tu0o.mjs → DaDNFNlPRYfwyy00.mjs} +2 -2
- package/browser/esm/{B_twOhCyj3W-gQ_c.mjs → Dd1J20C9x_4zNH1y.mjs} +3 -3
- package/{cdn/assets/DGzS0cW3r_PyBeDF.js → browser/esm/DhQJw_kkxhyJ-tNf.mjs} +1 -1
- package/{cdn/assets/Co_9N9SdyYNe72f9.js → browser/esm/DljNEMYIM-n59mNA.mjs} +1 -1
- package/browser/esm/{GeO-0Qjy98ou9mOr.mjs → DltAZKRTnsJ86MGb.mjs} +2 -2
- package/browser/esm/{B_amH-vwl2pSallI.mjs → DmZ2wIR6D2cKkDuC.mjs} +4 -4
- package/{cdn/assets/B3GWG7SNwpvLBlnv.js → browser/esm/DrL-2RtKxn-NEZiA.mjs} +1 -1
- package/browser/esm/{DSIwLtgpWto5xiT8.mjs → FSb6zBPCkwXylhy_.mjs} +1 -1
- package/browser/esm/{u9yp5c24BxLzfJlg.mjs → J0z0MdLjMuHvK1TM.mjs} +1 -1
- package/browser/esm/{oNx4-meKMNfm4zhE.mjs → KLs_biS_OvGBB0Ay.mjs} +2 -2
- package/{cdn/assets/Cdx1xMJBKx77yrjD.js → browser/esm/PLmvCWPkdLyFRbkZ.mjs} +1 -1
- package/browser/esm/{D4dLRY1IYaleSdkb.mjs → TrgGT2vI2oHL7eJ0.mjs} +1 -1
- package/browser/esm/{7vsLD_plQqzVQxgq.mjs → UwH3jR3KPjuOkvPA.mjs} +1 -1
- package/browser/esm/{DkbQnd2dqW1NkS8e.mjs → Z5dKRQOhS7dcQ70n.mjs} +2 -2
- package/{cdn/assets/IB9QifVBOiHjAEKc.js → browser/esm/cPQk6VVBHN_KWOyP.mjs} +1 -1
- package/browser/esm/{CRI0hSkoHDr91lbw.mjs → cX7xW2TtfRb4DT4z.mjs} +4 -4
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BxioHZe-9bXeVqpL.mjs → myzauhvXwSxsrVUg.mjs} +1 -1
- package/browser/esm/{CEi7jocV0WHF6m82.mjs → nEFtZQwmqbkKOuXA.mjs} +2 -2
- package/browser/esm/{DPapyhnUHIIDiAib.mjs → tYiqlbyVBXxfa-0T.mjs} +1 -1
- package/browser/esm/{VGokVUZM02qlImrG.mjs → uTZUWFeUiR2InbLz.mjs} +1 -1
- package/browser/esm/{sSrV_d7rjfFplwhr.mjs → zE1noVc_qg41Tkcb.mjs} +1 -1
- package/browser/esm/{D253AoGNA6Qb41RQ.mjs → zTmKAljoIVKyb0yC.mjs} +4 -4
- package/cdn/assets/{C6J0fCCQgBJUxTnK.js → 8VF8CvvzVxAsqoHP.js} +1 -1
- package/cdn/assets/{CUlI7PrUr6138-QS.js → AXGqiDKlGW8PxPH4.js} +1 -1
- package/cdn/assets/{DT-nXz3xxMAUR-47.js → B-OxO30hNWSuBYn3.js} +2 -2
- package/{browser/esm/CZ-Tzx9g328jH3ED.mjs → cdn/assets/B-loZMkEsDyaPdOh.js} +1 -1
- package/{browser/esm/X7_yAomm4lFKewTT.mjs → cdn/assets/BBUSUCuReopuZ2tO.js} +1 -1
- package/cdn/assets/{CTzlkrJKunP3BM49.js → BDW6xbeMQT8RsuTs.js} +16 -16
- package/cdn/assets/{DhYBj6vEXZ7CJ-ZL.js → BDwUVX-uG2Odnbdt.js} +4 -4
- package/cdn/assets/{B2lNY43deHpXzVMs.js → BSOTuangxL9YNDOh.js} +10 -10
- package/cdn/assets/{B8J7yiYf0VzRs20S.js → BW3zMczahBS-AJNY.js} +2 -2
- package/cdn/assets/{Bw2Grx_mgFq1FZ7D.js → BYbRWV8GPL-QKzuu.js} +11 -11
- package/cdn/assets/{GXdJegzHdJNtvKhw.js → B_xmbHKRCNFF_M_x.js} +10285 -10278
- package/{browser/esm/bVXoA_TW765SVczB.mjs → cdn/assets/BiA4_9ikfiKm0qU_.js} +1 -1
- package/{browser/esm/zLSKKjUavHIaEg-q.mjs → cdn/assets/BiGrgUmF1fe-gAHx.js} +1 -1
- package/{browser/esm/Sv9FCVKGQyNbwQCV.mjs → cdn/assets/Bn_gGxQ0Ij-3YgMd.js} +2 -2
- package/{browser/esm/BdgtWo6kMY1Mxgsz.mjs → cdn/assets/Bvhc5zlE0K4-vpjD.js} +1 -1
- package/cdn/assets/{BWMw2ie0rrgnRMa4.js → C-cZ8stDlzRQfrp8.js} +3 -3
- package/cdn/assets/{DE8dw_dVNZ-FIRUE.js → C1jGsjN3Ic-1F2yE.js} +5 -5
- package/cdn/assets/{BpAgop_lxsgCN7VM.js → C8KPs26DOxcli-Yx.js} +18 -18
- package/cdn/assets/{8XcDvNGBzW1J4MZR.js → CA4ubxaCo47RFhwQ.js} +1 -1
- package/{browser/esm/DOJ5TeGKDhDYlGsj.mjs → cdn/assets/CCxRdwG5AF7kEkOa.js} +1 -1
- package/{browser/esm/B0Tja2Mv-oQRkuOE.mjs → cdn/assets/CDnDa2ceAd0pBmcn.js} +1 -1
- package/cdn/assets/{D_AtZtlFUG_0jNxP.js → CGwmAsjIicOq8Are.js} +3 -3
- package/cdn/assets/{DoEK4MHJxBh8R3g5.js → CK0pD1nz1mDRp7Y-.js} +4 -4
- package/cdn/assets/{DGZYidRXsd6qqdup.js → CLja6wCczhVOQJ6l.js} +11 -11
- package/cdn/assets/{Cs6Y6TT8q-6N8XDD.js → CRDBa2xXq8-wf2uA.js} +12 -12
- package/cdn/assets/{DZTwcgnnXwnBu2d_.js → CUpAISFcXClfokTp.js} +1 -1
- package/cdn/assets/{DINOrudlPwMfN2ED.js → CehS00A6V9E_84jb.js} +1 -1
- package/cdn/assets/{CJ7isvzFF2ZUBRsK.js → Cf7icRZXMYxDbj0J.js} +1 -1
- package/cdn/assets/{rQCeXoYF6N6RpDhn.js → ChXjPQwCZdHLXzpu.js} +3 -3
- package/cdn/assets/{CznWW7ce2WDFuscw.js → CiUgsXoEYyA-mmAd.js} +10 -10
- package/cdn/assets/{CNVwY9W-lDp6PGG5.js → CqaWZgvckdh16IeR.js} +2 -2
- package/cdn/assets/{DEksRooBLIZfZv0D.js → Crd95uROq-LWy3SA.js} +2 -2
- package/cdn/assets/{DwqIT9OfaRURwAJz.js → Csy4g9WBlkCisEGk.js} +1 -1
- package/cdn/assets/{ClyP9sJxDNs3k-RY.js → Cuk-hTzDBdK5IOwa.js} +1 -1
- package/cdn/assets/{KS1Qu1jDTKP8U-uU.js → DBQDhKmrLU19pX42.js} +4 -4
- package/cdn/assets/{DcDPUzrz2Qe5MEmJ.js → DCAHby3lMyun3UpF.js} +1 -1
- package/cdn/assets/{V3-bkRlm8M87qz1t.js → DETLPuVhq1Nm9Hrl.js} +1 -1
- package/cdn/assets/{mUPX0FQAAhyiFtls.js → DNSSZmQqEn-SMbOn.js} +1 -1
- package/{browser/esm/CdvfatgOzqZ9AGPi.mjs → cdn/assets/DXjaYUuNY0bpBvY-.js} +1 -1
- package/cdn/assets/{CkTIL2J3ZUjw6-H5.js → DY-R5Sxd046z9Sns.js} +1 -1
- package/cdn/assets/{BQ1p-2tgEULVGw7-.js → DYNLCjyzOLnD91ox.js} +4 -4
- package/cdn/assets/{odOFb6rje98fVZFb.js → D_NgZ-YxwH3JAiSk.js} +22 -22
- package/cdn/assets/{DSIXcrd29PMigN7Y.js → Dd5yW0yEE-NSerUa.js} +45 -45
- package/cdn/assets/{DLz0FyJwV25Sb-YU.js → Df77U-zlLW44a59Z.js} +4 -4
- package/{browser/esm/DGzS0cW3r_PyBeDF.mjs → cdn/assets/DhQJw_kkxhyJ-tNf.js} +1 -1
- package/cdn/assets/{CRDwmRPkkwVEyn4d.js → Di_pHE7x4weNMgR_.js} +2 -2
- package/{browser/esm/Co_9N9SdyYNe72f9.mjs → cdn/assets/DljNEMYIM-n59mNA.js} +1 -1
- package/{browser/esm/B3GWG7SNwpvLBlnv.mjs → cdn/assets/DrL-2RtKxn-NEZiA.js} +1 -1
- package/cdn/assets/{DSIwLtgpWto5xiT8.js → FSb6zBPCkwXylhy_.js} +1 -1
- package/cdn/assets/{BtzJOMMCYGKQjIgv.js → G2eqd8b8Azfvi7lL.js} +34 -34
- package/cdn/assets/{u9yp5c24BxLzfJlg.js → J0z0MdLjMuHvK1TM.js} +1 -1
- package/{browser/esm/Cdx1xMJBKx77yrjD.mjs → cdn/assets/PLmvCWPkdLyFRbkZ.js} +1 -1
- package/cdn/assets/{DvfKQuymBpVlqnBA.js → RbjrLHoBwXpOMWvx.js} +3 -3
- package/cdn/assets/{D4dLRY1IYaleSdkb.js → TrgGT2vI2oHL7eJ0.js} +1 -1
- package/cdn/assets/{7vsLD_plQqzVQxgq.js → UwH3jR3KPjuOkvPA.js} +1 -1
- package/cdn/assets/{DWAiV2t7HmWrzSot.js → VqIE25mLqAbME5Qj.js} +2 -2
- package/cdn/assets/{1XkYGnE2re-ucz5r.js → XZ5EG_Ijl0YEN-8y.js} +8 -8
- package/cdn/assets/{sa1rBM4dkeeGudbB.js → ZwGrk_XJMo0tnQo5.js} +2 -2
- package/{browser/esm/IB9QifVBOiHjAEKc.mjs → cdn/assets/cPQk6VVBHN_KWOyP.js} +1 -1
- package/cdn/assets/{N62VK8D_cBTAT2XQ.js → fXl_dGNKm64vXy59.js} +4 -4
- package/cdn/assets/{BxioHZe-9bXeVqpL.js → myzauhvXwSxsrVUg.js} +1 -1
- package/cdn/assets/{DPapyhnUHIIDiAib.js → tYiqlbyVBXxfa-0T.js} +1 -1
- package/cdn/assets/{VGokVUZM02qlImrG.js → uTZUWFeUiR2InbLz.js} +1 -1
- package/cdn/assets/{sSrV_d7rjfFplwhr.js → zE1noVc_qg41Tkcb.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/57LMlMqxBCEV7vzM.cjs +0 -6
- package/browser/cjs/DpMCX-QTYveyxJzk.cjs +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Dk2gIRN5DeldM38t.cjs"),H=["Ok","Cancel"],j=e.reactExports.memo(E=>{const{initialValue:T,context:x,onOption:m,onValidateOption:p,onInputOption:d,onDone:l,options:g=H,defaultOption:r=g?.[0],cancelOption:i="Cancel",sx:b,...v}=E,[o,y]=e.reactExports.useState(T),[C,O]=e.reactExports.useState(!1),u=e.reactExports.useCallback(async(t,a)=>!0,[]),c=e.T(async t=>{d?.(o,t),m?.(t,t===i,t===r),l?.()},[o,d,l,m,i,r]),k=e.T(async t=>{t.keyCode===e.eo.Enter&&await u?.(o,null)!==!1&&c(r)},[o,c]),R=e.T(t=>{y(t.target.value),u?.(t.target.value,null)},[p]),S=e.T(async t=>{let a=await Promise.resolve(p?.(t));try{a!==!1&&(a=await Promise.resolve(u?.(o,t))??!0)}catch{}return a??!0},[p]),[h,f]=e.reactExports.useState(e.He.Styles.lookupStyle(o).formatType??e.He.Type.Custom);e.reactExports.useEffect(()=>{f(e.He.Styles.lookupStyle(o).formatType??e.He.Type.Custom)},[o]);const F=e.reactExports.useMemo(()=>{const t=e.He.Styles.lookupPrimary(),a=n=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:n,children:n},n),s=Object.keys(t).map(n=>a(t[n].formatType));return s.push(a(e.He.Type.Custom)),s},[]),P=e.reactExports.useCallback(t=>{const a=t.target.value;f(a);const s=e.He.Styles.lookupDefault(a);s&&y(s)},[]),w=e.reactExports.useMemo(()=>{const t=x();return t.createTemporaryCell({value:t.getValue()??12345,style:{numberFormat:o}})},[h,o,x]);return e.jsxRuntimeExports.jsx(e.k3,{title:"Number Format",options:g,onDone:l,onOption:t=>c(t),onValidateOption:S,defaultOption:r,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"580px",...b},...v,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:"Category"}),e.jsxRuntimeExports.jsx(e.Select,{value:h,label:"Category",onChange:P,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},children:F})]}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Code",onFocus:t=>{C||t.target?.select(),O(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:R,onKeyDown:k,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsxs(e.Box,{children:[e.jsxRuntimeExports.jsx(e.Typography,{variant:"caption",component:"div",sx:{paddingLeft:t=>t.spacing(2)},children:"Preview"}),e.jsxRuntimeExports.jsx(e.Typography,{variant:"body2",component:"div",sx:{borderRadius:t=>`${t.shape.borderRadius}px`,padding:t=>t.spacing(1),border:t=>`1px solid ${t.palette.grey[400]}`},children:w.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=j,exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Dk2gIRN5DeldM38t.cjs"),k=["Ok","Cancel"],N=t.reactExports.memo(E=>{const{value:a=null,context:s,onOption:p,onValidateOption:w,onDone:c,onUpdate:d,options:x=k,defaultOption:m=x?.[0],cancelOption:g="Cancel",sx:R,...O}=E,T=t.reactExports.useMemo(()=>s?.getNames().findValidName("Range1"),[]),i=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[n,j]=t.reactExports.useState({displayText:a?.getName()??T,errorText:null}),[o,V]=t.reactExports.useState({displayValue:a?.getRanges()??s?.selection()??null,errorText:null}),[f,y]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!n.errorText&&!o.errorText,[s]),h=t.T((e,l,u)=>{if(!l){let r=null;i?r=s?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),r=a),r&&(r.select(),d(r,i))}p?.(e,l,u),c?.()},[s,n,o,c,p,m,g,d]),v=t.T(e=>{let l=null;try{s?.getNames().validateName(e)}catch(u){l=u.message}j({displayText:e,errorText:l})},[]),S=t.T(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||s?.getNames().validateName(e)},[s,a]),b=t.reactExports.useCallback(e=>{V({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.k3,{title:(i?"Define":"Edit")+" Range",options:x,onOption:h,onValidateOption:C,defaultOption:m,cancelOption:g,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...O,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.pu,{formName:"name",defaultInput:T,value:n.displayText,onChangeInput:v,onValidate:S,onFocus:e=>{f||e.target?.select(),y(!0)}}),t.jsxRuntimeExports.jsx(t.uu,{formName:"range",value:o.displayValue,onChangeInput:b,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),onFocus:e=>{f||e.target?.select(),y(!0)}})]})})});exports.NamedReferenceDialog=N,exports.default=N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./Dk2gIRN5DeldM38t.cjs");let i=null,r=null,t=null;const o=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(r&&c.Xt.deepEqual(r,e))return i;const l=await(async function(){if(t)return t;const{TypeScriptCompiler:u}=await Promise.resolve().then(()=>require("./CUXSXdQUE0dWAenI.cjs"));return t=new u,t})(),n=await l.compileModule(e);return i=n,r=e,n}});exports.ScriptingUtils=o;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.21
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -223,7 +223,7 @@ var T;
|
|
|
223
223
|
return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = T.Unknown), new r(t, n);
|
|
224
224
|
}, T.getBuiltInById = (e) => Te.get(e) || xt;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.21
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1505,4 +1505,4 @@ var ln = /* @__PURE__ */ Object.freeze({
|
|
|
1505
1505
|
__proto__: null,
|
|
1506
1506
|
initialize: an
|
|
1507
1507
|
});
|
|
1508
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1508
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./CF5wfCRL0cddknRP.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./Dk2gIRN5DeldM38t.cjs"),Ke=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ys=new RegExp(`^[${Ke}][-${Ke}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ne=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Kt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Kt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,B=13,Xt=33,ot=10,St=60,Qt=61,j=62,F=63,Jt=93,pe=i=>i===34||i===39,as=[34,39],Es=[...as,91,j],Ps=[...as,St,Jt],Os=[Qt,F,...ns],Is=[...ns,j,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Kt&&i.fail(`xmlns prefix must be bound to ${Kt}.`)}switch(s){case Kt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Kt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ns{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ne,this.nameCheck=ts,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?B:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
-
`,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=
|
|
9
|
-
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===
|
|
10
|
-
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=
|
|
11
|
-
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Kt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ls({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let X=0;X<m.length;X++)if(V==null||(V=m[X](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,X)=>{const q=P(X??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const X=P(V??y,m);X!==void 0&&(b.source[y]=X)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const X=n.get(m);if(c={local:m,visitor:X,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,X&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const X=a.pop()??null;c=a[a.length-1]??null;const q=X?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=X.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./BLF7wTCR52CzSeao.cjs")),T=Promise.resolve().then(()=>require("./DpMCX-QTYveyxJzk.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./CFuyeot98-XObD03.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Km,m=y.beginPersist(),V={},X=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ae=O=>d.files[O],fe=(O,G)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=G.get(ut);return dt||(dt=((M,be,xe,we,Bt=null)=>{if(!M)return null;const tt=De(M,be,xe,we,Bt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Wt=bt.length;for(let xt=0;xt<Wt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ae,f,P,yt),G.set(ut,dt)),dt},le=(O,G,Y,ut=ht)=>{let dt=fe(G,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=G.lastIndexOf("/"),xe=G.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Wt,xt)=>(Wt==="."?bt.splice(xt,1):Wt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=P?.getVisitorParamsState().get("dxfs");let Bt=ut.get(M);if(!Bt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Bt=tt;const et=async()=>{const bt=((N,Z,Yt,_,Q,z,_t)=>{const h=new Rs,wt=new u.zt.TransposedBuilder;let $=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Nu.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.lo.fastStringToRange(p,is).colStart,pt=u.lo.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const J=e=>{$=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{J(e)},closeTag:()=>{$=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!$)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if($&&e.getAttribute("state")==="frozen"){const r={};$.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=$.topLeft?u.lo.fastStringToCell($.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.lo.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(N.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?Z(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const Dt=e.getAttribute("tooltip");rt=Dt?{address:p,tooltip:Dt}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(N,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(N,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(N,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(N,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let At=null;const ms={onOpenTag:e=>{At===null&&(At="")},onText:e=>{At+=e},onEnd:()=>{const e=Yt(At);return At=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,Dt=!1,zt=[],Ut=!1,Et=null,te=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],je=u.lo.normalizeA1ToR1C1,He=u.Zt.createConflatingRanges(),Xe=new Map,ve=[];let ee=null;const Fe=u.Zt.createConflatingRanges();let se,Pt=!1,B=-1,K=-1,gt=null,ie=null;const Se=[];let Ce=null,Be=-2,ft=0,Gt="",Ot="",It="",Vt="",Nt="",Lt="",Rt="",We="",qe="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Mt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done($s);const k=g.length;if(k>0){const j=new Array(k);for(let L=0;L<k;L++){const at=g[L],$t=u.lo.rangeToString(at),jt=at.value[1],oe=u.lo.resolveRelativeToA1(jt,at.rowStart,at.colStart);j[L]=[$t,oe]}r.formulas=j}const st=Fe.done(!0),R=st.length;if(R>0){const j=new Array(R);for(let L=0;L<R;L++){const at=st[L],$t=u.lo.rangeToString(at);j[L]=$t}r.volatile=j}if(ve.length>0&&(r.dynamicArray=[...ve]),zt.length>0){zt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const j=[];let L=null,at=-1,$t=-1,jt=-1,oe=-1,vt=null;const Qe=zt.length;Qe>0&&(L=zt[0],at=L.colStart,$t=L.colEnd,jt=L.rowEnd,oe=L.value,j.push(L));for(let Ht=1;Ht<Qe;Ht++)vt=zt[Ht],oe!==vt.value||at!==vt.colStart||$t!==vt.colEnd||jt+1!==vt.rowEnd?(j.push(vt),L=vt,at=L.colStart,$t=L.colEnd,jt=L.rowEnd,oe=L.value):(jt=vt.rowEnd,L.rowEnd=jt);let Je=[];for(let Ht=0;Ht<j.length;Ht++){const re=j[Ht];Je.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=Je}const it=e.build();if(it){const j=it.tuples;r.data=j}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),se){const R=g.attributes;switch(k){case"v":Dt=!0;break;case"f":switch(R.t??null){case null:case"normal":Ut=!0;break;case"shared":const it=R.si;te=R.ref,Et=it;break;case"array":Ut=!0,te=R.ref,ee=[te,!1];break;case"datatable":Ut=!0,te=R.ref,Ut=!0}R.ca!==void 0&&Fe.append(B,K);break;case"is":return void(Pt=!0)}return void(Pt&&C?.onOpenTag(g))}if(rt){if(k==="c"){se=g;const R=g.attributes.r;K=u.lo.fastStringToCol(R);const it=g.attributes.t;it===void 0?ie=null:(ie=it,ie==="str"&&(Pt=!0));let j=g.attributes.s;j!==void 0&&(j=parseInt(j),Mt&&Mt.value===j&&Mt.colEnd+1===K?Mt.colEnd=K:(Mt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:j},zt.push(Mt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Ot=g.attributes.customHeight,Ot!==void 0&&(ft|=Ft.CustomHeight),Ot!==qe&&(mt=!0,qe=Ot),Gt=g.attributes.ht,Gt!==void 0&&(ft|=Ft.Ht),Gt!==We&&(mt=!0,We=Gt),It=g.attributes.hidden,It!==void 0&&(ft|=Ft.Hidden),It!==_e&&(mt=!0,_e=It),Nt=g.attributes.s,Nt!==void 0&&(ft|=Ft.S),Nt!==Ue&&(mt=!0,Ue=Nt),Vt=g.attributes.customFormat,Vt!==void 0&&(ft|=Ft.CustomFormat),Vt!==ze&&(mt=!0,ze=Vt),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Rt=g.attributes.collapsed,Rt!==void 0&&(ft|=Ft.Collapsed),Rt!==Ze&&(mt=!0,Ze=Rt),ft!==0)if(Be+1!==B||mt){const it=Ot!==void 0&&(Ot==="1"||Ot==="true"),j=Vt!==void 0&&(Vt==="1"||Vt==="true");Ce={min:B,max:B,sz:it&&Gt!==void 0?parseFloat(Gt):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Nt!==void 0&&Nt!=="0"?parseInt(Nt):0,cs:j,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Rt!==void 0&&(Rt==="1"||Rt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Pt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return Dt&&(Dt=!1),void(k==="c"&&(se=null,Pt=!1))}if(rt)return rt=!1,void(Mt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),Dt){switch(gt=null,ie){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=se.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.lo.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Pt=!0}gt!==null&&e.addValue(B,K,gt)}if(ee&&(ie==="e"&&(ee[1]=!0),ve.push(ee),ee=null),Et)if(Me===Et)nt=$e;else{if(nt=Xe.get(Et),!nt){const k=[];de=je(g,B,K,k),nt=[de,k,g],Xe.set(Et,nt)}Me=Et,$e=nt}if(Ut){const k=[];de=je(g,B,K,k),nt=[de,k,g]}if(nt)return He.append(B,K,nt),nt=null,Ut=!1,Et=null,void(te=null);Pt?C?.onText(g):rt||l?.onText(g)}}})(wt,N,h.createEventHandler(N,()=>{},z),z,ms,_t)})(tt,(N,Z=!1)=>le(N,M,Z)??null,us,we,0,N=>{o&&(N=M+": "+N,o?.(N))},q),Wt=ss(M,ae),xt=await(async(N,Z=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./BI4NHszjLSwlAXJ2.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Yt=new TextDecoder("utf-8");let _=0;const Q=N instanceof Uint8Array?N:new Uint8Array(N);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const _t=Q.subarray(_,Math.min(_+Z,Q.byteLength)),h=Yt.decode(_t,{stream:_+Z<Q.byteLength});z.enqueue(h),_+=_t.length}}).getReader()})(Wt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(N){throw console.warn(`Error parsing sheet: '${M}'`,N),new Error(`Error parsing sheet: '${M}'`,{cause:N})}const qt=fe(M,ut);let kt,Re=new Map;if(qt){const N="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let Z;qt.forEach((_,Q)=>{_.type===N&&(kt=le(Q,M,!1,ut)?.comments,kt&&kt.forEach(z=>{Re.set(z.id,z)}))});const Yt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Q)=>{_.type===Yt&&(Z=le(Q,M,!1,ut))}),Z||kt){const _=kt??[],Q=Z?.comments;if(Q){const z=Z?.authors,_t=Q.length;for(let h=0;h<_t;h++){const wt=Q[h];if(!wt)continue;let $=z&&wt.authorId!==void 0?z[wt.authorId]:wt.authorId;if($&&$.startsWith("tc=")&&($=ls($.substring(3)),Re.has($)))continue;let J=null;$&&(J=he.get($)),J||(J=Ve.get($)),J||(J={id:u.Xt.uuidV4(),displayName:$},Ve.set(J.displayName,J),he.set(J.id,J)),$=J?.id??null;const At={id:u.Xt.uuidV4(),personId:$,ref:wt.ref,done:!1,asNote:!0,content:wt.content};_.push(At)}}tt.comments=_}}};Pe.push(et())}else Bt=Y?ss(M,ae,tt=>{const et=y.add({buffer:tt});return et.addReference(V),X.add(et),m.toResourceId(et)},yt):De(M,ae,f,P,yt);return Bt},yt={paramMap:q,getRefs:fe,getRef:le,parsedRefs:ht,onWarning:o,addPerson:O=>null},ce=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)ce.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const G=Oe.get(O);if(G!==void 0)return G;const Y=Ie;return Oe.set(O,Ie++),ce.push(O),Y},he=(Zt("richstructure",d,f,P,yt),Zt("richdata",d,f,P,yt),new Map),Ve=new Map,Ne=Zt("people",d,f,P);let Ct=null;if(Ne.size>0&&(Ct=Ne.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let G=0;G<O;G++){const Y=Ct[G];he.set(Y.id,Y),he.set(Y.displayName,Y)}}const Te=Zt("themes",d,f,P,yt);let Le=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Le=O.value[1])}const ds=new u.Ul(Le);let ue=Zt("styles",d,f,P,yt).entries().next()?.value[1];ue&&(ue=JSON.parse(u.re(ue)));const ps=Zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:ue,theme:ds.toJSON()};ce.length>0&&(ye.strings=ce),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Gy(gs);return X.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.oe&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./BLF7wTCR52CzSeao.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.ze.Type.General&&(f===u.ze.Type.ShortDate?f="m/d/yyyy":f===u.ze.Type.MediumDate?f="d-mmm-yy":f===u.ze.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.ze.Type.ShortTime?f="h:mm":f===u.ze.Type.MediumTime?f="h:mm AM/PM":f===u.ze.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
8
|
+
`,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=B,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Es);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=B,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Ps);t!==I&&(this.text+=String.fromCodePoint(t),t===Jt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
|
+
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===B&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=B,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=B}sCData(){this.captureToChar(Jt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Jt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=B;break;case Jt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||U(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Xt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=B}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Xt}sXMLDeclName(){const t=this.captureTo(Os);if(t===F)return this.state=Xt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Qt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Qt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=Xt,void this.fail("XML declaration is incomplete.");U(t)||(t!==Qt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=Xt,void this.fail("XML declaration is incomplete.");U(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=Xt,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(U(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Xt}sXMLDeclEnding(){this.getCodeNorm()===j?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=B):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(ne(t)?(this.unget(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Qt?this.state=39:U(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Qt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():ne(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:ne(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():U(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=B,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Jt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
|
+
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=B,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
+
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==B&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Kt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=B,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=B,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=B,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let X=0;X<m.length;X++)if(V==null||(V=m[X](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,X)=>{const q=P(X??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const X=P(V??y,m);X!==void 0&&(b.source[y]=X)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const X=n.get(m);if(c={local:m,visitor:X,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,X&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const X=a.pop()??null;c=a[a.length-1]??null;const q=X?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=X.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=$s[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Hs=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./DjZX0bAo9vkTZcaH.cjs")),T=Promise.resolve().then(()=>require("./Ch5M7RXr_h53q5-X.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./MrRJ8DL83xUQEC5V.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.af,m=y.beginPersist(),V={},X=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ae=O=>d.files[O],fe=(O,G)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=G.get(ut);return dt||(dt=(($,be,xe,we,Wt=null)=>{if(!$)return null;const tt=De($,be,xe,we,Wt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ae,f,P,yt),G.set(ut,dt)),dt},le=(O,G,Y,ut=ht)=>{let dt=fe(G,ut).get(O),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=G.lastIndexOf("/"),xe=G.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Wt=ut.get($);if(!Wt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Wt=tt;const et=async()=>{const bt=((L,Z,Yt,_,Q,z,_t)=>{const h=new Rs,wt=new u.Dt.TransposedBuilder;let M=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Wu.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.fo$1.fastStringToRange(p,is).colStart,pt=u.fo$1.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const J=e=>{M=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{J(e)},closeTag:()=>{M=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{J(e)},closeTag:()=>{M=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!M)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(M&&e.getAttribute("state")==="frozen"){const r={};M.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=M.topLeft?u.fo$1.fastStringToCell(M.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.fo$1.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?Z(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const Dt=e.getAttribute("tooltip");rt=Dt?{address:p,tooltip:Dt}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=Z(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let At=null;const ms={onOpenTag:e=>{At===null&&(At="")},onText:e=>{At+=e},onEnd:()=>{const e=Yt(At);return At=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,Dt=!1,zt=[],Ut=!1,Et=null,te=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],He=u.fo$1.normalizeA1ToR1C1,je=u.Zt.createConflatingRanges(),Xe=new Map,ve=[];let ee=null;const Fe=u.Zt.createConflatingRanges();let se,Pt=!1,W=-1,K=-1,gt=null,ie=null;const Se=[];let Ce=null,We=-2,ft=0,Gt="",Ot="",It="",Vt="",Lt="",Nt="",Rt="",Be="",qe="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,$t=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const H=new Array(k);for(let N=0;N<k;N++){const at=g[N],Mt=u.fo$1.rangeToString(at),Ht=at.value[1],oe=u.fo$1.resolveRelativeToA1(Ht,at.rowStart,at.colStart);H[N]=[Mt,oe]}r.formulas=H}const st=Fe.done(!0),R=st.length;if(R>0){const H=new Array(R);for(let N=0;N<R;N++){const at=st[N],Mt=u.fo$1.rangeToString(at);H[N]=Mt}r.volatile=H}if(ve.length>0&&(r.dynamicArray=[...ve]),zt.length>0){zt.sort(u.Zt.createRangeComparator(u.w.Orientation.Column));const H=[];let N=null,at=-1,Mt=-1,Ht=-1,oe=-1,vt=null;const Qe=zt.length;Qe>0&&(N=zt[0],at=N.colStart,Mt=N.colEnd,Ht=N.rowEnd,oe=N.value,H.push(N));for(let jt=1;jt<Qe;jt++)vt=zt[jt],oe!==vt.value||at!==vt.colStart||Mt!==vt.colEnd||Ht+1!==vt.rowEnd?(H.push(vt),N=vt,at=N.colStart,Mt=N.colEnd,Ht=N.rowEnd,oe=N.value):(Ht=vt.rowEnd,N.rowEnd=Ht);let Je=[];for(let jt=0;jt<H.length;jt++){const re=H[jt];Je.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=Je}const it=e.build();if(it){const H=it.tuples;r.data=H}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),se){const R=g.attributes;switch(k){case"v":Dt=!0;break;case"f":switch(R.t??null){case null:case"normal":Ut=!0;break;case"shared":const it=R.si;te=R.ref,Et=it;break;case"array":Ut=!0,te=R.ref,ee=[te,!1];break;case"datatable":Ut=!0,te=R.ref,Ut=!0}R.ca!==void 0&&Fe.append(W,K);break;case"is":return void(Pt=!0)}return void(Pt&&C?.onOpenTag(g))}if(rt){if(k==="c"){se=g;const R=g.attributes.r;K=u.fo$1.fastStringToCol(R);const it=g.attributes.t;it===void 0?ie=null:(ie=it,ie==="str"&&(Pt=!0));let H=g.attributes.s;H!==void 0&&(H=parseInt(H),$t&&$t.value===H&&$t.colEnd+1===K?$t.colEnd=K:($t={colStart:K,rowStart:W,colEnd:K,rowEnd:W,value:H},zt.push($t)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(W=parseInt(R)-1,ft=0,Ot=g.attributes.customHeight,Ot!==void 0&&(ft|=Ft.CustomHeight),Ot!==qe&&(mt=!0,qe=Ot),Gt=g.attributes.ht,Gt!==void 0&&(ft|=Ft.Ht),Gt!==Be&&(mt=!0,Be=Gt),It=g.attributes.hidden,It!==void 0&&(ft|=Ft.Hidden),It!==_e&&(mt=!0,_e=It),Lt=g.attributes.s,Lt!==void 0&&(ft|=Ft.S),Lt!==Ue&&(mt=!0,Ue=Lt),Vt=g.attributes.customFormat,Vt!==void 0&&(ft|=Ft.CustomFormat),Vt!==ze&&(mt=!0,ze=Vt),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ft.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Rt=g.attributes.collapsed,Rt!==void 0&&(ft|=Ft.Collapsed),Rt!==Ze&&(mt=!0,Ze=Rt),ft!==0)if(We+1!==W||mt){const it=Ot!==void 0&&(Ot==="1"||Ot==="true"),H=Vt!==void 0&&(Vt==="1"||Vt==="true");Ce={min:W,max:W,sz:it&&Gt!==void 0?parseFloat(Gt):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Lt!==void 0&&Lt!=="0"?parseInt(Lt):0,cs:H,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Rt!==void 0&&(Rt==="1"||Rt==="true")},Se.push(Ce)}else Ce.max=W;return We=W,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Pt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(W,K,""+R)}else C?.onCloseTag?.(g);return Dt&&(Dt=!1),void(k==="c"&&(se=null,Pt=!1))}if(rt)return rt=!1,void($t=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),Dt){switch(gt=null,ie){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=se.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.fo$1.cellToString({colIndex:K,rowIndex:W})}`));break;case"str":case"inlineStr":Pt=!0}gt!==null&&e.addValue(W,K,gt)}if(ee&&(ie==="e"&&(ee[1]=!0),ve.push(ee),ee=null),Et)if($e===Et)nt=Me;else{if(nt=Xe.get(Et),!nt){const k=[];de=He(g,W,K,k),nt=[de,k,g],Xe.set(Et,nt)}$e=Et,Me=nt}if(Ut){const k=[];de=He(g,W,K,k),nt=[de,k,g]}if(nt)return je.append(W,K,nt),nt=null,Ut=!1,Et=null,void(te=null);Pt?C?.onText(g):rt||l?.onText(g)}}})(wt,L,h.createEventHandler(L,()=>{},z),z,ms,_t)})(tt,(L,Z=!1)=>le(L,$,Z)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},q),Bt=ss($,ae),xt=await(async(L,Z=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:z}=await Promise.resolve().then(()=>require("./DVgqz5DZW2Fp4U9K.cjs"));globalThis.ReadableStream=z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Yt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(z){if(_>=Q.byteLength)return void z.close();const _t=Q.subarray(_,Math.min(_+Z,Q.byteLength)),h=Yt.decode(_t,{stream:_+Z<Q.byteLength});z.enqueue(h),_+=_t.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${$}'`,L),new Error(`Error parsing sheet: '${$}'`,{cause:L})}const qt=fe($,ut);let kt,Re=new Map;if(qt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let Z;qt.forEach((_,Q)=>{_.type===L&&(kt=le(Q,$,!1,ut)?.comments,kt&&kt.forEach(z=>{Re.set(z.id,z)}))});const Yt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Q)=>{_.type===Yt&&(Z=le(Q,$,!1,ut))}),Z||kt){const _=kt??[],Q=Z?.comments;if(Q){const z=Z?.authors,_t=Q.length;for(let h=0;h<_t;h++){const wt=Q[h];if(!wt)continue;let M=z&&wt.authorId!==void 0?z[wt.authorId]:wt.authorId;if(M&&M.startsWith("tc=")&&(M=ls(M.substring(3)),Re.has(M)))continue;let J=null;M&&(J=he.get(M)),J||(J=Ve.get(M)),J||(J={id:u.Xt.uuidV4(),displayName:M},Ve.set(J.displayName,J),he.set(J.id,J)),M=J?.id??null;const At={id:u.Xt.uuidV4(),personId:M,ref:wt.ref,done:!1,asNote:!0,content:wt.content};_.push(At)}}tt.comments=_}}};Pe.push(et())}else Wt=Y?ss($,ae,tt=>{const et=y.add({buffer:tt});return et.addReference(V),X.add(et),m.toResourceId(et)},yt):De($,ae,f,P,yt);return Wt},yt={paramMap:q,getRefs:fe,getRef:le,parsedRefs:ht,onWarning:o,addPerson:O=>null},ce=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)ce.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const G=Oe.get(O);if(G!==void 0)return G;const Y=Ie;return Oe.set(O,Ie++),ce.push(O),Y},he=(Zt("richstructure",d,f,P,yt),Zt("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Zt("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let G=0;G<O;G++){const Y=Ct[G];he.set(Y.id,Y),he.set(Y.displayName,Y)}}const Te=Zt("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.oc(Ne);let ue=Zt("styles",d,f,P,yt).entries().next()?.value[1];ue&&(ue=JSON.parse(u.re(ue)));const ps=Zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:ue,theme:ds.toJSON()};ce.length>0&&(ye.strings=ce),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.p1(gs);return X.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.oe&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DjZX0bAo9vkTZcaH.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.He.Type.General&&(f===u.He.Type.ShortDate?f="m/d/yyyy":f===u.He.Type.MediumDate?f="d-mmm-yy":f===u.He.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.He.Type.ShortTime?f="h:mm":f===u.He.Type.MediumTime?f="h:mm AM/PM":f===u.He.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Xt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=Hs,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Xt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.21
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./Dk2gIRN5DeldM38t.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
|
|
7
7
|
interface FirstTest {
|
|
8
8
|
isTrue?: boolean;
|
|
9
9
|
}
|
|
10
|
-
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./
|
|
10
|
+
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./Dya9SkaBYjHwn0hu.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],U=await Promise.all(P),ee=U[0],n=U[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
|
|
11
11
|
/**
|
|
12
12
|
* Represents the completion of an asynchronous operation
|
|
13
13
|
*/
|
|
@@ -21,7 +21,7 @@ interface Promise<T> {
|
|
|
21
21
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
22
|
}
|
|
23
23
|
`,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
|
|
24
|
-
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.Xt.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./
|
|
24
|
+
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.Xt.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./CdQDfNj_ZoOhmU3g.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
|
|
25
25
|
export const FormulaContext = globalThis.${r}?.FormulaContext;
|
|
26
26
|
export const ScalarType = globalThis.${r}?.ScalarType;
|
|
27
27
|
export const Observable = globalThis.${r}?.Observable;
|