@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
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
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("./CkdT8JSum0WmJ7Tn.cjs"),p=require("./CtKfykOLBwpCtsPd.cjs"),d=require("@sheetxl/sdk");class G{constructor(t){this.list=t}get length(){return this.list.length}item(t){return this.list[t]}forEach(t,e){for(let s=0;s<this.list.length;s++)t(this.list[s],s,this)}}const W=u=>u===!0||u==="1"||u==="on"||u==="true"||u!==!1&&u!=="0"&&u!=="off"&&u!=="false"&&null,X=u=>{const t=parseInt(u);return isNaN(t)?null:t},$=u=>{const t=parseFloat(u);return isNaN(t)?null:t},K=new Map;class S{constructor(t,e,s,r,o,i=null,n){const l=(c,h,g)=>n?.getRef?.(c,h,g,n?.parsedRefs),a=c=>n?.getRefs?.(c,n?.parsedRefs);this._parent=t,this.sharedShared=e,this.currentPath=s,this.elemRoot=r,this.jsonRoot=o,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs):(i&&(this._fileLocation=i),l&&a&&(this._getRef=l),a&&(this._getRefs=a),this._onWarning=n?.onWarning,this._addPerson=n?.addPerson)}getRef(t,e=!1){return this._getRef?.(t,this._fileLocation,e)??null}getRelationships(){return this._getRefs(this._fileLocation)??K}getPath(){return this.currentPath}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(t){this._onWarning?this._onWarning(t):this._parent?this._parent?.warn?.(t):console.warn(t)}addPerson(t){return this._addPerson?this._addPerson(t):this._parent?this._parent?._addPerson?.(t):null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(t,e){if(!t)return e;let s=[e];const r=t.split("/");for(let o=0;o<r.length;o++){const i=r[o];if(i===""||i===".")continue;let n=[];for(let l=0;l<s.length;l++){const a=s[l],c=a.childNodes;for(let h=0;c&&h<c.length;h++){const g=a.childNodes[h];g.localName!==i&&i!=="*"||n.push(g)}}s=n}return s.length===1?s[0]:s.length===0?null:new G(s)}getFromPath(t,e){return I.Yt.getFromPath(t,e)}setToPath(t,e,s){return I.Yt.setToPath(t,e,s)}getValAttrAsString(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?s.getAttribute("val")??null:null}getValAttrAsBoolean(t,e,s=!1){let r=this.evaluate(t,e);if(!r)return null;const o=r.hasAttribute("val")?r.getAttribute("val"):void 0;return o==null?s:o==="1"||o==="on"||o==="true"||o!=="0"&&o!=="off"&&o!=="false"&&s}getValAttrAsInteger(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseInt(s.getAttribute("val"))??null:null}getValAttrAsFloat(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseFloat(s.getAttribute("val"))??null:null}get BOOLEAN_COPY(){return W}get INT_COPY(){return X}get FLOAT_COPY(){return $}copyFromAttribute(t,e,s,r=e,o=null){if(!t||!s||!t.hasAttribute(e))return;let i=t.getAttribute(e);if(o){if(Array.isArray(o)){for(let n=0;n<o.length;n++)if(i==null||(i=o[n](i),i==null))return}else if(i==null||(i=o(i),i==null))return}this.setToPath(s,r,i)}}class V{constructor(t){this.jsonKey=t}visit(t,e,s){const r={};return s[this.jsonKey]=r,r}}class q{visit(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);i.nodeType===1&&i.localName==="Relationship"&&this.processRelationship(t,i,s)}return s}processRelationship(t,e,s){const r={};t.copyFromAttribute(e,"Target",r,"target"),t.copyFromAttribute(e,"Type",r,"type"),t.copyFromAttribute(e,"TargetMode",r,"targetMode"),s[e.getAttribute("Id")]=r}}const D=(u,t)=>{if(u||!u.hasAttribute("rot"))return;const e=u.getAttribute("rot"),s=I.Yt.roundAccurately(p.p(e),2);s!==-1e3&&(t.rotation=s)},f=(u,t,e,s,r)=>{const o=u.getValAttrAsString(s,t);o!==null&&(e[r]=o)},A=(u,t,e,s,r=s,o=null)=>{const i=u.getValAttrAsBoolean(s,t,o);i!==null&&(e[r]=i)},C=(u,t,e,s,r)=>{const o=u.getValAttrAsInteger(s,t);o!==null&&(e[r]=o)},y=(u,t,e,s,r,o=1)=>{const i=u.getValAttrAsFloat(s,t);i!==null&&(e[r]=i*o)};class H{visit(t,e,s){return A(t,e,s,"roundedCorners","roundedCorners"),C(t,e,s,".//AlternateContent/Fallback/style","styleId"),s.range=null,s}afterVisit(t,e,s){let r={};s.types=r;let o={},i=0,n={},l=0,a=t.getVisitorParamsState().get("axes");const c=t.getVisitorParamsState().get("types");for(let m=0;m<c.length;m++){const b=c[m];if(b.xAxisId){const v=b.xAxisId,P=a.get(v);o[m+""]=P,b.offsetXAxis=m,delete b.xAxisId,s.xAxes=o,o.length=++i}if(b.yAxisId){const v=b.yAxisId,P=a.get(v);n[m+""]=P,b.offsetYAxis=m,delete b.yAxisId,s.yAxes=n,n.length=++l}r[m+""]=b}r.length=c.length;const h=t.getVisitorParamsState().get("series");if(!h||h.length===0)return;const g={};s.series=g;for(let m=0;m<h.length;m++)g[m+""]=h[m];g.length=h.length}}class J{visit(t,e,s){return A(t,e,s,"plotVisOnly","plotVisOnly"),f(t,e,s,"dispBlanksAs","dispBlanksAs"),A(t,e,s,".//extLst/ext/dataDisplayOptions16/dispNaAsBlank","dispNaAsBlank"),A(t,e,s,"showDLblsOverMax","showDLblsOverMax"),s}afterVisit(t,e,s){try{const r=t.getValAttrAsBoolean("autoTitleDeleted",e),o=t.evaluate("title",e);t.setToPath(s,"title.shown",!(r===!0||!o));const i=t.evaluate("legend",e);t.setToPath(s,"legend.shown",i!==null)}catch(r){throw new Error("Unexpected Error parsing Chart: "+r)}}}class Q{visit(t,e,s){let r={};return s.plotArea=r,r}}class O{EnumMappings(){}static fromOoxmlGradientType(t){return t==="circle"?"radial":t}static fromOoxmlLineCap(t){if(t==="rnd")return"round";if(t==="flat")return"butt";if(t==="sq")return"square";throw new Error("Invalid lineCap type: "+t)}static fromOoxmlCompound(t){return t==="sng"?"single":t}static fromOoxmlAlignment(t){return t==="ctr"?"center":t}}class M{visit(t,e,s){}processStroke(t,e,s){const r={},o=t.evaluate("ln",e);if(o){o.hasAttribute("algn")&&(r.align=O.fromOoxmlAlignment(o.getAttribute("algn"))),o.hasAttribute("cap")&&(r.lineCap=O.fromOoxmlLineCap(o.getAttribute("cap"))),o.hasAttribute("cmpd")&&(r.compound=O.fromOoxmlCompound(o.getAttribute("cmpd"))),o.hasAttribute("w")&&(r.width=p.t(o.getAttribute("w")));const i=t.evaluate("miter",o);i&&(r.lineJoin="miter",i.hasAttribute("lim")&&(r.miter=parseFloat(i.getAttribute("lim")))),t.evaluate("bevel",o)&&(r.lineJoin="bevel"),t.evaluate("round",o)&&(r.lineJoin="round");const n=t.evaluate("custDash",o);if(n){const c=t.evaluate("ds",n);if(c&&c.length>0){let h="";for(let g=0;g<c.length;g++){const m=c.item(g);h+=p.a(m.getAttribute("d"))+","+p.a(m.getAttribute("sp"))}r.dash=h}}const l=t.evaluate("prstDash",o);l&&l.hasAttribute("val")&&(r.dash=l.getAttribute("val")),this.parseEndElement(t,o,r,"headEnd","head"),this.parseEndElement(t,o,r,"tailEnd","tail");const a=this.processFill(t,o,s);r.fill=a}return r}parseEndElement(t,e,s,r,o){const i=t.evaluate(r,e);if(i&&(i.hasAttribute("type")&&(s[o+"Type"]=i.getAttribute("type")),i.hasAttribute("len")||i.hasAttribute("w"))){const n=i.getAttribute("len")?i.getAttribute("len"):"med",l=i.getAttribute("w")?i.getAttribute("w"):"med";s[o+"Size"]=n+"-"+l}}processFill(t,e,s){const r={};if(t.evaluate("noFill",e))return r.none=!0,r;const o=t.evaluate("solidFill",e);if(o){const a=this.processAdjColor(t,o);return a&&(r.solid=a),r}const i=t.evaluate("gradFill",e);if(i){i.hasAttribute("rotWithShape")&&(r.isRotated=i.getAttribute("rotWithShape")==="1");const a=this.processGradFill(t,i);return r.gradient=a,r}const n=t.evaluate("pattFill",e);if(n){const a=this.processPatternFill(t,n);return r.pattern=a,r}const l=t.evaluate("blipFill",e);if(l){l.hasAttribute("rotWithShape")&&(r.isRotated=p.b(l.getAttribute("rotWithShape"))),l.hasAttribute("dpi")&&(r.dpi=l.getAttribute("dpi"));const a=this.processImageFill(t,l);return r.image=a,r}return r.none=!0,r}processGradFill(t,e){const s={},r=t.evaluate("lin",e);if(r){if(s.type="linear",r.hasAttribute("ang")){const c=p.p(r.getAttribute("ang"));s.angle=c}if(r.hasAttribute("scaled")){const c=p.b(r.getAttribute("scaled"));s.scaled=c}}const o={};e.hasAttribute("flip")&&(o.mirror=e.getAttribute("flip")),Object.keys(o).length>0&&(s.tile=o);const i=t.evaluate("path",e);if(i){i.hasAttribute("path")&&(s.type=O.fromOoxmlGradientType(i.getAttribute("path")));const c=t.evaluate("fillToRect",i);c&&(s.fillTo=this.getRect(c))}const n=t.evaluate("tileRect",e);n&&(s.tile.bounds=this.getRect(n));const l=[],a=t.evaluate("gsLst/gs",e);for(let c=0;a&&c<a.length;c++){const h=a.item(c),g={offset:p.a(h.getAttribute("pos")),color:this.processAdjColor(t,h)};l.push(g)}return l.length>0&&(s.stops=l),s}getRect(t){const e={};return t.hasAttribute("t")&&(e.t=p.a(t.getAttribute("t"))),t.hasAttribute("l")&&(e.l=p.a(t.getAttribute("l"))),t.hasAttribute("b")&&(e.b=p.a(t.getAttribute("b"))),t.hasAttribute("r")&&(e.r=p.a(t.getAttribute("r"))),Object.keys(e).length===0?null:e}processImageFill(t,e){return{ref:"https://cdn.sheetxl.com/public/logo-color-square-onwhite.png",tile:!1}}processPatternFill(t,e){const s={},r=e.getAttribute("prst");s.type=r;const o=t.evaluate("bgClr",e);if(o){const n=this.processAdjColor(t,o);n&&(s.background=n)}const i=t.evaluate("fgClr",e);if(i){let n=this.processAdjColor(t,i);n&&(s.foreground=n)}return s}processAdjColor(t,e){const s=t.evaluate("hslClr",e);if(s)return this.processHslClr(t,s);const r=t.evaluate("prstClr",e);if(r)return this.processClrWithValAttribute(t,r);const o=t.evaluate("schemeClr",e);if(o)return this.processClrWithValAttribute(t,o);const i=t.evaluate("sysClr",e);if(i)return this.processClrWithValAttribute(t,i);const n=t.evaluate("scrgbClr",e);if(n)return this.processScrgbClrElement(t,n);const l=t.evaluate("srgbClr",e);return l?this.processSrgbClrElement(t,l):null}processScrgbClrElement(t,e){let s="lrgba("+p.a(e.getAttribute("r"))+","+p.a(e.getAttribute("g"))+","+p.a(e.getAttribute("b"))+")";return s+=this.processAdjustments(t,e),s}processSrgbClrElement(t,e){let s=e.getAttribute("val");return s+=this.processAdjustments(t,e),s}processHslClr(t,e){let s="hsl("+p.p(e.getAttribute("hue"))+","+p.a(e.getAttribute("sat"))+","+p.a(e.getAttribute("lum"))+")";return s+=this.processAdjustments(t,e),s}processClrWithValAttribute(t,e){const s=e.getAttribute("val");if(!s)return;let r=s;return r+=this.processAdjustments(t,e),r}processAdjustments(t,e){let s="";const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1){let n=i.localName;s+=n==="hue"||n==="hueOff"||n==="hueMod"?this.processAdjustmentElement(t,e,n,6e4):n==="gray"||n==="comp"||n==="inv"||n==="gamma"||n==="invGamma"?this.processAdjustmentElement(t,e,n,1):this.processAdjustmentElement(t,e,n)}}return s}processAdjustmentElement(t,e,s,r=1e3){const o=t.evaluate(s,e);if(!o)return"";const i=o.getAttribute("val");return i?` ${s} ${!i||parseFloat(i)/r}`:` ${s}`}}class L extends M{visit(t,e,s){try{const r=t.evaluate("xfrm",e);if(r){D(r,s);const l={x:0,y:0,width:0,height:0},a=t.evaluate("off",r);a&&(l.x=p.c(a.getAttribute("x"))??0,l.y=p.c(a.getAttribute("y"))??0);const c=t.evaluate("ext",r);a&&(l.width=p.c(c.getAttribute("cx"))??0,l.height=p.c(c.getAttribute("cy"))??0),s.bounds=l}const o=t.evaluate("prstGeom",e);o?.hasAttribute("prst")?s.geometry=o?.getAttribute("prst"):t.evaluate("customGeom",e)&&console.warn("customGeom not supported yet");const i=this.processFill(t,e,s);i&&Object.keys(i).length>0&&(s.fill=i);const n=this.processStroke(t,e,s);return n&&Object.keys(n).length>0&&(s.stroke=n),s}catch(r){throw console.warn(r),new Error("Unexpected Error parsing Shape Properties element")}}}class N{visit(t,e,s){let r={};if(f(t,e,r,"grouping","grouping"),A(t,e,r,"varyColors","varyColors"),y(t,e,r,"gapWidth","gapWidth",.01),y(t,e,r,"overlap","overlap",.01),this.parseType(t,e,r),C(t,e,r,"bubbleScale","bubbleScale"),A(t,e,r,"showNegBubbles","showNegativeBubbleValues"),A(t,e,r,"sizeRepresents","bubbleSizeRepresentsWidth"),C(t,e,r,"firstSliceAng","startAngle"),C(t,e,r,"holeSize","holeSize"),f(t,e,r,"scatterStyle","scatterStyle"),this.parseAxisIds(t,e,r),Object.keys(r).length>0){let o=t.getVisitorParamsState().get("types");o||(o=[],t.getVisitorParamsState().set("types",o)),o.push(r)}return r}parseType(t,e,s){switch(e.localName){case"areaChart":s.type="area";break;case"bubbleChart":s.type="bubble";break;case"doughnutChart":case"ofPieType":case"pieChart":s.type="pie";break;case"lineChart":s.type="line";break;case"scatterChart":s.type="scatter"}}parseAxisIds(t,e,s){const r=t.evaluate("axId",e);if(r.length===0)return;const o=r.item(0).getAttribute("val");s.xAxisId=o;const i=r.item(1).getAttribute("val");s.yAxisId=i}}class Z extends N{parseType(t,e,s){const r=t.getValAttrAsString("barDir",e);r&&(s.type=r==="col"?"column":"bar")}}class w{constructor(t){this.jsonKey=t}visit(t,e,s){let r={},o=r,i=t.getValAttrAsString("idx",e);i!==null&&(o={},o[i]=r);const n=t.getValAttrAsBoolean("delete",e);this.parseNumFormat(t,e,r),n===!0?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(A(t,e,r,"showBubbleSize","showBubbleSize"),A(t,e,r,"showCatName","showCatName"),A(t,e,r,"showLeaderLines","showLeaderLines"),A(t,e,r,"showPercent","showPercentage"),A(t,e,r,"showSerName","showSerName"),A(t,e,r,"showVal","showVal"),A(t,e,r,"showLegendKey","showLegendKey"));const l=t.evaluate("separator",e);return l!==null&&(r.separator=l.textContent),f(t,e,r,"dLblPos","position"),s[this.jsonKey]=o,r}parseNumFormat(t,e,s){const r=t.evaluate("numFmt",e);if(r){const o=r.getAttribute("formatCode");s.formatCode=o,r.hasAttribute("sourceLinked")&&(s.sourceLinked=r.getAttribute("sourceLinked")==="1")}}}const U=(u,t,e)=>{if(u.getValAttrAsBoolean("invertIfNegative",t)===!0)if(u.evaluate("extLst/ext/invertSolidFillFmt",t)){if(e.fill&&e.fillNegative){const s=u.getFromPath(e,"fill.solid.adjs");s&&u.setToPath(e,"fillNegative.solid.adjs",s)}}else{const s={val:"FFFFFF"},r={};r.solid=s,e.fillNegative=r;const o={val:"000000"},i={};i.solid=o;const n={};n.fill=i,e.strokeNegative=n}};class tt{visit(t,e,s){const r={};C(t,e,r,"explosion","explosion");let o=t.evaluate("cat/*/f",e);o||(o=t.evaluate("xVal/*/f",e));let i=null;o!==null&&o.firstChild!==null&&(i=o.firstChild.nodeValue),o||(o=t.evaluate("cat/strLit",e),o||(o=t.evaluate("cat/numLit",e)),o&&(i=this.parsePointsAsString(t,o))),i!==null&&(r.xRange=i);let n=t.evaluate("val/*/f",e);n||(n=t.evaluate("yVal/*/f",e));let l=null;n&&n.firstChild&&(l=n.firstChild.nodeValue),n||(n=t.evaluate("val/numLit",e),n!==null&&(l=this.parsePointsAsString(t,n))),l!==null&&(r.valRange=l),this.parseTitleRangeOrValue(t,e,r),C(t,e,r,"idx","idx"),A(t,e,r,"smooth","smooth");const a=t.getVisitorParamsState().get("types").length-1;r.offsetChart=a;let c=t.getVisitorParamsState().get("series");return c||(c=[],t.getVisitorParamsState().set("series",c)),c.push(r),r}parseTitleRangeOrValue(t,e,s){const r=t.evaluate("tx/strRef/f",e);if(r!==null){const o=r.firstChild.nodeValue;t.setToPath(s,"title.range",o)}else{const o=t.evaluate("tx/v",e);o!==null&&t.setToPath(s,"title.text.simpleRun",o.firstChild.nodeValue)}}parsePointsAsString(t,e){let s="{";const r=t.getValAttrAsInteger("ptCount",e),o=t.evaluate("pt",e),i=[];for(let n=0;o&&r&&n<r;n++){let l=null,a=t.evaluate("pt[@idx='"+n+"']/v",e);a instanceof Node&&(l=a.textContent),i[n]=l}for(let n=0;n<i.length;n++)n>0&&(s+=","),i[n]!==void 0&&(s+=i[n]);return s+="}",s}afterVisit(t,e,s){U(t,e,s);let r=t.getFromPath(s,"points");if(r){const o=Object.keys(r);for(let i=0;i<o.length;i++){const n=o[i],l=t.getFromPath(r,n);if(!l)continue;let a=t.getFromPath(l,"markers");a&&(t.setToPath(s,"markers.points."+n,a),delete l.markers)}}}}class et{DataPointVisitor(){}visit(t,e,s){let r=t.getFromPath(s,"points"),o=null;r?o=r:(o={},t.setToPath(s,"points",o));let i={},n=t.getValAttrAsString("idx",e);return n!==null&&(o[n]=i),A(t,e,i,"bubble3D","bubble3D"),C(t,e,i,"explosion","explosion"),U(t,e,i),i}}class rt{visit(t,e,s){const r=e.parentNode.localName;if(r==="ser"||r==="dPt"){const o={},i=t.getValAttrAsString("size",e);i!==null&&(o.size=i);const n=t.getValAttrAsString("symbol",e);return n&&(o.type=n),s.markers=o,o}return null}}class x{visit(t,e,s){let r={};this.parseScaling(t,e,r),y(t,e,r,"majorUnit","majorUnits"),y(t,e,r,"minorUnit","minorUnits"),A(t,e,r,"delete","shown"),this.parseOrientation(t,e,r),this.parseNumFormat(t,e,r),f(t,e,r,"majorTickMark","majorTickMarks"),f(t,e,r,"minorTickMark","minorTickMarks"),f(t,e,r,"crosses","crosses"),y(t,e,r,"crossesAt","crosses"),f(t,e,r,"crossBetween","crossBetween"),this.parseLabelAlign(t,e,r),C(t,e,r,"lblOffset","labelOffset"),f(t,e,r,"tickLblPos","labelPosition");const o=t.getValAttrAsInteger("noMultiLvlLbl",e);r.labelMultiLevel=o!==null&&o===0,C(t,e,r,"tickMarkSkip","tickMarkSkip"),C(t,e,r,"tickLblSkip","labelInterval"),this.parseDisplayCustOrBuiltInUnit(e,t,r),this.parseTimeUnits(t,e,r,"majorUnitDates","majorTimeUnit","majorUnit"),this.parseTimeUnits(t,e,r,"minorUnitDates","minorTimeUnit","minorUnit"),f(t,e,r,"baseTimeUnit","baseUnitDates"),t.getVisitorParamsState().get("axes")||t.getVisitorParamsState().set("axes",new Map);const i=t.getValAttrAsString("axId",e);return t.getVisitorParamsState().get("axes").set(i,r),r}parseTimeUnits(t,e,s,r,o,i){const n={};let l=t.getValAttrAsString(o,e);if(l!==null){n.dem=l;let a=t.getValAttrAsString(i,e);n.amt=a}Object.keys(n).length>0&&(s[r]=n)}parseDisplayCustOrBuiltInUnit(t,e,s){let r=e.getValAttrAsString("dispUnits/builtInUnit",t);r||(r=e.getValAttrAsString("dispUnits/custUnit",t)),r&&(s.displayUnits=r)}parseLabelAlign(t,e,s){let r=t.getValAttrAsString("lblAlgn",e);r!==null&&(r==="ctr"?s.labelAlign="center":r==="l"?s.labelAlign="left":r==="r"&&(s.labelAlign="right"))}parseOrientation(t,e,s){const r=t.getValAttrAsString("AxPos",e);r!==null&&(r==="b"?s.orientation="bottom":r==="l"?s.orientation="left":r==="r"?s.orientation="right":r==="t"&&(s.orientation="top"))}parseNumFormat(t,e,s){const r={},o=t.evaluate("numFmt",e);o!==null&&(o.hasAttribute("formatCode")&&(r.formatCode=o.getAttribute("formatCode")),o.hasAttribute("sourceLinked")&&(r.sourceLinked=o.getAttribute("sourceLinked")==="1")),Object.keys(r).length>0&&(s.labels=r)}parseScaling(t,e,s){const r=t.getValAttrAsString("scaling/orientation",e);r!==null&&(s.inverted=r!=="minMax");const o=t.getValAttrAsFloat("scaling/logBase",e);o!==null&&(s.logBase=o,s.scaleType="log"),y(t,e,s,"scaling/max","max"),y(t,e,s,"scaling/min","min")}afterVisit(t,e,s){s.fill&&s.labels&&(s.labels.fill=s.fill,delete s.fill);let r=t.getValAttrAsBoolean("delete",e);r!==null&&(t.setToPath(s,"labels.shown",r!==!0),t.setToPath(s,"shown",r!==!0));const o=t.getFromPath(s,"dispUnits.displayUnitsLabel");o&&(t.setToPath(s,"displayUnitsLabel",o),delete s.dispUnits);const i=t.evaluate("title",e);t.setToPath(s,"title.shown",i!==null);const n=t.evaluate("minorGridlines",e);t.setToPath(s,"gridLinesMinor.shown",n!==null);const l=t.evaluate("majorGridlines",e);t.setToPath(s,"gridLinesMajor.shown",l!==null)}}class F{constructor(t="text"){this._jsonKey=t}getTextPath(){return this._jsonKey}visit(t,e,s){let r=t.getFromPath(s,this.getTextPath());return r||(r={}),this.parseTextElement(t,e,r,!1),Object.keys(r).length>0&&t.setToPath(s,this.getTextPath(),r),s}parseTextElement(t,e,s,r){const o=t.evaluate("p/pPr/defRPr",e)??t.evaluate("defRPr",e);o&&(this.parseTextProperties(t,o,s),new L().visit(t,o,s));let i=[],n=t.evaluate("p/r",e)??t.evaluate("r",e);const l=c=>{const h={};let g=t.evaluate("t",c);const m=t.evaluate("rPr",c);m&&this.parseTextProperties(t,m,h),g?h.text=g.firstChild.textContent??"":c.textContent&&(h.text=c.textContent??""),i.push(h)};if(n?.length!==void 0)for(let c=0;n&&c<n.length;c++)l(n.item(c));else l(n||e);i.length>0&&(s.runs=i);const a=t.evaluate("bodyPr",e);a&&D(a,s)}parseTextProperties(t,e,s){if(!e)return;e.hasAttribute("sz")&&(s.size=parseFloat(e.getAttribute("sz"))/100),e.hasAttribute("b")&&(s.weight=e.getAttribute("b")==="1"?700:400),e.hasAttribute("i")&&(s.italic=e.getAttribute("i")==="1"),e.hasAttribute("u")&&(s.underline=e.getAttribute("u")),e.hasAttribute("strike")&&(s.strike=e.getAttribute("strike"));const r=t.evaluate("latin",e);if(r&&!r.getAttribute("typeface").startsWith("+")){const o=s.font??{};if(r.hasAttribute("typeface")&&(o.family=r.getAttribute("typeface")),r.hasAttribute("panose")){const i=r.getAttribute("panose");i&&(o.fallbacks=[d.IFont.getPanoseFallback(i)])}r.hasAttribute("pitchFamily")&&(o.pitch=r.getAttribute("pitchFamily")),r.hasAttribute("charset")&&(o.charset=r.getAttribute("charset")),Object.keys(o).length>0&&(s.font=o)}}}class st{visit(t,e,s){let r=t.getVisitorParamsState().get("series")[t.getValAttrAsInteger("idx",e)];if(r){let o=t.getFromPath(r,"title");o||(o={},t.setToPath(r,"title",o));let i=o,n=t.getValAttrAsBoolean("delete",e);return n!==null&&(i.shown=!n),i}return s}}class ot{visit(t,e,s){const r={};return A(t,e,r,"overlay","overlay"),f(t,e,r,"legendPos","position"),s.legend=r,r}}class it extends L{visit(t,e,s){const r=this.processFill(t,e,s);Object.keys(r).length>0&&(s.fillNegative=r);const o=this.processStroke(t,e,s);return Object.keys(o).length>0&&(s.strokeNegative=o),s}}class j extends F{constructor(t="title"){super(t)}parseTitleRangeOrValue(t,e,s){let r=t.evaluate("tx/strRef/f",e)??null;if(r){const o=r.firstElementChild.nodeValue;t.setToPath(s,"range",o)}}visit(t,e,s){const r={};A(t,e,r,"overlay","overlay"),s[this._jsonKey]=r;let o=t.getFromPath(r,this.getTextPath());o||(o={}),this.parseTitleRangeOrValue(t,e,r);const i=t.evaluate("txPr",e);i&&this.parseTextElement(t,i,o,!1);const n=t.evaluate("tx/rich",e);return n&&this.parseTextElement(t,n,o,!0),Object.keys(o).length>0&&t.setToPath(r,this.getTextPath(),o),r}afterVisit(t,e,s){if(s?.text){const r=s.text?.rotation??null;r!==null&&(s.rotation=parseInt(r),delete s.title.rotation)}}}class nt{visit(t,e,s){const r=t.evaluate("manualLayout",e);if(r){let o={};y(t,r,o,"x","x"),y(t,r,o,"y","y"),y(t,r,o,"w","w"),y(t,r,o,"h","h"),f(t,r,o,"xMode","xMode"),f(t,r,o,"yMode","yMode"),f(t,r,o,"wMode","wMode"),f(t,r,o,"hMode","hMode"),Object.keys(o).length>0&&(s.manualLayout=o)}return s}}class lt{visit(t,e,s){return s.name=e.getAttribute("name"),s}}class at extends M{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1){let l=n.localName;const a=t.evaluate(l,e),c=this.processAdjColor(t,a);r[l]=c}}return Object.keys(r).length>0&&(s.colors=r),r}}class ct{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=t.evaluate("majorFont",e),i=this.processFontElement(t,o,{});r.majorFont=i.family,i.fallbacks&&(r.majorFallbacks=i.fallbacks);const n=t.evaluate("minorFont",e),l=this.processFontElement(t,n,{});return r.minorFont=l.family,i.fallbacks&&(r.minorFallbacks=l.fallbacks),s.fonts=r,r}processFontElement(t,e,s){if(!e)return;const r=t.evaluate("latin",e);if(!r)return;const o=r.getAttribute("typeface");o&&(s.family=o);const i=r.getAttribute("panose");return i&&(s.fallbacks=[d.IFont.getPanoseFallback(i)]),s}}class ut{visit(t,e,s){if(!e)return;const r={},o=e.getAttribute("r:id");if(o){const i=t.getRef(o);typeof i=="string"&&(r.address=i)}return t.copyFromAttribute(e,"tooltip",r),t.copyFromAttribute(e,"history",r,"history",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tgtFrame",r,"target"),s.hyperlink=r,r}}class ht{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),this.processFilterColumns(t,e,r),Object.keys(r).length>0&&(s.filter=r),r}processColorFilter(t,e){const s={type:d.IAutoFilter.Type.Color};return t.copyFromAttribute(e,"cellColor",s,"cellColor",t.BOOLEAN_COPY),t.copyFromAttribute(e,"dxfId",s,"styleId",t.INT_COPY),s}processCustomFilter(t,e){const s={};return t.copyFromAttribute(e,"operator",s,"operator",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val"),s}processCustomFilters(t,e){const s={type:d.IAutoFilter.Type.Custom};t.copyFromAttribute(e,"and",s,"and",t.BOOLEAN_COPY);const r=e.childNodes;s.filters=[];for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType!==1)continue;let n=null;i.localName==="customFilter"&&(n=this.processCustomFilter(t,i)),n&&s.filters.push(n)}return s}processDynamicFilter(t,e){const s={type:d.IAutoFilter.Type.Dynamic};return t.copyFromAttribute(e,"type",s,"dynamicType"),t.copyFromAttribute(e,"val",s,"val",t.INT_COPY),t.copyFromAttribute(e,"maxVal",s,"maxVal",t.INT_COPY),s}processDateGroupItem(t,e){const s={};return t.copyFromAttribute(e,"dateTimeGrouping",s,"group"),t.copyFromAttribute(e,"day",s,"day",t.INT_COPY),t.copyFromAttribute(e,"hour",s,"hour",t.INT_COPY),t.copyFromAttribute(e,"minute",s,"minute",t.INT_COPY),t.copyFromAttribute(e,"month",s,"month",t.INT_COPY),t.copyFromAttribute(e,"second",s,"second",t.INT_COPY),t.copyFromAttribute(e,"year",s,"year",t.INT_COPY),s}processFilterItem(t,e){if(e.hasAttribute("val"))return e.getAttribute("val")}processFilters(t,e){const s={type:d.IAutoFilter.Type.Items};t.copyFromAttribute(e,"blank",s,"blank",t.BOOLEAN_COPY),t.copyFromAttribute(e,"calendarType",s,"calendarType");let r=[],o=[];const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1){if(l.localName==="dateGroupItem"){const a=this.processDateGroupItem(t,l);a&&r.push(a)}else if(l.localName==="filter"){const a=this.processFilterItem(t,l);a!==void 0&&o.push(a)}}}return r.length>0&&(s.dateGroups=r),o.length>0&&(s.items=o),s}processIcon(t,e){const s={type:d.IAutoFilter.Type.Icon};return t.copyFromAttribute(e,"iconId",s,"iconId",t.INT_COPY),t.copyFromAttribute(e,"iconSet",s),s}processTop10(t,e){const s={type:d.IAutoFilter.Type.Top10};return t.copyFromAttribute(e,"filterVal",s,"filterVal",t.FLOAT_COPY),t.copyFromAttribute(e,"percent",s,"percent",t.BOOLEAN_COPY),t.copyFromAttribute(e,"top",s,"top",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val",t.FLOAT_COPY),s}processFilterCriteria(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType!==1)continue;let l=null;n.localName==="colorFilter"?l=this.processColorFilter(t,n):n.localName==="customFilters"?l=this.processCustomFilters(t,n):n.localName==="dynamicFilter"?l=this.processDynamicFilter(t,n):n.localName==="filters"?l=this.processFilters(t,n):n.localName==="iconFilter"?l=this.processIcon(t,n):n.localName==="top10"&&(l=this.processTop10(t,n)),l&&o.push(l)}return o.length>0&&(s.criteria=o),o}processFilterColumn(t,e){if(!e)return null;const s={};if(!e.hasAttribute("colId"))return;s.offset=parseInt(e.getAttribute("colId"));let r=!1;return e.hasAttribute("hiddenButton")&&(r=p.b(e.getAttribute("hiddenButton"))),r&&(s.hiddenButton=!0),e.hasAttribute("showButton")&&(s.showButton=p.b(e.getAttribute("showButton"))),this.processFilterCriteria(t,e,s),s}processFilterColumns(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="filterColumn"){const l=this.processFilterColumn(t,n);l&&o.push(l)}}return o.length>0&&(s.fields=o),o}}class pt{visit(t,e,s){if(!e)return;const r={};if(t.copyFromAttribute(e,"ref",r),e.hasAttribute("caseSensitive")){const n=p.b(e.getAttribute("caseSensitive"));r.collatorOptions=n?d.Sort.CaseSensitiveOptions:d.Sort.CaseInsensitiveOptions}const o=e.getAttribute("sortMethod");o!=null&&o!=="none"&&(o==="stroke"?r.collatorOptions={...r.collatorOptions,collation:"stroke"}:o==="pinYin"&&(r.collatorOptions={...r.collatorOptions,collation:"pinyin"})),e.hasAttribute("columnSort")&&p.b(e.getAttribute("columnSort"))&&(r.orientation=d.IRange.Orientation.Column);const i=d.AddressUtils.fastStringToRange(r.ref);return this.processSortConditions(t,e,r,i),Object.keys(r).length>0&&(s.sort=r),r}processSortCondition(t,e,s){if(!e)return null;const r={};if(e.hasAttribute("ref")){if(e.hasAttribute("ref")){const o=e.getAttribute("ref"),i=d.AddressUtils.fastStringToRange(o);r.offset=s?i.colStart-s.colStart:i.colStart}return r.reverse=!1,e.hasAttribute("descending")&&(r.reverse=p.b(e.getAttribute("descending"))),t.copyFromAttribute(e,"sortBy",r,"sortOn"),t.copyFromAttribute(e,"dxfId",r),t.copyFromAttribute(e,"iconSet",r),t.copyFromAttribute(e,"customList",r),r}console.warn("no ref for sort conditional",t.getPath())}processSortConditions(t,e,s,r){if(!e)return;const o=e.childNodes,i=[];for(let n=0;n<o.length;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="sortCondition"){const a=this.processSortCondition(t,l,r);a&&i.push(a)}}return i.length>0&&(s.fields=i),i}}class z{visit(t,e,s){}processDataBarColor(t,e,s,r,o="dk1"){if(!e)return;const i=p.d(n=>e.getAttribute(n),o);return i&&(s[r]=i),s}processFonts(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="font"){const l={};this.processFont(t,n,l),s[o++]=l}}return s}processFont(t,e,s){t.getValAttrAsBoolean("b",e,!0)&&(s.weight=700),t.getValAttrAsBoolean("i",e,!0)&&(s.style=d.IFont.Style.Italic),t.getValAttrAsBoolean("strike",e,!0)&&(s.strike=!0);const r=t.evaluate("u",e);if(r){const n=r.getAttribute("val");s.underline=n||d.IFont.UnderlineStyle.Single}f(t,e,s,"vertAlign","verticalAlign"),s.verticalAlign==="superscript"?s.verticalAlign=d.IFont.VerticalAlignment.Super:s.verticalAlign==="subscript"&&(s.verticalAlign=d.IFont.VerticalAlignment.Sub),y(t,e,s,"sz","size");const o=t.evaluate("color",e);this.processDataBarColor(t,o,s,"fill"),s.fill||(s.fill="dk1"),f(t,e,s,"name","family"),f(t,e,s,"rFont","family");const i=t.evaluate("family",e);if(i){const n=i.getAttribute("val");if(n)switch(n){case"1":s.fallbacks=["serif"];break;case"2":s.fallbacks=["sans-serif"];break;case"3":s.fallbacks=["monospace"];break;case"4":s.fallbacks=["cursive"];break;case"5":s.fallbacks=["fantasy"]}}return f(t,e,s,"scheme","scheme"),A(t,e,s,"shadow","shadow",!0),A(t,e,s,"outline","outline",!0),t.getValAttrAsBoolean("condense",e,!0)&&(s.letterSpacing=-1),t.getValAttrAsBoolean("extend",e,!0)&&(s.letterSpacing=1),f(t,e,s,"charset","charset"),s}processFills(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="fill"&&this.processFill(t,n,s,o++)}return s}processFill(t,e,s,r){const o={type:d.IFill.Type.None},i=e.childNodes;let n=!1;for(let l=0;!n&&l<i.length;l++){const a=i.item(l);a.nodeType===1&&(a.localName==="gradientFill"?(this.processGradientFill(t,a,o),n=!0):a.localName==="patternFill"&&(this.processPatternFill(t,a,o),n=!0))}return s[r]=o,s}processGradientFill(t,e,s){if(!e)return;s.type=d.IFill.Type.Gradient;const r=[];s.stops=r,s.angle=90+(e.hasAttribute("degree")?parseFloat(e.getAttribute("degree")):0);const o=e.getAttribute("type");o&&(s.gradientType=o);const i=l=>{if(!l)return 0;const a=parseFloat(l);return isNaN(a)?0:a};(e.hasAttribute("left")||e.hasAttribute("top")||e.hasAttribute("right")||e.hasAttribute("bottom"))&&(s.fillTo={left:i(e.getAttribute("left")),top:i(e.getAttribute("top")),right:i(e.getAttribute("right")),bottom:i(e.getAttribute("bottom"))});const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="stop"){const c={};r.push(c);const h=parseFloat(a.getAttribute("position"));c.offset=h;const g=t.evaluate("color",a);this.processDataBarColor(t,g,c,"color")}}return s}processPatternFill(t,e,s){if(!e)return;const r=t.getVisitorParamsState().get("processingDXFs"),o=e.getAttribute("patternType")||(r?d.IFill.BuiltInSheetPattern.Solid:d.IFill.BuiltInSheetPattern.None);if(o===d.IFill.BuiltInSheetPattern.None)return{none:!0};s.type=d.IFill.Type.Pattern,o&&(s.patternType=o);let i,n="foreground",l="background";const a=s.patternType===d.IFill.BuiltInSheetPattern.Solid&&r;if(a){i="lt1";const g=n;n=l,l=g}const c=t.evaluate("fgColor",e);this.processDataBarColor(t,c,s,n,i);const h=t.evaluate("bgColor",e);return this.processDataBarColor(t,h,s,l,i),a&&!s.foreground&&(s.foreground=i),s}processBorders(t,e,s,r){if(!e)return;const o=e.childNodes;let i=0;for(let n=0;n<o.length;n++){const l=o.item(n);l.nodeType===1&&l.localName==="border"&&this.processBorder(t,l,s,i++,r)}return s}processBorder(t,e,s,r,o){if(!e)return;const i={};return this.processBorderStroke(t,e,i,d.IBorder.Edge.Left),this.processBorderStroke(t,e,i,d.IBorder.Edge.Right),o?(i.right||i.left)&&(i.right?i.vertical={...i.right}:i.vertical={...i.left}):this.processBorderStroke(t,e,i,d.IBorder.Edge.Vertical),this.processBorderStroke(t,e,i,d.IBorder.Edge.Top),this.processBorderStroke(t,e,i,d.IBorder.Edge.Bottom),o?(i.bottom||i.top)&&(i.right?i.horizontal={...i.bottom}:i.horizontal={...i.top}):this.processBorderStroke(t,e,i,d.IBorder.Edge.Horizontal),s[r]=i,s}processBorderStroke(t,e,s,r){if(!e)return;const o=t.evaluate(r,e);if(!o)return;const i={};o.hasAttribute("style")&&(i.style=o.getAttribute("style"));const n=t.evaluate("color",o);return n&&this.processDataBarColor(t,n,i,"color"),Object.keys(i).length>0?s[r]=i:null}}class gt extends z{visit(t,e,s){this.processNumFmts(t,t.evaluate("numFmts",e),null),t.getVisitorParamsState().set("colorsToProcess",new Set);const r={fills:{},fonts:{},borders:{}};this.processFonts(t,t.evaluate("fonts",e),r.fonts),this.processFills(t,t.evaluate("fills",e),r.fills),this.processBorders(t,t.evaluate("borders",e),r.borders,!0),r.fills[0]={type:d.IFill.Type.None},r.fills[1]={type:d.IFill.Type.Pattern,patternType:d.IFill.BuiltInSheetPattern.Gray125},r.borders[0]={};const o=[];this.processXFs(t,t.evaluate("cellStyleXfs",e),o,r,null,!1);const i=new Map;if(o.length>0){const a=[];this.processCellStyles(t,t.evaluate("cellStyles",e),a,o,i),s.named=a}const n=[];this.processXFs(t,t.evaluate("cellXfs",e),n,r,i),Object.keys(n).length>0&&(s.direct=n);const l=[];return this.processDXFs(t,t.evaluate("dxfs",e),l),this.processTableStyles(t,t.evaluate("tableStyles",e),s,l),this.processIndexColors(t,t.evaluate("colors/indexedColors",e),s),this.processMruColors(t,t.evaluate("colors/mruColors",e),s),s}processIndexColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="rgbColor"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}s.indexedColors=r}processMruColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="color"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}r.length>0&&(s.mruColors=r)}processNumFmts(t,e,s){if(!e)return;const r=new Map;if(t.getVisitorParamsState().set("numFmts",r),!e)return;const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="numFmt"){const l=n.getAttribute("numFmtId"),a=n.getAttribute("formatCode");if(l&&a){const c=a.replace(/\\(.)/g,"$1");r.set(parseInt(l),c)}}}}processXFs(t,e,s,r,o=null,i=!0){if(!e)return;const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="xf"){const c={};this.processXF(t,a,c,r,o,i),s.push(c)}}}processXF(t,e,s,r,o,i){if(!e)return;const n=e.getAttribute("xfId");if(n&&o){const c=o.get(parseInt(n));c&&c!==d.IStyle.BuiltInName.Normal&&(s.named=c)}const l=c=>!(!i&&e.hasAttribute(c))||p.b(e.getAttribute("applyFont"));if(l("applyFont")){const c=r.fonts[e.getAttribute("fontId")];c&&(s.font=c)}if(l("applyFill")){const c=r.fills[e.getAttribute("fillId")];c&&Object.keys(c).length>0&&(s.fill=c)}if(l("applyBorder")){const c=r.borders[e.getAttribute("borderId")];c&&Object.keys(c).length>0&&(s.border=c)}if(l("applyNumberFormat")){const c=e.getAttribute("numFmtId");if(c){const h=parseInt(c);let g;const m=t.getVisitorParamsState();if(m){const b=m.get("numFmts");b&&(g=b.get(h)),s.numberFormat=g??h}else console.warn("no visitor params state")}}l("applyAlignment")&&this.processAlignment(t,t.evaluate("alignment",e),s),l("applyProtection")&&this.processProtection(t,t.evaluate("protection",e),s);const a=p.b(e.getAttribute("quotePrefix"));a&&(s.quotePrefix=a)}processAlignment(t,e,s){const r={};if(e?.hasAttribute("horizontal")?r.horizontal=e.getAttribute("horizontal"):r.horizontal=d.ITextFrame.HorizontalAlignment.General,e?.hasAttribute("vertical")?r.vertical=e.getAttribute("vertical"):r.vertical=d.ITextFrame.VerticalAlignment.Bottom,e?.hasAttribute("indent")?r.indent=parseInt(e.getAttribute("indent")):r.indent=0,e?.hasAttribute("relativeIndent")?r.relativeIndent=parseInt(e.getAttribute("relativeIndent")):r.relativeIndent=0,p.b(e?.getAttribute("wrapText"))?r.overflow=d.ITextFrame.Overflow.Wrap:r.overflow=d.ITextFrame.Overflow.Visible,p.b(e?.getAttribute("shrinkToFit"))&&(r.overflow=d.ITextFrame.Overflow.Shrink),e?.hasAttribute("textRotation")){let i=parseFloat(e.getAttribute("textRotation"));i>0&&i<=90?i=360-i:i>90&&i<=180?i-=90:i===255&&(i=0,r.stacked=!0),r.rotation=i}else r.rotation=0;e?.hasAttribute("justifyLastLine")&&(r.justifyLastLine=p.b(e.getAttribute("justifyLastLine")));const o=e?.getAttribute("readingOrder");return o&&(o==="0"?r.readingDirection=d.ITextFrame.ReadingDirection.Auto:o==="1"?r.readingDirection=d.ITextFrame.ReadingDirection.LeftToRight:o==="2"?r.readingDirection=d.ITextFrame.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${o}`)),Object.keys(r).length>0&&(s.alignment=r),s}processProtection(t,e,s){if(!e)return;const r={},o=e.getAttribute("locked");o&&!p.b(o)&&(r.edit=!0);const i=e.getAttribute("hidden");return i&&p.b(i)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(s.protection=r),s}processDXF(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="font"){const n={};this.processFont(t,i,n),s.font=n}else if(i.nodeType===1&&i.localName==="fill"){const n=[];this.processFill(t,i,n,0),n.length>0&&n[0]&&(s.fill=n[0])}else if(i.nodeType===1&&i.localName==="border"){const n=[];this.processBorder(t,i,n,0,!1),n.length>0&&n[0]&&(s.border=n[0])}}}processDXFs(t,e,s){if(!e)return;t.getVisitorParamsState().set("processingDXFs",!0);const r=new Map;t.getVisitorParamsState().set("dxfs",r);const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="dxf"){const l={};this.processDXF(t,n,l);const a=s.length;r.set(a,l),s.push(l)}}t.getVisitorParamsState().delete("processingDXFs")}processTableStyle(t,e,s,r,o=!1){const i=e.getAttribute("name"),n={name:i};e.hasAttribute("table")&&(n.table=p.b(e.getAttribute("table"))),e.hasAttribute("pivot")&&(n.pivot=p.b(e.getAttribute("pivot"))),o&&!n.pivot&&r.unshift(null);const l=e.childNodes;for(let a=0;a<l.length;a++){const c=l.item(a);if(c.nodeType===1&&c.localName==="tableStyleElement"){const h=c.getAttribute("type"),g=c.getAttribute("dxfId");let m=r?.[g];m||(console.warn("invalid dfx id",g),m={}),n[h]=m;let b=null;c.hasAttribute("size")&&(b=parseInt(c.getAttribute("size"))),b&&!isNaN(b)&&(m.size=b)}}delete n.name,s[i]=n}processTableStyles(t,e,s,r,o){if(!e)return;const i={},n=e.getAttribute("defaultTableStyle");n&&(i.defaultTableStyle=n);const l=e.getAttribute("defaultPivotStyle");l&&(i.defaultPivotStyle=l);const a=e.childNodes,c={};for(let h=0;h<a.length;h++){const g=a.item(h);g.nodeType===1&&g.localName==="tableStyle"&&this.processTableStyle(t,g,c,r,o)}return Object.keys(c).length>0&&(i.styles=c),Object.keys(i).length>0&&(s.tables=i),s}processCellStyles(t,e,s,r,o){if(!e)return;const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1&&l.localName==="cellStyle"){const a=parseInt(l.getAttribute("xfId")),c=l.getAttribute("name");if(o.set(a,c),!r[a])continue;const h={name:c,style:r[a]};l.getAttribute("hidden")&&(h.hidden=p.b(l.getAttribute("hidden"))),l.getAttribute("iLevel")&&(h.iLevel=parseInt(l.getAttribute("iLevel"))),s.push(h)}}}afterVisit(t,e,s){}}class dt extends z{visit(t,e,s){return this.processSheetRefs(t,t.evaluate("sheets",e),s),this.processBookViews(t,t.evaluate("bookViews",e),s),this.processDefinedNames(t,t.evaluate("definedNames",e),s),this.processCalcPr(t,t.evaluate("calcPr",e),s),this.processWorkbookProtection(t,t.evaluate("workbookProtection",e),s),this.processWorkbookPr(t,t.evaluate("workbookPr",e),s),s}processPassword(t,e,s,r="password"){if(!e)return;const o={};t.copyFromAttribute(e,"algorithmName",o,"algorithmName"),t.copyFromAttribute(e,"hashValue",o,"hashValue"),t.copyFromAttribute(e,"saltValue",o,"saltValue",t.BOOLEAN_COPY),t.copyFromAttribute(e,"spinCount",o,"spinCount",t.INT_COPY),Object.keys(o).length>0&&(s[r]=o)}processWorkbookProtection(t,e,s){if(!e)return;const r={};this.processPassword(t,t.evaluate("workbookPassword",e),r),this.processPassword(t,t.evaluate("revisionsPassword",e),r,"revisionsPassword");const o=i=>i!==!0&&i!=="1"&&i!=="on"&&i!=="true"&&(i===!1||i==="0"||i==="off"||i==="false"||null);return t.copyFromAttribute(e,"lockStructure",r,"structure",o),t.copyFromAttribute(e,"lockWindows",r,"windows",o),t.copyFromAttribute(e,"lockRevision",r,"revision",o),s.protection=r,s}processCalcPr(t,e,s){e&&(s.calc={})}processSheetRefs(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="sheet"&&this.processSheetRef(t,n,r)}s.sheets=r}processSheetRef(t,e,s){const r={};t.copyFromAttribute(e,"name",r,"name"),t.copyFromAttribute(e,"state",r,"visibility");const o=e.getAttribute("r:id"),i=t.getRef(o);i&&(r.sheet=i),s.push(r)}processBookViews(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;o<1&&i<e.childNodes.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="workbookView"&&(this.processWorkbookView(t,n,s),o++)}}processWorkbookView(t,e,s){if(!e)return;const r={};t.copyFromAttribute(e,"activeTab",r,"activeSheetId",[t.INT_COPY,o=>o+1]),e.hasAttribute("activeTab")||(r.activeSheetId=1),t.copyFromAttribute(e,"showHorizontalScroll",r,"showHorizontalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showVerticalScroll",r,"showVerticalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showSheetTabs",r,"showTabs",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tabRatio",r,"tabRatio",[t.FLOAT_COPY,o=>o]),Object.keys(r).length>0&&(s.view=r)}processDefineName(t,e,s,r){if(!e)return;const o={},i=e.firstChild;if(i&&i.nodeType===3&&(o.ref=i.textContent),t.copyFromAttribute(e,"name",o),t.copyFromAttribute(e,"comment",o),t.copyFromAttribute(e,"hidden",o,"hidden",t.BOOLEAN_COPY),e.hasAttribute("localSheetId")){const n=e.getAttribute("localSheetId");if(!r[n]?.name)return void console.warn(`Defined name '${e.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);o.scope=r[n].name}t.copyFromAttribute(e,"customMenu",o),t.copyFromAttribute(e,"description",o),t.copyFromAttribute(e,"statusBar",o),t.copyFromAttribute(e,"help",o),t.copyFromAttribute(e,"shortcutKey",o),t.copyFromAttribute(e,"function",o,"function",t.BOOLEAN_COPY),t.copyFromAttribute(e,"functionGroupId",o,"functionGroupId",t.INT_COPY),t.copyFromAttribute(e,"publishToServer",o,"publishToServer",t.BOOLEAN_COPY),t.copyFromAttribute(e,"vbProcedure",o,"vbProcedure",t.BOOLEAN_COPY),t.copyFromAttribute(e,"xlm",o,"xlm",t.BOOLEAN_COPY),Object.keys(o).length>0&&s.push(o)}processDefinedNames(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="definedName"&&this.processDefineName(t,n,r,s.sheets)}r.length>0&&(s.names=r)}processWorkbookPr(t,e,s){e&&t.copyFromAttribute(e,"date1904",s,"date1904",t.BOOLEAN_COPY)}afterVisit(t,e,s){}}class mt{visit(t,e,s){return t.copyFromAttribute(e,"name",s),t.copyFromAttribute(e,"displayName",s),t.copyFromAttribute(e,"ref",s),t.copyFromAttribute(e,"headerRowCount",s,"headerRowCount",t.INT_COPY),t.copyFromAttribute(e,"totalsRowCount",s,"totalsRowCount",t.INT_COPY),this.processTableColumns(t,e,s),this.processTableStyleInfo(t,e,s),s}processTableStyleInfo(t,e,s){if(!e)return;const r=e.childNodes,o={};for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableStyleInfo"&&(t.copyFromAttribute(n,"name",o),t.copyFromAttribute(n,"showColumnStripes",o,"showColumnStripes",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showFirstColumn",o,"showFirstColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showLastColumn",o,"showLastColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showRowStripes",o,"showRowStripes",t.BOOLEAN_COPY))}Object.keys(o).length>0&&(s.styleOptions=o)}processTableColumn(t,e,s){if(!e)return null;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="tableColumn"){const n={};t.copyFromAttribute(i,"name",n),t.copyFromAttribute(i,"uniqueName",n),s.push(n)}}return s}processTableColumns(t,e,s){const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableColumns"&&this.processTableColumn(t,n,o)}o.length>0&&(s.columns=o)}}class bt{visit(t,e,s){return s}}class k{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"editAs",r,"anchorType"),r.anchor={},this.processOffsetCoord(t,t.evaluate("from",e),r.anchor,"from"),this.processOffsetCoord(t,t.evaluate("to",e),r.anchor,"to"),s.movables||(s.movables=[]),s.movables.push(r),r}processOffsetCoord(t,e,s,r){if(!e)return;const o={c:0,r:0,x:0,y:0};return t.evaluate("col",e)&&(o.c=parseInt(t.evaluate("col",e).textContent)),t.evaluate("row",e)&&(o.r=parseInt(t.evaluate("row",e).textContent)),t.evaluate("colOff",e)&&(o.x=p.c(t.evaluate("colOff",e).textContent)),t.evaluate("rowOff",e)&&(o.y=p.c(t.evaluate("rowOff",e).textContent)),r==="from"?s.tl=o:s.br=o,s}}class B{visit(t,e,s){if(!e)return;const r=t.evaluate("*/cNvPr",e);return r&&(t.copyFromAttribute(r,"name",s),t.copyFromAttribute(r,"desc",s),t.copyFromAttribute(r,"hidden",s,"hidden",t.BOOLEAN_COPY),t.copyFromAttribute(r,"id",s)),s}}class At extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGraphicFramePr/cNvGraphicFramePr",e);if(r){const n=t.evaluate("graphicFrameLocks",r);if(n){n.hasAttribute("noChangeAspect")&&(s.lockAspect=n.getAttribute("noChangeAspect")==="1");const l={};Object.keys(l).length>0&&(s.locks=l)}}let o={type:"graphicFrame",json:{}};const i=t.evaluate("graphic/graphicData",e).childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1)try{let a=l.localName;a==="chart"&&(a="chart"),o.type=a;const c=l.getAttribute("r:id");c&&(o.json=t.getRef(c))}catch(a){console.warn("Unable to parse graphicFrame",a)}}return o&&(s.content=o),o}}class _ extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvSpPr/cNvSpPr",e);if(r){const i=t.evaluate("spLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', shapes are not supported.`);const o={};return s.content={type:"sp",json:o},o}}class ft extends B{visit(t,e,s){if(!e)return;const r=super.visit(t,e,s),o=t.evaluate("nvPicPr/cNvPicPr",e);if(o){t.copyFromAttribute(e,"preferRelativeResize",r,"preferRelativeResize",t.BOOLEAN_COPY);const a=t.evaluate("picLocks",o);if(a){a.hasAttribute("noChangeAspect")&&(r.lockAspect=a.getAttribute("noChangeAspect")==="1");const c={};t.copyFromAttribute(a,"noChangeArrowheads",r,"noChangeArrowheads",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noChangeShapeType",r,"noChangeShapeType",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noEditPoints",r,"noEditPoints",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noAdjustHandles",r,"noAdjustHandles",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noCrop",r,"noCrop",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noGrp",r,"noGrp",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noMove",r,"noMove",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noResize",r,"noResize",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noRot",r,"noRot",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noSelect",r,"noSelect",t.BOOLEAN_COPY),Object.keys(c).length>0&&(r.locks=c)}}const i=t.evaluate("blipFill/blip",e);let n;if(i){const a=i.getAttribute("r:embed")??i.getAttribute("embed");if(!a)return void console.warn("no rId found for blip",i);n=t.getRef(a,!0)}const l={resId:n};return s.content={type:"picture",json:l},r}}class yt extends _{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGrpSpPr/cNvGrpSpPr",e);if(r){const i=t.evaluate("grpSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', group shapes are not supported.`);const o={};return s.content={type:"grpSp",json:o},o}}class vt extends _{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvCxnSpPr/cNvCxnSpPr",e);if(r){const i=t.evaluate("cxnSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', connection shapes are not supported.`);const o={};return s.content={type:"cxnSp",json:o},o}}const R="richTypes";class Ft{visit(t,e,s){let r=t.getVisitorParamsState().get(R);r||(r=[],t.getVisitorParamsState().set(R,r));const o=e.childNodes,i=o.length;for(let n=0;n<i;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="s"){const a={type:l.getAttribute("t")??"n",keys:[]};this.processKeys(t,l,a),r.push(a)}}return s.richTypes=r,r}processKeys(t,e,s){const r=e.childNodes,o=r.length,i=s.keys;for(let n=0;n<o;n++){const l=r.item(n);if(l.nodeType===1&&l.localName==="k"){const a=l.getAttribute("n"),c=l.getAttribute("t");i.push([a,c])}}}}const E="richData";class Ct{visit(t,e,s){let r=t.getVisitorParamsState().get("richTypes");if(!r)return void t.warn("RichValueFound but not type.");let o=t.getVisitorParamsState().get(E);o||(o=[],t.getVisitorParamsState().set(E,o));const i=e.childNodes,n=i.length;for(let l=0;l<n;l++){const a=i.item(l);if(a.nodeType===1&&a.localName==="rv"){const c=r[a.getAttribute("s")],h={type:c.type};this.processValues(t,a,h,c);const g=this.mapType(t,h);o.push(g)}}return s.richData=o,o}mapType(t,e){if(e.type==="_error"){const s=e.errorType;if(s)try{e=d.FormulaError.getBuiltInById(s+1)}catch{}}return e}processValues(t,e,s,r){const o=e.childNodes,i=o.length;r.type;const n=r.keys;for(let l=0;l<i;l++){const a=o.item(l);if(a.nodeType===1&&a.localName==="v"){const c=n[l];if(!c)return void t.warn("Invalid richData");const h=c[0],g=c[1];let m=a.textContent;g==="i"&&(m=Number(m)),s[h]=m}}}}class wt{visit(t,e,s){if(!e)return;const r=[];return this.processAuthors(t,t.evaluate("authors",e),r),r.length>0&&(s.authors=r),s.comments=[],s}processAuthors(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="author"){const n=i.firstChild;n&&n.nodeType===3&&s.push(n.textContent)}}}}class Pt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"authorId",r,"authorId",t.INT_COPY),r.asNote=!0,s.comments||(s.comments=[]),s.comments.push(r),r}}class Nt{visit(t,e,s){if(!e)return;const r=[];return s.comments=r,r}}class Ot{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"id",r,"id",p.r),t.copyFromAttribute(e,"personId",r,"personId",p.r),t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"parentId",r,"parentId",p.r),t.copyFromAttribute(e,"dT",r),e.hasAttribute("done")&&(r.done=p.b(e.getAttribute("done"))),s.push(r),r}}class Tt{visit(t,e,s){const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="person"){const l={};t.copyFromAttribute(n,"id",l,"id",p.r),t.copyFromAttribute(n,"displayName",l),t.copyFromAttribute(n,"userId",l,"userId",p.r),t.copyFromAttribute(n,"providerId",l),r.push(l)}}return r.length>0&&(s.persons=r),r}}const St={};class Vt{constructor(t,e){this.path=t,this.visitor=e}}class Y{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor("Relationships",new q),this.registerVisitor("spPr",new L),this.registerVisitor("txBody",new F),this.registerVisitor("txPr",new F),this.registerVisitor("c:chartSpace",new H),this.registerVisitor("c:chartSpace",new J,"chart"),this.registerVisitor("c:plotArea",new Q),this.registerVisitor("c:barChart",new Z),this.registerVisitor("c:doughnutChart",new N),this.registerVisitor("c:lineChart",new N),this.registerVisitor("c:ofPieType",new N),this.registerVisitor("c:pieChart",new N),this.registerVisitor("c:scatterChart",new N),this.registerVisitor("c:barChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:doughnutChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:lineChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ofPieType",new w("dataLabels"),"dLbls"),this.registerVisitor("c:pieChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:scatterChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ser",new tt),this.registerVisitor("c:dPt",new et),this.registerVisitor("c:marker",new rt),this.registerVisitor("c:catAx",new x),this.registerVisitor("c:valAx",new x),this.registerVisitor("c:dateAx",new x),this.registerVisitor("c:majorGridlines",new V("gridLinesMajor")),this.registerVisitor("c:minorGridlines",new V("gridLinesMinor")),this.registerVisitor("c:chartSpace",null,"txPr"),this.registerVisitor("c:catAx",new F("labels.text"),"txPr"),this.registerVisitor("c:valAx",new F("labels.text"),"txPr"),this.registerVisitor("c:dateAx",new F("labels.text"),"txPr"),this.registerVisitor("c:legend",new ot),this.registerVisitor("c:legend",new F("labels.text"),"txPr"),this.registerVisitor("c:legendEntry",new st),this.registerVisitor("c:ser",new it,"extLst/ext/invertSolidFillFmt/spPr"),this.registerVisitor("c:ser",new w("labels"),"dLbls"),this.registerVisitor("c:dLbl",new w("points")),this.registerVisitor("c:title",new j),this.registerVisitor("c:title",null,"tx/rich"),this.registerVisitor("c:title",null,"txPr"),this.registerVisitor("c:layout",new nt),this.registerVisitor("c:dispUnits",new V("dispUnits")),this.registerVisitor("c:dispUnitsLbl",new j("displayUnitsLabel")),this.registerVisitor("c:dispUnitsLbl",new F,"tx/rich"),this.registerVisitor("a:theme",new lt),this.registerVisitor("a:theme",new at,"themeElements/clrScheme"),this.registerVisitor("a:theme",new ct,"themeElements/fontScheme"),this.registerVisitor("autoFilter",new ht),this.registerVisitor("sortState",new pt),this.registerVisitor("s:workbook",new dt),this.registerVisitor("styleSheet",new gt),this.registerVisitor("table",new mt),this.registerVisitor("hlinkClick",new ut),this.registerVisitor("wsDr",new bt),this.registerVisitor("twoCellAnchor",new k),this.registerVisitor("oneCellAnchor",new k),this.registerVisitor("absoluteAnchor",new k),this.registerVisitor("graphicFrame",new At),this.registerVisitor("sp",new _),this.registerVisitor("grpSp",new yt),this.registerVisitor("cxnSp",new vt),this.registerVisitor("pic",new ft),this.registerVisitor("rvStructures",new Ft),this.registerVisitor("rvData",new Ct),this.registerVisitor("comments",new wt),this.registerVisitor("commentList",new Pt,"comment"),this.registerVisitor("comment",new F("content"),"text"),this.registerVisitor("ThreadedComments",new Nt),this.registerVisitor("threadedComment",new Ot),this.registerVisitor("threadedComment",new F("content"),"text"),this.registerVisitor("personList",new Tt)}registerVisitor(t,e,s=null){t.indexOf(":")===-1&&(t="*:"+t);const r=t.split(":"),o=r.length>1?r[1]:r[0];if(!s)return this.visitorsByXmlTagName.set(o,e),void this.visitorsByXmlTagName.set(t,e);let i=this.scopedVisitorsByXmlTagName.get(o);i||(i=[],this.scopedVisitorsByXmlTagName.set(o,i),this.scopedVisitorsByXmlTagName.set(t,i)),i.push(new Vt(s,e))}getVisitorParamsState(){return this.visitorParamsState}convert(t,e,s=St){const r=t.documentElement;this.visitorParamsState&&!s?.paramMap||(this.visitorParamsState=s?.paramMap??new Map);const o={};let i=this.visitorsByXmlTagName.get(r.nodeName);if(i||(i=this.visitorsByXmlTagName.get(r.localName)),!i)throw new Error(`A visitor for the root element: '${r.nodeName}' or '${r.localName}' must be registered.`);const n="/"+r.localName,l=new S(null,this,n,r,o,e,s),a=[];this._doWalk(i,l,a,r,o,e,s);for(let c=0;c<a.length;c++){const h=a[c];try{h.visitor?.afterVisit?.(h.context,h.elemParent,h.jsonParent)}catch(g){console.warn(`Error in afterVisit: ${h.context.getPath()}`,g)}}return o}_walkScoped(t,e,s,r,o,i,n){const l=this.scopedVisitorsByXmlTagName.get(t);for(let a=0;l&&a<l.length;a++){const c=l[a];let h=null;try{h=e.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${t}'.`)}if(!h)continue;const g=m=>{let b=m.localName,v=m.parentNode;for(;v&&v!==r;)b=v.localName+"/"+b,v=v.parentNode;const P=e.getPath()+"/"+b;if(c.visitor){const T=new S(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(c.visitor,T,s,m,o,i,n)}};if(h.length>0){const m=h;for(let b=0;b<m.length;b++)g(m.item(b))}else g(h)}}_doWalk(t,e,s,r,o,i,n){let l=null;t&&(s.push({visitor:t,context:e,elemParent:r,jsonParent:o}),l=t.visit(e,r,o)),l||(l=o);const a=r.localName;this._walkScoped(a,e,s,r,l,i,n);const c=r.childNodes;for(let h=0;h<c.length;h++){const g=c.item(h);if(g.nodeType===1){const m=g,b=m.localName,v=this.visitorsByXmlTagName.get(b),P=e.getPath()+"/"+b,T=new S(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(v,T,s,m,l??o,i,n)}}return l}}exports.FromOOXMLConverter=Y,exports.default=Y;
@@ -0,0 +1,12 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
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"),c=require("./CkdT8JSum0WmJ7Tn.cjs"),Ot=require("react-dom"),H=require("@mui/material"),oe=require("@sheetxl/sdk"),Qe=require("@mui/icons-material"),Dt=a.createContext(null),He={didCatch:!1,error:null};class Wt extends a.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=He}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(He)}}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]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return d.length!==l.length||d.some((u,p)=>!Object.is(u,l[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(He))}render(){const{children:i,fallbackRender:r,FallbackComponent:e,fallback:n}=this.props,{didCatch:o,error:s}=this.state;let d=i;if(o){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(l);else if(e)d=a.createElement(e,l);else{if(n===void 0)throw s;d=n}}return a.createElement(Dt.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}}function pt(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=pt(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=pt(t))&&(e&&(e+=" "),e+=i);return e}let Rt={data:""},Pt=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Rt,Ft=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,It=/\/\*[^]*?\*\/| +/g,Je=/\n+/g,ie=(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"?ie(s,o):o+"{"+ie(s,o[1]=="k"?"":i)+"}":typeof s=="object"?e+=ie(s,i?i.replace(/([^,])+/g,d=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,d):d?d+" "+l:l)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ie.p?ie.p(o,s):o+":"+s+";")}return r+(i&&n?i+"{"+n+"}":n)+e},Y={},mt=t=>{if(typeof t=="object"){let i="";for(let r in t)i+=r+mt(t[r]);return i}return t},qt=(t,i,r,e,n)=>{let o=mt(t),s=Y[o]||(Y[o]=(l=>{let u=0,p=11;for(;u<l.length;)p=101*p+l.charCodeAt(u++)>>>0;return"go"+p})(o));if(!Y[s]){let l=o!==t?t:(u=>{let p,m,g=[{}];for(;p=Ft.exec(u.replace(It,""));)p[4]?g.shift():p[3]?(m=p[3].replace(Je," ").trim(),g.unshift(g[0][m]=g[0][m]||{})):g[0][p[1]]=p[2].replace(Je," ").trim();return g[0]})(t);Y[s]=ie(n?{["@keyframes "+s]:l}:l,r?"":"."+s)}let d=r&&Y.g?Y.g:null;return r&&(Y.g=Y[s]),((l,u,p,m)=>{m?u.data=u.data.replace(m,l):u.data.indexOf(l)===-1&&(u.data=p?l+u.data:u.data+l)})(Y[s],i,e,d),s};function Ke(t){let i=this||{},r=t.call?t(i.p):t;return qt(r.unshift?r.raw?((e,n,o)=>e.reduce((s,d,l)=>{let u=n[l];if(u&&u.call){let p=u(o),m=p&&p.props&&p.props.className||/^go/.test(p)&&p;u=m?"."+m:p&&typeof p=="object"?p.props?"":ie(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,Pt(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 ht(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}function ve(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 et(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Ke.bind({g:1}),Ke.bind({k:1});var tt=function(){return""},gt=a.createContext({enqueueSnackbar:tt,closeSnackbar:tt}),Be="@media (max-width:599.95px)",Re="@media (min-width:600px)",nt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},$e=function(t){return""+nt(t.vertical)+nt(t.horizontal)},Te=function(t){return!!t||t===0},Le="unmounted",ue="exited",de="entering",ke="entered",ot="exiting",Ze=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=ue,n.appearStatus=de):o=ke:o=e.unmountOnExit||e.mountOnEnter?Le:ue,n.state={status:o},n.nextCallback=null,n}ht(i,t),i.getDerivedStateFromProps=function(e,n){return e.in&&n.status===Le?{status:ue}: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!==de&&o!==ke&&(n=de):o!==de&&o!==ke||(n=ot)}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===de?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ue&&this.setState({status:Le})},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:de},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(d.enter,function(){n.safeSetState({status:ke},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ke},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:ot},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ue},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:ue},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===Le)return null;var n=this.props;return(0,n.children)(e,ve(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 pe(){}function rt(t,i){typeof t=="function"?t(i):t&&(t.current=i)}function Ge(t,i){return a.useMemo(function(){return t==null&&i==null?null:function(r){rt(t,r),rt(i,r)}},[t,i])}function Pe(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}}Ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pe,onEntering:pe,onEntered:pe,onExit:pe,onExiting:pe,onExited:pe};var Nt="cubic-bezier(0.4, 0, 0.2, 1)",At="cubic-bezier(0.0, 0, 0.2, 1)",Ht="cubic-bezier(0.4, 0, 0.6, 1)",kt=function(t){t.scrollTop=t.scrollTop},it=function(t){return Math.round(t)+"ms"};function me(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?Nt:o,d=r.delay,l=d===void 0?0:d;return(Array.isArray(t)?t:[t]).map(function(u){var p=typeof n=="string"?n:it(n),m=typeof l=="string"?l:it(l);return u+" "+p+" "+s+" "+m}).join(",")}function bt(t){var i=function(r){return r&&r.ownerDocument||document}(t);return i.defaultView||window}function Me(t,i){if(i){var r=function(e,n){var o,s=n.getBoundingClientRect(),d=bt(n);if(n.fakeTransform)o=n.fakeTransform;else{var l=d.getComputedStyle(n);o=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}var u=0,p=0;if(o&&o!=="none"&&typeof o=="string"){var m=o.split("(")[1].split(")")[0].split(",");u=parseInt(m[4],10),p=parseInt(m[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 xt=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,l=d===void 0?0:d,u=t.onEnter,p=t.onEntered,m=t.onExit,g=t.onExited,w=ve(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=a.useRef(null),y=Ge(r.ref,v),E=Ge(y,i),b=a.useCallback(function(){v.current&&Me(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&&Me(n,v.current)}),D=bt(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(Ze,Object.assign({appear:!0,nodeRef:v,onEnter:function(k,D){Me(n,k),kt(k),u&&u(k,D)},onEntered:p,onEntering:function(k){var D=s?.transitionTimingFunction||At,T=Pe({timeout:l,mode:"enter",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=me("-webkit-transform",T),k.style.transition=me("transform",T),k.style.webkitTransform="none",k.style.transform="none"},onExit:function(k){var D=s?.transitionTimingFunction||Ht,T=Pe({timeout:l,mode:"exit",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=me("-webkit-transform",T),k.style.transition=me("transform",T),Me(n,k),m&&m(k)},onExited:function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},in:o,timeout:l},w),function(k,D){return a.cloneElement(r,L({ref:E,style:L({visibility:k!=="exited"||o?void 0:"hidden"},s,{},r.props.style)},D))})});xt.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))},Bt=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`}))},Vt=function(){return a.createElement(Fe,null,a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},_t=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`}))},zt=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`}))},re={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:a.createElement(Bt,null),warning:a.createElement(Vt,null),error:a.createElement(_t,null),info:a.createElement(zt,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:xt,transitionDuration:{enter:225,exit:195}},Ut=function(t,i){return function(r,e){return e===void 0&&(e=!1),e?L({},re[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:re.autoHideDuration):r==="transitionDuration"?function(d,l){var u=function(p,m){return m.some(function(g){return typeof p===g})};return u(d,["string","number"])?d:u(d,["object"])?L({},re.transitionDuration,{},u(l,["object"])&&l,{},d):u(l,["string","number"])?l:u(l,["object"])?L({},re.transitionDuration,{},l):re.transitionDuration}(t.transitionDuration,i.transitionDuration):t[r]||i[r]||re[r];var n,o,s}};function Ee(t){return Object.entries(t).reduce(function(i,r){var e,n=r[0],o=r[1];return L({},i,((e={})[n]=Ke(o),e))},{})}var Qt="notistack-SnackbarContainer",Kt="notistack-Snackbar",wt="notistack-CollapseWrapper",Gt="notistack-MuiContent",$t=function(t){return"notistack-MuiContent-"+t},at=Ee({root:{height:0},entered:{height:"auto"}}),Ve="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=Ge(i,s),l=function(){return o.current?o.current.clientHeight:0};return a.createElement(Ze,{in:e,unmountOnExit:!0,onEnter:function(u){u.style.height=Ve},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var p=l(),m=Pe({timeout:175,mode:"enter"}),g=m.duration,w=m.easing;u.style.transitionDuration=typeof g=="string"?g:g+"ms",u.style.height=p+"px",u.style.transitionTimingFunction=w||""},onExit:function(u){u.style.height=l()+"px"},onExited:n,onExiting:function(u){kt(u);var p=Pe({timeout:175,mode:"exit"}),m=p.duration,g=p.easing;u.style.transitionDuration=typeof m=="string"?m:m+"ms",u.style.height=Ve,u.style.transitionTimingFunction=g||""},nodeRef:s,timeout:175},function(u,p){return a.createElement("div",Object.assign({ref:d,className:te(at.root,u==="entered"&&at.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:Ve,transition:me("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!e&&{visibility:"hidden"})},p),a.createElement("div",{ref:o,className:wt,style:{display:"flex",width:"100%"}},r))})});yt.displayName="Collapse";var st={right:"left",left:"right",bottom:"up",top:"down"},Zt=function(t){return"anchorOrigin"+$e(t)},Xt=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)}},Xt)}var Yt=typeof window<"u"?a.useLayoutEffect:a.useEffect;function lt(t){var i=a.useRef(t);return Yt(function(){i.current=t}),a.useCallback(function(){return i.current.apply(void 0,arguments)},[])}var _e,vt=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,l=t.id,u=t.open,p=t.SnackbarProps,m=p===void 0?{}:p,g=a.useRef(),w=lt(function(){d&&d.apply(void 0,arguments)}),v=lt(function(b){d&&b!=null&&(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){w(null,"timeout",l)},b))});a.useEffect(function(){return u&&v(n),function(){g.current&&clearTimeout(g.current)}},[u,n,v]);var y=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",y),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",y)}},[s,E,u]),a.createElement("div",Object.assign({ref:i},m,{className:te(Kt,e),onMouseEnter:function(b){m.onMouseEnter&&m.onMouseEnter(b),y()},onMouseLeave:function(b){m.onMouseLeave&&m.onMouseLeave(b),E()}}),r)});vt.displayName="Snackbar";var Jt=Ee({root:(_e={display:"flex",flexWrap:"wrap",flexGrow:1},_e[Re]={flexGrow:"initial",minWidth:"288px"},_e)}),Xe=a.forwardRef(function(t,i){var r=t.className,e=ve(t,["className"]);return a.createElement("div",Object.assign({ref:i,className:te(Jt.root,r)},e))});Xe.displayName="SnackbarContent";var be=Ee({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"}}),ct="notistack-snackbar",Et=a.forwardRef(function(t,i){var r=t.id,e=t.message,n=t.action,o=t.iconVariant,s=t.variant,d=t.hideIconVariant,l=t.style,u=t.className,p=o[s],m=n;return typeof m=="function"&&(m=m(r)),a.createElement(Xe,{ref:i,role:"alert","aria-describedby":ct,style:l,className:te(Gt,$t(s),be.root,be[s],u,!d&&p&&be.lessPadding)},a.createElement("div",{id:ct,className:be.message},d?null:p,e),m&&a.createElement("div",{className:be.action},m))});Et.displayName="MaterialDesignContent";var xe,ze,je,Oe,Ue,en=a.memo(Et),tn=Ee({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),nn=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,l=t.snack,u=t.classes,p=t.Component,m=p===void 0?en: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 ae;return L({},_,((ae={})[G]=V[G],ae))},{})}(u)},[u]),w=l.open,v=l.SnackbarProps,y=l.TransitionComponent,E=l.TransitionProps,b=l.transitionDuration,k=l.disableWindowBlurListener,D=l.content,T=ve(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),Z=L({direction:(d=T.anchorOrigin,d.horizontal!=="center"?st[d.horizontal]:st[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(vt,{open:w,id:T.id,disableWindowBlurListener:k,autoHideDuration:T.autoHideDuration,className:te(tn.wrappedRoot,g.root,g[Zt(T.anchorOrigin)]),SnackbarProps:v,onClose:o},a.createElement(y,Object.assign({},Z,{appear:!0,in:w,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(m,Object.assign({},T)))))},we={default:20},De={default:6,dense:2},ut="."+wt,We=Ee({root:(xe={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:me(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},xe[ut]={padding:De.default+"px 0px",transition:"padding 300ms ease 0ms"},xe.maxWidth="calc(100% - "+2*we.default+"px)",xe[Be]={width:"100%",maxWidth:"calc(100% - 32px)"},xe),rootDense:(ze={},ze[ut]={padding:De.dense+"px 0px"},ze),top:{top:we.default-De.default+"px",flexDirection:"column"},bottom:{bottom:we.default-De.default+"px",flexDirection:"column-reverse"},left:(je={left:we.default+"px"},je[Re]={alignItems:"flex-start"},je[Be]={left:"16px"},je),right:(Oe={right:we.default+"px"},Oe[Re]={alignItems:"flex-end"},Oe[Be]={right:"16px"},Oe),center:(Ue={left:"50%",transform:"translateX(-50%)"},Ue[Re]={alignItems:"center"},Ue)}),on=function(t){var i=t.classes,r=i===void 0?{}:i,e=t.anchorOrigin,n=t.dense,o=t.children,s=te(Qt,We[e.vertical],We[e.horizontal],We.root,r.containerRoot,r["containerAnchorOrigin"+$e(e)],n&&We.rootDense);return a.createElement("div",{className:s},o)},rn=a.memo(on),dt=function(t){return!(typeof t=="string"||a.isValidElement(t))},an=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=dt(n)?n:o,d=dt(n)?n.message:n,l=s.key,u=s.preventDuplicate,p=ve(s,["key","preventDuplicate"]),m=Te(l),g=m?l:new Date().getTime()+Math.random(),w=Ut(p,e.props),v=L({id:g},p,{message:d,open:!0,entered:!1,requestClose:!1,persist:w("persist"),action:w("action"),content:w("content"),variant:w("variant"),anchorOrigin:w("anchorOrigin"),disableWindowBlurListener:w("disableWindowBlurListener"),autoHideDuration:w("autoHideDuration"),hideIconVariant:w("hideIconVariant"),TransitionComponent:w("TransitionComponent"),transitionDuration:w("transitionDuration"),TransitionProps:w("TransitionProps",!0),iconVariant:w("iconVariant",!0),style:w("style",!0),SnackbarProps:w("SnackbarProps",!0),className:te(e.props.className,p.className)});return v.persist&&(v.autoHideDuration=void 0),e.setState(function(y){if(u===void 0&&e.props.preventDuplicate||u){var E=function(D){return m?D.id===g:D.message===d},b=y.queue.findIndex(E)>-1,k=y.snacks.findIndex(E)>-1;if(b||k)return y}return e.handleDisplaySnack(L({},y,{queue:[].concat(y.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(l){return!l.open||l.requestClose}))return n;var o=!1,s=!1;n.snacks.reduce(function(l,u){return l+(u.open&&u.persist?1:0)},0)===e.maxSnack&&(s=!0);var d=n.snacks.map(function(l){return o||l.persist&&!s?L({},l):(o=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),e.props.onClose&&e.props.onClose(null,"maxsnack",l.id),L({},l,{open:!1})):L({},l,{requestClose:!0}))});return L({},n,{snacks:d})},e.handleEnteredSnack=function(n,o,s){if(!Te(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");e.setState(function(d){return{snacks:d.snacks.map(function(l){return l.id===s?L({},l,{entered:!0}):L({},l)})}})},e.handleCloseSnack=function(n,o,s){e.props.onClose&&e.props.onClose(n,o,s);var d=s===void 0;e.setState(function(l){var u=l.snacks,p=l.queue;return{snacks:u.map(function(m){return d||m.id===s?m.entered?L({},m,{open:!1}):L({},m,{requestClose:!0}):L({},m)}),queue:p.filter(function(m){return m.id!==s})}})},e.closeSnackbar=function(n){var o=e.state.snacks.find(function(s){return s.id===n});Te(n)&&o&&o.onClose&&o.onClose(null,"instructed",n),e.handleCloseSnack(null,"instructed",n)},e.handleExitedSnack=function(n,o){if(!Te(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(l){return l.id!==o})}));return d.queue.length===0?d:e.handleDismissOldest(d)})},e.enqueueSnackbar,e.closeSnackbar,e.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:e.enqueueSnackbar.bind(et(e)),closeSnackbar:e.closeSnackbar.bind(et(e))}},e}return ht(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,l=d!==void 0&&d,u=n.Components,p=u===void 0?{}:u,m=n.classes,g=this.state.snacks.reduce(function(v,y){var E,b=$e(y.anchorOrigin),k=v[b]||[];return L({},v,((E={})[b]=[].concat(k,[y]),E))},{}),w=Object.keys(g).map(function(v){var y=g[v],E=y[0];return a.createElement(rn,{key:v,dense:l,anchorOrigin:E.anchorOrigin,classes:m},y.map(function(b){return a.createElement(nn,{key:b.id,snack:b,classes:m,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(gt.Provider,{value:e},s,o?Ot.createPortal(w,o):w)},ft(i,[{key:"maxSnack",get:function(){return this.props.maxSnack||re.maxSnack}}]),i}(a.Component),Ct=function(){return a.useContext(gt)};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"},St=a.forwardRef((t,i)=>{const{id:r,message:e,iconVariant:n,error:o,hideIconVariant:s,...d}=t,{closeSnackbar:l}=Ct(),u=c.useTheme(),[p,m]=a.useState(!1),g=a.useCallback(()=>{m(y=>!y)},[]),w=a.useCallback(()=>{l(r)},[r,l]),v=o?.message||String(e);return h.jsx(Xe,{ref:i,className:c.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:c.clsx(J.expand,{[J.expandOpen]:p}),style:{color:u.palette.action.active},onClick:g,children:h.jsx(Qe.ExpandMore,{})}):null,h.jsx(H.IconButton,{size:"small",className:J.expand,style:{color:u.palette.action.active},onClick:w,children:h.jsx(Qe.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(c.V7,{error:o,hideLineNumbers:!0})})}):null]})})});St.displayName="ToastError";const Tt=a.memo(a.forwardRef((t,i)=>{const{commands:r,commandHook:e,scope:n="workbook",disabled:o=!1,...s}=t,d=c.T(u=>{const p={variant:c.vo.Menuitem,parentFloat:u.floatReference,commandHook:e,scope:n,disabled:o},m=h.jsxs(h.Fragment,{children:[h.jsx(c.fr,{...p,command:r.getCommand("newWorkbook"),icon:c.y5(h.jsx(c.Si,{}))}),h.jsx(c.At,{orientation:"horizontal"}),h.jsx(c.fr,{...p,command:r.getCommand("openWorkbook"),icon:c.y5(h.jsx(c._i,{}))}),h.jsx(c.f4,{...p,commands:r,quickCommand:"saveWorkbook",icon:c.y5(h.jsx(c.Mi,{})),createPopupPanel:g=>{const w={...p,parentFloat:g.floatReference,scope:"saveWorkbook"},v=[];return c.WorkbookIO.getWriteFormats().forEach(y=>{if(y.isDefault)return;let E=null;y.key==="CSV"?E=c.y5(h.jsx(c.Vi,{})):y.key==="Excel"&&(E=c.y5(h.jsx(c.zi,{})));const b=r.getCommand(`saveWorkbookAs${y.key}`);b?v.push(a.createElement(c.fr,{...w,key:y.key,command:b,icon:E})):console.warn(`Unable to resolve command: 'saveWorkbookAs${y.key}'`)}),c.V5({...g,children:v,onClick:()=>{g.closeFloatAll()}})}})]});return c.V5({...u,children:m,onClick:g=>{g.isDefaultPrevented||u.closeFloatAll()}})},[o,r,e,n]),l="File";return h.jsx(c.f4,{commands:r,disabled:o,commandHook:e,scope:n,label:l,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(c.sl,{className:"label",icon:null,label:l})})}));Tt.displayName="StandaloneFileCommandButton";const sn=h.jsx(c.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(c.ed,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Lt=a.memo(a.forwardRef((t,i)=>{const{commands:r,workbook:e,logo:n=sn,mainElement:o,showFileMenu:s=!0,showAppearanceMenu:d=!0,...l}=t,{reference:u}=c.v3(),[p,{width:m}]=c.useMeasure(),g=m<530,w=s?h.jsx(Tt,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,v=d?h.jsx(c.AppearanceCommandButton,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,y=a.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),E=a.useRef(null);return h.jsx(H.Box,{ref:c.mergeRefs([E,p,i]),...l,children:c.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:[w,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:y,toolbarsProps:{Home:{sx:{}}}})})}));Lt.displayName="StandaloneWorkbookToolbar";const Mt=a.memo(a.forwardRef((t,i)=>{const{workbook:r,setWorkbook:e,refWorkbookTitle:n,titleWorkbook:o,setWorkbookTitle:s,titlePlaceHolder:d,children:l,undoManager:u,commands:p,importExportDisabled:m,themeModeOptions:g}=t,w=Ct(),v=w?w.enqueueSnackbar:()=>{},y=w?w.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=c.ol(),Z=c.il(),A=c.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??c.ye.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:S?.preventDuplicate,persist:S?.persist??S?.type===c.ye.Error,action:M=>h.jsx(H.IconButton,{onClick:()=>y(M),children:h.jsx(Qe.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 I=new Map(N.starting);return I.set(M,W),{...N,label:C,starting:I}}),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("./D9t4mfnS94EkWCXT.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BsXtNRaOhnjlXTcA.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./C0hVi0a9d9Sh_FgO.cjs")),comments:()=>Promise.resolve().then(()=>require("./Dpc0lG73ekHkTPOA.cjs")),find:()=>Promise.resolve().then(()=>require("./B1DCwLSJMTHSgdcP.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./j8ba84pFnKx2xWvW.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./C1GrJth6YhBZDgvq.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./CB6TEerfGxS24WUy.cjs"))}[C],M,W)},showOptions:Z,showInputOptions:A,showError:C=>{let S,W=c.ye.Error,M="Unknown Error";typeof C=="string"?M=C:C instanceof Error&&(S=C,C.message&&(M=C.message)),C instanceof oe.PartialError&&(W=c.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:I,requestWorkbookTitle:X,themeModeOptions:R,undoManager:Ce,commands:$,onExecute:le}=O,Se=c.T(R?.onForceModeChange,[R?.onForceModeChange]),Ie=c.T(R?.onForceLightGridChange,[R?.onForceLightGridChange]),ce=c.T(R?.onForceLightImagesChange,[R?.onForceLightImagesChange]),qe=c.T(async(j=null,Q=null)=>{const f=[];let x,P=null,K=null;if(typeof j=="string"?K=j:P=j,x=P?j:await c.Yt.openFileDialog(K??c.WorkbookIO.getAllReadFormatTypeAsString().join(",")),!x)return null;const ee={source:x,constructorOptions:Q,onWarning:Ae=>{f.push(Ae)}},ge=await c.WorkbookIO.read(ee,I);return f.length>0&&(I?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
11
+ `+f.join(`
12
+ `))),ge},[le,I,C]),fe=c.T(async(j,Q,f)=>{if(!Q&&X){const x=await X("Enter Workbook name to "+(f.isDefault?"Save.":`Export as ${f.description}.`));return x!==null&&c.WorkbookIO.writeFile(x,j,{formatType:f.key})}return c.WorkbookIO.writeFile(Q,j,{formatType:f.key})},[I,C,X]),q=a.useCallback(()=>({contains:j=>!0,focus(){}}),[]),ne=a.useMemo(()=>{const j=[];W||(c.WorkbookIO.getWriteFormats().forEach(f=>{const x=f.isDefault,P={label:x?"Save Workbook":`Save Workbook as ${f.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${f.description}`},tags:f.tags,description:`Save the workbook to the desktop${x?"":` as ${f.description}`}.`};x&&(P.shortcut={key:"S",modifiers:[c.Z.Ctrl]},j.push(new c.Qt("saveWorkbookAs",q,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[c.Z.Shift,c.Z.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{fe(C,null,f).catch(ee=>{I?.showError?.(ee)})})));const K=x?"saveWorkbook":`saveWorkbookAs${f.key}`;j.push(new c.Qt(K,q,P,ee=>{fe(C,ee??M,f).catch(ge=>{I?.showError?.(ge)})}))}),j.push(new c.Qt("openWorkbook",q,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[c.Z.Ctrl]}},async(f=null)=>{const x={date1904:C.isDate1904(),...C.options};try{const P=await qe(f,x);if(!P)return;const K=P.title,ee=P.workbook,ge=ee.getSelectedSheet();if(P.formatType.mimeType==="text/csv"){const Ae=C.findValidSheetName(K);await C.doBatch(async()=>{const Ye=ge.getUsedRange();if(!Ye)return void I?.showMessage("The file appears to be blank.");await C.getSheets().add({name:Ae,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Ye)},`Import CSV '${K}'`)}else C?.close(),N?.(K),S(ee)}catch(P){I?.showError?.(P)}})),j.push(new c.Qt("openWorkbookFromUrl",q,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(f){if(!f){const x=await I?.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;f=x.input}f&&console.log("openWorkbookFromUrl",f)})));let Q=[];return R&&(Q=[new c.Qt("themeMode",q,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new c.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 c.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 c.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 c.jt("help",q,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new c.jt("showKeyboardShortcuts",q,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[c.Z.Ctrl]}},()=>{}),new c.Qt("gotoUrlGithub",q,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new c.Qt("gotoUrlDiscord",q,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new c.Qt("gotoUrlDocumentation",q,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new c.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,I,W,R,$,Ce]),z=a.useMemo(()=>{let j=null;return j=$?$.createChildGroup(q,"standaloneWorkbook",!1):new c.He(q,"standaloneWorkbook"),j.addCommands(ne,!0),j},[$,ne]);c.So({manager:Ce,commands:z,notifier:I});const{themeMode:he}=c.useResolvedThemeMode();a.useEffect(()=>{if(!R||!z)return;const j=R.forceMode==="dark"||!R.forceMode&&he==="dark";z.getCommand("themeMode").update({state:R.forceMode??null,label:j?"Dark Mode":"Light Mode",scopedLabels:{appearance:j?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Se(j?c.ThemeMode.Light:c.ThemeMode.Dark)}),z.getCommand("defaultThemeMode").update({state:!R.forceMode}).updateCallback(()=>{Se(null)}),z.getCommand("forceLightGrid").update({state:R.forceLightGrid}).updateCallback(()=>{Ie(!R.forceLightGrid)}),z.getCommand("forceLightImages").update({state:R.forceLightImages}).updateCallback(()=>{ce(!R.forceLightImages)})},[he,R,ne]);const{showModal:Ne}=c.L5();return a.useEffect(()=>{const j=()=>new Promise((Q,f)=>{const x=a.lazy(()=>Promise.resolve().then(()=>require("./C0sbobSHWURMB8m0.cjs"))),P=Ne(x,{title:"Shortcut Keys Reference",commands:z,onDone:()=>{P.hide()},TransitionProps:{onExited:()=>{Q(!0)}}})});z.getCommand("showKeyboardShortcuts").updateCallback(()=>j()),z.getCommand("help").updateCallback(()=>j())},[ne,z]),z})({workbook:r,setWorkbook:e,importExportDisabled:m,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 I=new Map(N.running);return I.delete(W),{...N,running:I}})};C.set(W,M),S(M)}),{...O,starting:new Map,running:C}})},[E]);const[G,ae]=a.useState(null);a.useEffect(()=>{E.starting.size!==0||E.running.size!==0?ae(h.jsx(c.It,{icon:h.jsx(c.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"}})):ae(null)},[E.starting,E.running]);const F=a.useMemo(()=>h.jsx(c.HelpCommandButton,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),se={notifier:V,commands:_};return r&&(se.statusBarProps={childrenEnd:F}),h.jsxs(h.Fragment,{children:[G,l?a.cloneElement(l,se):null]})}));Mt.displayName="SnackbarAndCommandsWrapper";const jt=a.memo(a.forwardRef((t,i)=>{const{className:r,sx:e,style:n,onElementLoad:o,onError:s,undoManager:d,errorPanel:l=c.Bt,onKeyDown:u,workbook:p,createWorkbookOptions:m,onWorkbookChange:g,logo:w,importExportDisabled:v=!1,themeModeOptions:y,autoFocus:E=!1,commands:b,title:k,onTitleChange:D,titleProps:T,...Z}=t,A=a.useRef(null),B=c.T(g,[g]),V=c.T(D??T?.onTitleChange,[D??T?.onTitleChange]),U=T?.placeHolder??"Untitled",_=y?.forceMode,{themeMode:G,source:ae}=c.useResolvedThemeMode({mode:_}),F=a.useMemo(()=>({...y,light:c.Qa(!1,oe.CommonUtils.deepMerge(y?.theme??{},y?.light??{})),dark:c.Qa(!0,oe.CommonUtils.deepMerge(y?.theme??{},y?.dark??{}))}),[y]),se=G===c.ThemeMode.Dark,[O,C]=a.useState(null);a.useEffect(()=>{C(d??new oe.UndoManager)},[d]);const[S,W]=a.useState(null),[M,N]=a.useState(null),I=c.Rd();a.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!oe.CommonUtils.isPromiseLike(p)){const f={theme:I.getDefaultTheme(),...m};N(new oe.Workbook(f))}else N(p)},[p]),a.useLayoutEffect(()=>{if(M){if(M instanceof oe.Workbook)return W({workbook:M}),void(p!==M&&B?.(M));(async()=>{try{let f,x=await Promise.resolve(M);x&&x.source&&(x=await c.WorkbookIO.read(x)),x.workbook?(le(x.title),f=x.workbook):f=x,B?.(f),W({workbook:f})}catch(f){B?.(null),W({error:f})}})()}},[M]);const[X,R]=a.useState(null);a.useEffect(()=>{if(!O||!S)return;O.clear();const f=S?.workbook?.getTransactions();if(f)return f.addListener({onCommitEnd:x=>{x.getDescription()?O.addUndoOperation({description:x.getDescription(),undo:()=>(f.revert(x.getId()),X.source?.focus(),()=>{f.restore(x.getId()),X.source?.focus()})}):console.warn("commit has no description",x)}})},[O,S,X]);const Ce=c.T(f=>{f?O.setRepeatableOperation({description:f.label(),repeat:async()=>f.execute()}):O.setRepeatableOperation(null)},[O]),[$,le]=a.useState(k??T?.title??"");a.useEffect(()=>{le(k??T?.title??"")},[k??T?.title]),a.useEffect(()=>{V?.($)},[$]);const[Se,Ie]=a.useState(null),ce=a.useMemo(()=>{const f=()=>({contains:x=>!0,focus(){}});return b?b.createChildGroup(f,"application",!1):new c.He(f,"application")},[b]),qe=c.T(f=>{Ie(f.source.getViewportElement()),R(f),ce.activate("sheet"),o?.(f)},[ce]);a.useEffect(()=>{X&&E&&X.source?.focus(typeof E=="object"?E:void 0)},[X]);const fe=a.useRef(null),q=a.useCallback(f=>{let x=null;return T?.hidden||(x=h.jsx(c.WorkbookTitle,{...T,style:{maxWidth:"100%",...T?.style},workbook:A.current,ref:fe,title:$,placeHolder:U,onTitleChange:P=>{le(P)}})),h.jsx(Lt,{...f,logo:w,mainElement:x,showFileMenu:!v,showAppearanceMenu:!!(F?.onForceLightGridChange||F?.onForceLightImagesChange||F?.onForceModeChange)})},[w,$,T,F,v,ce]);a.useEffect(()=>{const f=x=>x.preventDefault();return A.current?.addEventListener("wheel",f,{passive:!1}),()=>{A.current?.removeEventListener("wheel",f)}},[]);const ne=a.useMemo(()=>h.jsx(c.It,{transparentBackground:!0,sx:e,style:n}),[e,n]),z=a.useCallback(({error:f})=>(s?.(f),h.jsx(l,{sx:e,style:n,error:f??"Unable to display empty workbook."})),[e,n,s]),he=a.useMemo(()=>({...e,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:f=>f.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[e]),Ne=c.mergeRefs([A,i]),j=a.useMemo(()=>{if(!S)return ne;if(S.error||!S.workbook)return z({error:S.error});let f=null,x=null,P=!1;return F&&(f=se?F.dark:F.light,x=se&&!F.forceLightGrid?F.dark:F.light,P=F.forceLightImages),h.jsx(c.WorkbookElement,{sx:he,style:n,tabIndex:0,autoFocus:!0,workbook:S.workbook,ref:Ne,renderToolbar:q,onElementLoad:qe,onRepeatCommandChange:Ce,onKeyDown:K=>{u?.(K)},gridTheme:x,headersTheme:f,forceLightImages:P,className:c.clsx(r,"sheetxl-workbook"),onContextMenu:K=>K.preventDefault(),...Z},"WorkbookElement")},[S,$,O,ne,F,Z,q,he]);let Q=h.jsx(Wt,{fallbackRender:z,children:h.jsx(an,{maxSnack:3,domRoot:Se,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(f,x,P)=>{A.current?.focus()},Components:{error:St},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(c.oa,{style:{marginRight:"8px"}})},children:h.jsx(c.nl,{children:h.jsx(Mt,{workbook:S?.workbook,setWorkbook:N,importExportDisabled:v,titlePlaceHolder:U,titleWorkbook:$,setWorkbookTitle:le,refWorkbookTitle:fe,commands:ce,undoManager:O,themeModeOptions:F,children:j})})})});return F&&(Q=h.jsxs(c.ThemeProvider,{theme:se?F.dark:F.light,children:[F.cssBaseline?h.jsx(H.CssBaseline,{}):null,Q]})),Q}));jt.displayName="EagerStandaloneWorkbook";const ln=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"}));exports.EagerStandaloneWorkbook=ln,exports.clsx=te;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),t=require("./BdPTNgv6BQFiJXiH.cjs"),p=require("@mui/material"),O=require("@mui/system"),E=["Input"],H=a.memo(a.forwardRef((T,L)=>{const{initialValue:w="",onOption:F,onValidateOption:l,onInputOption:u,onValidateInputOption:r,onDone:c,inputProps:d,inputLabel:S,inputType:P,inputPlaceHolder:b,options:g=E,autoFocusSel:v=".autoFocus",cancelOption:m,defaultOption:f=g?.[0],...C}=T,[I,j]=a.useState(!1),[n,q]=a.useState(w),[k,N]=a.useState(""),[V,B]=a.useState(!0),i=t.s0(async(e,o)=>{if(!r)return!0;const x=await r?.(e,o);N(x?.message??"");const y=x?.valid??!0;return B(y),y},[r]),h=t.s0(async e=>{u?.(n,e)},[n,u,c,F,m,f]),D=t.s0(async e=>{e.keyCode===t.Z0.Enter&&await i?.(n,null)},[n,h]),M=t.s0(e=>{q(e.target.value),i?.(e.target.value,null)},[l]),$=t.s0(async e=>{let o=await i(n,e);try{o!==!1&&(o=await i(n,e))}catch{}return o??!0},[n,l]);return s.jsx(t.E8,{options:g,onDone:c,onOption:(e,o)=>{o||h(e)},onValidateOption:$,cancelOption:m,defaultOption:f,autoFocusSel:v,...C,children:s.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:s.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(p.TextField,{onFocus:e=>{I||e.target?.select(),j(!0)},type:P,label:S,helperText:k||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:b,spellCheck:!1,autoComplete:"off",...d,className:t.A0$1("autoFocus",d?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",t.Ne(5))}, ${O.alpha("#fff",t.Ne(5))})`}}},value:n,onChange:M,onKeyDown:D,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=H;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),t=require("./CkdT8JSum0WmJ7Tn.cjs"),p=require("@mui/material"),O=require("@mui/system"),H=["Input"],L=a.memo(a.forwardRef((T,$)=>{const{initialValue:w="",onOption:F,onValidateOption:l,onInputOption:u,onValidateInputOption:r,onDone:c,inputProps:d,inputLabel:S,inputType:P,inputPlaceHolder:b,options:g=H,autoFocusSel:v=".autoFocus",cancelOption:m,defaultOption:f=g?.[0],...C}=T,[I,j]=a.useState(!1),[n,q]=a.useState(w),[k,N]=a.useState(""),[V,B]=a.useState(!0),i=t.s0(async(e,o)=>{if(!r)return!0;const x=await r?.(e,o);N(x?.message??"");const y=x?.valid??!0;return B(y),y},[r]),h=t.s0(async e=>{u?.(n,e)},[n,u,c,F,m,f]),D=t.s0(async e=>{e.keyCode===t.Z0.Enter&&await i?.(n,null)},[n,h]),M=t.s0(e=>{q(e.target.value),i?.(e.target.value,null)},[l]),E=t.s0(async e=>{let o=await i(n,e);try{o!==!1&&(o=await i(n,e))}catch{}return o??!0},[n,l]);return s.jsx(t.E8,{options:g,onDone:c,onOption:(e,o)=>{o||h(e)},onValidateOption:E,cancelOption:m,defaultOption:f,autoFocusSel:v,...C,children:s.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:s.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(p.TextField,{onFocus:e=>{I||e.target?.select(),j(!0)},type:P,label:S,helperText:k||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:b,spellCheck:!1,autoComplete:"off",...d,className:t.A0("autoFocus",d?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",t.Ne(5))}, ${O.alpha("#fff",t.Ne(5))})`}}},value:n,onChange:M,onKeyDown:D,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=L;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  "use strict";/**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./BdPTNgv6BQFiJXiH.cjs");exports.AppearanceCommandButton=o.AppearanceCommandButton,exports.AutoColorPosition=o.AutoColorPosition,exports.BorderCommandButton=o.BorderCommandButton,exports.BorderPopupButton=o.BorderPopupButton,exports.BorderStyleButton=o.BorderStyleButton,exports.ClearCommandButton=o.ClearCommandButton,exports.ColorButton=o.ColorButton,exports.ColorCommandButton=o.ColorCommandButton,exports.ColorPanel=o.ColorPanel,exports.ColorPanelType=o.ColorPanelType,exports.ColorPopupButton=o.ColorPopupButton,exports.DeleteCellsCommandButton=o.DeleteCellsCommandButton,exports.DocThemeCommandButton=o.DocThemeCommandButton,exports.FillCommandButton=o.FillCommandButton,exports.FilterColumnMenu=o.FilterColumnMenu,exports.FilterCommandButton=o.FilterCommandButton,exports.Filters=o.Filters,exports.FindCommandButton=o.FindCommandButton,exports.FontFamilyCommandButton=o.FontFamilyCommandButton,exports.FontSizeCommandButton=o.FontSizeCommandButton,exports.FormulaBar=o.FormulaBar,exports.FreezeCommandButton=o.FreezeCommandButton,exports.HelpCommandButton=o.HelpCommandButton,exports.HorizontalAlignCommandButton=o.HorizontalAlignCommandButton,exports.InsertCellsCommandButton=o.InsertCellsCommandButton,exports.InsertImageCommandButton=o.InsertImageCommandButton,exports.InsertScriptCommandButton=o.InsertScriptCommandButton,exports.LicenseManager=o.xg,exports.MergeCommandButton=o.MergeCommandButton,exports.NamedCollectionEditor=o.NamedCollectionEditor,exports.NamedInput=o.NamedInput,exports.NumberFormatCommandButton=o.NumberFormatCommandButton,exports.PasteCommandButton=o.PasteCommandButton,exports.PresetCellStylesCommandButton=o.PresetCellStylesCommandButton,exports.PresetTableStylesCommandButton=o.PresetTableStylesCommandButton,exports.QuickFormulaSumCommandPopupButton=o.QuickFormulaSumCommandPopupButton,exports.RangeInput=o.RangeInput,exports.RunScriptCommandButton=o.RunScriptCommandButton,exports.ScriptEditorToolbar=o.ScriptEditorToolbar,exports.ScriptWorkspace=o.ScriptWorkspace,exports.SheetTab=o.SheetTab,exports.SheetTabMenu=o.SheetTabMenu,exports.SheetZoomScale=o.SheetZoomScale,exports.SheetsAllMenu=o.SheetsAllMenu,exports.SortFilterCommandButton=o.SortFilterCommandButton,exports.StandaloneWorkbook=o.StandaloneWorkbook,exports.StatusBar=o.StatusBar,exports.StyledStrokeIcon=o.StyledStrokeIcon,exports.TableStyleCanvasPreview=o.TableStyleCanvasPreview,exports.TableStyleOptionsPanel=o.TableStyleOptionsPanel,exports.TableStylePreview=o.TableStylePreview,exports.TextEffectsCommandButton=o.TextEffectsCommandButton,exports.TextOverflowCommandButton=o.TextOverflowCommandButton,exports.TextRotateCommandButton=o.TextRotateCommandButton,exports.ThemeMode=o.ThemeMode,exports.ThemeSelectButton=o.ThemeSelectButton,exports.ThemeSelectPanel=o.ThemeSelectPanel,exports.ThemeSelectPopupButton=o.ThemeSelectPopupButton,exports.UnderlineCommandButton=o.UnderlineCommandButton,exports.UndoRedoCommandButton=o.UndoRedoCommandButton,exports.VerticalAlignCommandButton=o.VerticalAlignCommandButton,exports.ViewGridLinesCommandButton=o.ViewGridLinesCommandButton,exports.ViewHeadingsCommandButton=o.ViewHeadingsCommandButton,exports.WalkingCopyCommandButton=o.WalkingCopyCommandButton,exports.WorkbookContextMenu=o.WorkbookContextMenu,exports.WorkbookElement=o.WorkbookElement,exports.WorkbookIO=o.WorkbookIO,exports.WorkbookStrip=o.WorkbookStrip,exports.WorkbookTitle=o.WorkbookTitle,exports.WorkbookViewCommandButton=o.WorkbookViewCommandButton,exports._WorkbookIO=o._WorkbookIO,exports.createGridStyleFromMUITheme=o.createGridStyleFromMUITheme,exports.defaultNewWorkbook=o.defaultNewWorkbook,exports.useResolvedThemeMode=o.useResolvedThemeMode,exports.useWorkbookCommands=o.useWorkbookCommands;
7
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@sheetxl/sdk"),o=require("./CkdT8JSum0WmJ7Tn.cjs");Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>t.LicenseManager}),exports.AppearanceCommandButton=o.AppearanceCommandButton,exports.AutoColorPosition=o.AutoColorPosition,exports.BorderCommandButton=o.BorderCommandButton,exports.BorderPopupButton=o.BorderPopupButton,exports.BorderStyleButton=o.BorderStyleButton,exports.ClearCommandButton=o.ClearCommandButton,exports.ColorButton=o.ColorButton,exports.ColorCommandButton=o.ColorCommandButton,exports.ColorPanel=o.ColorPanel,exports.ColorPanelType=o.ColorPanelType,exports.ColorPopupButton=o.ColorPopupButton,exports.DeleteCellsCommandButton=o.DeleteCellsCommandButton,exports.DocThemeCommandButton=o.DocThemeCommandButton,exports.FillCommandButton=o.FillCommandButton,exports.FilterColumnMenu=o.FilterColumnMenu,exports.FilterCommandButton=o.FilterCommandButton,exports.Filters=o.Filters,exports.FindCommandButton=o.FindCommandButton,exports.FontFamilyCommandButton=o.FontFamilyCommandButton,exports.FontSizeCommandButton=o.FontSizeCommandButton,exports.FormulaBar=o.FormulaBar,exports.FreezeCommandButton=o.FreezeCommandButton,exports.HelpCommandButton=o.HelpCommandButton,exports.HorizontalAlignCommandButton=o.HorizontalAlignCommandButton,exports.InsertCellsCommandButton=o.InsertCellsCommandButton,exports.InsertImageCommandButton=o.InsertImageCommandButton,exports.InsertScriptCommandButton=o.InsertScriptCommandButton,exports.MergeCommandButton=o.MergeCommandButton,exports.NamedCollectionEditor=o.NamedCollectionEditor,exports.NamedInput=o.NamedInput,exports.NumberFormatCommandButton=o.NumberFormatCommandButton,exports.PasteCommandButton=o.PasteCommandButton,exports.PresetCellStylesCommandButton=o.PresetCellStylesCommandButton,exports.PresetTableStylesCommandButton=o.PresetTableStylesCommandButton,exports.QuickFormulaSumCommandPopupButton=o.QuickFormulaSumCommandPopupButton,exports.RangeInput=o.RangeInput,exports.RunScriptCommandButton=o.RunScriptCommandButton,exports.ScriptEditorToolbar=o.ScriptEditorToolbar,exports.ScriptWorkspace=o.ScriptWorkspace,exports.SheetTab=o.SheetTab,exports.SheetTabMenu=o.SheetTabMenu,exports.SheetZoomScale=o.SheetZoomScale,exports.SheetsAllMenu=o.SheetsAllMenu,exports.SortFilterCommandButton=o.SortFilterCommandButton,exports.StandaloneWorkbook=o.StandaloneWorkbook,exports.StatusBar=o.StatusBar,exports.StyledStrokeIcon=o.StyledStrokeIcon,exports.TableStyleCanvasPreview=o.TableStyleCanvasPreview,exports.TableStyleOptionsPanel=o.TableStyleOptionsPanel,exports.TableStylePreview=o.TableStylePreview,exports.TextEffectsCommandButton=o.TextEffectsCommandButton,exports.TextOverflowCommandButton=o.TextOverflowCommandButton,exports.TextRotateCommandButton=o.TextRotateCommandButton,exports.ThemeMode=o.ThemeMode,exports.ThemeSelectButton=o.ThemeSelectButton,exports.ThemeSelectPanel=o.ThemeSelectPanel,exports.ThemeSelectPopupButton=o.ThemeSelectPopupButton,exports.UnderlineCommandButton=o.UnderlineCommandButton,exports.UndoRedoCommandButton=o.UndoRedoCommandButton,exports.VerticalAlignCommandButton=o.VerticalAlignCommandButton,exports.ViewGridLinesCommandButton=o.ViewGridLinesCommandButton,exports.ViewHeadingsCommandButton=o.ViewHeadingsCommandButton,exports.WalkingCopyCommandButton=o.WalkingCopyCommandButton,exports.WorkbookContextMenu=o.WorkbookContextMenu,exports.WorkbookElement=o.WorkbookElement,exports.WorkbookIO=o.WorkbookIO,exports.WorkbookStrip=o.WorkbookStrip,exports.WorkbookTitle=o.WorkbookTitle,exports.WorkbookViewCommandButton=o.WorkbookViewCommandButton,exports._WorkbookIO=o._WorkbookIO,exports.createGridStyleFromMUITheme=o.createGridStyleFromMUITheme,exports.defaultNewWorkbook=o.defaultNewWorkbook,exports.useResolvedThemeMode=o.useResolvedThemeMode,exports.useWorkbookCommands=o.useWorkbookCommands;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),n=require("./BdPTNgv6BQFiJXiH.cjs"),h=s.memo(y=>{const{title:f,onHide:b,autoFocusSel:w=".range-input input",context:S,notifier:r=n.Be,command:c,commands:d,...j}=y,[T,g]=s.useState(!1),[x,u]=s.useState(!1),m=s.useRef(null),[P,v]=s.useReducer(e=>e+1,0),[C,{width:I}]=n.useMeasure();n.go(c);const i=S??c.context(),t=i.table(),[B,N]=s.useState(()=>t?i.getNames().getRanges(t.getRange()):null),R=s.useMemo(()=>t?.getName()??"",[t]);n.gt(i.table(),{onAnchorCoordsChange(e){N(i.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const D=n.T(e=>{i?.table().setName(e)},[i]),F=n.T(e=>{i?.table().resize(e.at(0))},[i]);let p=null;return i.table()||(p=o.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:o.jsx("div",{children:"No table selected"})})),o.jsx(n.Fn,{title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:w,refWindow:m,onHide:b,onFocus:()=>g(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||g(!1)},PaperProps:{elevation:T?3:1},...j,children:o.jsxs(a.DialogContent,{dividers:!0,ref:C,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:i.table()?1:0},children:[o.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:o.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(n.NamedInput,{formName:"name",defaultInput:R,value:t?.getName()??"No table",onChangeInput:D,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||i?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}}),o.jsx(n.RangeInput,{formName:"range",value:B,onChangeInput:F,resolvedAddress:i.getNames().getRanges.bind(i.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}})]})})}),o.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.At,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),o.jsx(n.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(l){r.showError(l)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(l){r.showError(l)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(l){r.showError(l)}}}),o.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:o.jsx(n.TableStylePreview,{table:t,styles:i.styles(),bodyStyle:i.bodyStyle(),cellHeight:30,isLive:!0})}),o.jsx(n.At,{orientation:"horizontal"}),o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[o.jsx(n.fr,{variant:n.vo.Menuitem,command:d.getCommand("convertTableToRange"),commandState:t,icon:n.y5(o.jsx(n.Vo,{}))}),o.jsx(n.fr,{variant:n.vo.Menuitem,commandState:t,command:d.getCommand("deleteTable"),icon:n.y5(o.jsx(n.Vo,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=h,exports.default=h;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),n=require("./CkdT8JSum0WmJ7Tn.cjs"),h=s.memo(y=>{const{title:f,onHide:b,autoFocusSel:w=".range-input input",context:S,notifier:r=n.Be,command:c,commands:d,...j}=y,[T,g]=s.useState(!1),[x,u]=s.useState(!1),m=s.useRef(null),[P,v]=s.useReducer(e=>e+1,0),[C,{width:I}]=n.useMeasure();n.go(c);const i=S??c.context(),t=i.table(),[B,N]=s.useState(()=>t?i.getNames().getRanges(t.getRange()):null),R=s.useMemo(()=>t?.getName()??"",[t]);n.gt(i.table(),{onAnchorCoordsChange(e){N(i.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const D=n.T(e=>{i?.table().setName(e)},[i]),F=n.T(e=>{i?.table().resize(e.at(0))},[i]);let p=null;return i.table()||(p=o.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:o.jsx("div",{children:"No table selected"})})),o.jsx(n.Fn,{title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:w,refWindow:m,onHide:b,onFocus:()=>g(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||g(!1)},PaperProps:{elevation:T?3:1},...j,children:o.jsxs(a.DialogContent,{dividers:!0,ref:C,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:i.table()?1:0},children:[o.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:o.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(n.NamedInput,{formName:"name",defaultInput:R,value:t?.getName()??"No table",onChangeInput:D,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||i?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}}),o.jsx(n.RangeInput,{formName:"range",value:B,onChangeInput:F,resolvedAddress:i.getNames().getRanges.bind(i.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}})]})})}),o.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.At,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),o.jsx(n.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(l){r.showError(l)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(l){r.showError(l)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(l){r.showError(l)}}}),o.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:o.jsx(n.TableStylePreview,{table:t,styles:i.styles(),bodyStyle:i.bodyStyle(),cellHeight:30,isLive:!0})}),o.jsx(n.At,{orientation:"horizontal"}),o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[o.jsx(n.fr,{variant:n.vo.Menuitem,command:d.getCommand("convertTableToRange"),commandState:t,icon:n.y5(o.jsx(n.Vo,{}))}),o.jsx(n.fr,{variant:n.vo.Menuitem,commandState:t,command:d.getCommand("deleteTable"),icon:n.y5(o.jsx(n.Vo,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=h,exports.default=h;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,16 +1,16 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as M, useState as h, useCallback as j } from "react";
3
3
  import { Box as S, FormControl as V, TextField as $ } from "@mui/material";
4
- import { T as m, am as z, aA as C } from "./91ZejdYNSNvEQyri.mjs";
4
+ import { T as m, a1 as z, a5 as C } from "./tEvhefgL1pPAbBne.mjs";
5
5
  import { alpha as O } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
11
11
  */
12
- const A = ["Ok", "Cancel"], W = E((F) => {
13
- const { initialComments: T = null, onUpdateComments: u, context: k, onOption: d, onValidateOption: p, onDone: r, options: g = A, defaultOption: c = g?.[0], cancelOption: s = "Cancel", sx: w, ...y } = F, f = M(() => {
12
+ const G = ["Ok", "Cancel"], q = E((F) => {
13
+ const { initialComments: T = null, onUpdateComments: u, context: k, onOption: d, onValidateOption: p, onDone: r, options: g = G, defaultOption: c = g?.[0], cancelOption: s = "Cancel", sx: w, ...y } = F, f = M(() => {
14
14
  const t = T ?? k?.()?.getComments();
15
15
  let n = "";
16
16
  if (t && t.content && t.content.runs) {
@@ -47,6 +47,6 @@ const A = ["Ok", "Cancel"], W = E((F) => {
47
47
  } }) }) }) });
48
48
  });
49
49
  export {
50
- W as CommentsDialog,
51
- W as default
50
+ q as CommentsDialog,
51
+ q as default
52
52
  };
@@ -1,7 +1,8 @@
1
- import { b0 as k, as as T, ay as G, k as Z, at as W, b1 as C, b2 as tt, b3 as P, Y as et, O as Y, b4 as V } from "./91ZejdYNSNvEQyri.mjs";
2
- import { c as x, b as f, r as L, t as rt, a as A, p as D, d as st } from "./CJigh9OXZ04sdTLc.mjs";
1
+ import { Y } from "./tEvhefgL1pPAbBne.mjs";
2
+ import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./DhuuaOVgVDtHsSft.mjs";
3
+ import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
3
4
  /**
4
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
5
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
5
6
  *
6
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
8
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -211,7 +212,7 @@ class pt {
211
212
  return s.plotArea = r, r;
212
213
  }
213
214
  }
214
- class I {
215
+ class L {
215
216
  EnumMappings() {
216
217
  }
217
218
  static fromOoxmlGradientType(t) {
@@ -236,7 +237,7 @@ class q {
236
237
  processStroke(t, e, s) {
237
238
  const r = {}, o = t.evaluate("ln", e);
238
239
  if (o) {
239
- o.hasAttribute("algn") && (r.align = I.fromOoxmlAlignment(o.getAttribute("algn"))), o.hasAttribute("cap") && (r.lineCap = I.fromOoxmlLineCap(o.getAttribute("cap"))), o.hasAttribute("cmpd") && (r.compound = I.fromOoxmlCompound(o.getAttribute("cmpd"))), o.hasAttribute("w") && (r.width = rt(o.getAttribute("w")));
240
+ o.hasAttribute("algn") && (r.align = L.fromOoxmlAlignment(o.getAttribute("algn"))), o.hasAttribute("cap") && (r.lineCap = L.fromOoxmlLineCap(o.getAttribute("cap"))), o.hasAttribute("cmpd") && (r.compound = L.fromOoxmlCompound(o.getAttribute("cmpd"))), o.hasAttribute("w") && (r.width = Z(o.getAttribute("w")));
240
241
  const i = t.evaluate("miter", o);
241
242
  i && (r.lineJoin = "miter", i.hasAttribute("lim") && (r.miter = parseFloat(i.getAttribute("lim")))), t.evaluate("bevel", o) && (r.lineJoin = "bevel"), t.evaluate("round", o) && (r.lineJoin = "round");
242
243
  const n = t.evaluate("custDash", o);
@@ -308,7 +309,7 @@ class q {
308
309
  e.hasAttribute("flip") && (o.mirror = e.getAttribute("flip")), Object.keys(o).length > 0 && (s.tile = o);
309
310
  const i = t.evaluate("path", e);
310
311
  if (i) {
311
- i.hasAttribute("path") && (s.type = I.fromOoxmlGradientType(i.getAttribute("path")));
312
+ i.hasAttribute("path") && (s.type = L.fromOoxmlGradientType(i.getAttribute("path")));
312
313
  const c = t.evaluate("fillToRect", i);
313
314
  c && (s.fillTo = this.getRect(c));
314
315
  }
@@ -885,7 +886,7 @@ class Ot {
885
886
  r.collatorOptions = n ? G.CaseSensitiveOptions : G.CaseInsensitiveOptions;
886
887
  }
887
888
  const o = e.getAttribute("sortMethod");
888
- o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation = Z.Orientation.Column);
889
+ o != null && o !== "none" && (o === "stroke" ? r.collatorOptions = { ...r.collatorOptions, collation: "stroke" } : o === "pinYin" && (r.collatorOptions = { ...r.collatorOptions, collation: "pinyin" })), e.hasAttribute("columnSort") && f(e.getAttribute("columnSort")) && (r.orientation = et.Orientation.Column);
889
890
  const i = W.fastStringToRange(r.ref);
890
891
  return this.processSortConditions(t, e, r, i), Object.keys(r).length > 0 && (s.sort = r), r;
891
892
  }
@@ -919,7 +920,7 @@ class Q {
919
920
  }
920
921
  processDataBarColor(t, e, s, r, o = "dk1") {
921
922
  if (!e) return;
922
- const i = st((n) => e.getAttribute(n), o);
923
+ const i = tt((n) => e.getAttribute(n), o);
923
924
  return i && (s[r] = i), s;
924
925
  }
925
926
  processFonts(t, e, s) {
@@ -1128,7 +1129,7 @@ class Tt extends Q {
1128
1129
  const n = e.getAttribute("xfId");
1129
1130
  if (n && o) {
1130
1131
  const c = o.get(parseInt(n));
1131
- c && c !== tt.BuiltInName.Normal && (s.named = c);
1132
+ c && c !== rt.BuiltInName.Normal && (s.named = c);
1132
1133
  }
1133
1134
  const l = (c) => !(!i && e.hasAttribute(c)) || f(e.getAttribute("applyFont"));
1134
1135
  if (l("applyFont")) {
@@ -1362,7 +1363,7 @@ class St {
1362
1363
  o.length > 0 && (s.columns = o);
1363
1364
  }
1364
1365
  }
1365
- class kt {
1366
+ class xt {
1366
1367
  visit(t, e, s) {
1367
1368
  return s;
1368
1369
  }
@@ -1386,7 +1387,7 @@ class U {
1386
1387
  return r && (t.copyFromAttribute(r, "name", s), t.copyFromAttribute(r, "desc", s), t.copyFromAttribute(r, "hidden", s, "hidden", t.BOOLEAN_COPY), t.copyFromAttribute(r, "id", s)), s;
1387
1388
  }
1388
1389
  }
1389
- class xt extends U {
1390
+ class kt extends U {
1390
1391
  visit(t, e, s) {
1391
1392
  if (!e) return;
1392
1393
  s = super.visit(t, e, s);
@@ -1433,7 +1434,7 @@ class z extends U {
1433
1434
  return s.content = { type: "sp", json: o }, o;
1434
1435
  }
1435
1436
  }
1436
- class Lt extends U {
1437
+ class It extends U {
1437
1438
  visit(t, e, s) {
1438
1439
  if (!e) return;
1439
1440
  const r = super.visit(t, e, s), o = t.evaluate("nvPicPr/cNvPicPr", e);
@@ -1457,7 +1458,7 @@ class Lt extends U {
1457
1458
  return s.content = { type: "picture", json: l }, r;
1458
1459
  }
1459
1460
  }
1460
- class It extends z {
1461
+ class Lt extends z {
1461
1462
  visit(t, e, s) {
1462
1463
  if (!e) return;
1463
1464
  s = super.visit(t, e, s);
@@ -1542,7 +1543,7 @@ class jt {
1542
1543
  if (e.type === "_error") {
1543
1544
  const s = e.errorType;
1544
1545
  if (s) try {
1545
- e = et.getBuiltInById(s + 1);
1546
+ e = st.getBuiltInById(s + 1);
1546
1547
  } catch {
1547
1548
  }
1548
1549
  }
@@ -1600,7 +1601,7 @@ class Dt {
1600
1601
  visit(t, e, s) {
1601
1602
  if (!e) return;
1602
1603
  const r = {};
1603
- return t.copyFromAttribute(e, "id", r, "id", L), t.copyFromAttribute(e, "personId", r, "personId", L), t.copyFromAttribute(e, "ref", r), t.copyFromAttribute(e, "parentId", r, "parentId", L), t.copyFromAttribute(e, "dT", r), e.hasAttribute("done") && (r.done = f(e.getAttribute("done"))), s.push(r), r;
1604
+ return t.copyFromAttribute(e, "id", r, "id", I), t.copyFromAttribute(e, "personId", r, "personId", I), t.copyFromAttribute(e, "ref", r), t.copyFromAttribute(e, "parentId", r, "parentId", I), t.copyFromAttribute(e, "dT", r), e.hasAttribute("done") && (r.done = f(e.getAttribute("done"))), s.push(r), r;
1604
1605
  }
1605
1606
  }
1606
1607
  class Mt {
@@ -1610,7 +1611,7 @@ class Mt {
1610
1611
  const n = o.item(i);
1611
1612
  if (n.nodeType === 1 && n.localName === "person") {
1612
1613
  const l = {};
1613
- t.copyFromAttribute(n, "id", l, "id", L), t.copyFromAttribute(n, "displayName", l), t.copyFromAttribute(n, "userId", l, "userId", L), t.copyFromAttribute(n, "providerId", l), r.push(l);
1614
+ t.copyFromAttribute(n, "id", l, "id", I), t.copyFromAttribute(n, "displayName", l), t.copyFromAttribute(n, "userId", l, "userId", I), t.copyFromAttribute(n, "providerId", l), r.push(l);
1614
1615
  }
1615
1616
  }
1616
1617
  return r.length > 0 && (s.persons = r), r;
@@ -1622,9 +1623,9 @@ class zt {
1622
1623
  this.path = t, this.visitor = e;
1623
1624
  }
1624
1625
  }
1625
- class Xt {
1626
+ class $t {
1626
1627
  constructor() {
1627
- this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new kt()), this.registerVisitor("twoCellAnchor", new E()), this.registerVisitor("oneCellAnchor", new E()), this.registerVisitor("absoluteAnchor", new E()), this.registerVisitor("graphicFrame", new xt()), this.registerVisitor("sp", new z()), this.registerVisitor("grpSp", new It()), this.registerVisitor("cxnSp", new Bt()), this.registerVisitor("pic", new Lt()), this.registerVisitor("rvStructures", new _t()), this.registerVisitor("rvData", new jt()), this.registerVisitor("comments", new Rt()), this.registerVisitor("commentList", new Et(), "comment"), this.registerVisitor("comment", new F("content"), "text"), this.registerVisitor("ThreadedComments", new Yt()), this.registerVisitor("threadedComment", new Dt()), this.registerVisitor("threadedComment", new F("content"), "text"), this.registerVisitor("personList", new Mt());
1628
+ this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new ct()), this.registerVisitor("spPr", new M()), this.registerVisitor("txBody", new F()), this.registerVisitor("txPr", new F()), this.registerVisitor("c:chartSpace", new ut()), this.registerVisitor("c:chartSpace", new ht(), "chart"), this.registerVisitor("c:plotArea", new pt()), this.registerVisitor("c:barChart", new gt()), this.registerVisitor("c:doughnutChart", new S()), this.registerVisitor("c:lineChart", new S()), this.registerVisitor("c:ofPieType", new S()), this.registerVisitor("c:pieChart", new S()), this.registerVisitor("c:scatterChart", new S()), this.registerVisitor("c:barChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new N("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new N("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new dt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new R()), this.registerVisitor("c:valAx", new R()), this.registerVisitor("c:dateAx", new R()), this.registerVisitor("c:majorGridlines", new j("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new j("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new F("labels.text"), "txPr"), this.registerVisitor("c:valAx", new F("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new F("labels.text"), "txPr"), this.registerVisitor("c:legend", new At()), this.registerVisitor("c:legend", new F("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new ft()), this.registerVisitor("c:ser", new yt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new N("labels"), "dLbls"), this.registerVisitor("c:dLbl", new N("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new vt()), this.registerVisitor("c:dispUnits", new j("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new F(), "tx/rich"), this.registerVisitor("a:theme", new Ft()), this.registerVisitor("a:theme", new Ct(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new wt(), "themeElements/fontScheme"), this.registerVisitor("autoFilter", new Nt()), this.registerVisitor("sortState", new Ot()), this.registerVisitor("s:workbook", new Vt()), this.registerVisitor("styleSheet", new Tt()), this.registerVisitor("table", new St()), this.registerVisitor("hlinkClick", new Pt()), this.registerVisitor("wsDr", new xt()), this.registerVisitor("twoCellAnchor", new E()), this.registerVisitor("oneCellAnchor", new E()), this.registerVisitor("absoluteAnchor", new E()), this.registerVisitor("graphicFrame", new kt()), this.registerVisitor("sp", new z()), this.registerVisitor("grpSp", new Lt()), this.registerVisitor("cxnSp", new Bt()), this.registerVisitor("pic", new It()), this.registerVisitor("rvStructures", new _t()), this.registerVisitor("rvData", new jt()), this.registerVisitor("comments", new Rt()), this.registerVisitor("commentList", new Et(), "comment"), this.registerVisitor("comment", new F("content"), "text"), this.registerVisitor("ThreadedComments", new Yt()), this.registerVisitor("threadedComment", new Dt()), this.registerVisitor("threadedComment", new F("content"), "text"), this.registerVisitor("personList", new Mt());
1628
1629
  }
1629
1630
  registerVisitor(t, e, s = null) {
1630
1631
  t.indexOf(":") === -1 && (t = "*:" + t);
@@ -1697,6 +1698,6 @@ class Xt {
1697
1698
  }
1698
1699
  }
1699
1700
  export {
1700
- Xt as FromOOXMLConverter,
1701
- Xt as default
1701
+ $t as FromOOXMLConverter,
1702
+ $t as default
1702
1703
  };