@sheetxl/studio-mui 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
  2. package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
  3. package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
  4. package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
  5. package/browser/cjs/{scolQa-PxnIvyiDb.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
  6. package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
  7. package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
  8. package/browser/cjs/{C9TJkm0tBPD04idM.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
  9. package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
  10. package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
  11. package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
  12. package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
  13. package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
  14. package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
  15. package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
  16. package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
  17. package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
  18. package/browser/cjs/{BlBsVySC7wICKf3b.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
  19. package/browser/cjs/{BH160EggM2K8qaSr.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
  20. package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
  21. package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
  22. package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
  23. package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
  24. package/browser/cjs/index.cjs +2 -2
  25. package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
  26. package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
  27. package/browser/esm/{DpJqkBHKECEClAah.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
  28. package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → B7spDz0f3MErGle0.mjs} +21 -20
  29. package/browser/esm/{DTW06ga7BIWfkpc3.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
  30. package/browser/esm/{QNCUQO7a-oixacNG.mjs → C0HMqAubZ7789bne.mjs} +1 -1
  31. package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
  32. package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
  33. package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
  34. package/browser/esm/{DJVGX60ly4BfiFse.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
  35. package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
  36. package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
  37. package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
  38. package/browser/esm/{CE3LjR3RfccnMUQt.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
  39. package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
  40. package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
  41. package/browser/esm/{BIQXdDApQqsa7WWH.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
  42. package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
  43. package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → Dig0J4i2Urjl9Z--.mjs} +170 -169
  44. package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
  45. package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
  46. package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
  47. package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
  48. package/browser/esm/{0qppnWkLyeMGOizg.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
  49. package/browser/esm/index.mjs +74 -73
  50. package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
  51. package/browser/esm/{B0k5xuPgYO9B-vto.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
  52. package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
  53. package/licenses/dependencies.txt +156 -178
  54. package/node/esm/{BiiNcUkTIcWxOabS.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
  55. package/node/esm/{tk69oRoeZHf4vk1z.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
  56. package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
  57. package/node/esm/{BnbhKW27rQ185mOb.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
  58. package/node/esm/{Br_lQeehvACsDkzu.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
  59. package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
  60. package/node/esm/{zQ0ozpm04cC2OG19.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
  61. package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
  62. package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
  63. package/node/esm/{CI3U9rEYT3a_Biw5.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
  64. package/node/esm/{cT4-HbwV7TBlRjja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
  65. package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
  66. package/node/esm/{CZA-oIez6io5vwv1.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
  67. package/node/esm/{CBlVCA0uvCwlok1v.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
  68. package/node/esm/{6L7TnSLCvI3zabFK.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
  69. package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
  70. package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
  71. package/node/esm/{D4ydLNNfUH8D41A7.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
  72. package/node/esm/{D6wjzUXEh-Q71uoB.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
  73. package/node/esm/{BY1cZ8MXawge5drQ.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
  74. package/node/esm/{BvOnjWMz5o3z-qWe.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
  75. package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
  76. package/node/esm/{fENiUIb3u1Oy7Amv.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
  77. package/node/esm/index.mjs +12873 -41673
  78. package/package.json +8 -8
  79. package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
  80. package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
  81. package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
  82. package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
  83. package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
  84. package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
  85. package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
  86. package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
  87. package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
  88. package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
  89. package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
  90. package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
  91. package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
  92. package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
  93. package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
  94. package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
  95. package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
  96. package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
  97. package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
  98. package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
  99. package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
  100. package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
  101. package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
  102. package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
  103. package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
  104. package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
  105. package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
  106. package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
  107. package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
  108. package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
  109. package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
  110. package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
  111. package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
  112. package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
  113. package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
  114. package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
  115. package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
  116. package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
  117. package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
  118. package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
  119. package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
  120. package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  121. package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
  122. package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  123. package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  124. package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  125. package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
  126. package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  127. package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  128. package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
  129. package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
  130. package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
  131. package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  132. package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
  133. package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  134. package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
  135. package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
  136. package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
  137. package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
  138. package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  139. package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  140. package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
  141. package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  142. package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
  143. package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
  144. package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  145. package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
  146. package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
  147. package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  148. package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
  149. package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
  150. package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
  151. package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
  152. package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  153. package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  154. package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
  155. package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
  156. package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  157. package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
  158. package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
  159. package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
  160. package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  161. package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
  162. package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  163. package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
  164. package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  165. package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
  166. package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
  167. package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  168. package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  169. package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
  170. package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
  171. package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
  172. package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  173. package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
  174. package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  175. package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  176. package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  177. package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  178. package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  179. package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
  180. package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
  181. package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
  182. package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
  183. package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
  184. package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  185. package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
  186. package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  187. package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  188. package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ABS:{s:"Returns the absolute value of a number, a number without its sign",p:{number:{d:"is the real number for which you want the absolute value"}}},AGGREGATE:{s:"Returns information about the cell.",p:{functionNum:{d:"Is the number 1 to 19 that specifies the summary function for the aggregate."},options:{d:"Is the number 0 to 78 that specified the values to ignore for the aggregate."},array:{d:"Is the array or range of numerical data on which to calculate the aggregate."},K:{d:"indicates the position of the array; it is k-th largest, k-th smallest, k-th percentile, or k-th quartile."}},h:"Unimplemented"},ARABIC:{s:"Converts a Roman numeral to Arabic",p:{text:{d:"is the Roman numeral you want to convert"}}},BASE:{s:"Converts a number into a text representation with the given radix (base)",p:{number:{d:"is the number that you want to convert"},radix:{d:"is the base Radix that you want to convert the number into"},minLength:{d:"is the minimum length of the returned string",v:0}}},CEILING:{s:"Rounds a number up, to the nearest multiple of significance",p:{number:{d:"is the value you want to round"},significance:{d:"is the multiple to which you want to round",v:"undefined"}},c:"Compatible"},"CEILING.MATH":{s:"Rounds a number up, to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"when given and nonzero this function will round away from zero",v:"undefined"},mode:{v:0}}},"CEILING.PRECISE":{s:"Rounds a number up to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:1}},c:"Compatible"},COMBIN:{s:"Returns the number of combinations for a given number of items",p:{number:{d:"is the total number of items"},numberChosen:{d:"is the number of items in each combination"}}},COMBINA:{s:"Returns the number of combinations with repetitions for a given number of items",p:{number:{d:"is the total number of items"},numberChosen:{d:"is the number of items in each combination"}}},DECIMAL:{s:"Converts a text representation of a number in a given base into a decimal number",p:{number:{d:"is the number that you want to convert"},radix:{d:"is the base Radix of the number you are converting"}}},DEGREES:{s:"Converts radians to degrees",p:{angle:{d:"is the angle in radians that you want to convert"}}},EVEN:{s:"Rounds a positive number up and negative number down to the nearest even integer",p:{number:{d:"is the value to round"}}},EXP:{s:"Returns e raised to the power of a given number",p:{number:{d:"is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm"}}},FACT:{s:"Returns the factorial of a number, equal to 1*2*3*...* Number",p:{number:{d:"is the nonnegative number you want the factorial of"}}},FACTDOUBLE:{s:"Returns the double factorial of a number",p:{number:{d:"is the value for which to return the double factorial"}}},FLOOR:{s:"Rounds a number down to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round. Number and Significance must either both be positive or both be negative",v:"undefined"}},c:"Compatible"},"FLOOR.MATH":{s:"Rounds a number down, to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:"undefined"},mode:{d:"when given and nonzero this function will round towards zero",v:0}}},"FLOOR.PRECISE":{s:"Rounds a number down to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:1}}},GCD:{s:"Returns the greatest common divisor",p:{number:{d:"number1,number2,... are 1 to 255 values"}}},INT:{s:"Rounds a number down to the nearest integer",p:{number:{d:"is the real number you want to round down to an integer"}}},"ISO.CEILING":{s:"Rounds a number up to the nearest integer",p:{number:{d:"is the real number you want to round up to an integer"},significance:{d:"is the multiple to which you want to round number",v:"undefined"}},c:"Compatible"},LCM:{s:"Returns the least common multiple",p:{number:{d:"number1,number2,... are 1 to 255 values for which you want the least common multiple"}}},LN:{s:"Returns the natural logarithm of a number",p:{number:{d:"is the positive real number for which you want the natural logarithm"}}},LOG:{s:"Returns the logarithm of a number to the base you specify",p:{number:{d:"is the positive real number for which you want the logarithm"},base:{d:"is the base of the logarithm",v:10}}},LOG10:{s:"Returns the base-10 logarithm of a number",p:{number:{d:"is the positive real number for which you want the base-10 logarithm"}}},MDETERM:{s:"Returns the matrix determinant of an array",p:{array:{d:"is a numeric array with an equal number of rows and columns, either a cell range or an array constant"}}},MINVERSE:{s:"Returns the inverse matrix for the matrix stored in an array",p:{array:{d:"is a numeric array with an equal number of rows and columns, either a cell range or an array constant"}}},MMULT:{s:"Returns the matrix product of two arrays, an array with the same number of rows as array1 and columns as array2",p:{array1:{d:"is the first array of numbers to multiply and must have the same number of columns as Array2 has rows"},array2:{d:"is the second array of numbers to multiply and must have the same number of columns as Array1 has rows"}}},MOD:{s:"Returns the remainder after a number is divided by a divisor",p:{number:{d:"is the number for which you want to find the remainder after the division is performed"},divisor:{d:"is the number by which you want to divide Number"}}},MROUND:{s:"Returns a number rounded to the desired multiple",p:{number:{d:"is the value to round"},multiple:{d:"is the multiple to which you want to round number"}}},MULTINOMIAL:{s:"Returns the multinomial of a set of numbers",p:{number:{d:"number1,number2,... are 1 to 255 values for which you want the multinomial"}}},MUNIT:{s:"Returns the unit matrix for the specified dimension",p:{dimension:{d:"is an integer specifying the dimension of the unit matrix that you want to return"}}},ODD:{s:"Rounds a positive number up and negative number down to the nearest odd integer",p:{number:{d:"is the value to round"}}},PI:{s:"Returns the value of Pi, 3.14159265358979, accurate to 15 digits",p:{}},POWER:{s:"Returns the result of a number raised to a power",p:{number:{d:"is the base number, any real number"},power:{d:"is the exponent, to which the base number is raised"}}},PRODUCT:{s:"Multiplies all the numbers given as arguments",p:{number:{d:"number1,number2,... are 1 to 255 numbers, logical values, or text representations of numbers that you want to multiply"}}},QUOTIENT:{s:"Returns the integer portion of a division",p:{numerator:{d:"is the dividend"},denominator:{d:"is the divisor"}}},RADIANS:{s:"Converts degrees to radians",p:{angle:{d:"is an angle in degrees that you want to convert"}}},RAND:{s:"Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation)",p:{}},RANDARRAY:{s:"Returns an array of random numbers",p:{rows:{d:"the number of rows in the returned array",v:1},columns:{d:"the number of columns in the returned array",v:1},min:{d:"the minimum number you would like returned",v:0},max:{d:"the maximum number you would like returned",v:1},integer:{d:"return an integer or a decimal value. TRUE for an integer, FALSE for a decimal number",v:!1}}},RANDBETWEEN:{s:"Returns a random number between the numbers you specify",p:{bottom:{d:"is the smallest integer RANDBETWEEN will return"},top:{d:"is the largest integer RANDBETWEEN will return"}}},ROMAN:{s:"Converts an Arabic numeral to Roman, as text",p:{number:{d:"is the Arabic numeral you want to convert"},form:{d:"is the number specifying the type of Roman numeral you want.",v:0}}},ROUND:{s:"Rounds a number to a specified number of digits",p:{number:{d:"is the number you want to round"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},ROUNDDOWN:{s:"Rounds a number down, toward zero",p:{number:{d:"is any real number that you want rounded down"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},ROUNDUP:{s:"Rounds a number up, away from zero",p:{number:{d:"is any real number that you want rounded up"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},SEQUENCE:{s:"Returns a sequence of numbers",p:{rows:{d:"the number of rows to return"},columns:{d:"the number of columns to return",v:1},start:{d:"the first number in the sequence",v:1},step:{d:"the amount to increment each subsequent value in the sequence",v:1}}},SERIESSUM:{s:"Returns the sum of a power series based on the formula",p:{x:{d:"is the input value to the power series"},n:{d:"is the initial power to which you want to raise x"},m:{d:"is the step by which to increase n for each term in the series"},coefficients:{d:"is a set of coefficients by which each successive power of x is multiplied"}}},SIGN:{s:"Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative",p:{number:{d:"is any real number"}}},SQRT:{s:"Returns the square root of a number",p:{number:{d:"is the number for which you want the square root"}}},SQRTPI:{s:"Returns the square root of (number * Pi)",p:{number:{d:"is the number by which p is multiplied"}}},SUBTOTAL:{s:"Returns a subtotal in a list or database",p:{functionNum:{d:"is the number 1 to 11 that specifies the summary function for the subtotal."},ref:{d:"ref1,ref2,... are 1 to 254 ranges or references for which you want the subtotal"}},h:"Unimplemented"},SUM:{s:"Adds all the numbers in a range of cells",p:{number:{d:"number1,number2,... are 1 to 255 numbers to sum. Logical values and text are ignored in cells, included if typed as arguments"}}},SUMIF:{s:"Adds the cells specified by a given condition or criteria",p:{range:{d:"is the range of cells you want evaluated"},criteria:{d:"is the condition or criteria in the form of a number, expression, or text that defines which cells will be added"},sumRange:{d:"are the actual cells to sum. If omitted, the cells in range are used"}},h:"Unimplemented"},SUMIFS:{s:"Adds the cells specified by a given set of conditions or criteria",p:{sumRange:{d:"are the actual cells to sum."},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be added"}},h:"Unimplemented"},SUMPRODUCT:{s:"Returns the sum of the products of corresponding ranges or arrays",p:{array1:{d:"array1,array2,... are 2 to 255 arrays for which you want to multiply and then add components. All arrays must have the same dimensions"},rest:{}}},SUMSQ:{s:"Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names, or references to cells that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 numbers, arrays, names, or references to arrays for which you want the sum of the squares"}}},SUMX2MY2:{s:"Sums the differences between the squares of two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},SUMX2PY2:{s:"Returns the sum total of the sums of squares of numbers in two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},SUMXMY2:{s:"Sums the squares of the differences in two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},TRUNC:{s:"Truncates a number to an integer by removing the decimal, or fractional, part of the number",p:{number:{d:"is the number you want to truncate"},numDigits:{d:"is a number specifying the precision of the truncation",v:0}}}};
@@ -1,12 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */const h=require("react/jsx-runtime"),a=require("react"),l=require("./BdPTNgv6BQFiJXiH.cjs"),jt=require("react-dom"),H=require("@mui/material"),Ue=require("@mui/icons-material"),Ot=a.createContext(null),Ae={didCatch:!1,error:null};class Dt extends a.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ae}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(){const{error:i}=this.state;if(i!==null){for(var r,e,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];(r=(e=this.props).onReset)===null||r===void 0||r.call(e,{args:o,reason:"imperative-api"}),this.setState(Ae)}}componentDidCatch(i,r){var e,n;(e=(n=this.props).onError)===null||e===void 0||e.call(n,i,r)}componentDidUpdate(i,r){const{didCatch:e}=this.state,{resetKeys:n}=this.props;var o,s;e&&r.error!==null&&function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return d.length!==c.length||d.some((u,p)=>!Object.is(u,c[p]))}(i.resetKeys,n)&&((o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:n,prev:i.resetKeys,reason:"keys"}),this.setState(Ae))}render(){const{children:i,fallbackRender:r,FallbackComponent:e,fallback:n}=this.props,{didCatch:o,error:s}=this.state;let d=i;if(o){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(c);else if(e)d=a.createElement(e,c);else{if(n===void 0)throw s;d=n}}return a.createElement(Ot.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}}function dt(t){var i,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=dt(t[i]))&&(e&&(e+=" "),e+=r);else for(i in t)t[i]&&(e&&(e+=" "),e+=i);return e}function te(){for(var t,i,r=0,e="";r<arguments.length;)(t=arguments[r++])&&(i=dt(t))&&(e&&(e+=" "),e+=i);return e}let Wt={data:""},Rt=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Wt,Ft=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,It=/\/\*[^]*?\*\/| +/g,Ye=/\n+/g,re=(t,i)=>{let r="",e="",n="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?r=o+" "+s+";":e+=o[1]=="f"?re(s,o):o+"{"+re(s,o[1]=="k"?"":i)+"}":typeof s=="object"?e+=re(s,i?i.replace(/([^,])+/g,d=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,d):d?d+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=re.p?re.p(o,s):o+":"+s+";")}return r+(i&&n?i+"{"+n+"}":n)+e},Y={},pt=t=>{if(typeof t=="object"){let i="";for(let r in t)i+=r+pt(t[r]);return i}return t},Pt=(t,i,r,e,n)=>{let o=pt(t),s=Y[o]||(Y[o]=(c=>{let u=0,p=11;for(;u<c.length;)p=101*p+c.charCodeAt(u++)>>>0;return"go"+p})(o));if(!Y[s]){let c=o!==t?t:(u=>{let p,f,g=[{}];for(;p=Ft.exec(u.replace(It,""));)p[4]?g.shift():p[3]?(f=p[3].replace(Ye," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][p[1]]=p[2].replace(Ye," ").trim();return g[0]})(t);Y[s]=re(n?{["@keyframes "+s]:c}:c,r?"":"."+s)}let d=r&&Y.g?Y.g:null;return r&&(Y.g=Y[s]),((c,u,p,f)=>{f?u.data=u.data.replace(f,c):u.data.indexOf(c)===-1&&(u.data=p?c+u.data:u.data+c)})(Y[s],i,e,d),s};function Qe(t){let i=this||{},r=t.call?t(i.p):t;return Pt(r.unshift?r.raw?((e,n,o)=>e.reduce((s,d,c)=>{let u=n[c];if(u&&u.call){let p=u(o),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;u=f?"."+f:p&&typeof p=="object"?p.props?"":re(p,""):p===!1?"":p}return s+d+(u??"")},""))(r,[].slice.call(arguments,1),i.p):r.reduce((e,n)=>Object.assign(e,n&&n.call?n(i.p):n),{}):r,Rt(i.target),i.g,i.o,i.k)}function ft(t,i,r){return i&&function(e,n){for(var o=0;o<n.length;o++){var s=n[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(t.prototype,i),t}function L(){return L=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},L.apply(this,arguments)}function mt(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}function we(t,i){if(t==null)return{};var r,e,n={},o=Object.keys(t);for(e=0;e<o.length;e++)r=o[e],i.indexOf(r)>=0||(n[r]=t[r]);return n}function Je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Qe.bind({g:1}),Qe.bind({k:1});var et=function(){return""},ht=a.createContext({enqueueSnackbar:et,closeSnackbar:et}),He="@media (max-width:599.95px)",We="@media (min-width:600px)",tt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ge=function(t){return""+tt(t.vertical)+tt(t.horizontal)},Se=function(t){return!!t||t===0},Te="unmounted",ce="exited",ue="entering",ge="entered",nt="exiting",$e=function(t){function i(e){var n;n=t.call(this,e)||this;var o,s=e.appear;return n.appearStatus=null,e.in?s?(o=ce,n.appearStatus=ue):o=ge:o=e.unmountOnExit||e.mountOnEnter?Te:ce,n.state={status:o},n.nextCallback=null,n}mt(i,t),i.getDerivedStateFromProps=function(e,n){return e.in&&n.status===Te?{status:ce}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var n=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==ue&&o!==ge&&(n=ue):o!==ue&&o!==ge||(n=nt)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,n=e,o=e;return e!=null&&typeof e!="number"&&typeof e!="string"&&(o=e.exit,n=e.enter),{exit:o,enter:n}},r.updateStatus=function(e,n){e===void 0&&(e=!1),n!==null?(this.cancelNextCallback(),n===ue?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:Te})},r.performEnter=function(e){var n=this,o=this.props.enter,s=e,d=this.getTimeouts();e||o?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:ue},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(d.enter,function(){n.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nt},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},r.setNextCallback=function(e){var n=this,o=!0;return this.nextCallback=function(){o&&(o=!1,n.nextCallback=null,e())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var o=e==null&&!this.props.addEndListener;this.node&&!o?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),e!=null&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Te)return null;var n=this.props;return(0,n.children)(e,we(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},ft(i,[{key:"node",get:function(){var e,n=(e=this.props.nodeRef)===null||e===void 0?void 0:e.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),i}(a.Component);function de(){}function ot(t,i){typeof t=="function"?t(i):t&&(t.current=i)}function Ke(t,i){return a.useMemo(function(){return t==null&&i==null?null:function(r){ot(t,r),ot(i,r)}},[t,i])}function Re(t){var i=t.timeout,r=t.style,e=r===void 0?{}:r,n=t.mode;return{duration:typeof i=="object"?i[n]||0:i,easing:e.transitionTimingFunction,delay:e.transitionDelay}}$e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:de,onEntering:de,onEntered:de,onExit:de,onExiting:de,onExited:de};var qt="cubic-bezier(0.4, 0, 0.2, 1)",Nt="cubic-bezier(0.0, 0, 0.2, 1)",At="cubic-bezier(0.4, 0, 0.6, 1)",gt=function(t){t.scrollTop=t.scrollTop},rt=function(t){return Math.round(t)+"ms"};function pe(t,i){t===void 0&&(t=["all"]);var r=i||{},e=r.duration,n=e===void 0?300:e,o=r.easing,s=o===void 0?qt:o,d=r.delay,c=d===void 0?0:d;return(Array.isArray(t)?t:[t]).map(function(u){var p=typeof n=="string"?n:rt(n),f=typeof c=="string"?c:rt(c);return u+" "+p+" "+s+" "+f}).join(",")}function kt(t){var i=function(r){return r&&r.ownerDocument||document}(t);return i.defaultView||window}function Le(t,i){if(i){var r=function(e,n){var o,s=n.getBoundingClientRect(),d=kt(n);if(n.fakeTransform)o=n.fakeTransform;else{var c=d.getComputedStyle(n);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var u=0,p=0;if(o&&o!=="none"&&typeof o=="string"){var f=o.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),p=parseInt(f[5],10)}switch(e){case"left":return"translateX("+(d.innerWidth+u-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-u)+"px)";case"up":return"translateY("+(d.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(t,i);r&&(i.style.webkitTransform=r,i.style.transform=r)}}var bt=a.forwardRef(function(t,i){var r=t.children,e=t.direction,n=e===void 0?"down":e,o=t.in,s=t.style,d=t.timeout,c=d===void 0?0:d,u=t.onEnter,p=t.onEntered,f=t.onExit,g=t.onExited,y=we(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=a.useRef(null),w=Ke(r.ref,v),E=Ke(w,i),b=a.useCallback(function(){v.current&&Le(n,v.current)},[n]);return a.useEffect(function(){if(!o&&n!=="down"&&n!=="right"){var k=function(T,Z){var A;function B(){for(var V=this,U=arguments.length,_=new Array(U),G=0;G<U;G++)_[G]=arguments[G];clearTimeout(A),A=setTimeout(function(){T.apply(V,_)},Z)}return Z===void 0&&(Z=166),B.clear=function(){clearTimeout(A)},B}(function(){v.current&&Le(n,v.current)}),D=kt(v.current);return D.addEventListener("resize",k),function(){k.clear(),D.removeEventListener("resize",k)}}},[n,o]),a.useEffect(function(){o||b()},[o,b]),a.createElement($e,Object.assign({appear:!0,nodeRef:v,onEnter:function(k,D){Le(n,k),gt(k),u&&u(k,D)},onEntered:p,onEntering:function(k){var D=s?.transitionTimingFunction||Nt,T=Re({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),k.style.webkitTransform="none",k.style.transform="none"},onExit:function(k){var D=s?.transitionTimingFunction||At,T=Re({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),Le(n,k),f&&f(k)},onExited:function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},in:o,timeout:c},y),function(k,D){return a.cloneElement(r,L({ref:E,style:L({visibility:k!=="exited"||o?void 0:"hidden"},s,{},r.props.style)},D))})});bt.displayName="Slide";var Fe=function(t){return a.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Ht=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
7
- 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Bt=function(){return a.createElement(Fe,null,a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Vt=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
8
- 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
9
- 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},_t=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
10
- 0 22,12A10,10 0 0,0 12,2Z`}))},oe={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:a.createElement(Ht,null),warning:a.createElement(Bt,null),error:a.createElement(Vt,null),info:a.createElement(_t,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bt,transitionDuration:{enter:225,exit:195}},zt=function(t,i){return function(r,e){return e===void 0&&(e=!1),e?L({},oe[r],{},i[r],{},t[r]):r==="autoHideDuration"?(n=t.autoHideDuration,o=i.autoHideDuration,(s=function(d){return typeof d=="number"||d===null})(n)?n:s(o)?o:oe.autoHideDuration):r==="transitionDuration"?function(d,c){var u=function(p,f){return f.some(function(g){return typeof p===g})};return u(d,["string","number"])?d:u(d,["object"])?L({},oe.transitionDuration,{},u(c,["object"])&&c,{},d):u(c,["string","number"])?c:u(c,["object"])?L({},oe.transitionDuration,{},c):oe.transitionDuration}(t.transitionDuration,i.transitionDuration):t[r]||i[r]||oe[r];var n,o,s}};function ve(t){return Object.entries(t).reduce(function(i,r){var e,n=r[0],o=r[1];return L({},i,((e={})[n]=Qe(o),e))},{})}var Ut="notistack-SnackbarContainer",Qt="notistack-Snackbar",xt="notistack-CollapseWrapper",Kt="notistack-MuiContent",Gt=function(t){return"notistack-MuiContent-"+t},it=ve({root:{height:0},entered:{height:"auto"}}),Be="0px",yt=a.forwardRef(function(t,i){var r=t.children,e=t.in,n=t.onExited,o=a.useRef(null),s=a.useRef(null),d=Ke(i,s),c=function(){return o.current?o.current.clientHeight:0};return a.createElement($e,{in:e,unmountOnExit:!0,onEnter:function(u){u.style.height=Be},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var p=c(),f=Re({timeout:175,mode:"enter"}),g=f.duration,y=f.easing;u.style.transitionDuration=typeof g=="string"?g:g+"ms",u.style.height=p+"px",u.style.transitionTimingFunction=y||""},onExit:function(u){u.style.height=c()+"px"},onExited:n,onExiting:function(u){gt(u);var p=Re({timeout:175,mode:"exit"}),f=p.duration,g=p.easing;u.style.transitionDuration=typeof f=="string"?f:f+"ms",u.style.height=Be,u.style.transitionTimingFunction=g||""},nodeRef:s,timeout:175},function(u,p){return a.createElement("div",Object.assign({ref:d,className:te(it.root,u==="entered"&&it.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:pe("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!e&&{visibility:"hidden"})},p),a.createElement("div",{ref:o,className:xt,style:{display:"flex",width:"100%"}},r))})});yt.displayName="Collapse";var at={right:"left",left:"right",bottom:"up",top:"down"},$t=function(t){return"anchorOrigin"+Ge(t)},Zt=function(){};function ye(t,i){return t.reduce(function(r,e){return e==null?r:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var d=[].concat(o);i&&d.indexOf(i)===-1&&d.push(i),r.apply(this,d),e.apply(this,d)}},Zt)}var Xt=typeof window<"u"?a.useLayoutEffect:a.useEffect;function st(t){var i=a.useRef(t);return Xt(function(){i.current=t}),a.useCallback(function(){return i.current.apply(void 0,arguments)},[])}var Ve,wt=a.forwardRef(function(t,i){var r=t.children,e=t.className,n=t.autoHideDuration,o=t.disableWindowBlurListener,s=o!==void 0&&o,d=t.onClose,c=t.id,u=t.open,p=t.SnackbarProps,f=p===void 0?{}:p,g=a.useRef(),y=st(function(){d&&d.apply(void 0,arguments)}),v=st(function(b){d&&b!=null&&(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){y(null,"timeout",c)},b))});a.useEffect(function(){return u&&v(n),function(){g.current&&clearTimeout(g.current)}},[u,n,v]);var w=function(){g.current&&clearTimeout(g.current)},E=a.useCallback(function(){n!=null&&v(.5*n)},[n,v]);return a.useEffect(function(){if(!s&&u)return window.addEventListener("focus",E),window.addEventListener("blur",w),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",w)}},[s,E,u]),a.createElement("div",Object.assign({ref:i},f,{className:te(Qt,e),onMouseEnter:function(b){f.onMouseEnter&&f.onMouseEnter(b),w()},onMouseLeave:function(b){f.onMouseLeave&&f.onMouseLeave(b),E()}}),r)});wt.displayName="Snackbar";var Yt=ve({root:(Ve={display:"flex",flexWrap:"wrap",flexGrow:1},Ve[We]={flexGrow:"initial",minWidth:"288px"},Ve)}),Ze=a.forwardRef(function(t,i){var r=t.className,e=we(t,["className"]);return a.createElement("div",Object.assign({ref:i,className:te(Yt.root,r)},e))});Ze.displayName="SnackbarContent";var ke=ve({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),lt="notistack-snackbar",vt=a.forwardRef(function(t,i){var r=t.id,e=t.message,n=t.action,o=t.iconVariant,s=t.variant,d=t.hideIconVariant,c=t.style,u=t.className,p=o[s],f=n;return typeof f=="function"&&(f=f(r)),a.createElement(Ze,{ref:i,role:"alert","aria-describedby":lt,style:c,className:te(Kt,Gt(s),ke.root,ke[s],u,!d&&p&&ke.lessPadding)},a.createElement("div",{id:lt,className:ke.message},d?null:p,e),f&&a.createElement("div",{className:ke.action},f))});vt.displayName="MaterialDesignContent";var be,_e,Me,je,ze,Jt=a.memo(vt),en=ve({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tn=function(t){var i=a.useRef(),r=a.useState(!0),e=r[0],n=r[1],o=ye([t.snack.onClose,t.onClose]),s=a.useCallback(function(){i.current=setTimeout(function(){n(function(V){return!V})},125)},[]);a.useEffect(function(){return function(){i.current&&clearTimeout(i.current)}},[]);var d,c=t.snack,u=t.classes,p=t.Component,f=p===void 0?Jt:p,g=a.useMemo(function(){return function(V){V===void 0&&(V={});var U={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(V).filter(function(_){return!U[_]}).reduce(function(_,G){var ie;return L({},_,((ie={})[G]=V[G],ie))},{})}(u)},[u]),y=c.open,v=c.SnackbarProps,w=c.TransitionComponent,E=c.TransitionProps,b=c.transitionDuration,k=c.disableWindowBlurListener,D=c.content,T=we(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),Z=L({direction:(d=T.anchorOrigin,d.horizontal!=="center"?at[d.horizontal]:at[d.vertical]),timeout:b},E),A=D;typeof A=="function"&&(A=A(T.id,T.message));var B=["onEnter","onEntered","onExit","onExited"].reduce(function(V,U){var _;return L({},V,((_={})[U]=ye([t.snack[U],t[U]],T.id),_))},{});return a.createElement(yt,{in:e,onExited:B.onExited},a.createElement(wt,{open:y,id:T.id,disableWindowBlurListener:k,autoHideDuration:T.autoHideDuration,className:te(en.wrappedRoot,g.root,g[$t(T.anchorOrigin)]),SnackbarProps:v,onClose:o},a.createElement(w,Object.assign({},Z,{appear:!0,in:y,onExit:B.onExit,onExited:s,onEnter:B.onEnter,onEntered:ye([B.onEntered,function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)}],T.id)}),A||a.createElement(f,Object.assign({},T)))))},xe={default:20},Oe={default:6,dense:2},ct="."+xt,De=ve({root:(be={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:pe(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},be[ct]={padding:Oe.default+"px 0px",transition:"padding 300ms ease 0ms"},be.maxWidth="calc(100% - "+2*xe.default+"px)",be[He]={width:"100%",maxWidth:"calc(100% - 32px)"},be),rootDense:(_e={},_e[ct]={padding:Oe.dense+"px 0px"},_e),top:{top:xe.default-Oe.default+"px",flexDirection:"column"},bottom:{bottom:xe.default-Oe.default+"px",flexDirection:"column-reverse"},left:(Me={left:xe.default+"px"},Me[We]={alignItems:"flex-start"},Me[He]={left:"16px"},Me),right:(je={right:xe.default+"px"},je[We]={alignItems:"flex-end"},je[He]={right:"16px"},je),center:(ze={left:"50%",transform:"translateX(-50%)"},ze[We]={alignItems:"center"},ze)}),nn=function(t){var i=t.classes,r=i===void 0?{}:i,e=t.anchorOrigin,n=t.dense,o=t.children,s=te(Ut,De[e.vertical],De[e.horizontal],De.root,r.containerRoot,r["containerAnchorOrigin"+Ge(e)],n&&De.rootDense);return a.createElement("div",{className:s},o)},on=a.memo(nn),ut=function(t){return!(typeof t=="string"||a.isValidElement(t))},rn=function(t){function i(r){var e;return(e=t.call(this,r)||this).enqueueSnackbar=function(n,o){if(o===void 0&&(o={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ut(n)?n:o,d=ut(n)?n.message:n,c=s.key,u=s.preventDuplicate,p=we(s,["key","preventDuplicate"]),f=Se(c),g=f?c:new Date().getTime()+Math.random(),y=zt(p,e.props),v=L({id:g},p,{message:d,open:!0,entered:!1,requestClose:!1,persist:y("persist"),action:y("action"),content:y("content"),variant:y("variant"),anchorOrigin:y("anchorOrigin"),disableWindowBlurListener:y("disableWindowBlurListener"),autoHideDuration:y("autoHideDuration"),hideIconVariant:y("hideIconVariant"),TransitionComponent:y("TransitionComponent"),transitionDuration:y("transitionDuration"),TransitionProps:y("TransitionProps",!0),iconVariant:y("iconVariant",!0),style:y("style",!0),SnackbarProps:y("SnackbarProps",!0),className:te(e.props.className,p.className)});return v.persist&&(v.autoHideDuration=void 0),e.setState(function(w){if(u===void 0&&e.props.preventDuplicate||u){var E=function(D){return f?D.id===g:D.message===d},b=w.queue.findIndex(E)>-1,k=w.snacks.findIndex(E)>-1;if(b||k)return w}return e.handleDisplaySnack(L({},w,{queue:[].concat(w.queue,[v])}))}),g},e.handleDisplaySnack=function(n){return n.snacks.length>=e.maxSnack?e.handleDismissOldest(n):e.processQueue(n)},e.processQueue=function(n){var o=n.queue,s=n.snacks;return o.length>0?L({},n,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):n},e.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var o=!1,s=!1;n.snacks.reduce(function(c,u){return c+(u.open&&u.persist?1:0)},0)===e.maxSnack&&(s=!0);var d=n.snacks.map(function(c){return o||c.persist&&!s?L({},c):(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),e.props.onClose&&e.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:d})},e.handleEnteredSnack=function(n,o,s){if(!Se(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");e.setState(function(d){return{snacks:d.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},e.handleCloseSnack=function(n,o,s){e.props.onClose&&e.props.onClose(n,o,s);var d=s===void 0;e.setState(function(c){var u=c.snacks,p=c.queue;return{snacks:u.map(function(f){return d||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},e.closeSnackbar=function(n){var o=e.state.snacks.find(function(s){return s.id===n});Se(n)&&o&&o.onClose&&o.onClose(null,"instructed",n),e.handleCloseSnack(null,"instructed",n)},e.handleExitedSnack=function(n,o){if(!Se(o))throw new Error("handleExitedSnack Cannot be called with undefined key");e.setState(function(s){var d=e.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==o})}));return d.queue.length===0?d:e.handleDismissOldest(d)})},e.enqueueSnackbar,e.closeSnackbar,e.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:e.enqueueSnackbar.bind(Je(e)),closeSnackbar:e.closeSnackbar.bind(Je(e))}},e}return mt(i,t),i.prototype.render=function(){var r=this,e=this.state.contextValue,n=this.props,o=n.domRoot,s=n.children,d=n.dense,c=d!==void 0&&d,u=n.Components,p=u===void 0?{}:u,f=n.classes,g=this.state.snacks.reduce(function(v,w){var E,b=Ge(w.anchorOrigin),k=v[b]||[];return L({},v,((E={})[b]=[].concat(k,[w]),E))},{}),y=Object.keys(g).map(function(v){var w=g[v],E=w[0];return a.createElement(on,{key:v,dense:c,anchorOrigin:E.anchorOrigin,classes:f},w.map(function(b){return a.createElement(tn,{key:b.id,snack:b,classes:f,Component:p[b.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ye([r.handleExitedSnack,r.props.onExited],b.id),onEntered:ye([r.handleEnteredSnack,r.props.onEntered],b.id)})}))});return a.createElement(ht.Provider,{value:e},s,o?jt.createPortal(y,o):y)},ft(i,[{key:"maxSnack",get:function(){return this.props.maxSnack||oe.maxSnack}}]),i}(a.Component),Et=function(){return a.useContext(ht)};const J={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Ct=a.forwardRef((t,i)=>{const{id:r,message:e,iconVariant:n,error:o,hideIconVariant:s,...d}=t,{closeSnackbar:c}=Et(),u=l.useTheme(),[p,f]=a.useState(!1),g=a.useCallback(()=>{f(w=>!w)},[]),y=a.useCallback(()=>{c(r)},[r,c]),v=o?.message||String(e);return h.jsx(Ze,{ref:i,className:l.clsx(J.root,"error-snackbar"),children:h.jsxs(H.Card,{className:J.card,style:{backgroundColor:u.palette.error.dark,border:`1px solid ${u.palette.error.dark}`},children:[h.jsxs(H.CardActions,{className:J.actionRoot,children:[s?null:n?.error,h.jsx(H.Typography,{variant:"body2",component:"div",className:J.typography,style:{color:u.palette.text.primary},children:v}),h.jsx("div",{style:{flex:"1 1 auto"}}),h.jsxs("div",{className:J.icons,children:[o?h.jsx(H.IconButton,{"aria-label":"Show more",size:"small",className:l.clsx(J.expand,{[J.expandOpen]:p}),style:{color:u.palette.action.active},onClick:g,children:h.jsx(Ue.ExpandMore,{})}):null,h.jsx(H.IconButton,{size:"small",className:J.expand,style:{color:u.palette.action.active},onClick:y,children:h.jsx(Ue.Close,{fontSize:"small"})})]})]}),o?h.jsx(H.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:h.jsx("div",{className:J.stackTraceContainer,style:{backgroundColor:u.palette.error.light,borderTop:`1px solid ${u.palette.error.main}`},children:h.jsx(l.V7,{error:o,hideLineNumbers:!0})})}):null]})})});Ct.displayName="ToastError";const St=a.memo(a.forwardRef((t,i)=>{const{commands:r,commandHook:e,scope:n="workbook",disabled:o=!1,...s}=t,d=l.T(u=>{const p={variant:l.vo.Menuitem,parentFloat:u.floatReference,commandHook:e,scope:n,disabled:o},f=h.jsxs(h.Fragment,{children:[h.jsx(l.fr,{...p,command:r.getCommand("newWorkbook"),icon:l.y5(h.jsx(l.Si,{}))}),h.jsx(l.At,{orientation:"horizontal"}),h.jsx(l.fr,{...p,command:r.getCommand("openWorkbook"),icon:l.y5(h.jsx(l._i,{}))}),h.jsx(l.f4,{...p,commands:r,quickCommand:"saveWorkbook",icon:l.y5(h.jsx(l.Mi,{})),createPopupPanel:g=>{const y={...p,parentFloat:g.floatReference,scope:"saveWorkbook"},v=[];return l.WorkbookIO.getWriteFormats().forEach(w=>{if(w.isDefault)return;let E=null;w.key==="CSV"?E=l.y5(h.jsx(l.Vi,{})):w.key==="Excel"&&(E=l.y5(h.jsx(l.zi,{})));const b=r.getCommand(`saveWorkbookAs${w.key}`);b?v.push(a.createElement(l.fr,{...y,key:w.key,command:b,icon:E})):console.warn(`Unable to resolve command: 'saveWorkbookAs${w.key}'`)}),l.V5({...g,children:v,onClick:()=>{g.closeFloatAll()}})}})]});return l.V5({...u,children:f,onClick:g=>{g.isDefaultPrevented||u.closeFloatAll()}})},[o,r,e,n]),c="File";return h.jsx(l.f4,{commands:r,disabled:o,commandHook:e,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:u=>`calc(1.25rem + ${u.spacing(2)}px)`}},...s,createPopupPanel:d,icon:h.jsx(l.sl,{className:"label",icon:null,label:c})})}));St.displayName="StandaloneFileCommandButton";const an=h.jsx(l.e2,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:h.jsx(H.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:h.jsx(l.td,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=a.memo(a.forwardRef((t,i)=>{const{commands:r,workbook:e,logo:n=an,mainElement:o,showFileMenu:s=!0,showAppearanceMenu:d=!0,...c}=t,{reference:u}=l.v3(),[p,{width:f}]=l.useMeasure(),g=f<530,y=s?h.jsx(St,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,v=d?h.jsx(l.AppearanceCommandButton,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,w=a.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),E=a.useRef(null);return h.jsx(H.Box,{ref:l.mergeRefs([E,p,i]),...c,children:l.renderWorkbookToolbars({commands:r,renderCompact:g,workbook:e,selectWrapper:b=>h.jsxs(H.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:k=>k.spacing(1),paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)},children:[h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:k=>k.spacing(.5)},children:[n,h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:k=>k.spacing(.25)},children:[y,b]})]}),h.jsx(H.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:o}),h.jsx(H.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:g&&!v?"0 0 auto":"1 1 100%"},children:v})]}),selectProps:w,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StandaloneWorkbookToolbar";const Lt=a.memo(a.forwardRef((t,i)=>{const{workbook:r,setWorkbook:e,refWorkbookTitle:n,titleWorkbook:o,setWorkbookTitle:s,titlePlaceHolder:d,children:c,undoManager:u,commands:p,importExportDisabled:f,themeModeOptions:g}=t,y=Et(),v=y?y.enqueueSnackbar:()=>{},w=y?y.closeSnackbar:()=>{},[E,b]=a.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),k=a.useCallback(()=>{b(O=>({...O,isMounted:!0}))},[]),D=a.useCallback(()=>{b(O=>({...O,isMounted:!1}))},[]),T=l.ol(),Z=l.il(),A=l.al(),B=a.useRef(new Set),V=a.useMemo(()=>{const O=(C,S)=>{if(S?.onceKey){if(B.current.has(S.onceKey))return;const M=new Set(B.current);M.add(S.onceKey),B.current=M}const W={variant:S?.type??l.ye.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:S?.preventDuplicate,persist:S?.persist??S?.type===l.ye.Error,action:M=>h.jsx(H.IconButton,{onClick:()=>w(M),children:h.jsx(Ue.CancelOutlined,{})})};S?.enqueueProps&&Object.assign(W,S.enqueueProps),C||console.log("message is 'null'",S),v(C??"Alert",W)};return{showMessage:O,showBusy:(C,S)=>{let W=null;const M=new Promise(N=>{W=N});return b(N=>{const P=new Map(N.starting);return P.set(M,W),{...N,label:C,starting:P}}),M},showWindow:(C,S,W)=>{const M={...S,onKeyDown:N=>{p?.dispatchToFocusedCommand(N),N.isDefaultPrevented()||N.isPropagationStopped()||S?.onKeyDown?.(N)}};return T(C,{sort:()=>Promise.resolve().then(()=>require("./D7asEaPB97YVwe1v.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./CyUaP6X--CmuILoU.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./DSNu0kgR1_X-nK_Z.cjs")),comments:()=>Promise.resolve().then(()=>require("./BlBsVySC7wICKf3b.cjs")),find:()=>Promise.resolve().then(()=>require("./CZA_Av5pG0M1RgJK.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./CP_eU6V1jkcP4WtQ.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./C9TJkm0tBPD04idM.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./D8qPzQKLyGrgGg08.cjs"))}[C],M,W)},showOptions:Z,showInputOptions:A,showError:C=>{let S,W=l.ye.Error,M="Unknown Error";typeof C=="string"?M=C:C instanceof Error&&(S=C,C.message&&(M=C.message)),C instanceof l.jf&&(W=l.ye.Info),O(M,{type:W,enqueueProps:{error:S}})}}},[]),U=a.useCallback(()=>{},[]),_=(O=>{const{workbook:C,setWorkbook:S,importExportDisabled:W,workbookTitle:M="export",setWorkbookTitle:N,notifier:P,requestWorkbookTitle:X,themeModeOptions:R,undoManager:Ee,commands:$,onExecute:se}=O,Ce=l.T(R?.onForceModeChange,[R?.onForceModeChange]),Ie=l.T(R?.onForceLightGridChange,[R?.onForceLightGridChange]),le=l.T(R?.onForceLightImagesChange,[R?.onForceLightImagesChange]),Pe=l.T(async(j=null,Q=null)=>{const m=[];let x,F=null,K=null;if(typeof j=="string"?K=j:F=j,x=F?j:await l.Yt$1.openFileDialog(K??l.WorkbookIO.getAllReadFormatTypeAsString().join(",")),!x)return null;const ee={source:x,constructorOptions:Q,onWarning:Ne=>{m.push(Ne)}},he=await l.WorkbookIO.read(ee,P);return m.length>0&&(P?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
11
- `+m.join(`
12
- `))),he},[se,P,C]),fe=l.T(async(j,Q,m)=>{if(!Q&&X){const x=await X("Enter Workbook name to "+(m.isDefault?"Save.":`Export as ${m.description}.`));return x!==null&&l.WorkbookIO.writeFile(x,j,{formatType:m.key})}return l.WorkbookIO.writeFile(Q,j,{formatType:m.key})},[P,C,X]),q=a.useCallback(()=>({contains:j=>!0,focus(){}}),[]),ne=a.useMemo(()=>{const j=[];W||(l.WorkbookIO.getWriteFormats().forEach(m=>{const x=m.isDefault,F={label:x?"Save Workbook":`Save Workbook as ${m.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${m.description}`},tags:m.tags,description:`Save the workbook to the desktop${x?"":` as ${m.description}`}.`};x&&(F.shortcut={key:"S",modifiers:[l.Z.Ctrl]},j.push(new l.Qt("saveWorkbookAs",q,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[l.Z.Shift,l.Z.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{fe(C,null,m).catch(ee=>{P?.showError?.(ee)})})));const K=x?"saveWorkbook":`saveWorkbookAs${m.key}`;j.push(new l.Qt(K,q,F,ee=>{fe(C,ee??M,m).catch(he=>{P?.showError?.(he)})}))}),j.push(new l.Qt("openWorkbook",q,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[l.Z.Ctrl]}},async(m=null)=>{const x={date1904:C.isDate1904(),...C.options};try{const F=await Pe(m,x);if(!F)return;const K=F.title,ee=F.workbook,he=ee.getSelectedSheet();if(F.formatType.mimeType==="text/csv"){const Ne=C.findValidSheetName(K);await C.doBatch(async()=>{const Xe=he.getUsedRange();if(!Xe)return void P?.showMessage("The file appears to be blank.");await C.getSheets().add({name:Ne,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Xe)},`Import CSV '${K}'`)}else C?.close(),N?.(K),S(ee)}catch(F){P?.showError?.(F)}})),j.push(new l.Qt("openWorkbookFromUrl",q,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(m){if(!m){const x=await P?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(x.option!=="Open")return;m=x.input}m&&console.log("openWorkbookFromUrl",m)})));let Q=[];return R&&(Q=[new l.Qt("themeMode",q,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new l.Qt("defaultThemeMode",q,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new l.Qt("forceLightGrid",q,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new l.Qt("forceLightImages",q,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...j,...Q,new l.jt("help",q,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new l.jt("showKeyboardShortcuts",q,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[l.Z.Ctrl]}},()=>{}),new l.Qt("gotoUrlGithub",q,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new l.Qt("gotoUrlDiscord",q,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new l.Qt("gotoUrlDocumentation",q,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new l.Qt("gotoUrlIssue",q,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[C,M,P,W,R,$,Ee]),z=a.useMemo(()=>{let j=null;return j=$?$.createChildGroup(q,"standaloneWorkbook",!1):new l.He(q,"standaloneWorkbook"),j.addCommands(ne,!0),j},[$,ne]);l.So({manager:Ee,commands:z,notifier:P});const{themeMode:me}=l.useResolvedThemeMode();a.useEffect(()=>{if(!R||!z)return;const j=R.forceMode==="dark"||!R.forceMode&&me==="dark";z.getCommand("themeMode").update({state:R.forceMode??null,label:j?"Dark Mode":"Light Mode",scopedLabels:{appearance:j?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Ce(j?l.ThemeMode.Light:l.ThemeMode.Dark)}),z.getCommand("defaultThemeMode").update({state:!R.forceMode}).updateCallback(()=>{Ce(null)}),z.getCommand("forceLightGrid").update({state:R.forceLightGrid}).updateCallback(()=>{Ie(!R.forceLightGrid)}),z.getCommand("forceLightImages").update({state:R.forceLightImages}).updateCallback(()=>{le(!R.forceLightImages)})},[me,R,ne]);const{showModal:qe}=l.L5();return a.useEffect(()=>{const j=()=>new Promise((Q,m)=>{const x=a.lazy(()=>Promise.resolve().then(()=>require("./B0-aLTQ0dAlPdRnQ.cjs"))),F=qe(x,{title:"Shortcut Keys Reference",commands:z,onDone:()=>{F.hide()},TransitionProps:{onExited:()=>{Q(!0)}}})});z.getCommand("showKeyboardShortcuts").updateCallback(()=>j()),z.getCommand("help").updateCallback(()=>j())},[ne,z]),z})({workbook:r,setWorkbook:e,importExportDisabled:f,workbookTitle:o,setWorkbookTitle:s,commands:p,requestWorkbookTitle:O=>new Promise(C=>{n.current?n.current.requestWorkbookTitle((S,W)=>{C(S)},{selectAll:!0,requestReason:O}):C(d)}),themeModeOptions:g,undoManager:u,notifier:V,onExecute:U});a.useEffect(()=>{E.starting.size<=0||!E.isMounted||b(O=>{const C=new Map(O.running);return O.starting.forEach((S,W)=>{const M=()=>{b(N=>{const P=new Map(N.running);return P.delete(W),{...N,running:P}})};C.set(W,M),S(M)}),{...O,starting:new Map,running:C}})},[E]);const[G,ie]=a.useState(null);a.useEffect(()=>{E.starting.size!==0||E.running.size!==0?ie(h.jsx(l.It,{icon:h.jsx(l.qa,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:E.label,onMount:k,onUnmount:D,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):ie(null)},[E.starting,E.running]);const I=a.useMemo(()=>h.jsx(l.HelpCommandButton,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),ae={notifier:V,commands:_};return r&&(ae.statusBarProps={childrenEnd:I}),h.jsxs(h.Fragment,{children:[G,c?a.cloneElement(c,ae):null]})}));Lt.displayName="SnackbarAndCommandsWrapper";const Mt=a.memo(a.forwardRef((t,i)=>{const{className:r,sx:e,style:n,onElementLoad:o,onError:s,undoManager:d,errorPanel:c=l.Bt,onKeyDown:u,workbook:p,createWorkbookOptions:f,onWorkbookChange:g,logo:y,importExportDisabled:v=!1,themeModeOptions:w,autoFocus:E=!1,commands:b,title:k,onTitleChange:D,titleProps:T,...Z}=t,A=a.useRef(null),B=l.T(g,[g]),V=l.T(D??T?.onTitleChange,[D??T?.onTitleChange]),U=T?.placeHolder??"Untitled",_=w?.forceMode,{themeMode:G,source:ie}=l.useResolvedThemeMode({mode:_}),I=a.useMemo(()=>({...w,light:l.Qa(!1,l.F.deepMerge(w?.theme??{},w?.light??{})),dark:l.Qa(!0,l.F.deepMerge(w?.theme??{},w?.dark??{}))}),[w]),ae=G===l.ThemeMode.Dark,[O,C]=a.useState(null);a.useEffect(()=>{C(d??new l.Vf)},[d]);const[S,W]=a.useState(null),[M,N]=a.useState(null),P=l.Td();a.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!l.F.isPromiseLike(p)){const m={theme:P.getDefaultTheme(),...f};N(new l.Zy(m))}else N(p)},[p]),a.useLayoutEffect(()=>{if(M){if(M instanceof l.Zy)return W({workbook:M}),void(p!==M&&B?.(M));(async()=>{try{let m,x=await Promise.resolve(M);x&&x.source&&(x=await l.WorkbookIO.read(x)),x.workbook?(se(x.title),m=x.workbook):m=x,B?.(m),W({workbook:m})}catch(m){B?.(null),W({error:m})}})()}},[M]);const[X,R]=a.useState(null);a.useEffect(()=>{if(!O||!S)return;O.clear();const m=S?.workbook?.getTransactions();if(m)return m.addListener({onCommitEnd:x=>{x.getDescription()?O.addUndoOperation({description:x.getDescription(),undo:()=>(m.revert(x.getId()),X.source?.focus(),()=>{m.restore(x.getId()),X.source?.focus()})}):console.warn("commit has no description",x)}})},[O,S,X]);const Ee=l.T(m=>{m?O.setRepeatableOperation({description:m.label(),repeat:async()=>m.execute()}):O.setRepeatableOperation(null)},[O]),[$,se]=a.useState(k??T?.title??"");a.useEffect(()=>{se(k??T?.title??"")},[k??T?.title]),a.useEffect(()=>{V?.($)},[$]);const[Ce,Ie]=a.useState(null),le=a.useMemo(()=>{const m=()=>({contains:x=>!0,focus(){}});return b?b.createChildGroup(m,"application",!1):new l.He(m,"application")},[b]),Pe=l.T(m=>{Ie(m.source.getViewportElement()),R(m),le.activate("sheet"),o?.(m)},[le]);a.useEffect(()=>{X&&E&&X.source?.focus(typeof E=="object"?E:void 0)},[X]);const fe=a.useRef(null),q=a.useCallback(m=>{let x=null;return T?.hidden||(x=h.jsx(l.WorkbookTitle,{...T,style:{maxWidth:"100%",...T?.style},workbook:A.current,ref:fe,title:$,placeHolder:U,onTitleChange:F=>{se(F)}})),h.jsx(Tt,{...m,logo:y,mainElement:x,showFileMenu:!v,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[y,$,T,I,v,le]);a.useEffect(()=>{const m=x=>x.preventDefault();return A.current?.addEventListener("wheel",m,{passive:!1}),()=>{A.current?.removeEventListener("wheel",m)}},[]);const ne=a.useMemo(()=>h.jsx(l.It,{transparentBackground:!0,sx:e,style:n}),[e,n]),z=a.useCallback(({error:m})=>(s?.(m),h.jsx(c,{sx:e,style:n,error:m??"Unable to display empty workbook."})),[e,n,s]),me=a.useMemo(()=>({...e,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:m=>m.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[e]),qe=l.mergeRefs([A,i]),j=a.useMemo(()=>{if(!S)return ne;if(S.error||!S.workbook)return z({error:S.error});let m=null,x=null,F=!1;return I&&(m=ae?I.dark:I.light,x=ae&&!I.forceLightGrid?I.dark:I.light,F=I.forceLightImages),h.jsx(l.WorkbookElement,{sx:me,style:n,tabIndex:0,autoFocus:!0,workbook:S.workbook,ref:qe,renderToolbar:q,onElementLoad:Pe,onRepeatCommandChange:Ee,onKeyDown:K=>{u?.(K)},gridTheme:x,headersTheme:m,forceLightImages:F,className:l.clsx(r,"sheetxl-workbook"),onContextMenu:K=>K.preventDefault(),...Z},"WorkbookElement")},[S,$,O,ne,I,Z,q,me]);let Q=h.jsx(Dt,{fallbackRender:z,children:h.jsx(rn,{maxSnack:3,domRoot:Ce,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(m,x,F)=>{A.current?.focus()},Components:{error:Ct},iconVariant:{success:h.jsx(H.SvgIcon,{style:{marginRight:"8px"},children:h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:h.jsx(l.oa,{style:{marginRight:"8px"}})},children:h.jsx(l.nl,{children:h.jsx(Lt,{workbook:S?.workbook,setWorkbook:N,importExportDisabled:v,titlePlaceHolder:U,titleWorkbook:$,setWorkbookTitle:se,refWorkbookTitle:fe,commands:le,undoManager:O,themeModeOptions:I,children:j})})})});return I&&(Q=h.jsxs(l.ThemeProvider,{theme:ae?I.dark:I.light,children:[I.cssBaseline?h.jsx(H.CssBaseline,{}):null,Q]})),Q}));Mt.displayName="EagerStandaloneWorkbook";const sn=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));exports.EagerStandaloneWorkbook=sn,exports.clsx=te;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DAVERAGE:{s:"Averages the values in a column in a list or database that match conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DCOUNT:{s:"Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DCOUNTA:{s:"Counts nonblank cells in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DGET:{s:"Extracts from a database a single record that matches the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DMAX:{s:"Returns the largest number in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DMIN:{s:"Returns the smallest number in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DPRODUCT:{s:"Multiplies the values in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DSTDEV:{s:"Estimates the standard deviation based on a sample from selected database entries",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DSTDEVP:{s:"Calculates the standard deviation based on the entire population of selected database entries",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DSUM:{s:"Adds the numbers in the field (column) of records in the database that match the conditions you specify",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DVAR:{s:"Estimates variance based on a sample from selected database entries",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"},DVARP:{s:"Calculates variance based on the entire population of selected database entries",p:{database:{d:"is the range of cells that makes up the list or database. A database is a list of related data"},field:{d:"is either the label of the column in double quotation marks or a number that represents the column's position in the list"},criteria:{d:"is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition"}},h:"Unimplemented"}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={BIN2DEC:{s:"Converts a binary number to decimal",p:{number:{d:"is the binary number you want to convert"}}},BIN2HEX:{s:"Converts a binary number to hexadecimal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BIN2OCT:{s:"Converts a binary number to octal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BITAND:{s:"Returns a bitwise 'And' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITLSHIFT:{s:"Returns a number shifted left by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITOR:{s:"Returns a bitwise 'Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITRSHIFT:{s:"Returns a number shifted right by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITXOR:{s:"Returns a bitwise 'Exclusive Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},DEC2BIN:{s:"Converts a decimal number to binary",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2HEX:{s:"Converts a decimal number to hexadecimal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2OCT:{s:"Converts a decimal number to octal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},HEX2BIN:{s:"Converts a Hexadecimal number to binary",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},HEX2DEC:{s:"Converts a hexadecimal number to decimal",p:{number:{d:"is the hexadecimal number you want to convert"}}},HEX2OCT:{s:"Converts a hexadecimal number to octal",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2BIN:{s:"Converts an octal number to binary",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2DEC:{s:"Converts an octal number to decimal",p:{number:{d:"is the octal number you want to convert"}}},OCT2HEX:{s:"Converts an octal number to hexadecimal",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}}};
@@ -1,32 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./DNquPukGj-6iRmmP.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
7
- interface FirstTest {
8
- isTrue?: boolean;
9
- }
10
- `,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./BAGEDalcFwfUrDOV.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
11
- /**
12
- * Represents the completion of an asynchronous operation
13
- */
14
- interface Promise<T> {
15
- /**
16
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17
- * resolved value cannot be modified from the callback.
18
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19
- * @returns A Promise for the completion of the callback.
20
- */
21
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
22
- }
23
- `,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
24
- `},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./CtmTxxgCijL1ZuPa.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
25
- export const FormulaContext = globalThis.${l}?.FormulaContext;
26
- export const ScalarType = globalThis.${l}?.ScalarType;
27
- export const Observable = globalThis.${l}?.Observable;
28
- export const IRange = globalThis.${l}?.IRange;
29
- export const FormulaError = globalThis.${l}?.FormulaError;
30
- // Add more exports as needed
31
- `,L={name:"sheetxl-esbuild-in-memory",setup(g){const m="sheetxl-"+new Date().getTime();g.onResolve({filter:new RegExp(`^(${E.replace("/","\\/")}|${N})$`)},o=>({path:o.path,namespace:m})),g.onResolve({filter:/.*/},o=>{if(o.namespace!==m)return console.warn(`esbuild: Treating import "${o.path}" as external.`),{path:o.path,external:!0}}),g.onLoad({filter:/.*/,namespace:m},o=>{let h;if(o.path===E)h=d;else{if(o.path!==N)return{errors:[{text:`Cannot load unknown path in ${m}: ${o.path}`}]};h=T}return{contents:h,loader:"ts"}})}},b=await c.build({entryPoints:[E],bundle:!0,write:!1,format:"esm",plugins:[L],sourcemap:"inline",tsconfigRaw:we,minify:!0,platform:"neutral"});if(b.outputFiles&&b.outputFiles.length>0)return b.outputFiles[0].text;throw b.errors&&b.errors.length>0?new Error(`esbuild bundling failed: ${b.errors.map(g=>g.text).join(`
32
- `)}`):new Error("esbuild did not produce an output file.")}catch(c){throw console.error("esbuild bundling process failed:",c),c}}(0,K,z))}catch{console.warn("Error bundling script")}const re={functions:U,commitId:q,source:a,name:"Script",language:"typescript",compiled:K};return M&&(re.autoRun=M),re};
@@ -1,11 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./BdPTNgv6BQFiJXiH.cjs"),Ye=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ys=new RegExp(`^[${Ye}][-${Ye}.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 Ke="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",bs=new RegExp(`^[${Ke}][-${Ke}.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 z=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},re=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",Zt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Zt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O=-1,lt=-2,q=13,jt=33,ot=10,St=60,Gt=61,F=62,X=63,Jt=93,pe=i=>i===34||i===39,as=[34,39],Ps=[...as,91,F],Es=[...as,St,Jt],Vs=[Gt,X,...ns],Os=[...ns,F,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!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);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 Is=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=Is,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=re,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?q: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 O;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 O;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===O||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
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 O: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===O)return this.name+=t.slice(s),O;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===O||!z(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 O:break;default:this.unget(),this.state=q,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ps);switch(t){case F:this.doctypeHandler?.(this.text),this.text="",this.state=q,this.doctype=!0;break;case O: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(Es);t!==O&&(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 X: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===F?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===F&&(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===q&&this.textHandler===void 0||(this.text+=a);break t}case O:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(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 X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=q,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!==F?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=q}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 F:this.cdataHandler?.(this.text),this.text="",this.state=q;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===X||z(t)?(this.fail("processing instruction without a target."),this.state=t===X?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===O)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt: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===X?this.state=26:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===F){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=q}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==O&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo(Vs);if(t===X)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(t)||t===Gt){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===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");z(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,X]);if(t===X)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===O)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!==X?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===F?(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=q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===O)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 F:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===F?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==O&&(re(t)?(this.unget(),this.state=37):t===F?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===F?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==O&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case O:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===F?this.openTag():re(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):z(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 O:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===F?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Os);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case O: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===F?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===F?this.closeTag():z(t)?this.state=44:t!==O&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case F:this.closeTag();break;case O: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=q,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 F: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 O: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=q,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 O:o!==void 0&&(this.text+=s.slice(t));break t;default:z(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!==q&&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"?Zt:"",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=q,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=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,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=[],P={key:null,source:t};let b=null,d=!1;const E=(y,m)=>{let I=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(I==null||(I=m[H](I),I==null))return}else if(I==null||(I=m(I),I==null))return}return I},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>E(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:E,copyToObject:(y,m,I,H)=>{const W=E(H??m,I);W!==void 0&&(y[m]=W)},copyTo:(y,m,I)=>{const H=E(I??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const I=m.indexOf(":");I!==-1&&(m=m.slice(I+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?P: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 I=m.indexOf(":");if(I!==-1&&(m=m.slice(I+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const W=H?.destination;if(W){w.pop(),b=w[w.length-1]??P;const ht=H.visitor;ht&&ht.to&&W.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(W.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):W.key?b.source[W.key]=W.source:typeof ht.to=="string"&&(b.source[ht.to]=W.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"),P=o.convert(w,i,n);return n?.parsedRefs?.set(i,P),P}catch(x){console.warn(x)}return null},Ut=(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 P=De(w,b=>t.files[b],s,o,n);a.set(w,P)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Pe=(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 Ht{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},Fs=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,constructorOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./BQyDL6TxMqPmkugH.cjs")),T=Promise.resolve().then(()=>require("./BMcvveT3JniLuWWw.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./YpWYrg3Eysqtr9aZ.cjs")).then(d=>d.i));let w=null,P=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],P=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 E=new P.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.sf,m=y.beginPersist(),I={},H=new Set,W=new Map;W.set("richTypes",[]);const ht=new Map,Ee=[],ne=V=>d.files[V],fe=(V,U)=>{const K=V.lastIndexOf("/"),ut=V.substring(0,K+1)+"_rels/"+V.substring(K+1,V.length)+".rels";let dt=U.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=De($,be,xe,we,Xt);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,ne,f,E,yt),U.set(ut,dt)),dt},ae=(V,U,K,ut=ht)=>{let dt=fe(U,ut).get(V),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.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=E?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Qt,_,J,Z,wt)=>{const h=new Rs,Q=new u.De.TransposedBuilder;let j=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=Pe(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.Td$1.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.Td$1.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.Td$1.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.Td$1.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.Td$1.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.Td$1.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.Vr.fastStringToRange(p,is).colStart,pt=u.Vr.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 ue=e=>{j=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=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)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(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.Vr.fastStringToCell(j.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.Vr.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Pe(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?G(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 At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}: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=G(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=G(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 Yt=null;const ms={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Qt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,Wt=[],_t=!1,Dt=null,Kt=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],Fe=u.Vr.normalizeA1ToR1C1,je=u.D.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.D.createConflatingRanges();let ee,Pt=!1,B=-1,Y=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Et="",Vt="",Ot="",It="",Lt="",Nt="",qe="",We="",_e="",ze="",Ue="",Ge="",Je="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const M=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.Vr.rangeToString(at),Mt=at.value[1],ie=u.Vr.resolveRelativeToA1(Mt,at.rowStart,at.colStart);M[N]=[$t,ie]}r.formulas=M}const st=Xe.done(!0),R=st.length;if(R>0){const M=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.Vr.rangeToString(at);M[N]=$t}r.volatile=M}if(ve.length>0&&(r.dynamicArray=[...ve]),Wt.length>0){Wt.sort(u.D.createRangeComparator(u.k.Orientation.Column));const M=[];let N=null,at=-1,$t=-1,Mt=-1,ie=-1,vt=null;const Ze=Wt.length;Ze>0&&(N=Wt[0],at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value,M.push(N));for(let Ft=1;Ft<Ze;Ft++)vt=Wt[Ft],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Mt+1!==vt.rowEnd?(M.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value):(Mt=vt.rowEnd,N.rowEnd=Mt);let Qe=[];for(let Ft=0;Ft<M.length;Ft++){const oe=M[Ft];Qe.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Qe}const it=e.build();if(it){const M=it.tuples;r.data=M}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Kt=R.ref,Dt=it;break;case"array":_t=!0,Kt=R.ref,te=[Kt,!1];break;case"datatable":_t=!0,Kt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,Y);break;case"is":return void(Pt=!0)}return void(Pt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;Y=u.Vr.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Pt=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Rt&&Rt.value===M&&Rt.colEnd+1===Y?Rt.colEnd=Y:(Rt={colStart:Y,rowStart:B,colEnd:Y,rowEnd:B,value:M},Wt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Et=g.attributes.customHeight,Et!==void 0&&(ft|=Ht.CustomHeight),Et!==We&&(mt=!0,We=Et),zt=g.attributes.ht,zt!==void 0&&(ft|=Ht.Ht),zt!==qe&&(mt=!0,qe=zt),Vt=g.attributes.hidden,Vt!==void 0&&(ft|=Ht.Hidden),Vt!==_e&&(mt=!0,_e=Vt),It=g.attributes.s,It!==void 0&&(ft|=Ht.S),It!==Ue&&(mt=!0,Ue=It),Ot=g.attributes.customFormat,Ot!==void 0&&(ft|=Ht.CustomFormat),Ot!==ze&&(mt=!0,ze=Ot),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ht.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ht.Collapsed),Nt!==Je&&(mt=!0,Je=Nt),ft!==0)if(Be+1!==B||mt){const it=Et!==void 0&&(Et==="1"||Et==="true"),M=Ot!==void 0&&(Ot==="1"||Ot==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Vt!==void 0&&(Vt==="1"||Vt==="true"),s:it&&It!==void 0&&It!=="0"?parseInt(It):0,cs:M,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){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,Y,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Pt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){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=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.J.Error,v:R.getCode()};break}}}const k=u.Y.getBuiltInByLabel(g);k?gt={t:u.J.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.Vr.cellToString({colIndex:Y,rowIndex:B})}`));break;case"str":case"inlineStr":Pt=!0}gt!==null&&e.addValue(B,Y,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Dt)if($e===Dt)nt=Me;else{if(nt=He.get(Dt),!nt){const k=[];de=Fe(g,B,Y,k),nt=[de,k,g],He.set(Dt,nt)}$e=Dt,Me=nt}if(_t){const k=[];de=Fe(g,B,Y,k),nt=[de,k,g]}if(nt)return je.append(B,Y,nt),nt=null,_t=!1,Dt=null,void(Kt=null);Pt?C?.onText(g):rt||l?.onText(g)}}})(Q,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,G=!1)=>ae(L,$,G)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},W),Bt=ss($,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./CEx5ZMI8c4HYrxzW.cjs"));global.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let _=0;const J=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=J.byteLength)return void Z.close();const wt=J.subarray(_,Math.min(_+G,J.byteLength)),h=Qt.decode(wt,{stream:_+G<J.byteLength});Z.enqueue(h),_+=wt.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 G;qt.forEach((_,J)=>{_.type===L&&(kt=ae(J,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,J)=>{_.type===Qt&&(G=ae(J,$,!1,ut))}),G||kt){const _=kt??[],J=G?.comments;if(J){const Z=G?.authors;for(let wt=0;wt<J.length;wt++){const h=J[wt];let Q=h.authorId!==void 0?Z[h.authorId]:void 0;if((!Q||Q.startsWith("tc="))&&(Q=ls(Q.substring(3)),Re.has(Q)))continue;let j=ce.get(Q);j||(j=Ie.get(Q)),j||(j={id:u.F.uuidV4(),displayName:Q},Ie.set(j.displayName,j),ce.set(j.id,j)),Q=j?.id??null;const ue={id:u.F.uuidV4(),personId:Q,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Ee.push(et())}else Xt=K?ss($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(I),H.add(et),m.toResourceId(et)},yt):De($,ne,f,E,yt);return Xt},yt={paramMap:W,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:V=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let V=0;V<me;V++)le.push(hs[V]?.t??"");const Ve=new Map;let Oe=me;const us=V=>{const U=Ve.get(V);if(U!==void 0)return U;const K=Oe;return Ve.set(V,Oe++),le.push(V),K},ce=(Ut("richstructure",d,f,E,yt),Ut("richdata",d,f,E,yt),new Map),Ie=new Map,Le=Ut("people",d,f,E);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const V=Ct.length;for(let U=0;U<V;U++){const K=Ct[U];ce.set(K.id,K),ce.set(K.displayName,K)}}const Te=Ut("themes",d,f,E,yt);let Ne=null;if(Te&&Te.entries){let V=Te.entries().next();V?.value?.[1]&&(Ne=V.value[1])}const ds=new u.Ol(Ne);let he=Ut("styles",d,f,E,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.ea(he)));const ps=Ut("workbooks",d,f,E,yt);await Promise.all(Ee);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Zy(gs);return H.forEach(V=>{V.deleteReference(I)}),m.endPersist(),fs}catch(d){let E="Unable to parse XLSX.";throw d instanceof u.Pe&&(E="Unable to open XLSX. There are too many rows or columns."),new Error(E,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./BQyDL6TxMqPmkugH.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((P,b)=>{const d={t:"z"},E=b.getCell().getStyle();if(!E.isNormal()){let f=E.getNumberFormat();f!==u.Ft.Type.General&&(f===u.Ft.Type.ShortDate?f="m/d/yyyy":f===u.Ft.Type.MediumDate?f="d-mmm-yy":f===u.Ft.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Ft.Type.ShortTime?f="h:mm":f===u.Ft.Type.MediumTime?f="h:mm AM/PM":f===u.Ft.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(P!==null)switch(b.getType()){case u.J.Number:d.t="n",d.v=P;break;case u.J.String:d.t="s",d.v=P;break;case u.J.Boolean:d.t="b",d.v=P;break;case u.J.Error:d.t="e",d.v=P.toString();case u.J.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const P=[];T["!merges"]=P;for(let b=0;b<S.merges.length;b++)P.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const P=[];T["!cols"]=P;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let E=0;E<b.length;E++){const f=b[E];for(let m=P.length;m<=f.min-1;m++)P.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++)P.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.Yt$1.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Pe,exports.i=Fs,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Yt$1.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ERF:{s:"Returns the error function",p:{lowerLimit:{d:"is the lower bound for integrating ERF"},upperLimit:{d:"is the upper bound for integrating ERF",v:0}}},"ERF.PRECISE":{s:"Returns the error function",p:{x:{d:"is the lower bound for integrating ERF.PRECISE"}}},ERFC:{s:"Returns the complementary error function",p:{x:{d:"is the lower bound for integrating ERF"}}}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CUBEKPIMEMBER:{s:"Returns a key performance indicator (KPI) property and displays the KPI name in the cell.",p:{connection:{d:"is the name of a connection to an OLAP cube"},kpiName:{d:"is the KPI name"},kpiProperty:{d:"is the KPI property"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBER:{s:"Returns a member or tuple from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member or tuple in the OLAP cube"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBERPROPERTY:{s:"Returns the value of a member property from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member in the OLAP cube"},kpiProperty:{d:"is the property name"}},h:"Unimplemented"},CUBERANKEDMEMBER:{s:"Returns the nth, or ranked, member in a set.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the set from which the element is to be retrieved"},rank:{d:"is the rank of the element to be retrieved"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBESET:{s:"Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the expression for the set"},caption:{d:"is the caption to be displayed in the cell"},sortOrder:{d:"is the sort order"},sortBy:{d:"is the sort by"}},h:"Unimplemented"},CUBESETCOUNT:{s:"Returns the number of items in a set.",p:{set:{d:"is the set whose elements are to be counted"}},h:"Unimplemented"},CUBEVALUE:{s:"Returns an aggregated value from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{}},h:"Unimplemented"}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DELAY:{s:"Returns the input value after a delay.",p:{time:{d:"the delay time in milliseconds. Default is 1000ms (1 second)."},input:{d:"returns the input."},label:{d:"optional label for the delay function.",v:"No label"}},h:"Testing"},WAIT:{s:"Starts waiting for event",p:{type:{d:"the type of message."},input:{d:"an optional dependency."}},h:"Testing"}};
@@ -1,12 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./BdPTNgv6BQFiJXiH.cjs");exports.fromBufferJSON=async(g,y)=>{let i=g;(function(s){if(s.byteLength<4)return!1;const u=new Uint8Array(s),c={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(c);for(let n=0;n<r.length;n++){const o=r[n],e=c[o];let a=!0;for(let t=0;t<e.length;t++)if(u[t]!==e[t]){a=!1;break}if(a)return o}return!1})(i)&&(i=await async function(s,u="gzip"){const c=new Blob([s]).stream(),r=new DecompressionStream(u),n=c.pipeThrough(r);return(await new Response(n).blob()).arrayBuffer()}(i));let b=new TextDecoder().decode(i);const w=JSON.parse(b),p={...y?.constructorOptions??{},json:w};return new j.Zy(p)},exports.toBufferJSON=async(g,y)=>{const i=await g.toJSON(),b=y?.whiteSpace??0;let w;y?.beforeWrite?.(g,i),w=b===0?JSON.stringify(i):function(u,c=2){const r=[];function n(o){const e=c*o;return r[e]===void 0&&(r[e]=" ".repeat(e)),r[e]}return function o(e,a,t,N){if(e==null||typeof e!="object")return JSON.stringify(e);const h=n(a),m=n(a+1);if(Array.isArray(e)){const f=e.length;if(f===0)return"[]";if(t!==0)return JSON.stringify(e);let l=`[
7
- `;for(let O=0;O<f;O++)l+=m+o(e[O],a+1,t+1,!0),O<f-1&&(l+=`,
8
- `);return l+=`
9
- `+h+"]",l}const J=Object.keys(e),d=J.length;if(d===0)return"{}";if(!(t<2))return JSON.stringify(e);let S=`{
10
- `;N||(t=0);for(let f=0;f<d;f++){const l=J[f];S+=m+JSON.stringify(l)+": "+o(e[l],a+1,t,!1),f<d-1&&(S+=`,
11
- `)}return S+=`
12
- `+h+"}",S}(u,0,0,!1)}(i,b);let p=new TextEncoder().encode(w);const s=y?.compress??!0;return s&&(p=await async function(u,c="gzip"){const r=new ReadableStream({start(e){e.enqueue(u),e.close()}}),n=new CompressionStream(c),o=r.pipeThrough(n);return(await new Response(o).blob()).arrayBuffer()}(p,typeof s=="string"?s:void 0)),p};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ACCRINT:{p:{issue:{d:"is the security's issue date, expressed as a serial date number"},firstInterest:{d:"is the security's first interest date, expressed as a serial date number"},settlement:{d:"is the security's settlement date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0},calcMethod:{d:"is a logical value: to accrued interest from issue date = TRUE; to calculate from last coupon payment date = FALSE",v:!0}}},ACCRINTM:{s:"Returns the accrued interest for a security that pays interest at maturity",p:{issue:{d:"is the security's issue date, expressed as a serial date number"},settlement:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},AMORLINC:{s:"Returns the prorated linear depreciation of an asset for each accounting period.",p:{cost:{d:"is the cost of the asset"},datePurchased:{d:"is the date the asset is purchased"},firstPeriod:{d:"is the date of the end of the first period"},salvarge:{d:"is the salvage value at the end of life of the asset."},period:{d:"is the period"},rate:{d:"is the rate of depreciation"},basis:{d:"year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.",v:0}},h:"Unimplemented"},COUPDAYBS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPDAYS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}}},COUPNCD:{s:"Returns the next coupon date after the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPNUM:{s:"Returns the number of coupons payable between the settlement date and maturity date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPPCD:{s:"Returns the previous coupon date before the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},CUMIPMT:{s:"Returns the cumulative interest paid between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},CUMPRINC:{s:"Returns the cumulative principal paid on a loan between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},DB:{s:"Returns the depreciation of an asset for a specified period using the fixed-declining balance method",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},month:{d:"is the number of months in the first year",v:12}}},DDB:{s:"Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},factor:{d:"is the rate at which the balance declines",v:2}}},DISC:{s:"Returns the discount rate for a security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}}},DOLLARDE:{s:"Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number",p:{fractionalDollar:{d:"is a number expressed as a fraction"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DOLLARFR:{s:"Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction",p:{decimalDollar:{d:"is a decimal number"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DURATION:{s:"Returns the annual duration of a security with periodic interest payments",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},EFFECT:{s:"Returns the effective annual interest rate",p:{nominalRate:{d:"is the nominal interest rate"},npery:{d:"is the number of compounding periods per year"}}},FV:{s:"Returns the future value of an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value of the investment",v:0},type:{d:"Indicates when pmts are due.",v:0}}},FVSCHEDULE:{s:"Returns the future value of an initial principal after applying a series of compound interest rates",p:{principal:{d:"is the present value"},schedule:{d:"is an array of interest rates to apply"}}},INTRATE:{s:"Returns the interest rate for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},IPMT:{s:"Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},per:{d:"is the period for which you want to find the interest and must be in the range 1 to Nper"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1",v:0}}},IRR:{s:"Returns the internal rate of return for a series of cash flows",p:{values:{d:"is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return"},guess:{d:"is a number that you guess is close to the result of IRR",v:.1}},h:"Unimplemented"},ISPMT:{s:"Returns the interest paid during a specific period of an investment",p:{rate:{d:"is the interest rate"},per:{d:"period for which you want to find the interest"},nper:{d:"number of payment periods in an investment"},pv:{d:"lump sum amount that a series of future payments is right now"}}},MDURATION:{s:"Returns the Macauley modified duration for a security with an assumed par value of $100",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},MIRR:{s:"Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash",p:{values:{d:"is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods"},financeRate:{d:"is the interest rate you pay on the money used in the cash flows"},reinvestRate:{d:"is the interest rate you receive on the cash flows as you reinvest them"}}},NOMINAL:{s:"Returns the annual nominal interest rate",p:{effectiveRate:{d:"is the effective interest rate"},npery:{d:"is the number of compounding periods per year@param npery"}}},NPER:{s:"Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value, or the lump-sum amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},NPV:{s:"Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values)",p:{rate:{d:"is the rate of discount over the length of one period"},value:{d:"value1,value2,... are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period"}}},ODDFPRICE:{s:"Returns the price per $100 face value of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDFYIELD:{s:"Returns the yield of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLPRICE:{s:"Returns the price per $100 face value of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLYIELD:{s:"Returns the yield of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PDURATION:{s:"Returns the number of periods required by an investment to reach a specified value",p:{rate:{d:"is the interest rate"},pv:{d:"is the present value of the investment"},fv:{d:"is the desired future value of the investment"}}},PMT:{s:"Calculates the payment for a loan based on constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},PRICE:{s:"Returns the price per $100 face value of a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PRICEDISC:{s:"Returns the price per $100 face value of a discounted security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},discount:{d:"is the security's discount rate"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:0}}},PRICEMAT:{s:"Returns the price per $100 face value of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PV:{s:"Returns the present value of an investment: the total amount that a series of future payments is worth now",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods in an investment"},pmt:{d:"is the payment made each period and cannot change over the life of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},RATE:{s:"Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR",p:{nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period and cannot change over the life of the loan or investment"},pv:{d:"is the present value: the total amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0},guess:{d:"is your guess for what the rate will be",v:.1}}},RECEIVED:{s:"Returns the amount received at maturity for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},discount:{d:"is the security's discount rate"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},RRI:{s:"Returns an equivalent interest rate for the growth of an investment",p:{nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value of the investment"}}},SLN:{s:"Returns the straight-line depreciation of an asset for one period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"}}},STOCKHISTORY:{s:"Returns an array of historical quote data for a symbol and date range you specify.",p:{stock:{d:"Symbol of financial instrument to be considered or a Stock data type."},startDate:{d:"First date to return data from."},endDate:{d:"Last date to return data from."},interval:{d:"A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly",v:0},headers:{d:"A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header",v:1},properties:{d:"properties1,properties2,... A number indicating which column of data to return; 0 through 5",v:"[0, 1, 2, 3, 4]"}},h:"Unimplemented"},SYD:{s:"Returns the sum-of-years' digits depreciation of an asset for a specified period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},per:{d:"is the period and must use the same units as Life"}}},TBILLEQ:{s:"Returns the bond-equivalent yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLPRICE:{s:"Returns the price per $100 face value for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLYIELD:{s:"Returns the yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},pr:{d:"is the Treasury Bill's price per $100 face value"}}},VDB:{s:"Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},factor:{d:"is the rate at which the balance declines",v:2},noSwitch:{d:"switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE; do not switch = TRUE",v:!1}},h:"Unimplemented"},XIRR:{s:"Returns the internal rate of return for a schedule of cash flows",p:{values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"},guess:{d:"is a number that you guess is close to the result of XIRR",v:.1}},h:"Unimplemented"},XNPV:{s:"Returns the net present value for a schedule of cash flows",p:{rate:{d:"is the discount rate to apply to the cash flows"},values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"}}},YIELD:{s:"Returns the yield on a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDDISC:{s:"Returns the annual yield for a discounted security. For example, a treasury bill",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDMAT:{s:"Returns the annual yield of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("react"),r=require("@mui/material"),v=require("@mui/icons-material"),t=require("./BdPTNgv6BQFiJXiH.cjs"),y=require("@mui/system"),I=l.memo(C=>{const{label:m,value:u,options:a,onSelect:d,tabIndex:h=0,...R}=C,[k,O]=l.useState(()=>z(u,a));l.useEffect(()=>{O(z(u,a))},[u,a]);const S=t.T(f=>{O(f.target.value),d?.(a[f.target.value])},[d,a]),c=l.useMemo(()=>Object.keys(a).map(f=>i.jsx(r.MenuItem,{value:f,children:f},f)),[a]);return i.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[i.jsx(r.InputLabel,{children:m}),i.jsx(r.Select,{inputProps:{tabIndex:h},value:k,label:m,onChange:S,sx:{backgroundImage:`linear-gradient(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.getOverlayAlpha(5))})`},...R,children:c})]})}),A={Workbook:"workbook",Sheet:"sheet"},H={enter:140,exit:140},G={Formulas:t.xe.Content.Formulas,Values:t.xe.Content.Values,Notes:t.xe.Content.Notes,Comments:t.xe.Content.Comments},X={...G};delete X.Values;const _={"By Rows":!0,"By Columns":!1},z=(C,m)=>{const u=Object.keys(m);for(let a=0;a<u.length;a++){const d=u[a];if(m[d]===C)return d}},U=l.memo(C=>{const{replace:m=!1,findText:u,replaceText:a,findOptions:d,replaceOptions:h,title:R,onHide:k,onFindOrReplace:O,...S}=C,c=l.useRef(null),f=l.useRef(null),B=l.useRef(null),D=l.useRef(null),P=l.useRef(null),K=l.useRef(null),M=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[$,b]=l.useState(!1),[w,J]=l.useState(!1),[x,E]=l.useState(m),[L,F]=l.useState(!1),[Z,W]=l.useState(!1),[s,p]=l.useState({findText:null,replaceText:null,replace:m,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:t.k.Orientation.Row,fields:[t.xe.Content.Formulas]},scope:A.Sheet}),j=t.T(async(e,n,o,T)=>{if(!O)return;const g={...s};g.replaceOptions={...g.replaceOptions},g.findOptions={...g.findOptions},g.replaceOptions.maxCount=o?void 0:1,g.replace=n,n&&s.findOptions.fields?.[0]===t.xe.Content.Values&&(g.findOptions.fields=[t.xe.Content.Formulas]),g.findOptions.reverse=!e;const Y=await O({autoFocus:T,...g});F(Y===0)},[s,O]);l.useEffect(()=>{F(!1)},[s,w,x]);const q=t.T((e,n)=>{if(e.keyCode===t.eo.Enter){if(!s.findText)return;let o=!0,T=!1;e.shiftKey&&(o=!1),n?(e.ctrlKey&&e.altKey&&(T=!0),M(e,T?K.current:P.current)):M(e,o?D.current:B.current),j(o,n,T,!1)}},[s]),V=l.useRef(null);l.useLayoutEffect(()=>{p(e=>{const n={...e};n.findText=u&&u.length>0?u:e.findText??"",b(!0),a!==void 0&&(n.replaceText=a),d&&(n.findOptions={...n.findOptions,...d}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),h&&(n.replaceOptions={...n.replaceOptions,...h}),s.findOptions.fields?.[0]||(s.findOptions.fields=[t.xe.Content.Formulas]);const o=!(!h&&a===void 0);return o&&E(o),n}),Z||V.current?.focus()},[u,a,d,h]),l.useEffect(()=>{x?(s.findOptions.fields[0],t.xe.Content.Values):b(!0)},[x]),l.useEffect(()=>{if($&&c.current&&s.findText===c.current.value)return c.current===document.activeElement||c.current.contains(document.activeElement)?(c.current?.select(),void b(!1)):void c.current.addEventListener("focus",()=>{c.current?.select(),b(!1)},{once:!0})},[$,s]);const[Q,{width:N}]=t.useMeasure();return i.jsx(t.Fn,{title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",refWindow:V,onHide:k,onFocus:()=>W(!0),onBlur:()=>{W(!1),F(!1)},PaperProps:{elevation:Z?3:1},...S,children:i.jsxs(r.DialogContent,{dividers:!0,ref:Q,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)E(!0),c.current?.contains(document.activeElement)&&f.current?.focus();else if(e.key==="f"&&e.ctrlKey)c.current?.focus();else if(e.key==="c"&&e.altKey)p(n=>{const o={...n};return o.findOptions.matchCase=!n.findOptions.matchCase,o});else if(e.key==="e"&&e.altKey)p(n=>{const o={...n};return o.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,o});else{if(e.key!=="r"||!e.altKey)return;p(n=>{const o={...n};return o.findOptions.useRegex=!n.findOptions.useRegex,o})}e.preventDefault()},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[i.jsx(t.tl,{selected:w,onSelectToggle:e=>{J(e)},preventFocus:!0,label:"Toggle Additional Options",icon:t.y5(i.jsx(t.Zi,{}))}),i.jsx(t.tl,{selected:x,onSelectToggle:e=>{E(e)},preventFocus:!0,label:"Toggle Replace",icon:t.y5(i.jsx(t.Pi,{})),shortcut:{key:x?"F":"H",modifiers:[t.Z.Ctrl]}})]}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[i.jsx(r.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:N>460?"20em":void 0,backgroundImage:`linear-gradient(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:c,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:i.jsx(r.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:i.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[i.jsx(t.tl,{selected:s.findOptions.matchCase,onSelectToggle:e=>{p(n=>{const o={...n};return o.findOptions.matchCase=e,o})},label:"Match Case",shortcut:{key:"C",modifiers:[t.Z.Alt]},icon:t.y5(i.jsx(t.Ri,{}))}),i.jsx(t.tl,{selected:s.findOptions.matchEntireCell,onSelectToggle:e=>{p(n=>{const o={...n};return o.findOptions.matchEntireCell=e,o})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[t.Z.Alt]},icon:t.y5(i.jsx(t.Ii,{}))}),i.jsx(t.tl,{selected:s.findOptions.useRegex,onSelectToggle:e=>{p(n=>{const o={...n};return o.findOptions.useRegex=e,o})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[t.Z.Alt]},icon:t.y5(i.jsx(t.ji,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>L?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>L?`${e.palette.error.main} !important`:void 0}},value:s.findText??"",onChange:e=>{p(n=>{const o={...n};return o.findText=e.target.value,o})},onKeyDown:e=>q(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(t.tl,{selected:s.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:B,label:"",shortcut:{key:"Enter",modifiers:[t.Z.Shift]},icon:t.y5(s.findOptions.orientation!==t.k.Orientation.Column?i.jsx(v.ArrowBack,{}):i.jsx(v.ArrowUpward,{})),disabled:!s.findText}),i.jsx(t.tl,{selected:!s.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:D,label:"Next Match",shortcut:{key:"Enter"},icon:t.y5(s.findOptions.orientation!==t.k.Orientation.Column?i.jsx(v.ArrowForward,{}):i.jsx(v.ArrowDownward,{})),disabled:!s.findText})]}),i.jsx(r.Collapse,{in:x,timeout:H,onExit:()=>{c.current?.focus()},children:i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[i.jsx(r.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${y.alpha("#fff",t.getOverlayAlpha(5))}, ${y.alpha("#fff",t.getOverlayAlpha(5))})`},inputProps:{ref:f,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:s.replaceText??"",onChange:e=>{p(n=>{const o={...n};return o.replaceText=e.target.value,o})},onKeyDown:e=>q(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(t.tl,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:P,label:"Replace",shortcut:{key:"Enter"},icon:t.y5(i.jsx(t.Fi,{})),disabled:!s.findText}),i.jsx(t.tl,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:K,label:"Replace All",shortcut:{key:"Enter",modifiers:[t.Z.Ctrl,t.Z.Alt]},icon:t.y5(i.jsx(t.$i,{})),disabled:!s.findText})]})})]})]}),i.jsx(r.Collapse,{in:w,timeout:H,onExit:()=>{c.current?.focus()},children:i.jsxs(r.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[i.jsx(t.At,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:N>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(I,{label:"Within",value:s.scope,options:A,onSelect:e=>{p(n=>{const o={...n};return o.scope=e,o})}}),i.jsx(I,{label:"Search",value:s.findOptions.orientation!==t.k.Orientation.Column,options:_,onSelect:e=>{p(n=>{const o={...n};return o.findOptions.orientation=e?t.k.Orientation.Row:t.k.Orientation.Column,o})}}),i.jsx(I,{label:"Look in",value:x&&s.findOptions.fields?.[0]===t.xe.Content.Values?t.xe.Content.Formulas:s.findOptions.fields?.[0],options:x?X:G,onSelect:e=>{p(n=>{const o={...n};return o.findOptions.fields=[e],o})}})]})]})})]})})});exports.FindReplaceWindow=U,exports.ScopeOptions=A,exports.default=U;