@sheetxl/mcp 0.8.0-beta.15 → 0.8.0-beta.17

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 (234) hide show
  1. package/LICENSE.md +8 -7
  2. package/agent/instructions.md +15 -4
  3. package/assets/{Cf9LpgZz-W5blzy_.js → -cMvbaW1kvHslPKX.js} +3 -3
  4. package/assets/{BFdeov2e_xUQPEY_.js → 0kfwZuOHUkJmVjg6.js} +7 -7
  5. package/assets/{B7gUyrfLln3TiyKM.js → 1feDuXw6tBXu2XFg.js} +2 -2
  6. package/assets/{BbAmA46MhQSu3ZF_.js → 4qMP71Fe1Ep8kbOX.js} +2 -2
  7. package/assets/{CduNzsdbTigxH-ZK.js → 7TRx0dMYnL2i4tqL.js} +163 -163
  8. package/assets/{DEW2GxfGYqVFvrfg.js → 8cVPexxAVrFJ9QLX.js} +2 -2
  9. package/assets/{C4z2IilWTuu2TWXw.js → APP8AzsNgQXHTalA.js} +3 -3
  10. package/assets/{BleMG0hAQgjE8fTa.js → AnF1Kh3Vo2AniIYO.js} +3 -3
  11. package/assets/{C0CiMKC3lWK1z9p5.js → B2BfjRdJGZs6afVL.js} +3 -3
  12. package/assets/{BFXeoFUbuc4IKTz9.js → B2UxLSteMiPlg8Uu.js} +2 -2
  13. package/assets/{BJxfinOazQqqByc-.js → B3mh2tuvP-lMP6f_.js} +2 -2
  14. package/assets/{PpFbmF0DFeUdpb9I.js → B6NnxkSmEzCGZEZA.js} +2 -2
  15. package/assets/{xmTQJJVyCrcq77WR.js → B7Nqa7V-v0cxGBux.js} +2 -2
  16. package/assets/{DsCI_ZYm_jDjXF3J.js → B7OyFSpBb1eBvMVd.js} +52 -52
  17. package/assets/{ClNQN3vEg5b5qUDp.js → B8JX7a6VZlBNA_Bd.js} +2435 -2447
  18. package/assets/{DPCKMM7sgWbrtB8z.js → B9J8nV-dh6jHpzZI.js} +2 -2
  19. package/assets/{BuUEsifnQALe49uk.js → B9M_sgHpoc-op6FF.js} +2 -2
  20. package/assets/{BeLr36oL3jmeXFFi.js → BBC_WF8BcAH-k_cQ.js} +2 -2
  21. package/assets/{B5lHOOQ_rkP4Mi2r.js → BGZ_ltNFYvnAmbVR.js} +2 -2
  22. package/assets/{iujMYIEPx_v3sdPf.js → BJBoygm-gY68bLAP.js} +996 -995
  23. package/assets/BJdWgj1hv57eGVl4.js +2039 -0
  24. package/assets/{DcWTBOi_iBFc6U4J.js → BKRLtOdVOUTrLjQN.js} +8 -8
  25. package/assets/{DpdHDTFOeuzDVNEe.js → BKjovBsLpX2Fkhov.js} +78 -77
  26. package/assets/{BCy1zP97fsiIcvj6.js → BMJhHHX2LWgOJWGz.js} +2 -2
  27. package/assets/{fDMpDhXp36CatF-G.js → BOx4Ut_Rme7NH34X.js} +2 -2
  28. package/assets/{9U9XCqqdn-q3i2fj.js → BQYpVYbvfWuUJgdx.js} +2 -2
  29. package/assets/{DJiLWtmPR2OQNjzi.js → BS4ZsfH5D6aemSpO.js} +2 -2
  30. package/assets/{BlPubAFi7DY7VrAo.js → BSAdmOdx3brRE9LW.js} +2 -2
  31. package/assets/{BtjqpAKczftx91BQ.js → BSY9Tbmz6VEY_F_x.js} +2 -2
  32. package/assets/{S16s2h9qoYVBlVEa.js → BT8AGlSg2t7V1QNj.js} +1454 -1366
  33. package/assets/{Dz8UUJ7Xc2oN5PBG.js → BUV7BlOZcuPgDZ__.js} +2 -2
  34. package/assets/{B2udpZ-uIaql3AUh.js → BX5xFncPLyeN7TqA.js} +6 -6
  35. package/assets/{CGBGyaCGdlZFQYK0.js → Bcak_hZpcIkB2gJD.js} +2 -2
  36. package/assets/{vZZi_iKYHm05gAye.js → BdijGsy5W7yZ_I_n.js} +2 -2
  37. package/assets/{CMWAsUQ66V8fYrME.js → BebXDUnlrDDRGW60.js} +3 -3
  38. package/assets/{wfVh0olISLRWdv9Q.js → BgldX21zhey2aR9D.js} +2 -2
  39. package/assets/{SHZe9VOU1prGs1F9.js → BhCbCEPpDzhg5nqL.js} +2 -2
  40. package/assets/{ZuYfVKlp41IJnrOS.js → Bj4BFLBC9Tf6SGSt.js} +2 -2
  41. package/assets/BjhAYfsKC8iEbtgn.js +169 -0
  42. package/assets/BjnQVl1lb1KEbt2D.js +529 -0
  43. package/assets/{CWl6oHiJxkNKRixk.js → BlbxiLf1zD6_fWZs.js} +2 -2
  44. package/assets/{BjqQjxBuoXza8oqg.js → BmM-nHMAAuNatCcN.js} +3 -4
  45. package/assets/{DD8HNAUFroTCuD-b.js → Bni-y4FJS4rkFYtn.js} +3305 -2147
  46. package/assets/{Cfhv_Yw_LT8VzAMt.js → BodrfKIAhDFD-X3t.js} +2 -2
  47. package/assets/{D8J14MLlN2HRXdXB.js → BvDcHHJvQMRHthm-.js} +2 -2
  48. package/assets/{hulrR0PldUxMJm_F.js → Bw_FtA-1886HMCLJ.js} +4 -4
  49. package/assets/{BOPsJmq7v7HOKUkO.js → Bxkx8QokmRNyXbOI.js} +12 -12
  50. package/assets/{CNz3LdmvsOEJoLO9.js → Bz1ImBvJwPwBrA5j.js} +2 -2
  51. package/assets/C2NPIWe0pLs3PAZM.js +7 -0
  52. package/assets/{LEJp05fjmflKgyqF.js → C2ZX6ffXsMaEr2d2.js} +452 -448
  53. package/assets/{Bg95xYj5siqhHVEz.js → C3Q-fjiZZ15waCq_.js} +3 -3
  54. package/assets/{CJ5WQnaoCsdr5gf4.js → C46RpMrfF6FiEFI7.js} +2 -2
  55. package/assets/{ChWpsFGl-BYOnX_A.js → C4deMY87Q_haYyLF.js} +2 -2
  56. package/assets/C7iHn3y3HVBHflpA.js +2563 -0
  57. package/assets/{C7ONfuYIWRmDu_vs.js → CJF3P7U7yBQVF2Cg.js} +2 -2
  58. package/assets/{DvUUArnZwoYOKOuk.js → CLgvdaqeFlESLvbF.js} +2 -2
  59. package/assets/{Crt2kLdGIlBHANgg.js → CLze192iF2o-aETZ.js} +2 -2
  60. package/assets/{F_f0jJqM5MrXGbwC.js → CMRLNLqYkiqCLMRa.js} +4 -4
  61. package/assets/{D-ffk16w8c5w0mxI.js → COa691om4fLN4CUy.js} +2 -2
  62. package/assets/CSLLHl-zum7m1CJl.js +14 -0
  63. package/assets/{DVchxwp6w6lu2Ihu.js → CUbCBf24Ie4A2l4R.js} +3 -3
  64. package/assets/{xnhBSX6lAcmBM65y.js → CWLleOolFzyT0COW.js} +2 -2
  65. package/assets/{Cg51xaLRUkVOMdCZ.js → CaJ9j3l0cERnYqDS.js} +2 -2
  66. package/assets/{BQMDOjNBMjAx9WiW.js → CfA8o-FNret9-D6Y.js} +2 -2
  67. package/assets/{BbcUxIZe3YXywsQR.js → Cl7HHR6Vc9S4n3AP.js} +2 -2
  68. package/assets/{BG5kgbDRXMc0re6W.js → CqjNsZ2OB4Kx6J3s.js} +9 -9
  69. package/assets/{By-7OWXShMlFFejV.js → CqwEHSKivMYw7tRZ.js} +2 -2
  70. package/assets/{BTQhJQ3e0hsiousD.js → Cr6lm0oXZJaaoAmD.js} +2 -2
  71. package/assets/{CudNpUD78SrtJIiy.js → CshK6Ew7OQ7mngI3.js} +3 -3
  72. package/assets/{DoILAmhKUOlKWRVw.js → CsiIgnb_L2x2Go6g.js} +2 -2
  73. package/assets/{Bn8D2bebQ2tFfwQt.js → CtmrBbpapaNwjwNB.js} +47 -45
  74. package/assets/{Diee6f_qAmcZBd2_.js → CwRhhoL5ynbe78dB.js} +2 -2
  75. package/assets/{DDnwKPJSznyfYDZS.js → CyI1eGGzJX8nJXaT.js} +3 -3
  76. package/assets/{BRzp6DEIYUgM3NkN.js → Cz4H3Qge2u8er3Ny.js} +4 -4
  77. package/assets/{D7oUtYjetuykGhQ5.js → D0OQ6ka8so0BWPwL.js} +2 -2
  78. package/assets/{_fUXIv6nKvgZkhxn.js → D336KioeSjd-T8n3.js} +3 -3
  79. package/assets/D5L35C8cbX16BSCF.js +4676 -0
  80. package/assets/{jadLBUNBVR9mbZ35.js → D5VFuX1h50V2jLmZ.js} +830 -515
  81. package/assets/{Bh0PNKlrR4VAqnP8.js → D6ON3ZLcTAXV3fO6.js} +35694 -30239
  82. package/assets/{LyLlBk--VJD2V-f8.js → DDhPOQPc-lpyZrUJ.js} +34 -34
  83. package/assets/{FzNG48GE_wso6RII.js → DE4xC78p5UtS7wH6.js} +2 -2
  84. package/assets/{OVRdpPUzR0-ueTxE.js → DF7-oRscXc_vkMo8.js} +2 -2
  85. package/assets/{CMK6tIDVqYYvK4GZ.js → DMuOMpgIhVgB3eG8.js} +2 -2
  86. package/assets/{CecTe22WURiXbVdY.js → DPKeRb9GKmh_WCPv.js} +386 -372
  87. package/assets/{oxjm7Yr7u7MeaO5P.js → DSsH28SW8CMrSL-q.js} +2 -2
  88. package/assets/{Btys7KwtvV3hz2F6.js → DV6WSFmSEKfb3d2s.js} +109 -109
  89. package/assets/{JO3zH9hupFSV6vj2.js → DYJcfrNUUJQtxXWX.js} +2 -2
  90. package/assets/{BZPTaa0WjpoUAbgZ.js → D_peM8fbRgGaWvpq.js} +2 -2
  91. package/assets/{DTfl-4Iboi6TQU5m.js → DeEZvPW-VvlE28oE.js} +4 -4
  92. package/assets/Dgi2xwb2DN2Gybj3.js +7 -0
  93. package/assets/{Cf2dcwmmmf13Rywg.js → DidhZpf9qJAei29Y.js} +2 -2
  94. package/assets/{DB-tkqI6wFXDKEfB.js → Dkg-LQVsZlrHk7A8.js} +2 -2
  95. package/assets/DnTfXqCnRCe-1QYI.js +199 -0
  96. package/assets/{B9US2ZrF93KOjmAx.js → DoBvgI3Ry8DlGzwQ.js} +2 -2
  97. package/assets/{DH7sGHzxUqIQkDnd.js → DrHVew6gwOB6oxCn.js} +2 -2
  98. package/assets/{CvngwB17_ve4W49b.js → Dre79rTMoYYikNuB.js} +69 -69
  99. package/assets/{_d5XJ7dn1CKKYrep.js → DsCNtBR5jCeqmLBS.js} +3 -3
  100. package/assets/{jPUOH4FHF4b-rapv.js → Dzz3yrKbECzg6caR.js} +2 -2
  101. package/assets/{BrcQmHcE7Hcr1erJ.js → FvxN6PPps-rNPDo8.js} +2 -2
  102. package/assets/G2Wjyx_ETCAcofwm.js +7166 -0
  103. package/assets/{CXHslDxkWCuEcCSQ.js → IGAV8DdYH32cW8XU.js} +2 -2
  104. package/assets/{U1XXGEPuuqIAzYl1.js → Jd71-QCmFEcDcYSw.js} +2 -2
  105. package/assets/{B-MqXm_7luDLwazY.js → Ljri8sTW3dWT4clD.js} +2 -2
  106. package/assets/{BQbF1RkUH8WyXqSD.js → MW2nt7se27FlH9Yb.js} +25 -19
  107. package/assets/{FS9NbEKgQvz5wqvZ.js → Mgs_OJP41a-Nfac3.js} +2 -2
  108. package/assets/{DwLZpYUp85UHBE3H.js → OHBzl-tZOi9Ni8YV.js} +2 -2
  109. package/assets/{DA_ar3QKLKtJ9fJD.js → PbBzI4PlKpCgULLd.js} +2 -2
  110. package/assets/{C7Z1li2XjWi6bkrp.js → UH_biJmLrI9SvckA.js} +4 -4
  111. package/assets/{DlBdhv6NHgrNp5Yo.js → Xe7sA_mEwDQpJjcF.js} +3 -3
  112. package/assets/{D0CHDsemn0S31ltt.js → YFiGplEq1G4XdCJ2.js} +2 -2
  113. package/assets/{DKLm4nWzynGw1Kr9.js → YQtUMMGmb1_WFsh_.js} +2 -2
  114. package/assets/{B4VnJacrzr1x4PHR.js → dcvgOfBmWFTsXoT8.js} +5 -5
  115. package/assets/{C2OrZ8LZ-TI6eYG0.js → iBgLe32XErisaUSr.js} +2 -2
  116. package/assets/{B2Ek-DWpZMGJ0V1Z.js → kpS1vY0DcE9p8JnI.js} +3 -3
  117. package/assets/{CxjchwpiqxPM1XKd.js → lcIaYgz4tQGBlzlo.js} +80 -80
  118. package/assets/{CwPBmcY6xSP8dNlh.js → nQbVdQrfdz3osBdi.js} +12 -12
  119. package/assets/{DwWngYJTgC0KLbih.js → oJNJQJEDQCsjHSmo.js} +2 -2
  120. package/assets/{BPwmBu_aouERJjiW.js → qgW-p2sFhMtuu5yw.js} +2 -2
  121. package/assets/{C97xDe_wBbLZh_uW.js → z24-oIqP_fu2hsOt.js} +2 -2
  122. package/assets/{BsQZI1vXTRE63Zy-.js → z7nDK_gfX7G37XbZ.js} +345 -235
  123. package/index.js +1976 -1910
  124. package/lib.js +2 -2
  125. package/licenses/dependencies.txt +245 -180
  126. package/package.json +4 -9
  127. package/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
  128. package/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
  129. package/screenshot-page/assets/{CSUd8n1H0VBfREnk.js → -N4OYIMgf6f5vgNy.js} +1 -1
  130. package/screenshot-page/assets/7Xk_eQAcM_HgWrOC.js +1 -0
  131. package/screenshot-page/assets/B1W17rc9ilPFCh31.js +1 -0
  132. package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +3 -0
  133. package/screenshot-page/assets/{DQWHkaQeNXft9j8b.js → B8qybUclSjEYP5FJ.js} +2 -2
  134. package/screenshot-page/assets/{DXQLzGmxoyN3kfQi.js → BD96fN2dSVuoME09.js} +7 -7
  135. package/screenshot-page/assets/BE8ea8S0Q-qogeEs.js +2 -0
  136. package/screenshot-page/assets/{BUjI304IvdJnFXH3.js → BKwVcuWOKeH2xREA.js} +1 -1
  137. package/screenshot-page/assets/{BcOdl17EeFSxnAiq.js → BMf827t1Ul65MHd5.js} +1 -1
  138. package/screenshot-page/assets/BMwQInar0xVS5FRu.js +1 -0
  139. package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +1 -0
  140. package/screenshot-page/assets/{Bf7xq8PyF4ohjMzP.js → BQCyH9YbEgnH78Ke.js} +2 -2
  141. package/screenshot-page/assets/{D6Jpaz2YkhOfzxDB.js → BYQZ8o8k3-MDoNat.js} +1 -1
  142. package/screenshot-page/assets/BcDxaEii3arJqOym.js +1 -0
  143. package/screenshot-page/assets/Be-rukvcufhLamH5.js +1 -0
  144. package/screenshot-page/assets/{CZf9s6otzzoaBlSs.js → BftXEPOuf5Uwxpud.js} +1 -1
  145. package/screenshot-page/assets/{TfhknTx8vxQkw4zV.js → Bh33WyohJvbKZVQN.js} +2 -2
  146. package/screenshot-page/assets/{CykecBozGGFl26KA.js → Btgo0VFTT0JxuaP3.js} +74 -68
  147. package/screenshot-page/assets/C2ty_K_uix4ooip6.js +1 -0
  148. package/screenshot-page/assets/{B-KIwD5F_5S-NsPg.js → C71ZZMVLfHdPl441.js} +1 -1
  149. package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +2 -0
  150. package/screenshot-page/assets/{hp_-JA1DMK4Yoztn.js → CB2mQ5rbaSw2W4ik.js} +23 -23
  151. package/screenshot-page/assets/{CIged53b3hHKxa-o.js → CCVAsuUimIJOkBnk.js} +1 -1
  152. package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +1 -0
  153. package/screenshot-page/assets/{DGXDfjkGZjMRAXPg.js → CN8u05DjKwNHbUHN.js} +1 -1
  154. package/screenshot-page/assets/COoMVTzF50qBNFEu.js +39 -0
  155. package/screenshot-page/assets/CSMEGhAHxl5-4FxB.js +1 -0
  156. package/screenshot-page/assets/{BSdFVGZNhU6YHbMI.js → CT7cY57t9j1sBhAy.js} +1 -1
  157. package/screenshot-page/assets/{l32n8O_A78Qqduv3.js → CTjUtxDw6Z2I9OGc.js} +1 -1
  158. package/screenshot-page/assets/CUZobZ3mfNAdEisS.js +1 -0
  159. package/screenshot-page/assets/{DmbuCapSSCYIa3yk.js → C_OuKbe6z1it80cj.js} +1 -1
  160. package/screenshot-page/assets/{CpbohdgEaEsVDi9J.js → C_vPl50T1L5HWnhv.js} +1 -1
  161. package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +2 -0
  162. package/screenshot-page/assets/{CbUDukmvDZmVfhJH.js → CfkssmHURDicfYvR.js} +1 -1
  163. package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +42 -0
  164. package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +1 -0
  165. package/screenshot-page/assets/{DDQWM8rNYCYzKa9R.js → D0koRjO2KnWQ1fNV.js} +1 -1
  166. package/screenshot-page/assets/D6CzedWHXTesD55R.js +1 -0
  167. package/screenshot-page/assets/DCP8JXEeiwAMiVD2.js +1 -0
  168. package/screenshot-page/assets/DEpn6VGd30cHEJOS.js +1 -0
  169. package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +1 -0
  170. package/screenshot-page/assets/DQBUH0j44Vtrykua.js +13 -0
  171. package/screenshot-page/assets/{CqR3hGrC956TkCMj.js → DRncpwDkZZX8rL9S.js} +1 -1
  172. package/screenshot-page/assets/DSKOOgcJQeqIc9Us.js +3 -0
  173. package/screenshot-page/assets/DTrnAtpccj55fGg5.js +1 -0
  174. package/screenshot-page/assets/{Bj-vfAT28PK-tWWa.js → DXaM3CulPA3aPGV1.js} +2 -2
  175. package/screenshot-page/assets/{BFaiQZKle44Rhyou.js → D_rtIYQ7FDC2CoEn.js} +1 -1
  176. package/screenshot-page/assets/{BTboCICZ-951XWsi.js → DcUOAH274IbYOuK1.js} +1 -1
  177. package/screenshot-page/assets/{gG0AFZ45VxS_moMw.js → DdXSKhFUAsKUsQ1u.js} +1 -1
  178. package/screenshot-page/assets/{DyLWQxXXTw5uwPVy.js → DeyRZ5rprDbRbuf4.js} +1 -1
  179. package/screenshot-page/assets/{D47ePD4x1lVazNdl.js → DgtqX4DiBgkepVZZ.js} +1 -1
  180. package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +1 -0
  181. package/screenshot-page/assets/{BUGXf2DEBog16Slb.js → DqXO_Zw1Cp7rAQ04.js} +2 -2
  182. package/screenshot-page/assets/{21oAESJyBGXeHegm.js → DtihumgXQ7ETaN0A.js} +2 -2
  183. package/screenshot-page/assets/DuYb_otrRZZDq6-f.js +2 -0
  184. package/screenshot-page/assets/{BHqg55S-4_OoAu3P.js → LYyM_ig973jLdOU0.js} +2 -2
  185. package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +1 -0
  186. package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +1 -0
  187. package/screenshot-page/assets/XgsioU5Px1T5gKAY.js +1 -0
  188. package/screenshot-page/assets/dQsis-90Up-pIkSq.js +4 -0
  189. package/screenshot-page/assets/dXn1GWWjYmuLb1HF.js +586 -0
  190. package/screenshot-page/assets/nM1r2xslndIMKlI2.js +2 -0
  191. package/screenshot-page/index.html +12 -12
  192. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
  193. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
  194. package/types/scripting-api.json +9967 -9497
  195. package/types/scripting-enums.json +27 -0
  196. package/types/scripting.d.ts +2282 -166
  197. package/assets/BBb_3gEGzmEzbTIk.js +0 -359
  198. package/assets/BSxTn2BhkEEeF9x_.js +0 -2346
  199. package/assets/CWVWdbY1B1-WLl9k.js +0 -199
  200. package/assets/CZTSZL3T_f-vSXqM.js +0 -7
  201. package/assets/DaoSWy3EFlqpZaLr.js +0 -4437
  202. package/assets/Dht2mcOSyYlPY32b.js +0 -14
  203. package/assets/DkibD_CEVePaoj_y.js +0 -7
  204. package/assets/jiEe5eKV3BFPBWfi.js +0 -6294
  205. package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +0 -1
  206. package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +0 -1
  207. package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +0 -2
  208. package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +0 -1
  209. package/screenshot-page/assets/BTMW3ukmc44U2fy7.js +0 -1
  210. package/screenshot-page/assets/B_W2QroTKADz3ABp.js +0 -2
  211. package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +0 -3
  212. package/screenshot-page/assets/BnoVwUBEor8NgQNs.js +0 -4
  213. package/screenshot-page/assets/BzQ5GyiXq8gTz-H-.js +0 -1
  214. package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +0 -1
  215. package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +0 -1
  216. package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +0 -2
  217. package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +0 -1
  218. package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +0 -1
  219. package/screenshot-page/assets/D66vSE1ConAuENmB.js +0 -586
  220. package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +0 -3
  221. package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +0 -1
  222. package/screenshot-page/assets/DK_QSosKV62NDcuT.js +0 -42
  223. package/screenshot-page/assets/DTFRGj188QuLKEXw.js +0 -1
  224. package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +0 -10
  225. package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +0 -1
  226. package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +0 -1
  227. package/screenshot-page/assets/Dsx0NUmGIxS7SvZ8.js +0 -1
  228. package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +0 -2
  229. package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +0 -2
  230. package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +0 -1
  231. package/screenshot-page/assets/fGlPAximvsxzPzGA.js +0 -1
  232. package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +0 -1
  233. package/screenshot-page/assets/sHBomL5R4-_px8rD.js +0 -1
  234. package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +0 -39
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.15
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { K as e, ht as t, m as r, mt as n, tt as a, u as o } from "./BQMDOjNBMjAx9WiW.js";
8
- import { t as i } from "./JO3zH9hupFSV6vj2.js";
9
- import { t as s } from "./DvUUArnZwoYOKOuk.js";
7
+ import { K as e, ht as t, m as r, mt as n, tt as a, u as o } from "./CfA8o-FNret9-D6Y.js";
8
+ import { t as i } from "./DYJcfrNUUJQtxXWX.js";
9
+ import { t as s } from "./CLgvdaqeFlESLvbF.js";
10
10
  function l(e) {
11
11
  return !/^(-?\d|--)/.test(e);
12
12
  }
@@ -623,7 +623,7 @@ var D = i({
623
623
  }), x = {
624
624
  getDeviceScale: () => D.getDeviceScale(),
625
625
  getAdvanceBuilders: () => D.getAdvanceBuilders()
626
- }, A = e("sdk:fonts-wasm", () => import("./BRzp6DEIYUgM3NkN.js"), { prefetch: !1 }), F = /^\p{White_Space}$/u, N = (e) => Math.max(0, Math.floor(e + .5)) || 0, B = class e {
626
+ }, A = e("sdk:fonts-wasm", () => import("./Cz4H3Qge2u8er3Ny.js"), { prefetch: !1 }), F = /^\p{White_Space}$/u, N = (e) => Math.max(0, Math.floor(e + .5)) || 0, B = class e {
627
627
  constructor(e, t) {
628
628
  this._perEm = /* @__PURE__ */ new Map(), this._units = /* @__PURE__ */ new Map(), this._unitsPerEm = 0, this._hinting = null, this._measureMissing = null, this._native = null, this._nativePending = [], this.family = e.family, this.weight = e.weight, this.italic = e.italic, this._vertical = t;
629
629
  }
@@ -3772,7 +3772,7 @@ function Hn(e, t, r = !1, n = !1) {
3772
3772
  };
3773
3773
  }
3774
3774
  var Un = (e, t, r = null, n = !1, a = !1) => {
3775
- const o = new Date(r ?? Date.now()).getFullYear(), { formats: i, compiled: s, monthByName: l, weekdaysAbbr: u, weekdaysWide: d, numericSep: c, wildcardSep: m } = function(e) {
3775
+ const o = r ?? e.getNow(), i = new Date(o).getFullYear(), { formats: s, compiled: l, monthByName: u, weekdaysAbbr: d, weekdaysWide: c, numericSep: m, wildcardSep: h } = function(e) {
3776
3776
  let t = In.get(e);
3777
3777
  if (t) return t;
3778
3778
  const { date: r } = k(e), n = /* @__PURE__ */ new Map(), a = [];
@@ -3897,30 +3897,30 @@ var Un = (e, t, r = null, n = !1, a = !1) => {
3897
3897
  wildcardSep: m
3898
3898
  }, In.set(e, t), t;
3899
3899
  }(e.getLocale());
3900
- let h = t.replaceAll(/^ +| +$/g, "").replaceAll(/ +/g, " ");
3901
- h = h.replaceAll(/ *([-/]) */g, "$1");
3902
- let p = h.replaceAll(m, Rn), g = h.replaceAll(c, "-");
3903
- const f = e.isDate1904();
3904
- for (let e = 0; e < i.length; e++) {
3905
- if (!i[e].excelOnly && !a) continue;
3906
- let t = h;
3907
- i[e].containsDot ? t = p : i[e].containsDash && (t = g);
3908
- const r = Pn(t, s[e], l);
3900
+ let p = t.replaceAll(/^ +| +$/g, "").replaceAll(/ +/g, " ");
3901
+ p = p.replaceAll(/ *([-/]) */g, "$1");
3902
+ let g = p.replaceAll(h, Rn), f = p.replaceAll(m, "-");
3903
+ const y = e.isDate1904();
3904
+ for (let e = 0; e < s.length; e++) {
3905
+ if (!s[e].excelOnly && !a) continue;
3906
+ let t = p;
3907
+ s[e].containsDot ? t = g : s[e].containsDash && (t = f);
3908
+ const r = Pn(t, l[e], u);
3909
3909
  if (!r) continue;
3910
- let n = r.year ?? o;
3911
- i[e].windowYear && void 0 !== r.year && (n = n <= 29 ? 2e3 + n : 1900 + n), i[e].todaysYear && (n = o);
3912
- const c = r.day ?? 1, m = 1900 === n && 2 === r.month && 29 === c, y = /* @__PURE__ */ new Date(0);
3913
- if (y.setFullYear(n, r.month - 1, c), y.setHours(0, 0, 0, 0), !m && (y.getMonth() !== r.month - 1 || y.getDate() !== c)) continue;
3914
- const S = m ? dn(1900, 2, 29) - (f ? ln : 0) : Fn(y, f), b = f ? 0 : 1;
3915
- if (i[e].windowYear || S >= b) {
3916
- if (i[e].parseFormat.indexOf("EEE") > -1) {
3917
- const e = vn(dn(n, r.month, c)), a = t.toLowerCase();
3918
- if (!a.includes(u[e].toLowerCase()) && !a.includes(d[e].toLowerCase())) return null;
3910
+ let n = r.year ?? i;
3911
+ s[e].windowYear && void 0 !== r.year && (n = n <= 29 ? 2e3 + n : 1900 + n), s[e].todaysYear && (n = i);
3912
+ const o = r.day ?? 1, m = 1900 === n && 2 === r.month && 29 === o, h = /* @__PURE__ */ new Date(0);
3913
+ if (h.setFullYear(n, r.month - 1, o), h.setHours(0, 0, 0, 0), !m && (h.getMonth() !== r.month - 1 || h.getDate() !== o)) continue;
3914
+ const S = m ? dn(1900, 2, 29) - (y ? ln : 0) : Fn(h, y), b = y ? 0 : 1;
3915
+ if (s[e].windowYear || S >= b) {
3916
+ if (s[e].parseFormat.indexOf("EEE") > -1) {
3917
+ const e = vn(dn(n, r.month, o)), a = t.toLowerCase();
3918
+ if (!a.includes(d[e].toLowerCase()) && !a.includes(c[e].toLowerCase())) return null;
3919
3919
  }
3920
3920
  return {
3921
3921
  asSerialDate: S,
3922
- asJSDate: y,
3923
- numberFormat: i[e].numberFormat
3922
+ asJSDate: h,
3923
+ numberFormat: s[e].numberFormat
3924
3924
  };
3925
3925
  }
3926
3926
  }
@@ -4015,7 +4015,7 @@ var ta = Object.freeze({
4015
4015
  const n = r?.date1904 ?? !1, a = r?.locale;
4016
4016
  let o = e;
4017
4017
  if (void 0 !== on[o] && (o = on[o]), "number" == typeof o && (o = rn(o, a) ?? o), "number" == typeof t) {
4018
- const e = ca(o, t, {
4018
+ const e = ma(o, t, {
4019
4019
  date1904: n,
4020
4020
  locale: a
4021
4021
  });
@@ -4091,7 +4091,7 @@ var ta = Object.freeze({
4091
4091
  r >= 0 && r <= 56 && (t = `Index${r + 7}`);
4092
4092
  }
4093
4093
  if (!t) {
4094
- const r = ma[e];
4094
+ const r = ha[e];
4095
4095
  void 0 !== r && (t = Zr(r).toString());
4096
4096
  }
4097
4097
  return t;
@@ -4111,7 +4111,7 @@ var ta = Object.freeze({
4111
4111
  return Zn(e);
4112
4112
  }
4113
4113
  isFractionFormat(e) {
4114
- return pa(an(e));
4114
+ return ga(an(e));
4115
4115
  }
4116
4116
  adjustDecimalPlaces(e, t) {
4117
4117
  return function(e, t) {
@@ -4122,7 +4122,7 @@ var ta = Object.freeze({
4122
4122
  return t < 0 ? (r = r.substring(0, Math.max(0, n + t)), "." === r && (r = "")) : (r.startsWith(".") || (r += "."), r += a.repeat(t)), r;
4123
4123
  }, a = (e, t) => {
4124
4124
  if ("General" === e) return t > 0 ? "0" + n("", t) : e;
4125
- if (pa(e)) return e;
4125
+ if (ga(e)) return e;
4126
4126
  let r = e, a = -1, o = -1;
4127
4127
  const i = r.indexOf("E");
4128
4128
  if (i >= 0 && (r = r.substring(0, i)), a = r.indexOf("."), a >= 0) {
@@ -4211,7 +4211,14 @@ function la(e, t, r) {
4211
4211
  locale: r?.locale
4212
4212
  });
4213
4213
  }
4214
- function ua(e, t, r) {
4214
+ function ua(e, t, r, n) {
4215
+ return da(t, r, {
4216
+ ...n,
4217
+ date1904: e?.isDate1904() ?? !1,
4218
+ locale: e?.getLocale() ?? void 0
4219
+ });
4220
+ }
4221
+ function da(e, t, r) {
4215
4222
  const n = !(!r || !r.onSpacingChar && !r.onRepeatChar && void 0 === r.spacingCharacter), a = aa().format(e, t, {
4216
4223
  date1904: r?.date1904 ?? !1,
4217
4224
  locale: r?.locale,
@@ -4231,14 +4238,14 @@ function ua(e, t, r) {
4231
4238
  } else if (r.onSpacingChar) for (const e of o) r.onSpacingChar(e.offset, e.char);
4232
4239
  return s;
4233
4240
  }
4234
- function da(e, t, r, n) {
4235
- return ca(t, r, {
4241
+ function ca(e, t, r, n) {
4242
+ return ma(t, r, {
4236
4243
  ...n,
4237
4244
  date1904: e?.isDate1904() ?? !1,
4238
4245
  locale: e?.getLocale() ?? void 0
4239
4246
  });
4240
4247
  }
4241
- function ca(e, t, r) {
4248
+ function ma(e, t, r) {
4242
4249
  if ("number" != typeof t || t > 2958465 || t < 0) return null;
4243
4250
  const n = An(t, r?.date1904 ?? !1), a = r?.locale ?? "en-US";
4244
4251
  let o = !1, i = e, s = -1;
@@ -4293,7 +4300,7 @@ function ca(e, t, r) {
4293
4300
  date: n
4294
4301
  } : null;
4295
4302
  }
4296
- var ma = Object.freeze({
4303
+ var ha = Object.freeze({
4297
4304
  black: 0,
4298
4305
  white: 1,
4299
4306
  red: 2,
@@ -4303,14 +4310,14 @@ var ma = Object.freeze({
4303
4310
  magenta: 6,
4304
4311
  cyan: 7
4305
4312
  });
4306
- var ha = /* @__PURE__ */ new Map();
4307
- function pa(e) {
4313
+ var pa = /* @__PURE__ */ new Map();
4314
+ function ga(e) {
4308
4315
  return !(!e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/));
4309
4316
  }
4310
- function ga(e) {
4317
+ function fa(e) {
4311
4318
  return !!e && (49 === e || "@" === e || "number" != typeof e && (aa().getFormatInfo(e)?.isText ?? !1));
4312
4319
  }
4313
- ha.set("=", (e, t) => e === t), ha.set("<>", (e, t) => e !== t), ha.set(">", (e, t) => e > t), ha.set("<", (e, t) => e < t), ha.set(">=", (e, t) => e >= t), ha.set("<=", (e, t) => e <= t), Object.freeze({
4320
+ pa.set("=", (e, t) => e === t), pa.set("<>", (e, t) => e !== t), pa.set(">", (e, t) => e > t), pa.set("<", (e, t) => e < t), pa.set(">=", (e, t) => e >= t), pa.set("<=", (e, t) => e <= t), Object.freeze({
4314
4321
  op: ">=",
4315
4322
  comp: 0
4316
4323
  }), Object.freeze({
@@ -4323,31 +4330,25 @@ ha.set("=", (e, t) => e === t), ha.set("<>", (e, t) => e !== t), ha.set(">", (e,
4323
4330
  op: "=",
4324
4331
  comp: 0
4325
4332
  });
4326
- var fa = Object.freeze({
4327
- formatValue: function(e, t, r, n) {
4328
- return ua(t, r, {
4329
- ...n,
4330
- date1904: e?.isDate1904() ?? !1,
4331
- locale: e?.getLocale() ?? void 0
4332
- });
4333
- },
4333
+ var ya = Object.freeze({
4334
+ formatValue: ua,
4334
4335
  isFractionFormat: (e) => aa().isFractionFormat(e),
4335
4336
  adjustDecimalPlaces: (e, t) => aa().adjustDecimalPlaces(e, t),
4336
4337
  getFormatInfo: (e) => aa().getFormatInfo(e),
4337
4338
  getFormatDateInfo: (e) => aa().getFormatDateInfo(e),
4338
4339
  isValidFormat: (e) => aa().isValidFormat(e)
4339
4340
  });
4340
- function ya(e) {
4341
+ function Sa(e) {
4341
4342
  return 14 === e ? "Short Date" : 22 === e ? "Short DateTime" : Qr[e] ?? null;
4342
4343
  }
4343
- function Sa(e) {
4344
+ function ba(e) {
4344
4345
  if ("number" == typeof e) return e;
4345
4346
  let t = e;
4346
4347
  const r = on[e];
4347
4348
  return r && (t = r), "number" == typeof t ? t : (n = t, sn.get(n) ?? t);
4348
4349
  var n;
4349
4350
  }
4350
- var ba = [
4351
+ var wa = [
4351
4352
  {
4352
4353
  numberFormat: "General",
4353
4354
  formatType: de.General,
@@ -4575,7 +4576,7 @@ var ba = [
4575
4576
  numberFormat: "[h]:mm:ss",
4576
4577
  formatType: de.Custom
4577
4578
  }
4578
- ], wa = [
4579
+ ], va = [
4579
4580
  {
4580
4581
  numberFormat: "00000",
4581
4582
  formatType: de.Special,
@@ -4593,56 +4594,56 @@ var ba = [
4593
4594
  numberFormat: "000-00-0000",
4594
4595
  formatType: de.Special
4595
4596
  }
4596
- ], va = [...ba, ...wa], Ca = /* @__PURE__ */ new Map(), Ma = [];
4597
- for (let e = 0; e < ba.length; e++) {
4598
- let t = ba[e].numberFormat.toLowerCase();
4599
- Ca.set(t, ba[e]), ba[e].regMatch && Ma.unshift(ba[e]);
4600
- }
4597
+ ], Ca = [...wa, ...va], Ma = /* @__PURE__ */ new Map(), ka = [];
4601
4598
  for (let e = 0; e < wa.length; e++) {
4602
4599
  let t = wa[e].numberFormat.toLowerCase();
4603
- Ca.set(t, wa[e]);
4600
+ Ma.set(t, wa[e]), wa[e].regMatch && ka.unshift(wa[e]);
4601
+ }
4602
+ for (let e = 0; e < va.length; e++) {
4603
+ let t = va[e].numberFormat.toLowerCase();
4604
+ Ma.set(t, va[e]);
4604
4605
  }
4605
- var ka = [], Ta = /* @__PURE__ */ new Map();
4606
- Ca.forEach(function(e, r, n) {
4607
- e.primary && (ka.push(e), Ta.set(t.textToKey(e.formatType), e.numberFormat));
4608
- }), ka.sort(function(e, t) {
4606
+ var Ta = [], _a = /* @__PURE__ */ new Map();
4607
+ Ma.forEach(function(e, r, n) {
4608
+ e.primary && (Ta.push(e), _a.set(t.textToKey(e.formatType), e.numberFormat));
4609
+ }), Ta.sort(function(e, t) {
4609
4610
  return e.primary - t.primary;
4610
4611
  });
4611
- var _a, Da, xa, Aa, Fa = Ca.get(de.General.toLowerCase()), Na = class {
4612
+ var Da, xa, Aa, Fa, Na = Ma.get(de.General.toLowerCase()), Ba = class {
4612
4613
  lookupStyle(e) {
4613
- if (!e) return Fa;
4614
- if ("number" == typeof e && (e = ya(e)), !e.toLowerCase) return console.warn("Invalid numberFormat", e), Fa;
4614
+ if (!e) return Na;
4615
+ if ("number" == typeof e && (e = Sa(e)), !e.toLowerCase) return console.warn("Invalid numberFormat", e), Na;
4615
4616
  e = e.toLowerCase();
4616
- let t = Ca.get(e);
4617
+ let t = Ma.get(e);
4617
4618
  if (t) return t;
4618
- for (let r = 0; !t && r < Ma.length; r++) Ma[r].regMatch && e.match(Ma[r].regMatch) && (t = Ma[r]);
4619
+ for (let r = 0; !t && r < ka.length; r++) ka[r].regMatch && e.match(ka[r].regMatch) && (t = ka[r]);
4619
4620
  return t || {
4620
4621
  numberFormat: e,
4621
4622
  formatType: de.Custom
4622
4623
  };
4623
4624
  }
4624
4625
  lookupPrimary() {
4625
- return ka;
4626
+ return Ta;
4626
4627
  }
4627
4628
  lookupByType(e) {
4628
- return va.filter((t) => t.formatType === e);
4629
+ return Ca.filter((t) => t.formatType === e);
4629
4630
  }
4630
4631
  lookupDefault(e) {
4631
- return Ta.get(t.textToKey(e));
4632
- }
4633
- }, Ba = i({
4634
- CATEGORIES: () => Ra,
4635
- CURRENCY_SYMBOLS: () => ja,
4636
- DATE_PRESETS: () => Ga,
4637
- FRACTION_PRESETS: () => za,
4638
- NEGATIVE_STYLES: () => Ea,
4639
- SPECIAL_PRESETS: () => $a,
4640
- TIME_PRESETS: () => Oa,
4641
- build: () => Wa,
4642
- defaultCodeForCategory: () => Ha,
4643
- isParametricCategory: () => Ia,
4644
- parse: () => qa
4645
- }), La = new Na(), Ra = Object.freeze([
4632
+ return _a.get(t.textToKey(e));
4633
+ }
4634
+ }, La = i({
4635
+ CATEGORIES: () => Pa,
4636
+ CURRENCY_SYMBOLS: () => Ga,
4637
+ DATE_PRESETS: () => Oa,
4638
+ FRACTION_PRESETS: () => $a,
4639
+ NEGATIVE_STYLES: () => ja,
4640
+ SPECIAL_PRESETS: () => Ha,
4641
+ TIME_PRESETS: () => za,
4642
+ build: () => Va,
4643
+ defaultCodeForCategory: () => Ua,
4644
+ isParametricCategory: () => Ea,
4645
+ parse: () => Ya
4646
+ }), Ra = new Ba(), Pa = Object.freeze([
4646
4647
  "General",
4647
4648
  "Number",
4648
4649
  "Currency",
@@ -4655,17 +4656,17 @@ var _a, Da, xa, Aa, Fa = Ca.get(de.General.toLowerCase()), Na = class {
4655
4656
  "Text",
4656
4657
  "Special",
4657
4658
  "Custom"
4658
- ]), Pa = /* @__PURE__ */ new Set([
4659
+ ]), Ia = /* @__PURE__ */ new Set([
4659
4660
  "Number",
4660
4661
  "Currency",
4661
4662
  "Accounting",
4662
4663
  "Percentage",
4663
4664
  "Scientific"
4664
4665
  ]);
4665
- function Ia(e) {
4666
- return Pa.has(e);
4666
+ function Ea(e) {
4667
+ return Ia.has(e);
4667
4668
  }
4668
- var Ea = Object.freeze([
4669
+ var ja = Object.freeze([
4669
4670
  {
4670
4671
  key: "minus",
4671
4672
  label: "Minus sign",
@@ -4690,7 +4691,7 @@ var Ea = Object.freeze([
4690
4691
  red: !0,
4691
4692
  parens: !0
4692
4693
  }
4693
- ]), ja = Object.freeze([
4694
+ ]), Ga = Object.freeze([
4694
4695
  "$",
4695
4696
  "€",
4696
4697
  "£",
@@ -4703,7 +4704,7 @@ var Ea = Object.freeze([
4703
4704
  "CHF",
4704
4705
  "kr",
4705
4706
  "฿"
4706
- ]), Ga = Object.freeze([
4707
+ ]), Oa = Object.freeze([
4707
4708
  "Short Date",
4708
4709
  "Long Date",
4709
4710
  "m/d/yyyy",
@@ -4712,7 +4713,7 @@ var Ea = Object.freeze([
4712
4713
  "mmm-yy",
4713
4714
  "mmmm d, yyyy",
4714
4715
  "m/d/yy h:mm"
4715
- ]), Oa = Object.freeze([
4716
+ ]), za = Object.freeze([
4716
4717
  "h:mm AM/PM",
4717
4718
  "h:mm:ss AM/PM",
4718
4719
  "h:mm",
@@ -4721,7 +4722,7 @@ var Ea = Object.freeze([
4721
4722
  "[h]:mm:ss",
4722
4723
  "mm:ss",
4723
4724
  "mm:ss.0"
4724
- ]), za = Object.freeze([
4725
+ ]), $a = Object.freeze([
4725
4726
  "# ?/?",
4726
4727
  "# ??/??",
4727
4728
  "# ???/???",
@@ -4731,51 +4732,51 @@ var Ea = Object.freeze([
4731
4732
  "# ??/16",
4732
4733
  "# ?/10",
4733
4734
  "# ??/100"
4734
- ]), $a = Object.freeze([
4735
+ ]), Ha = Object.freeze([
4735
4736
  "00000",
4736
4737
  "00000-0000",
4737
4738
  "[<=9999999]###-####;(###) ###-####",
4738
4739
  "000-00-0000"
4739
4740
  ]);
4740
- function Ha(e) {
4741
+ function Ua(e) {
4741
4742
  switch (e) {
4742
4743
  case "General":
4743
4744
  case "Custom": return "General";
4744
4745
  case "Text": return "@";
4745
- case "Number": return Wa({
4746
+ case "Number": return Va({
4746
4747
  category: "Number",
4747
4748
  decimalPlaces: 2,
4748
4749
  useSeparator: !1,
4749
4750
  negativeStyle: 0
4750
4751
  });
4751
- case "Currency": return Wa({
4752
+ case "Currency": return Va({
4752
4753
  category: "Currency",
4753
4754
  decimalPlaces: 2,
4754
4755
  currencySymbol: "$",
4755
4756
  negativeStyle: 0
4756
4757
  });
4757
- case "Accounting": return Wa({
4758
+ case "Accounting": return Va({
4758
4759
  category: "Accounting",
4759
4760
  decimalPlaces: 2,
4760
4761
  currencySymbol: "$"
4761
4762
  });
4762
4763
  case "Percentage": return "0.00%";
4763
4764
  case "Scientific": return "0.00E+00";
4764
- case "Date": return Ga[0];
4765
- case "Time": return Oa[0];
4766
- case "Fraction": return za[0];
4767
- case "Special": return $a[0];
4765
+ case "Date": return Oa[0];
4766
+ case "Time": return za[0];
4767
+ case "Fraction": return $a[0];
4768
+ case "Special": return Ha[0];
4768
4769
  }
4769
4770
  }
4770
- function Ua(e) {
4771
+ function Ka(e) {
4771
4772
  const t = e ?? "$";
4772
4773
  return "$" === t ? "$" : `"${t}"`;
4773
4774
  }
4774
- function Ka(e, t) {
4775
- const r = Ea[t ?? 0] ?? Ea[0];
4775
+ function Wa(e, t) {
4776
+ const r = ja[t ?? 0] ?? ja[0];
4776
4777
  return r.parens ? r.red ? `${e}_);[Red](${e})` : `${e}_);(${e})` : r.red ? `${e};[Red]${e}` : e;
4777
4778
  }
4778
- function Wa(e) {
4779
+ function Va(e) {
4779
4780
  const { category: t, decimalPlaces: r, useSeparator: n, currencySymbol: a, negativeStyle: o, code: i } = e, s = function(e) {
4780
4781
  const t = Math.max(0, Math.min(30, e ?? 0));
4781
4782
  return t > 0 ? "." + "0".repeat(t) : "";
@@ -4783,10 +4784,10 @@ function Wa(e) {
4783
4784
  switch (t) {
4784
4785
  case "General": return "General";
4785
4786
  case "Text": return "@";
4786
- case "Number": return Ka((n ? "#,##0" : "0") + s, o);
4787
- case "Currency": return Ka(Ua(a) + "#,##0" + s, o);
4787
+ case "Number": return Wa((n ? "#,##0" : "0") + s, o);
4788
+ case "Currency": return Wa(Ka(a) + "#,##0" + s, o);
4788
4789
  case "Accounting": {
4789
- const e = Ua(a);
4790
+ const e = Ka(a);
4790
4791
  return `_(${e}* #,##0${s}_);_(${e}* (#,##0${s});_(${e}* ${(r ?? 0) > 0 ? "\"-\"" + "?".repeat(r) : "\"-\""}_);_(@_)`;
4791
4792
  }
4792
4793
  case "Percentage": return "0" + s + "%";
@@ -4795,25 +4796,25 @@ function Wa(e) {
4795
4796
  case "Time":
4796
4797
  case "Fraction":
4797
4798
  case "Special":
4798
- case "Custom": return i || Ha(t);
4799
+ case "Custom": return i || Ua(t);
4799
4800
  }
4800
4801
  }
4801
- function Va(e) {
4802
+ function Ja(e) {
4802
4803
  const t = e.match(/\[\$([^\]-]+)(?:-[^\]]*)?\]/);
4803
4804
  if (t) return t[1];
4804
4805
  const r = e.match(/"([^"]+)"/);
4805
4806
  return r && "-" !== r[1] ? r[1] : (e.includes("$"), "$");
4806
4807
  }
4807
- function Ja(e) {
4808
+ function qa(e) {
4808
4809
  const t = sa(e);
4809
4810
  if (t.length < 2) return 0;
4810
4811
  const r = t[1], n = /\[red\]/i.test(r);
4811
4812
  return r.includes("(") ? n ? 3 : 2 : n ? 1 : 0;
4812
4813
  }
4813
- function qa(e) {
4814
+ function Ya(e) {
4814
4815
  if (null == e || "" === e) return { category: "General" };
4815
4816
  const t = aa().getFormatInfo(e), r = function(e, t) {
4816
- if (La.lookupStyle(e).formatType === de.Special) return "Special";
4817
+ if (Ra.lookupStyle(e).formatType === de.Special) return "Special";
4817
4818
  switch (t) {
4818
4819
  case "general": return "General";
4819
4820
  case "text": return "Text";
@@ -4829,19 +4830,19 @@ function qa(e) {
4829
4830
  }(e) ? "Accounting" : "Currency";
4830
4831
  case "number":
4831
4832
  case "grouped": return function(e) {
4832
- return La.lookupStyle(e).formatType === de.Special;
4833
+ return Ra.lookupStyle(e).formatType === de.Special;
4833
4834
  }(e) ? "Special" : "Number";
4834
4835
  }
4835
4836
  }(e, t?.type), n = { category: r };
4836
4837
  switch (r) {
4837
4838
  case "Number":
4838
- n.decimalPlaces = t?.maxDecimals ?? 0, n.useSeparator = !!t?.grouped, n.negativeStyle = Ja(e);
4839
+ n.decimalPlaces = t?.maxDecimals ?? 0, n.useSeparator = !!t?.grouped, n.negativeStyle = qa(e);
4839
4840
  break;
4840
4841
  case "Currency":
4841
- n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = Va(e), n.negativeStyle = Ja(e);
4842
+ n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = Ja(e), n.negativeStyle = qa(e);
4842
4843
  break;
4843
4844
  case "Accounting":
4844
- n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = Va(e);
4845
+ n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = Ja(e);
4845
4846
  break;
4846
4847
  case "Percentage":
4847
4848
  case "Scientific":
@@ -4851,11 +4852,11 @@ function qa(e) {
4851
4852
  }
4852
4853
  return n;
4853
4854
  }
4854
- (Da = _a || (_a = {})).Type = de, Da.Parser = fa, Da.Styles = new Na(), Da.ParseRunType = {
4855
+ (xa = Da || (Da = {})).Type = de, xa.Parser = ya, xa.Styles = new Ba(), xa.ParseRunType = {
4855
4856
  Text: "text",
4856
4857
  Repeat: "repeat",
4857
4858
  Spacing: "spacing"
4858
- }, Da.toBuiltInID = Sa, Da.resolve = an, Da.builtInFormat = nn, Da.getEngine = aa, Da.Builder = Ba, (Aa = xa || (xa = {})).AdjustmentType = {
4859
+ }, xa.toBuiltInID = ba, xa.resolve = an, xa.builtInFormat = nn, xa.getEngine = aa, xa.Builder = La, (Fa = Aa || (Aa = {})).AdjustmentType = {
4859
4860
  Alpha: "alpha",
4860
4861
  AlphaOff: "alphaOff",
4861
4862
  AlphaMod: "alphaMod",
@@ -4885,7 +4886,7 @@ function qa(e) {
4885
4886
  Inv: "inv",
4886
4887
  Gamma: "gamma",
4887
4888
  InvGamma: "invGamma"
4888
- }, Aa.Named = {
4889
+ }, Fa.Named = {
4889
4890
  ActiveBorder: "activeBorder",
4890
4891
  ActiveCaption: "activeCaption",
4891
4892
  CaptionText: "captionText",
@@ -5061,7 +5062,7 @@ function qa(e) {
5061
5062
  GradientInactiveCaption: "gradientInactiveCaption",
5062
5063
  MenuBar: "menuBar",
5063
5064
  MenuHighlight: "menuHighlight"
5064
- }, Aa.Scheme = {
5065
+ }, Fa.Scheme = {
5065
5066
  Bg1: "bg1",
5066
5067
  Bg2: "bg2",
5067
5068
  Tx1: "tx1",
@@ -5074,7 +5075,7 @@ function qa(e) {
5074
5075
  Accent6: "accent6",
5075
5076
  Hlink: "hlink",
5076
5077
  FolHlink: "folHlink"
5077
- }, Aa.Type = {
5078
+ }, Fa.Type = {
5078
5079
  Scheme: "scheme",
5079
5080
  Named: "named",
5080
5081
  Index: "index",
@@ -5084,297 +5085,297 @@ function qa(e) {
5084
5085
  LRGB: "lrgb",
5085
5086
  Hex: "hex"
5086
5087
  };
5087
- var Ya = [
5088
+ var Xa = [
5088
5089
  [
5089
5090
  16777215,
5090
- xa.Named.Transparent,
5091
+ Aa.Named.Transparent,
5091
5092
  !0
5092
5093
  ],
5093
5094
  [
5094
5095
  4290032820,
5095
- xa.Named.ActiveBorder,
5096
+ Aa.Named.ActiveBorder,
5096
5097
  !0
5097
5098
  ],
5098
5099
  [
5099
5100
  4288263377,
5100
- xa.Named.ActiveCaption,
5101
+ Aa.Named.ActiveCaption,
5101
5102
  !0
5102
5103
  ],
5103
5104
  [
5104
5105
  4278190080,
5105
- xa.Named.CaptionText,
5106
+ Aa.Named.CaptionText,
5106
5107
  !0
5107
5108
  ],
5108
5109
  [
5109
5110
  4289440683,
5110
- xa.Named.AppWorkspace,
5111
+ Aa.Named.AppWorkspace,
5111
5112
  !0
5112
5113
  ],
5113
5114
  [
5114
5115
  4293980400,
5115
- xa.Named.BtnFace,
5116
+ Aa.Named.BtnFace,
5116
5117
  !0
5117
5118
  ],
5118
5119
  [
5119
5120
  4285098345,
5120
- xa.Named.BtnShadow,
5121
+ Aa.Named.BtnShadow,
5121
5122
  !0
5122
5123
  ],
5123
5124
  [
5124
5125
  4278190080,
5125
- xa.Named.DkShadow3d,
5126
+ Aa.Named.DkShadow3d,
5126
5127
  !0
5127
5128
  ],
5128
5129
  [
5129
5130
  4293125091,
5130
- xa.Named.BtnHighlight,
5131
+ Aa.Named.BtnHighlight,
5131
5132
  !0
5132
5133
  ],
5133
5134
  [
5134
5135
  4293125091,
5135
- xa.Named.Light3d,
5136
+ Aa.Named.Light3d,
5136
5137
  !0
5137
5138
  ],
5138
5139
  [
5139
5140
  4278190080,
5140
- xa.Named.BtnText,
5141
+ Aa.Named.BtnText,
5141
5142
  !0
5142
5143
  ],
5143
5144
  [
5144
5145
  4278190080,
5145
- xa.Named.Background,
5146
+ Aa.Named.Background,
5146
5147
  !0
5147
5148
  ],
5148
5149
  [
5149
5150
  4285361517,
5150
- xa.Named.GrayText,
5151
+ Aa.Named.GrayText,
5151
5152
  !0
5152
5153
  ],
5153
5154
  [
5154
5155
  4281571839,
5155
- xa.Named.Highlight,
5156
+ Aa.Named.Highlight,
5156
5157
  !0
5157
5158
  ],
5158
5159
  [
5159
5160
  4294967295,
5160
- xa.Named.HighlightText,
5161
+ Aa.Named.HighlightText,
5161
5162
  !0
5162
5163
  ],
5163
5164
  [
5164
5165
  4278216396,
5165
- xa.Named.HotLight,
5166
+ Aa.Named.HotLight,
5166
5167
  !0
5167
5168
  ],
5168
5169
  [
5169
5170
  4294244348,
5170
- xa.Named.InactiveBorder,
5171
+ Aa.Named.InactiveBorder,
5171
5172
  !0
5172
5173
  ],
5173
5174
  [
5174
5175
  4290760155,
5175
- xa.Named.InactiveCaption,
5176
+ Aa.Named.InactiveCaption,
5176
5177
  !0
5177
5178
  ],
5178
5179
  [
5179
5180
  4278190080,
5180
- xa.Named.InactiveCaptionText,
5181
+ Aa.Named.InactiveCaptionText,
5181
5182
  !0
5182
5183
  ],
5183
5184
  [
5184
5185
  4294967265,
5185
- xa.Named.InfoBk,
5186
+ Aa.Named.InfoBk,
5186
5187
  !0
5187
5188
  ],
5188
5189
  [
5189
5190
  4278190080,
5190
- xa.Named.InfoText,
5191
+ Aa.Named.InfoText,
5191
5192
  !0
5192
5193
  ],
5193
5194
  [
5194
5195
  4293980400,
5195
- xa.Named.Menu,
5196
+ Aa.Named.Menu,
5196
5197
  !0
5197
5198
  ],
5198
5199
  [
5199
5200
  4278190080,
5200
- xa.Named.MenuText,
5201
+ Aa.Named.MenuText,
5201
5202
  !0
5202
5203
  ],
5203
5204
  [
5204
5205
  4291348680,
5205
- xa.Named.ScrollBar,
5206
+ Aa.Named.ScrollBar,
5206
5207
  !0
5207
5208
  ],
5208
5209
  [
5209
5210
  4294967295,
5210
- xa.Named.Window,
5211
+ Aa.Named.Window,
5211
5212
  !0
5212
5213
  ],
5213
5214
  [
5214
5215
  4284769380,
5215
- xa.Named.WindowFrame,
5216
+ Aa.Named.WindowFrame,
5216
5217
  !0
5217
5218
  ],
5218
5219
  [
5219
5220
  4278190080,
5220
- xa.Named.WindowText,
5221
+ Aa.Named.WindowText,
5221
5222
  !0
5222
5223
  ],
5223
- [16777215, xa.Named.Transparent],
5224
- [4293982463, xa.Named.AliceBlue],
5225
- [4294634455, xa.Named.AntiqueWhite],
5226
- [4278255615, xa.Named.Aqua],
5227
- [4286578644, xa.Named.Aquamarine],
5228
- [4293984255, xa.Named.Azure],
5229
- [4294309340, xa.Named.Beige],
5230
- [4294960324, xa.Named.Bisque],
5231
- [4278190080, xa.Named.Black],
5232
- [4294962125, xa.Named.BlanchedAlmond],
5233
- [4278190335, xa.Named.Blue],
5234
- [4287245282, xa.Named.BlueViolet],
5235
- [4289014314, xa.Named.Brown],
5236
- [4292786311, xa.Named.BurlyWood],
5237
- [4284456608, xa.Named.CadetBlue],
5238
- [4286578432, xa.Named.Chartreuse],
5239
- [4291979550, xa.Named.Chocolate],
5240
- [4294934352, xa.Named.Coral],
5241
- [4284782061, xa.Named.CornflowerBlue],
5242
- [4294965468, xa.Named.Cornsilk],
5243
- [4292613180, xa.Named.Crimson],
5244
- [4278255615, xa.Named.Cyan],
5245
- [4278190219, xa.Named.DkBlue],
5246
- [4278225803, xa.Named.DkCyan],
5247
- [4290283019, xa.Named.DkGoldenrod],
5248
- [4289309097, xa.Named.DkGray],
5249
- [4278215680, xa.Named.DkGreen],
5250
- [4290623339, xa.Named.DkKhaki],
5251
- [4287299723, xa.Named.DkMagenta],
5252
- [4283788079, xa.Named.DkOliveGreen],
5253
- [4294937600, xa.Named.DkOrange],
5254
- [4288230092, xa.Named.DkOrchid],
5255
- [4287299584, xa.Named.DkRed],
5256
- [4293498490, xa.Named.DkSalmon],
5257
- [4287609995, xa.Named.DkSeaGreen],
5258
- [4282924427, xa.Named.DkSlateBlue],
5259
- [4281290575, xa.Named.DkSlateGray],
5260
- [4278243025, xa.Named.DkTurquoise],
5261
- [4287889619, xa.Named.DkViolet],
5262
- [4294907027, xa.Named.DeepPink],
5263
- [4278239231, xa.Named.DeepSkyBlue],
5264
- [4285098345, xa.Named.DimGray],
5265
- [4280193279, xa.Named.DodgerBlue],
5266
- [4289864226, xa.Named.Firebrick],
5267
- [4294966e3, xa.Named.FloralWhite],
5268
- [4280453922, xa.Named.ForestGreen],
5269
- [4294902015, xa.Named.Fuchsia],
5270
- [4292664540, xa.Named.Gainsboro],
5271
- [4294506751, xa.Named.GhostWhite],
5272
- [4294956800, xa.Named.Gold],
5273
- [4292519200, xa.Named.Goldenrod],
5274
- [4286611584, xa.Named.Gray],
5275
- [4278222848, xa.Named.Green],
5276
- [4289593135, xa.Named.GreenYellow],
5277
- [4293984240, xa.Named.Honeydew],
5278
- [4294928820, xa.Named.HotPink],
5279
- [4291648604, xa.Named.IndianRed],
5280
- [4283105410, xa.Named.Indigo],
5281
- [4294967280, xa.Named.Ivory],
5282
- [4293977740, xa.Named.Khaki],
5283
- [4293322490, xa.Named.Lavender],
5284
- [4294963445, xa.Named.LavenderBlush],
5285
- [4286381056, xa.Named.LawnGreen],
5286
- [4294965965, xa.Named.LemonChiffon],
5287
- [4289583334, xa.Named.LtBlue],
5288
- [4293951616, xa.Named.LtCoral],
5289
- [4292935679, xa.Named.LtCyan],
5290
- [4294638200, xa.Named.LtGoldenrodYellow],
5291
- [4292072403, xa.Named.LtGray],
5292
- [4287688336, xa.Named.LtGreen],
5293
- [4294948545, xa.Named.LtPink],
5294
- [4294942842, xa.Named.LtSalmon],
5295
- [4280332970, xa.Named.LtSeaGreen],
5296
- [4287090426, xa.Named.LtSkyBlue],
5297
- [4286023833, xa.Named.LtSlateGray],
5298
- [4289774814, xa.Named.LtSteelBlue],
5299
- [4294967264, xa.Named.LtYellow],
5300
- [4278255360, xa.Named.Lime],
5301
- [4281519410, xa.Named.LimeGreen],
5302
- [4294635750, xa.Named.Linen],
5303
- [4294902015, xa.Named.Magenta],
5304
- [4286578688, xa.Named.Maroon],
5305
- [4284927402, xa.Named.MedAquamarine],
5306
- [4278190285, xa.Named.MedBlue],
5307
- [4290401747, xa.Named.MedOrchid],
5308
- [4287852763, xa.Named.MedPurple],
5309
- [4282168177, xa.Named.MedSeaGreen],
5310
- [4286277870, xa.Named.MedSlateBlue],
5311
- [4278254234, xa.Named.MedSpringGreen],
5312
- [4282962380, xa.Named.MedTurquoise],
5313
- [4291237253, xa.Named.MedVioletRed],
5314
- [4279834992, xa.Named.MidnightBlue],
5315
- [4294311930, xa.Named.MintCream],
5316
- [4294960353, xa.Named.MistyRose],
5317
- [4294960309, xa.Named.Moccasin],
5318
- [4294958765, xa.Named.NavajoWhite],
5319
- [4278190208, xa.Named.Navy],
5320
- [4294833638, xa.Named.OldLace],
5321
- [4286611456, xa.Named.Olive],
5322
- [4285238819, xa.Named.OliveDrab],
5323
- [4294944e3, xa.Named.Orange],
5324
- [4294919424, xa.Named.OrangeRed],
5325
- [4292505814, xa.Named.Orchid],
5326
- [4293847210, xa.Named.PaleGoldenrod],
5327
- [4288215960, xa.Named.PaleGreen],
5328
- [4289720046, xa.Named.PaleTurquoise],
5329
- [4292571283, xa.Named.PaleVioletRed],
5330
- [4294963157, xa.Named.PapayaWhip],
5331
- [4294957753, xa.Named.PeachPuff],
5332
- [4291659071, xa.Named.Peru],
5333
- [4294951115, xa.Named.Pink],
5334
- [4292714717, xa.Named.Plum],
5335
- [4289781990, xa.Named.PowderBlue],
5336
- [4286578816, xa.Named.Purple],
5337
- [4294901760, xa.Named.Red],
5338
- [4290547599, xa.Named.RosyBrown],
5339
- [4282477025, xa.Named.RoyalBlue],
5340
- [4287317267, xa.Named.SaddleBrown],
5341
- [4294606962, xa.Named.Salmon],
5342
- [4294222944, xa.Named.SandyBrown],
5343
- [4281240407, xa.Named.SeaGreen],
5344
- [4294964718, xa.Named.SeaShell],
5345
- [4288696877, xa.Named.Sienna],
5346
- [4290822336, xa.Named.Silver],
5347
- [4287090411, xa.Named.SkyBlue],
5348
- [4285160141, xa.Named.SlateBlue],
5349
- [4285563024, xa.Named.SlateGray],
5350
- [4294966010, xa.Named.Snow],
5351
- [4278255487, xa.Named.SpringGreen],
5352
- [4282811060, xa.Named.SteelBlue],
5353
- [4291998860, xa.Named.Tan],
5354
- [4278222976, xa.Named.Teal],
5355
- [4292394968, xa.Named.Thistle],
5356
- [4294927175, xa.Named.Tomato],
5357
- [4282441936, xa.Named.Turquoise],
5358
- [4293821166, xa.Named.Violet],
5359
- [4294303411, xa.Named.Wheat],
5360
- [4294967295, xa.Named.White],
5361
- [4294309365, xa.Named.WhiteSmoke],
5362
- [4294967040, xa.Named.Yellow],
5363
- [4288335154, xa.Named.YellowGreen],
5364
- [4293980400, xa.Named.ButtonFace],
5365
- [4294967295, xa.Named.ButtonHighlight],
5366
- [4288716960, xa.Named.ButtonShadow],
5367
- [4290367978, xa.Named.GradientActiveCaption],
5368
- [4292338930, xa.Named.GradientInactiveCaption],
5369
- [4293980400, xa.Named.MenuBar],
5370
- [4281571839, xa.Named.MenuHighlight],
5371
- [4286611584, xa.Named.Grey]
5372
- ], Xa = new class {
5224
+ [16777215, Aa.Named.Transparent],
5225
+ [4293982463, Aa.Named.AliceBlue],
5226
+ [4294634455, Aa.Named.AntiqueWhite],
5227
+ [4278255615, Aa.Named.Aqua],
5228
+ [4286578644, Aa.Named.Aquamarine],
5229
+ [4293984255, Aa.Named.Azure],
5230
+ [4294309340, Aa.Named.Beige],
5231
+ [4294960324, Aa.Named.Bisque],
5232
+ [4278190080, Aa.Named.Black],
5233
+ [4294962125, Aa.Named.BlanchedAlmond],
5234
+ [4278190335, Aa.Named.Blue],
5235
+ [4287245282, Aa.Named.BlueViolet],
5236
+ [4289014314, Aa.Named.Brown],
5237
+ [4292786311, Aa.Named.BurlyWood],
5238
+ [4284456608, Aa.Named.CadetBlue],
5239
+ [4286578432, Aa.Named.Chartreuse],
5240
+ [4291979550, Aa.Named.Chocolate],
5241
+ [4294934352, Aa.Named.Coral],
5242
+ [4284782061, Aa.Named.CornflowerBlue],
5243
+ [4294965468, Aa.Named.Cornsilk],
5244
+ [4292613180, Aa.Named.Crimson],
5245
+ [4278255615, Aa.Named.Cyan],
5246
+ [4278190219, Aa.Named.DkBlue],
5247
+ [4278225803, Aa.Named.DkCyan],
5248
+ [4290283019, Aa.Named.DkGoldenrod],
5249
+ [4289309097, Aa.Named.DkGray],
5250
+ [4278215680, Aa.Named.DkGreen],
5251
+ [4290623339, Aa.Named.DkKhaki],
5252
+ [4287299723, Aa.Named.DkMagenta],
5253
+ [4283788079, Aa.Named.DkOliveGreen],
5254
+ [4294937600, Aa.Named.DkOrange],
5255
+ [4288230092, Aa.Named.DkOrchid],
5256
+ [4287299584, Aa.Named.DkRed],
5257
+ [4293498490, Aa.Named.DkSalmon],
5258
+ [4287609995, Aa.Named.DkSeaGreen],
5259
+ [4282924427, Aa.Named.DkSlateBlue],
5260
+ [4281290575, Aa.Named.DkSlateGray],
5261
+ [4278243025, Aa.Named.DkTurquoise],
5262
+ [4287889619, Aa.Named.DkViolet],
5263
+ [4294907027, Aa.Named.DeepPink],
5264
+ [4278239231, Aa.Named.DeepSkyBlue],
5265
+ [4285098345, Aa.Named.DimGray],
5266
+ [4280193279, Aa.Named.DodgerBlue],
5267
+ [4289864226, Aa.Named.Firebrick],
5268
+ [4294966e3, Aa.Named.FloralWhite],
5269
+ [4280453922, Aa.Named.ForestGreen],
5270
+ [4294902015, Aa.Named.Fuchsia],
5271
+ [4292664540, Aa.Named.Gainsboro],
5272
+ [4294506751, Aa.Named.GhostWhite],
5273
+ [4294956800, Aa.Named.Gold],
5274
+ [4292519200, Aa.Named.Goldenrod],
5275
+ [4286611584, Aa.Named.Gray],
5276
+ [4278222848, Aa.Named.Green],
5277
+ [4289593135, Aa.Named.GreenYellow],
5278
+ [4293984240, Aa.Named.Honeydew],
5279
+ [4294928820, Aa.Named.HotPink],
5280
+ [4291648604, Aa.Named.IndianRed],
5281
+ [4283105410, Aa.Named.Indigo],
5282
+ [4294967280, Aa.Named.Ivory],
5283
+ [4293977740, Aa.Named.Khaki],
5284
+ [4293322490, Aa.Named.Lavender],
5285
+ [4294963445, Aa.Named.LavenderBlush],
5286
+ [4286381056, Aa.Named.LawnGreen],
5287
+ [4294965965, Aa.Named.LemonChiffon],
5288
+ [4289583334, Aa.Named.LtBlue],
5289
+ [4293951616, Aa.Named.LtCoral],
5290
+ [4292935679, Aa.Named.LtCyan],
5291
+ [4294638200, Aa.Named.LtGoldenrodYellow],
5292
+ [4292072403, Aa.Named.LtGray],
5293
+ [4287688336, Aa.Named.LtGreen],
5294
+ [4294948545, Aa.Named.LtPink],
5295
+ [4294942842, Aa.Named.LtSalmon],
5296
+ [4280332970, Aa.Named.LtSeaGreen],
5297
+ [4287090426, Aa.Named.LtSkyBlue],
5298
+ [4286023833, Aa.Named.LtSlateGray],
5299
+ [4289774814, Aa.Named.LtSteelBlue],
5300
+ [4294967264, Aa.Named.LtYellow],
5301
+ [4278255360, Aa.Named.Lime],
5302
+ [4281519410, Aa.Named.LimeGreen],
5303
+ [4294635750, Aa.Named.Linen],
5304
+ [4294902015, Aa.Named.Magenta],
5305
+ [4286578688, Aa.Named.Maroon],
5306
+ [4284927402, Aa.Named.MedAquamarine],
5307
+ [4278190285, Aa.Named.MedBlue],
5308
+ [4290401747, Aa.Named.MedOrchid],
5309
+ [4287852763, Aa.Named.MedPurple],
5310
+ [4282168177, Aa.Named.MedSeaGreen],
5311
+ [4286277870, Aa.Named.MedSlateBlue],
5312
+ [4278254234, Aa.Named.MedSpringGreen],
5313
+ [4282962380, Aa.Named.MedTurquoise],
5314
+ [4291237253, Aa.Named.MedVioletRed],
5315
+ [4279834992, Aa.Named.MidnightBlue],
5316
+ [4294311930, Aa.Named.MintCream],
5317
+ [4294960353, Aa.Named.MistyRose],
5318
+ [4294960309, Aa.Named.Moccasin],
5319
+ [4294958765, Aa.Named.NavajoWhite],
5320
+ [4278190208, Aa.Named.Navy],
5321
+ [4294833638, Aa.Named.OldLace],
5322
+ [4286611456, Aa.Named.Olive],
5323
+ [4285238819, Aa.Named.OliveDrab],
5324
+ [4294944e3, Aa.Named.Orange],
5325
+ [4294919424, Aa.Named.OrangeRed],
5326
+ [4292505814, Aa.Named.Orchid],
5327
+ [4293847210, Aa.Named.PaleGoldenrod],
5328
+ [4288215960, Aa.Named.PaleGreen],
5329
+ [4289720046, Aa.Named.PaleTurquoise],
5330
+ [4292571283, Aa.Named.PaleVioletRed],
5331
+ [4294963157, Aa.Named.PapayaWhip],
5332
+ [4294957753, Aa.Named.PeachPuff],
5333
+ [4291659071, Aa.Named.Peru],
5334
+ [4294951115, Aa.Named.Pink],
5335
+ [4292714717, Aa.Named.Plum],
5336
+ [4289781990, Aa.Named.PowderBlue],
5337
+ [4286578816, Aa.Named.Purple],
5338
+ [4294901760, Aa.Named.Red],
5339
+ [4290547599, Aa.Named.RosyBrown],
5340
+ [4282477025, Aa.Named.RoyalBlue],
5341
+ [4287317267, Aa.Named.SaddleBrown],
5342
+ [4294606962, Aa.Named.Salmon],
5343
+ [4294222944, Aa.Named.SandyBrown],
5344
+ [4281240407, Aa.Named.SeaGreen],
5345
+ [4294964718, Aa.Named.SeaShell],
5346
+ [4288696877, Aa.Named.Sienna],
5347
+ [4290822336, Aa.Named.Silver],
5348
+ [4287090411, Aa.Named.SkyBlue],
5349
+ [4285160141, Aa.Named.SlateBlue],
5350
+ [4285563024, Aa.Named.SlateGray],
5351
+ [4294966010, Aa.Named.Snow],
5352
+ [4278255487, Aa.Named.SpringGreen],
5353
+ [4282811060, Aa.Named.SteelBlue],
5354
+ [4291998860, Aa.Named.Tan],
5355
+ [4278222976, Aa.Named.Teal],
5356
+ [4292394968, Aa.Named.Thistle],
5357
+ [4294927175, Aa.Named.Tomato],
5358
+ [4282441936, Aa.Named.Turquoise],
5359
+ [4293821166, Aa.Named.Violet],
5360
+ [4294303411, Aa.Named.Wheat],
5361
+ [4294967295, Aa.Named.White],
5362
+ [4294309365, Aa.Named.WhiteSmoke],
5363
+ [4294967040, Aa.Named.Yellow],
5364
+ [4288335154, Aa.Named.YellowGreen],
5365
+ [4293980400, Aa.Named.ButtonFace],
5366
+ [4294967295, Aa.Named.ButtonHighlight],
5367
+ [4288716960, Aa.Named.ButtonShadow],
5368
+ [4290367978, Aa.Named.GradientActiveCaption],
5369
+ [4292338930, Aa.Named.GradientInactiveCaption],
5370
+ [4293980400, Aa.Named.MenuBar],
5371
+ [4281571839, Aa.Named.MenuHighlight],
5372
+ [4286611584, Aa.Named.Grey]
5373
+ ], Za = new class {
5373
5374
  constructor() {
5374
5375
  this._lookupByName = /* @__PURE__ */ new Map();
5375
- const e = Ya.length;
5376
+ const e = Xa.length;
5376
5377
  for (let t = 0; t < e; t++) {
5377
- const e = Ya[t], r = e[0], n = (r >> 24 & 255) / 255, a = r >> 16 & 255, o = r >> 8 & 255, i = 255 & r, s = {
5378
+ const e = Xa[t], r = e[0], n = (r >> 24 & 255) / 255, a = r >> 16 & 255, o = r >> 8 & 255, i = 255 & r, s = {
5378
5379
  id: t,
5379
5380
  name: e[1],
5380
5381
  rgbaColor: {
@@ -5399,53 +5400,53 @@ var Ya = [
5399
5400
  t[n] = `#${e(a)}${e(o)}${e(i)}`;
5400
5401
  }), t;
5401
5402
  }
5402
- }(), Za = [
5403
+ }(), Qa = [
5403
5404
  {
5404
- scheme: xa.Scheme.Tx1,
5405
+ scheme: Aa.Scheme.Tx1,
5405
5406
  description: "First Text Color"
5406
5407
  },
5407
5408
  {
5408
- scheme: xa.Scheme.Tx2,
5409
+ scheme: Aa.Scheme.Tx2,
5409
5410
  description: "Second Text Color"
5410
5411
  },
5411
5412
  {
5412
- scheme: xa.Scheme.Bg1,
5413
+ scheme: Aa.Scheme.Bg1,
5413
5414
  description: "First Background Color"
5414
5415
  },
5415
5416
  {
5416
- scheme: xa.Scheme.Bg2,
5417
+ scheme: Aa.Scheme.Bg2,
5417
5418
  description: "Second Background Color"
5418
5419
  },
5419
5420
  {
5420
- scheme: xa.Scheme.Accent1,
5421
+ scheme: Aa.Scheme.Accent1,
5421
5422
  description: "Accent 1"
5422
5423
  },
5423
5424
  {
5424
- scheme: xa.Scheme.Accent2,
5425
+ scheme: Aa.Scheme.Accent2,
5425
5426
  description: "Accent 2"
5426
5427
  },
5427
5428
  {
5428
- scheme: xa.Scheme.Accent3,
5429
+ scheme: Aa.Scheme.Accent3,
5429
5430
  description: "Accent 3"
5430
5431
  },
5431
5432
  {
5432
- scheme: xa.Scheme.Accent4,
5433
+ scheme: Aa.Scheme.Accent4,
5433
5434
  description: "Accent 4"
5434
5435
  },
5435
5436
  {
5436
- scheme: xa.Scheme.Accent5,
5437
+ scheme: Aa.Scheme.Accent5,
5437
5438
  description: "Accent 5"
5438
5439
  },
5439
5440
  {
5440
- scheme: xa.Scheme.Accent6,
5441
+ scheme: Aa.Scheme.Accent6,
5441
5442
  description: "Accent 6"
5442
5443
  },
5443
5444
  {
5444
- scheme: xa.Scheme.Hlink,
5445
+ scheme: Aa.Scheme.Hlink,
5445
5446
  description: "Hyperlink"
5446
5447
  },
5447
5448
  {
5448
- scheme: xa.Scheme.FolHlink,
5449
+ scheme: Aa.Scheme.FolHlink,
5449
5450
  description: "Followed Hyperlink"
5450
5451
  },
5451
5452
  {
@@ -5464,55 +5465,55 @@ var Ya = [
5464
5465
  scheme: "lt2",
5465
5466
  description: "Text/Background - Light 2"
5466
5467
  }
5467
- ], Qa = /* @__PURE__ */ new Map();
5468
- for (let e = 0; e < Za.length; e++) Qa.set(Za[e].scheme.toLowerCase(), Za[e]);
5469
- var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5468
+ ], eo = /* @__PURE__ */ new Map();
5469
+ for (let e = 0; e < Qa.length; e++) eo.set(Qa[e].scheme.toLowerCase(), Qa[e]);
5470
+ var to, ro, no, ao, oo, io = "lastclr", so = (e) => {
5470
5471
  if (!e) return null;
5471
5472
  const t = e.replace("#", "");
5472
5473
  if (t.length < 6) return null;
5473
5474
  const r = parseInt(t.substring(0, 2), 16), n = parseInt(t.substring(2, 4), 16), a = parseInt(t.substring(4, 6), 16);
5474
5475
  return isNaN(r) || isNaN(n) || isNaN(a) ? null : new Xt.RGBA(r, n, a, 1);
5475
- }, so = (e) => new Xt.HEX(e.red, e.green, e.blue, 1).toString(!1).replace("#", ""), lo = (e) => new Xt.RGBA(e.rgbaColor.r, e.rgbaColor.g, e.rgbaColor.b, e.rgbaColor.a), uo = (e, t, r) => {
5476
- const n = Xa.valueOfName(e);
5476
+ }, lo = (e) => new Xt.HEX(e.red, e.green, e.blue, 1).toString(!1).replace("#", ""), uo = (e) => new Xt.RGBA(e.rgbaColor.r, e.rgbaColor.g, e.rgbaColor.b, e.rgbaColor.a), co = (e, t, r) => {
5477
+ const n = Za.valueOfName(e);
5477
5478
  if (!n) return null;
5478
5479
  if (n.system) {
5479
5480
  const e = n.name;
5480
5481
  return {
5481
- rgba: (t ? t(e, !1) : null)?.toRGBA() ?? r ?? lo(n),
5482
+ rgba: (t ? t(e, !1) : null)?.toRGBA() ?? r ?? uo(n),
5482
5483
  systemName: e
5483
5484
  };
5484
5485
  }
5485
5486
  return {
5486
- rgba: lo(n),
5487
+ rgba: uo(n),
5487
5488
  systemName: null
5488
5489
  };
5489
- }, co = (e) => {
5490
+ }, mo = (e) => {
5490
5491
  if (!e) return null;
5491
5492
  const t = e.getAdjustments();
5492
5493
  if (t && t.length > 0) return null;
5493
5494
  const r = e.getType();
5494
- return r === xa.Type.Auto ? xa.Named.WindowText : r === xa.Type.Named && To.isSystem(e.getVal()) ? e.getVal() : null;
5495
- }, mo = (e) => e ? {
5495
+ return r === Aa.Type.Auto ? Aa.Named.WindowText : r === Aa.Type.Named && _o.isSystem(e.getVal()) ? e.getVal() : null;
5496
+ }, ho = (e) => e ? {
5496
5497
  srgb: [
5497
5498
  e.red / 255,
5498
5499
  e.green / 255,
5499
5500
  e.blue / 255
5500
5501
  ],
5501
5502
  alpha: void 0 !== e.alpha ? e.alpha : 1
5502
- } : null, ho = function(e, t, r, n, a) {
5503
- let o, i = null, s = null, l = null, u = xa.Type.Named;
5503
+ } : null, po = function(e, t, r, n, a) {
5504
+ let o, i = null, s = null, l = null, u = Aa.Type.Named;
5504
5505
  if ("auto" === e.toLowerCase()) {
5505
- const e = uo(xa.Named.WindowText, n, a);
5506
- o = mo(e.rgba), i = e.systemName, u = xa.Type.Auto;
5506
+ const e = co(Aa.Named.WindowText, n, a);
5507
+ o = ho(e.rgba), i = e.systemName, u = Aa.Type.Auto;
5507
5508
  } else {
5508
- const t = uo(e, n, a);
5509
- o = mo(t?.rgba ?? null), i = t?.systemName ?? null;
5509
+ const t = co(e, n, a);
5510
+ o = ho(t?.rgba ?? null), i = t?.systemName ?? null;
5510
5511
  }
5511
- if (null === o && ("phClr" === (d = e) && (d = "dk1"), Qa.get(d.toLowerCase()))) {
5512
+ if (null === o && ("phClr" === (d = e) && (d = "dk1"), eo.get(d.toLowerCase()))) {
5512
5513
  if (!t) throw new Error("a scheme val was used but a schemeLookup was not provided");
5513
5514
  s = e;
5514
5515
  const r = t(s);
5515
- l = r.toRGBA(), o = mo(l), i = co(r), u = xa.Type.Scheme;
5516
+ l = r.toRGBA(), o = ho(l), i = mo(r), u = Aa.Type.Scheme;
5516
5517
  }
5517
5518
  var d;
5518
5519
  if (null === o) {
@@ -5530,7 +5531,7 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5530
5531
  ], r = br(parseInt(t[1], 16) / 255)), e = gr(e), e = Sr(e), o = {
5531
5532
  srgb: e,
5532
5533
  alpha: r
5533
- }, u = xa.Type.Hex;
5534
+ }, u = Aa.Type.Hex;
5534
5535
  }
5535
5536
  }
5536
5537
  if (null === o) {
@@ -5540,7 +5541,7 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5540
5541
  e = gr(e), e = Sr(e), o = {
5541
5542
  srgb: e,
5542
5543
  alpha: t[4] ? br(parseFloat(t[4])) : 1
5543
- }, u = xa.Type.RGB;
5544
+ }, u = Aa.Type.RGB;
5544
5545
  }
5545
5546
  }
5546
5547
  if (null === o) {
@@ -5550,7 +5551,7 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5550
5551
  e = gr(e, 100), e = Cr(e), e = Sr(e), o = {
5551
5552
  srgb: e,
5552
5553
  alpha: t[4] ? br(parseFloat(t[4])) : 1
5553
- }, u = xa.Type.LRGB;
5554
+ }, u = Aa.Type.LRGB;
5554
5555
  }
5555
5556
  }
5556
5557
  if (null === o) {
@@ -5560,13 +5561,13 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5560
5561
  e = Tr(e), e = Sr(e), o = {
5561
5562
  srgb: e,
5562
5563
  alpha: t[4] ? br(parseFloat(t[4])) : 1
5563
- }, u = xa.Type.HSL;
5564
+ }, u = Aa.Type.HSL;
5564
5565
  }
5565
5566
  }
5566
5567
  if (null === o) {
5567
5568
  let t = e.match(hr);
5568
5569
  if (t) {
5569
- const e = parseInt(t[1]), s = r?.(e), l = s ? null : Xr(e), d = s ? s.toRGBA() : l ? uo(l, n, a).rgba : Zr(e);
5570
+ const e = parseInt(t[1]), s = r?.(e), l = s ? null : Xr(e), d = s ? s.toRGBA() : l ? co(l, n, a).rgba : Zr(e);
5570
5571
  d && (o = {
5571
5572
  srgb: [
5572
5573
  d.red / 255,
@@ -5574,7 +5575,7 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5574
5575
  d.blue / 255
5575
5576
  ],
5576
5577
  alpha: d.alpha
5577
- }, i = s ? co(s) : l, u = xa.Type.Index);
5578
+ }, i = s ? mo(s) : l, u = Aa.Type.Index);
5578
5579
  }
5579
5580
  }
5580
5581
  if (null === o) throw new Error("Not a valid color format: " + e);
@@ -5585,49 +5586,49 @@ var eo, to, ro, no, ao, oo = "lastclr", io = (e) => {
5585
5586
  type: u,
5586
5587
  systemName: i
5587
5588
  };
5588
- }, po = (e, t) => {
5589
+ }, go = (e, t) => {
5589
5590
  let r = [...e.srgb], n = void 0 !== e.alpha ? e.alpha : 1;
5590
5591
  const a = t ? t.length : 0;
5591
5592
  for (var o = 0; o < a; o++) {
5592
5593
  const e = t[o], a = Object.keys(e)[0], i = e[a];
5593
- a === xa.AdjustmentType.Alpha ? n = Math.max(0, Math.min(1, i)) : a === xa.AdjustmentType.AlphaOff ? n = Math.max(0, Math.min(1, n + i)) : a === xa.AdjustmentType.AlphaMod ? n = Math.max(0, Math.min(1, n * i)) : a === xa.AdjustmentType.Hue ? r = Br(0, r, i) : a === xa.AdjustmentType.Sat ? r = Br(1, r, i) : a === xa.AdjustmentType.Lum ? r = Br(2, r, i) : a === xa.AdjustmentType.HueOff ? r = Lr(0, r, i) : a === xa.AdjustmentType.SatOff ? r = Lr(1, r, i) : a === xa.AdjustmentType.LumOff ? r = Lr(2, r, i) : a === xa.AdjustmentType.HueMod ? r = Rr(0, r, i) : a === xa.AdjustmentType.SatMod ? r = Rr(1, r, i) : a === xa.AdjustmentType.LumMod ? r = Rr(2, r, i) : a === xa.AdjustmentType.Red ? r = Pr(0, r, i, 0) : a === xa.AdjustmentType.Green ? r = Pr(1, r, i, 0) : a === xa.AdjustmentType.Blue ? r = Pr(2, r, i, 0) : a === xa.AdjustmentType.RedOff ? r = Pr(0, r, i, 1) : a === xa.AdjustmentType.GreenOff ? r = Pr(1, r, i, 1) : a === xa.AdjustmentType.BlueOff ? r = Pr(2, r, i, 1) : a === xa.AdjustmentType.RedMod ? r = Pr(0, r, i, 2) : a === xa.AdjustmentType.GreenMod ? r = Pr(1, r, i, 2) : a === xa.AdjustmentType.BlueMod ? r = Pr(2, r, i, 2) : a === xa.AdjustmentType.Shade ? r = xr(r, i) : a === xa.AdjustmentType.Tint ? r = Nr(r, i) : a === xa.AdjustmentType.ETint ? r = Fr(r, i) : a === xa.AdjustmentType.Gray ? r = Ir(r) : a === xa.AdjustmentType.Comp ? r = Er(r) : a === xa.AdjustmentType.Inv ? r = jr(r, i) : a === xa.AdjustmentType.Gamma ? r = Gr(r) : a === xa.AdjustmentType.InvGamma ? r = Or(r) : console.warn("unknown adjustmentType: " + a);
5594
+ a === Aa.AdjustmentType.Alpha ? n = Math.max(0, Math.min(1, i)) : a === Aa.AdjustmentType.AlphaOff ? n = Math.max(0, Math.min(1, n + i)) : a === Aa.AdjustmentType.AlphaMod ? n = Math.max(0, Math.min(1, n * i)) : a === Aa.AdjustmentType.Hue ? r = Br(0, r, i) : a === Aa.AdjustmentType.Sat ? r = Br(1, r, i) : a === Aa.AdjustmentType.Lum ? r = Br(2, r, i) : a === Aa.AdjustmentType.HueOff ? r = Lr(0, r, i) : a === Aa.AdjustmentType.SatOff ? r = Lr(1, r, i) : a === Aa.AdjustmentType.LumOff ? r = Lr(2, r, i) : a === Aa.AdjustmentType.HueMod ? r = Rr(0, r, i) : a === Aa.AdjustmentType.SatMod ? r = Rr(1, r, i) : a === Aa.AdjustmentType.LumMod ? r = Rr(2, r, i) : a === Aa.AdjustmentType.Red ? r = Pr(0, r, i, 0) : a === Aa.AdjustmentType.Green ? r = Pr(1, r, i, 0) : a === Aa.AdjustmentType.Blue ? r = Pr(2, r, i, 0) : a === Aa.AdjustmentType.RedOff ? r = Pr(0, r, i, 1) : a === Aa.AdjustmentType.GreenOff ? r = Pr(1, r, i, 1) : a === Aa.AdjustmentType.BlueOff ? r = Pr(2, r, i, 1) : a === Aa.AdjustmentType.RedMod ? r = Pr(0, r, i, 2) : a === Aa.AdjustmentType.GreenMod ? r = Pr(1, r, i, 2) : a === Aa.AdjustmentType.BlueMod ? r = Pr(2, r, i, 2) : a === Aa.AdjustmentType.Shade ? r = xr(r, i) : a === Aa.AdjustmentType.Tint ? r = Nr(r, i) : a === Aa.AdjustmentType.ETint ? r = Fr(r, i) : a === Aa.AdjustmentType.Gray ? r = Ir(r) : a === Aa.AdjustmentType.Comp ? r = Er(r) : a === Aa.AdjustmentType.Inv ? r = jr(r, i) : a === Aa.AdjustmentType.Gamma ? r = Gr(r) : a === Aa.AdjustmentType.InvGamma ? r = Or(r) : console.warn("unknown adjustmentType: " + a);
5594
5595
  }
5595
5596
  return {
5596
5597
  srgb: r,
5597
5598
  alpha: n
5598
5599
  };
5599
- }, go = /* @__PURE__ */ new Map(), fo = Object.keys(xa.AdjustmentType), yo = fo.length;
5600
- for (let e = 0; e < yo; e++) {
5601
- const t = fo[e];
5602
- go.set(xa.AdjustmentType[t].toLowerCase(), xa.AdjustmentType[t]);
5603
- }
5604
- var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), bo = /* @__PURE__ */ new RegExp("\\s*[,]\\s*|\\s+"), wo = null, vo = null, Co = "--sxl-sys-color-", Mo = 0, ko = {
5605
- [xa.Scheme.Bg1]: "window",
5606
- [xa.Scheme.Bg2]: "E8E8E8",
5607
- [xa.Scheme.Tx1]: "windowText",
5608
- [xa.Scheme.Tx2]: "0E2841",
5609
- [xa.Scheme.Accent1]: "156082",
5610
- [xa.Scheme.Accent2]: "E97132",
5611
- [xa.Scheme.Accent3]: "196B24",
5612
- [xa.Scheme.Accent4]: "0F9ED5",
5613
- [xa.Scheme.Accent5]: "A02B93",
5614
- [xa.Scheme.Accent6]: "4EA72E",
5615
- [xa.Scheme.Hlink]: "467886",
5616
- [xa.Scheme.FolHlink]: "96607D"
5617
- }, To = class e {
5600
+ }, fo = /* @__PURE__ */ new Map(), yo = Object.keys(Aa.AdjustmentType), So = yo.length;
5601
+ for (let e = 0; e < So; e++) {
5602
+ const t = yo[e];
5603
+ fo.set(Aa.AdjustmentType[t].toLowerCase(), Aa.AdjustmentType[t]);
5604
+ }
5605
+ var bo = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), wo = /* @__PURE__ */ new RegExp("\\s*[,]\\s*|\\s+"), vo = null, Co = null, Mo = "--sxl-sys-color-", ko = 0, To = {
5606
+ [Aa.Scheme.Bg1]: "window",
5607
+ [Aa.Scheme.Bg2]: "E8E8E8",
5608
+ [Aa.Scheme.Tx1]: "windowText",
5609
+ [Aa.Scheme.Tx2]: "0E2841",
5610
+ [Aa.Scheme.Accent1]: "156082",
5611
+ [Aa.Scheme.Accent2]: "E97132",
5612
+ [Aa.Scheme.Accent3]: "196B24",
5613
+ [Aa.Scheme.Accent4]: "0F9ED5",
5614
+ [Aa.Scheme.Accent5]: "A02B93",
5615
+ [Aa.Scheme.Accent6]: "4EA72E",
5616
+ [Aa.Scheme.Hlink]: "467886",
5617
+ [Aa.Scheme.FolHlink]: "96607D"
5618
+ }, _o = class e {
5618
5619
  constructor(t, r, n, a = null, o) {
5619
5620
  let i = null, s = null, l = a;
5620
5621
  if (t instanceof e) i = t.getVal(), t.getAdjustments() && (s = [...t.getAdjustments()]), l = l ?? t._private.last;
5621
5622
  else if ("string" == typeof t) {
5622
5623
  const e = this._parse(t);
5623
- i = e.val, s = e.adjs, e.last && (l = io(e.last));
5624
+ i = e.val, s = e.adjs, e.last && (l = so(e.last));
5624
5625
  } else if (t?.val) {
5625
5626
  i = t.val, s = t.adjs;
5626
5627
  const e = t.last;
5627
- e && (l = io(e));
5628
+ e && (l = so(e));
5628
5629
  }
5629
5630
  if (!i) throw new Error("Unable to determine color value");
5630
- const u = o ?? vo;
5631
+ const u = o ?? Co;
5631
5632
  this._private = {
5632
5633
  val: i,
5633
5634
  last: l,
@@ -5635,30 +5636,30 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5635
5636
  schemeLookup: r,
5636
5637
  indexedLookup: n,
5637
5638
  systemLookup: o,
5638
- parsedVal: ho(i, r, n, u, l),
5639
+ parsedVal: po(i, r, n, u, l),
5639
5640
  adjusted: null,
5640
5641
  resolved: null,
5641
- resolvedEpoch: Mo
5642
+ resolvedEpoch: ko
5642
5643
  };
5643
5644
  }
5644
5645
  _parse(e) {
5645
5646
  let t = null, r = e.trim();
5646
- const n = r.split(So);
5647
+ const n = r.split(bo);
5647
5648
  if (n && (t = n[0], r = r.substring(t.length, r.length).trim()), !t) throw new Error("no color key found");
5648
5649
  const a = [];
5649
5650
  let o = null;
5650
- const i = r.split(bo), s = i.length;
5651
+ const i = r.split(wo), s = i.length;
5651
5652
  for (let e = 0; e < s; e++) {
5652
5653
  const t = i[e];
5653
5654
  if (!t) continue;
5654
- if (t.toLowerCase() === oo) {
5655
+ if (t.toLowerCase() === io) {
5655
5656
  e++, o = i[e];
5656
5657
  continue;
5657
5658
  }
5658
- const r = go.get(t.toLowerCase());
5659
+ const r = fo.get(t.toLowerCase());
5659
5660
  if (!r) throw new Error("Invalid adjustment type:" + t);
5660
5661
  let n = null;
5661
- if (r === xa.AdjustmentType.Gray || r === xa.AdjustmentType.Comp || r === xa.AdjustmentType.Inv || r === xa.AdjustmentType.Gamma || r === xa.AdjustmentType.InvGamma);
5662
+ if (r === Aa.AdjustmentType.Gray || r === Aa.AdjustmentType.Comp || r === Aa.AdjustmentType.Inv || r === Aa.AdjustmentType.Gamma || r === Aa.AdjustmentType.InvGamma);
5662
5663
  else {
5663
5664
  e++;
5664
5665
  const r = i[e];
@@ -5675,11 +5676,11 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5675
5676
  }
5676
5677
  _forceDark(e = !0) {
5677
5678
  this._resolve();
5678
- const t = this._private.parsedVal, r = this._private.systemLookup ?? vo;
5679
+ const t = this._private.parsedVal, r = this._private.systemLookup ?? Co;
5679
5680
  if (t.systemName && r) {
5680
5681
  const n = r(t.systemName, !0);
5681
5682
  if (n) {
5682
- const t = po(mo(n.toRGBA()), this._private.adjs), r = br(t.alpha);
5683
+ const t = go(ho(n.toRGBA()), this._private.adjs), r = br(t.alpha);
5683
5684
  if (e) {
5684
5685
  let e = yr(fr([...t.srgb]));
5685
5686
  return new Xt.RGBA(e[0], e[1], e[2], r);
@@ -5726,17 +5727,17 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5726
5727
  const e = this._private.parsedVal;
5727
5728
  if (!e.key && !e.systemName) return;
5728
5729
  if (e.systemName) {
5729
- if (this._private.resolvedEpoch === Mo) return;
5730
+ if (this._private.resolvedEpoch === ko) return;
5730
5731
  } else {
5731
5732
  const t = this._private.schemeLookup(e.key)?.toRGBA();
5732
5733
  if (t === e.color || t?.isEqual(e.color)) return;
5733
5734
  }
5734
5735
  }
5735
- const e = this._private.systemLookup ?? vo, t = ho(this._private.val, this._private.schemeLookup, this._private.indexedLookup, e, this._private.last);
5736
- let r = t.srgbAlpha, n = po(r, this._private.adjs), a = fr(n.srgb);
5736
+ const e = this._private.systemLookup ?? Co, t = po(this._private.val, this._private.schemeLookup, this._private.indexedLookup, e, this._private.last);
5737
+ let r = t.srgbAlpha, n = go(r, this._private.adjs), a = fr(n.srgb);
5737
5738
  a = yr(a);
5738
5739
  let o = br(n.alpha);
5739
- this._private.adjusted = n, this._private.parsedVal = t, this._private.resolved = new Xt.RGBA(a[0], a[1], a[2], o), this._private.resolvedEpoch = Mo;
5740
+ this._private.adjusted = n, this._private.parsedVal = t, this._private.resolved = new Xt.RGBA(a[0], a[1], a[2], o), this._private.resolvedEpoch = ko;
5740
5741
  }
5741
5742
  static parse(t, r, n, a = null, o) {
5742
5743
  if (t instanceof e) return t;
@@ -5744,24 +5745,24 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5744
5745
  let s = null, l = i?.trim(), u = null;
5745
5746
  try {
5746
5747
  if (!s) {
5747
- const e = l?.split(So);
5748
+ const e = l?.split(bo);
5748
5749
  e && (s = e[0], l = l.substring(s.length, l.length).trim());
5749
5750
  }
5750
5751
  if (!s) throw new Error("no color found");
5751
5752
  const t = [];
5752
5753
  let i = null;
5753
- const d = l.split(bo), c = d.length;
5754
+ const d = l.split(wo), c = d.length;
5754
5755
  for (let e = 0; e < c; e++) {
5755
5756
  const r = d[e];
5756
5757
  if (!r) continue;
5757
- if (r.toLowerCase() === oo) {
5758
+ if (r.toLowerCase() === io) {
5758
5759
  e++, i = d[e];
5759
5760
  continue;
5760
5761
  }
5761
- const n = go.get(r.toLowerCase());
5762
+ const n = fo.get(r.toLowerCase());
5762
5763
  if (!n) throw new Error("Invalid adjustment type:" + r);
5763
5764
  let a = null;
5764
- if (n === xa.AdjustmentType.Gray || n === xa.AdjustmentType.Comp || n === xa.AdjustmentType.Inv || n === xa.AdjustmentType.Gamma || n === xa.AdjustmentType.InvGamma);
5765
+ if (n === Aa.AdjustmentType.Gray || n === Aa.AdjustmentType.Comp || n === Aa.AdjustmentType.Inv || n === Aa.AdjustmentType.Gamma || n === Aa.AdjustmentType.InvGamma);
5765
5766
  else {
5766
5767
  e++;
5767
5768
  const t = d[e];
@@ -5781,34 +5782,34 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5781
5782
  return u;
5782
5783
  }
5783
5784
  static isSystem(e) {
5784
- return !!e && !0 === Xa.valueOfName(e)?.system;
5785
+ return !!e && !0 === Za.valueOfName(e)?.system;
5785
5786
  }
5786
5787
  static getDefaultSystemLookup() {
5787
- return vo;
5788
+ return Co;
5788
5789
  }
5789
5790
  static setDefaultSystemLookup(e) {
5790
- const t = vo;
5791
- return vo = e ?? null, Mo++, t;
5791
+ const t = Co;
5792
+ return Co = e ?? null, ko++, t;
5792
5793
  }
5793
5794
  static getSystemEpoch() {
5794
- return Mo;
5795
+ return ko;
5795
5796
  }
5796
5797
  static invalidateSystemColors() {
5797
- Mo++;
5798
+ ko++;
5798
5799
  }
5799
5800
  static getSystemColorDefaults() {
5800
- return Xa.getSystemColorDefaults();
5801
+ return Za.getSystemColorDefaults();
5801
5802
  }
5802
5803
  static getDefaultSchemeLookup() {
5803
- if (!wo) {
5804
- const t = /* @__PURE__ */ new Map(), r = Object.keys(ko), n = r.length;
5804
+ if (!vo) {
5805
+ const t = /* @__PURE__ */ new Map(), r = Object.keys(To), n = r.length;
5805
5806
  for (let a = 0; a < n; a++) {
5806
5807
  const n = r[a];
5807
- t.set(n.toLowerCase(), e.parse(ko[n], null));
5808
+ t.set(n.toLowerCase(), e.parse(To[n], null));
5808
5809
  }
5809
- wo = (e) => t.get(e.toLowerCase());
5810
+ vo = (e) => t.get(e.toLowerCase());
5810
5811
  }
5811
- return wo;
5812
+ return vo;
5812
5813
  }
5813
5814
  isEqual(t) {
5814
5815
  return t instanceof e && this.toString().toLowerCase() === t.toString().toLowerCase();
@@ -5826,7 +5827,7 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5826
5827
  }, this._private.schemeLookup, this._private.indexedLookup, this._private.last, this._private.systemLookup);
5827
5828
  }
5828
5829
  getLastColor() {
5829
- return this._private.last && this._private.parsedVal.systemName ? so(this._private.last) : null;
5830
+ return this._private.last && this._private.parsedVal.systemName ? lo(this._private.last) : null;
5830
5831
  }
5831
5832
  getType() {
5832
5833
  return this._resolve(), this._private.parsedVal.type ?? null;
@@ -5842,7 +5843,7 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5842
5843
  const t = this._private.parsedVal;
5843
5844
  if (!t.systemName) return null;
5844
5845
  if (this._private.adjs && this._private.adjs.length > 0) return null;
5845
- const r = t.systemName.toLowerCase(), n = uo(t.systemName, null, this._private.last).rgba, a = "#" + so(n), o = `${Co}${r}`;
5846
+ const r = t.systemName.toLowerCase(), n = co(t.systemName, null, this._private.last).rgba, a = "#" + lo(n), o = `${Mo}${r}`;
5846
5847
  return e ? `var(${o}-dark, var(${o}, ${a}))` : `var(${o}, ${a})`;
5847
5848
  }
5848
5849
  toCSS(e = !1, t = !1) {
@@ -5893,7 +5894,7 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5893
5894
  return !0;
5894
5895
  }
5895
5896
  };
5896
- (to = eo || (eo = {})).Type = {
5897
+ (ro = to || (to = {})).Type = {
5897
5898
  None: "none",
5898
5899
  Solid: "solid",
5899
5900
  Gradient: "gradient",
@@ -5902,17 +5903,17 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
5902
5903
  Background: "background",
5903
5904
  Group: "group",
5904
5905
  Custom: "custom"
5905
- }, to.GradientType = {
5906
+ }, ro.GradientType = {
5906
5907
  Linear: "linear",
5907
5908
  Path: "path",
5908
5909
  Rect: "rect",
5909
5910
  Shape: "shape"
5910
- }, to.TileFlip = {
5911
+ }, ro.TileFlip = {
5911
5912
  None: "none",
5912
5913
  Horizontal: "x",
5913
5914
  Vertical: "y",
5914
5915
  Both: "xy"
5915
- }, to.BuiltInSheetPattern = {
5916
+ }, ro.BuiltInSheetPattern = {
5916
5917
  None: "none",
5917
5918
  Solid: "solid",
5918
5919
  DarkGray: "darkGray",
@@ -6026,7 +6027,7 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
6026
6027
  const t = e ? r[e] : null;
6027
6028
  return t ? [...t] : null;
6028
6029
  };
6029
- }(ro || (ro = {})), (no || (no = {})).Type = {
6030
+ }(no || (no = {})), (ao || (ao = {})).Type = {
6030
6031
  OuterShadow: "outerShadow",
6031
6032
  InnerShadow: "innerShadow",
6032
6033
  PresetShadow: "presetShadow",
@@ -6115,82 +6116,82 @@ var So = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"),
6115
6116
  Boxes5: "5Boxes",
6116
6117
  NoIcons: "NoIcons"
6117
6118
  };
6118
- }(ao || (ao = {}));
6119
- var _o = {
6120
- type: eo.Type.Solid,
6119
+ }(oo || (oo = {}));
6120
+ var Do = {
6121
+ type: to.Type.Solid,
6121
6122
  color: "phClr"
6122
- }, Do = (e) => ({
6123
- type: eo.Type.Gradient,
6123
+ }, xo = (e) => ({
6124
+ type: to.Type.Gradient,
6124
6125
  isRotatedWithShape: !0,
6125
- gradientType: eo.GradientType.Linear,
6126
+ gradientType: to.GradientType.Linear,
6126
6127
  angle: 180,
6127
6128
  scaled: !1,
6128
6129
  stops: e.map(([e, t]) => ({
6129
6130
  offset: e,
6130
6131
  color: t
6131
6132
  }))
6132
- }), xo = (e) => ({
6133
- align: ro.Align.Center,
6134
- lineCap: ro.LineCap.Butt,
6135
- compound: ro.Compound.Single,
6133
+ }), Ao = (e) => ({
6134
+ align: no.Align.Center,
6135
+ lineCap: no.LineCap.Butt,
6136
+ compound: no.Compound.Single,
6136
6137
  width: e,
6137
- lineJoin: ro.LineJoin.Miter,
6138
+ lineJoin: no.LineJoin.Miter,
6138
6139
  miterLimit: 8,
6139
- dash: ro.DashStyle.Solid,
6140
- fill: _o
6141
- }), Ao = {
6142
- type: no.Type.OuterShadow,
6140
+ dash: no.DashStyle.Solid,
6141
+ fill: Do
6142
+ }), Fo = {
6143
+ type: ao.Type.OuterShadow,
6143
6144
  color: "000000 alpha 0.63",
6144
6145
  distance: 1.5,
6145
6146
  angle: 90,
6146
6147
  blur: 4.5,
6147
6148
  alignment: "ctr",
6148
6149
  isRotatedWithShape: !1
6149
- }, Fo = Object.freeze({
6150
+ }, No = Object.freeze({
6150
6151
  fillStyleLst: [
6151
- _o,
6152
- Do([
6152
+ Do,
6153
+ xo([
6153
6154
  [0, "phClr lumMod 110 satMod 105 tint 67"],
6154
6155
  [.5, "phClr lumMod 105 satMod 103 tint 73"],
6155
6156
  [1, "phClr lumMod 105 satMod 109 tint 81"]
6156
6157
  ]),
6157
- Do([
6158
+ xo([
6158
6159
  [0, "phClr satMod 103 lumMod 102 tint 94"],
6159
6160
  [.5, "phClr satMod 110 lumMod 100 shade 100"],
6160
6161
  [1, "phClr lumMod 99 satMod 120 shade 78"]
6161
6162
  ])
6162
6163
  ],
6163
6164
  lnStyleLst: [
6164
- xo(.5),
6165
- xo(1),
6166
- xo(1.5)
6165
+ Ao(.5),
6166
+ Ao(1),
6167
+ Ao(1.5)
6167
6168
  ],
6168
6169
  effectStyleLst: [
6169
6170
  [],
6170
6171
  [],
6171
- [Ao]
6172
+ [Fo]
6172
6173
  ],
6173
6174
  bgFillStyleLst: [
6174
- _o,
6175
+ Do,
6175
6176
  {
6176
- type: eo.Type.Solid,
6177
+ type: to.Type.Solid,
6177
6178
  color: "phClr tint 95 satMod 170"
6178
6179
  },
6179
- Do([
6180
+ xo([
6180
6181
  [0, "phClr tint 93 satMod 150 shade 98 lumMod 102"],
6181
6182
  [.5, "phClr tint 98 satMod 130 shade 90 lumMod 103"],
6182
6183
  [1, "phClr shade 63 satMod 120"]
6183
6184
  ])
6184
6185
  ]
6185
6186
  });
6186
- function No(e) {
6187
+ function Bo(e) {
6187
6188
  let t = parseFloat(e);
6188
6189
  return isNaN(t) || (t %= 360, t > 0 ? t = 360 - t : t < 0 && (t *= -1)), t;
6189
6190
  }
6190
- function Bo(e) {
6191
+ function Lo(e) {
6191
6192
  return (e %= 360) < 0 && (e += 360), e > 180 ? e = 360 - e : e > 1 && (e *= -1), e;
6192
6193
  }
6193
- function Lo(e) {
6194
+ function Ro(e) {
6194
6195
  if ("string" != typeof e) return null;
6195
6196
  let t = function(e) {
6196
6197
  const t = d(e, 4);
@@ -6212,47 +6213,47 @@ function Lo(e) {
6212
6213
  size: a
6213
6214
  };
6214
6215
  }
6215
- function Ro(e, t = !1) {
6216
+ function Po(e, t = !1) {
6216
6217
  return "adaptive" === t ? e?.toCSS("adaptive") ?? null : function(e, t = !1) {
6217
6218
  return e?.toHex(t)?.toString(!1).toLowerCase() ?? null;
6218
6219
  }(e, t);
6219
6220
  }
6220
- function Po(e) {
6221
+ function Io(e) {
6221
6222
  return null == e ? null : t.roundAccurately(e, 2) + "pt";
6222
6223
  }
6223
- function Io(e, t) {
6224
+ function Eo(e, t) {
6224
6225
  let r = "";
6225
6226
  const n = !0 === t || !!t && t !== z.StrikeStyle.None, a = e && e !== z.UnderlineStyle.None;
6226
6227
  return n && (r += "line-through"), a && n && (r += " "), a && (r += "underline", !0 !== e && e !== z.UnderlineStyle.Single && e !== z.UnderlineStyle.SingleAccounting || (r += " solid"), e !== z.UnderlineStyle.Double && e !== z.UnderlineStyle.DoubleAccounting || (r += " double")), r;
6227
6228
  }
6228
- function Eo(e) {
6229
+ function jo(e) {
6229
6230
  return e === z.UnderlineStyle.Single ? "single" : e === z.UnderlineStyle.Double ? "double" : e === z.UnderlineStyle.SingleAccounting ? "single-accounting" : e === z.UnderlineStyle.DoubleAccounting ? "double-accounting" : "none";
6230
6231
  }
6231
- var jo = Object.freeze({
6232
+ var Go = Object.freeze({
6232
6233
  underline: z.UnderlineStyle.None,
6233
6234
  strike: !1
6234
6235
  });
6235
- function Go(e) {
6236
- if (!e) return jo;
6236
+ function Oo(e) {
6237
+ if (!e) return Go;
6237
6238
  let t = z.UnderlineStyle.None, r = !1;
6238
6239
  return (e = e.toLowerCase()).includes("underline") && (t = z.UnderlineStyle.Single), (e.includes("line-through") || e.includes("linethrough")) && (r = !0), {
6239
6240
  underline: t,
6240
6241
  strike: r
6241
6242
  };
6242
6243
  }
6243
- function Oo(e) {
6244
+ function zo(e) {
6244
6245
  return e ? "single" === (e = e.toLowerCase()) ? z.UnderlineStyle.Single : "double" === e ? z.UnderlineStyle.Double : "single-accounting" === e || "singleaccounting" === e ? z.UnderlineStyle.SingleAccounting : "double-accounting" === e || "doubleaccounting" === e ? z.UnderlineStyle.DoubleAccounting : z.UnderlineStyle.None : z.UnderlineStyle.None;
6245
6246
  }
6246
- function zo(e) {
6247
+ function $o(e) {
6247
6248
  return e ? e.toLowerCase() : null;
6248
6249
  }
6249
- function $o(e) {
6250
+ function Ho(e) {
6250
6251
  return e ? e === c.Overflow.Visible || e === c.Overflow.Clip || e === c.Overflow.Shrink ? "nowrap" : e === c.Overflow.Wrap ? "normal" : void 0 : null;
6251
6252
  }
6252
- function Ho(e, t) {
6253
+ function Uo(e, t) {
6253
6254
  return z.toCSSFontFamily(e, t);
6254
6255
  }
6255
- function Uo(e) {
6256
+ function Ko(e) {
6256
6257
  let t = "", r = !1, n = "";
6257
6258
  for (let a = 0; a < e.length; a++) {
6258
6259
  const o = e.charAt(a);
@@ -6272,28 +6273,28 @@ function Uo(e) {
6272
6273
  }
6273
6274
  return "\"" + t + "\"";
6274
6275
  }
6275
- function Ko(e) {
6276
+ function Wo(e) {
6276
6277
  let t = e.replace(/(\\[0-9]{4})/g, (e) => String.fromCharCode(parseInt(e.replace(/\\/g, ""), 16)));
6277
6278
  return t = t.replace(/(\\.{1})/g, (e) => e.substring(e.length - 1, e.length)), t.includes("\\") && (t = t.replace(/(\\.{1})/g, (e) => e.substring(e.length - 1, e.length))), t = t.replace(/^"(.*)"$/, "$1"), t;
6278
6279
  }
6279
- var Wo = "Normal", Vo = /* @__PURE__ */ new Map();
6280
- function Jo(e) {
6280
+ var Vo = "Normal", Jo = /* @__PURE__ */ new Map();
6281
+ function qo(e) {
6281
6282
  let r = 400;
6282
6283
  if (r = "number" == typeof e ? e : parseFloat(e), !isNaN(r)) return r;
6283
6284
  if ("string" == typeof e) {
6284
- const r = t.textToKey(e), n = Vo.get(r);
6285
+ const r = t.textToKey(e), n = Jo.get(r);
6285
6286
  if (n) return n;
6286
6287
  }
6287
6288
  return r;
6288
6289
  }
6289
- Vo.set(t.textToKey("Thin"), 100), Vo.set(t.textToKey("Hairline"), 100), Vo.set(t.textToKey("Extra Light"), 200), Vo.set(t.textToKey("Ultra Light"), 200), Vo.set(t.textToKey("Light"), 300), Vo.set(t.textToKey(Wo), 400), Vo.set(t.textToKey("Regular"), 400), Vo.set(t.textToKey("Medium"), 500), Vo.set(t.textToKey("Semi Bold"), 600), Vo.set(t.textToKey("Demi Bold"), 600), Vo.set(t.textToKey(Wo), 400), Vo.set(t.textToKey("Bold"), 700), Vo.set(t.textToKey("Extra Bold"), 800), Vo.set(t.textToKey("Ultra Bold"), 800), Vo.set(t.textToKey("Black"), 900), Vo.set(t.textToKey("Heavy"), 900), Vo.set(t.textToKey("Extra Black"), 950), Vo.set(t.textToKey("Ultra Black"), 950), Vo.set(t.textToKey("lighter"), 100), Vo.set(t.textToKey("normal"), 400), Vo.set(t.textToKey("bold"), 700), Vo.set(t.textToKey("bolder"), 700);
6290
- var qo = /* @__PURE__ */ new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Yo = /* @__PURE__ */ new Map();
6291
- function Xo(e, r = 11, n = "pt") {
6290
+ Jo.set(t.textToKey("Thin"), 100), Jo.set(t.textToKey("Hairline"), 100), Jo.set(t.textToKey("Extra Light"), 200), Jo.set(t.textToKey("Ultra Light"), 200), Jo.set(t.textToKey("Light"), 300), Jo.set(t.textToKey(Vo), 400), Jo.set(t.textToKey("Regular"), 400), Jo.set(t.textToKey("Medium"), 500), Jo.set(t.textToKey("Semi Bold"), 600), Jo.set(t.textToKey("Demi Bold"), 600), Jo.set(t.textToKey(Vo), 400), Jo.set(t.textToKey("Bold"), 700), Jo.set(t.textToKey("Extra Bold"), 800), Jo.set(t.textToKey("Ultra Bold"), 800), Jo.set(t.textToKey("Black"), 900), Jo.set(t.textToKey("Heavy"), 900), Jo.set(t.textToKey("Extra Black"), 950), Jo.set(t.textToKey("Ultra Black"), 950), Jo.set(t.textToKey("lighter"), 100), Jo.set(t.textToKey("normal"), 400), Jo.set(t.textToKey("bold"), 700), Jo.set(t.textToKey("bolder"), 700);
6291
+ var Yo = /* @__PURE__ */ new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Xo = /* @__PURE__ */ new Map();
6292
+ function Zo(e, r = 11, n = "pt") {
6292
6293
  if (!e) return null;
6293
6294
  let a = r;
6294
6295
  e = e.trim().toLowerCase();
6295
6296
  const o = "pt" === n ? z.getDeviceScale() : 1, i = "pt" === n ? 1 : z.getDeviceScale();
6296
- if (qo.test(e)) {
6297
+ if (Yo.test(e)) {
6297
6298
  const t = parseFloat(e);
6298
6299
  isNaN(t) || (e = t + n);
6299
6300
  }
@@ -6303,81 +6304,81 @@ function Xo(e, r = 11, n = "pt") {
6303
6304
  else if (e.endsWith("rem")) a = parseFloat(e.substring(0, e.length - 3).trim()) * r;
6304
6305
  else if (e.endsWith("%")) a = parseFloat(e.substring(0, e.length - 1).trim()) / 100 * r;
6305
6306
  else if ("string" == typeof e) {
6306
- const n = t.textToKey(e), a = Yo.get(n);
6307
+ const n = t.textToKey(e), a = Xo.get(n);
6307
6308
  if (a) return a(r);
6308
6309
  }
6309
6310
  return isNaN(a) ? null : a;
6310
6311
  }
6311
- Yo.set(t.textToKey("xx-small"), (e) => .4 * e), Yo.set(t.textToKey("x-small"), (e) => .5 * e), Yo.set(t.textToKey("small"), (e) => .6 * e), Yo.set(t.textToKey("medium"), (e) => e), Yo.set(t.textToKey("large"), (e) => 1.1 * e), Yo.set(t.textToKey("x-large"), (e) => 1.25 * e), Yo.set(t.textToKey("xx-large"), (e) => 1.5 * e), Yo.set(t.textToKey("xxx-large"), (e) => 2 * e), Yo.set(t.textToKey("smaller"), (e) => .9 * e), Yo.set(t.textToKey("larger"), (e) => 1.1 * e), Yo.set(t.textToKey("math"), (e) => e);
6312
- var Zo = /* @__PURE__ */ new Map();
6313
- Zo.set(eo.BuiltInSheetPattern.None, {
6312
+ Xo.set(t.textToKey("xx-small"), (e) => .4 * e), Xo.set(t.textToKey("x-small"), (e) => .5 * e), Xo.set(t.textToKey("small"), (e) => .6 * e), Xo.set(t.textToKey("medium"), (e) => e), Xo.set(t.textToKey("large"), (e) => 1.1 * e), Xo.set(t.textToKey("x-large"), (e) => 1.25 * e), Xo.set(t.textToKey("xx-large"), (e) => 1.5 * e), Xo.set(t.textToKey("xxx-large"), (e) => 2 * e), Xo.set(t.textToKey("smaller"), (e) => .9 * e), Xo.set(t.textToKey("larger"), (e) => 1.1 * e), Xo.set(t.textToKey("math"), (e) => e);
6313
+ var Qo = /* @__PURE__ */ new Map();
6314
+ Qo.set(to.BuiltInSheetPattern.None, {
6314
6315
  description: "None",
6315
6316
  cssKey: "none"
6316
- }), Zo.set(eo.BuiltInSheetPattern.Solid, {
6317
+ }), Qo.set(to.BuiltInSheetPattern.Solid, {
6317
6318
  description: "Solid",
6318
6319
  cssKey: "solid"
6319
- }), Zo.set(eo.BuiltInSheetPattern.DarkGray, {
6320
+ }), Qo.set(to.BuiltInSheetPattern.DarkGray, {
6320
6321
  description: "75% gray",
6321
6322
  cssKey: "gray-75"
6322
- }), Zo.set(eo.BuiltInSheetPattern.MediumGray, {
6323
+ }), Qo.set(to.BuiltInSheetPattern.MediumGray, {
6323
6324
  description: "50% gray",
6324
6325
  cssKey: "gray-50"
6325
- }), Zo.set(eo.BuiltInSheetPattern.LightGray, {
6326
+ }), Qo.set(to.BuiltInSheetPattern.LightGray, {
6326
6327
  description: "25% gray",
6327
6328
  cssKey: "gray-25"
6328
- }), Zo.set(eo.BuiltInSheetPattern.Gray125, {
6329
+ }), Qo.set(to.BuiltInSheetPattern.Gray125, {
6329
6330
  description: "12.5% Gray",
6330
6331
  cssKey: "gray-125"
6331
- }), Zo.set(eo.BuiltInSheetPattern.Gray0625, {
6332
+ }), Qo.set(to.BuiltInSheetPattern.Gray0625, {
6332
6333
  description: "6.25% Gray",
6333
6334
  cssKey: "gray-0625"
6334
- }), Zo.set(eo.BuiltInSheetPattern.DarkHorizontal, {
6335
+ }), Qo.set(to.BuiltInSheetPattern.DarkHorizontal, {
6335
6336
  description: "Horizontal Strip",
6336
6337
  cssKey: "horz-stripe"
6337
- }), Zo.set(eo.BuiltInSheetPattern.DarkVertical, {
6338
+ }), Qo.set(to.BuiltInSheetPattern.DarkVertical, {
6338
6339
  description: "Vertical Strip",
6339
6340
  cssKey: "vert-stripe"
6340
- }), Zo.set(eo.BuiltInSheetPattern.DarkDown, {
6341
+ }), Qo.set(to.BuiltInSheetPattern.DarkDown, {
6341
6342
  description: "Reverse Diagonal Stripe",
6342
6343
  cssKey: "reverse-diag-stripe"
6343
- }), Zo.set(eo.BuiltInSheetPattern.DarkUp, {
6344
+ }), Qo.set(to.BuiltInSheetPattern.DarkUp, {
6344
6345
  description: "Diagonal Strip",
6345
6346
  cssKey: "diag-stripe"
6346
- }), Zo.set(eo.BuiltInSheetPattern.DarkGrid, {
6347
+ }), Qo.set(to.BuiltInSheetPattern.DarkGrid, {
6347
6348
  description: "Diagonal Crosshatch",
6348
6349
  cssKey: "diag-cross"
6349
- }), Zo.set(eo.BuiltInSheetPattern.DarkTrellis, {
6350
+ }), Qo.set(to.BuiltInSheetPattern.DarkTrellis, {
6350
6351
  description: "Thick Diagonal Crosshatch",
6351
6352
  cssKey: "thick-diag-cross"
6352
- }), Zo.set(eo.BuiltInSheetPattern.LightHorizontal, {
6353
+ }), Qo.set(to.BuiltInSheetPattern.LightHorizontal, {
6353
6354
  description: "Thin Horizontal Stripe",
6354
6355
  cssKey: "thin-horz-stripe"
6355
- }), Zo.set(eo.BuiltInSheetPattern.LightVertical, {
6356
+ }), Qo.set(to.BuiltInSheetPattern.LightVertical, {
6356
6357
  description: "Thin Vertical Stripe",
6357
6358
  cssKey: "thin-vert-stripe"
6358
- }), Zo.set(eo.BuiltInSheetPattern.LightDown, {
6359
+ }), Qo.set(to.BuiltInSheetPattern.LightDown, {
6359
6360
  description: "Thin Reverse Diagonal Stripe",
6360
6361
  cssKey: "thin-reverse-diag-stripe"
6361
- }), Zo.set(eo.BuiltInSheetPattern.LightUp, {
6362
+ }), Qo.set(to.BuiltInSheetPattern.LightUp, {
6362
6363
  description: "Thin Diagonal Stripe",
6363
6364
  cssKey: "thin-diag-stripe"
6364
- }), Zo.set(eo.BuiltInSheetPattern.LightGrid, {
6365
+ }), Qo.set(to.BuiltInSheetPattern.LightGrid, {
6365
6366
  description: "Thin Horizontal Cross",
6366
6367
  cssKey: "thin-horz-cross"
6367
- }), Zo.set(eo.BuiltInSheetPattern.LightTrellis, {
6368
+ }), Qo.set(to.BuiltInSheetPattern.LightTrellis, {
6368
6369
  description: "Thin Diagonal Cross",
6369
6370
  cssKey: "thin-diag-cross"
6370
6371
  });
6371
- var Qo = "", ei = /* @__PURE__ */ new Map();
6372
- Zo.forEach((e, t) => {
6373
- Qo.length > 0 && (Qo += "|"), Qo += "\\b" + e.cssKey + "\\b", ei.set(e.cssKey, t);
6372
+ var ei = "", ti = /* @__PURE__ */ new Map();
6373
+ Qo.forEach((e, t) => {
6374
+ ei.length > 0 && (ei += "|"), ei += "\\b" + e.cssKey + "\\b", ti.set(e.cssKey, t);
6374
6375
  });
6375
- var ti = new RegExp(`(\\s*(?:${Qo}))`, "g");
6376
- function ri(e) {
6376
+ var ri = new RegExp(`(\\s*(?:${ei}))`, "g");
6377
+ function ni(e) {
6377
6378
  if (!e) return null;
6378
6379
  let t = e.toLowerCase();
6379
6380
  t = t.replace(/;/, "");
6380
- let r = t.match(ti);
6381
+ let r = t.match(ri);
6381
6382
  if (!r) return null;
6382
6383
  let n = null;
6383
6384
  r && r.length > 0 && (n = ((e) => {
@@ -6387,22 +6388,22 @@ function ri(e) {
6387
6388
  })(r[0])), t = t.trim();
6388
6389
  const a = t ? t.trim() : null;
6389
6390
  return n || a ? {
6390
- patternType: ei.get(n ?? "solid"),
6391
+ patternType: ti.get(n ?? "solid"),
6391
6392
  foreground: a
6392
6393
  } : null;
6393
6394
  }
6394
- var ni = (e, t = !1, r = null) => {
6395
+ var ai = (e, t = !1, r = null) => {
6395
6396
  if (!e) return null;
6396
6397
  const n = e.getStops();
6397
6398
  if (!n || n.length < 1) return null;
6398
6399
  const a = n.length;
6399
- if (1 === a) return Ro(n[0].getColor(), t);
6400
+ if (1 === a) return Po(n[0].getColor(), t);
6400
6401
  let o = "";
6401
6402
  for (let e = 0; e < a; e++) {
6402
6403
  const r = n[e], i = r.getOffset(), s = void 0 !== i ? 100 * i : e / (a - 1) * 100;
6403
- o += `${Ro(r.getColor(), t)} ${s}%${e < a - 1 ? ", " : ""}`;
6404
+ o += `${Po(r.getColor(), t)} ${s}%${e < a - 1 ? ", " : ""}`;
6404
6405
  }
6405
- if (e.getGradientType() === eo.GradientType.Linear) {
6406
+ if (e.getGradientType() === to.GradientType.Linear) {
6406
6407
  let t = e.getAngle() ?? 0;
6407
6408
  if (r && r.width > 0 && r.height > 0 && t % 90 != 0) {
6408
6409
  const e = r.width, n = r.height, a = (90 - t) * (Math.PI / 180), o = Math.cos(a) * n, i = Math.sin(a) * e;
@@ -6410,22 +6411,22 @@ var ni = (e, t = !1, r = null) => {
6410
6411
  }
6411
6412
  return `linear-gradient(${t}deg, ${o})`;
6412
6413
  }
6413
- return e.getGradientType() === eo.GradientType.Path || e.getGradientType() === eo.GradientType.Rect || e.getGradientType() === eo.GradientType.Shape ? function(e, t, r) {
6414
- const n = t ?? Ci, a = ai(n.left ?? 0), o = ai(n.right ?? 0), i = ai(n.top ?? 0), s = ai(n.bottom ?? 0);
6414
+ return e.getGradientType() === to.GradientType.Path || e.getGradientType() === to.GradientType.Rect || e.getGradientType() === to.GradientType.Shape ? function(e, t, r) {
6415
+ const n = t ?? Mi, a = oi(n.left ?? 0), o = oi(n.right ?? 0), i = oi(n.top ?? 0), s = oi(n.bottom ?? 0);
6415
6416
  if (a > o || i > s) return null;
6416
6417
  const l = (a + o) / 2, u = (i + s) / 2, d = (100 * l).toFixed(3), c = (100 * u).toFixed(3);
6417
6418
  if (!r || r.width <= 0 || r.height <= 0) return `radial-gradient(ellipse farthest-corner at ${d}% ${c}%, ${e})`;
6418
6419
  const m = r.width, h = r.height, p = Math.max(l, 1 - l), g = Math.max(u, 1 - u), f = Math.sqrt(p * p + g * g);
6419
6420
  return `radial-gradient(ellipse ${(f * m).toFixed(3)}px ${(f * h).toFixed(3)}px at ${d}% ${c}%, ${e})`;
6420
- }(o, e.getFocus(), r) || Ro((n[a - 1] ?? n[0]).getColor(), t) : null;
6421
- }, ai = (e) => Math.max(0, Math.min(1, e));
6422
- function oi(e) {
6423
- return Zo.get(e)?.cssKey ?? "solid";
6421
+ }(o, e.getFocus(), r) || Po((n[a - 1] ?? n[0]).getColor(), t) : null;
6422
+ }, oi = (e) => Math.max(0, Math.min(1, e));
6423
+ function ii(e) {
6424
+ return Qo.get(e)?.cssKey ?? "solid";
6424
6425
  }
6425
- var ii = /* @__PURE__ */ new Map();
6426
- function si(e) {
6426
+ var si = /* @__PURE__ */ new Map();
6427
+ function li(e) {
6427
6428
  if (!e) return "none";
6428
- const t = ii.get(e.getStyle());
6429
+ const t = si.get(e.getStyle());
6429
6430
  if (!t) return null;
6430
6431
  if ("none" === t.cssKey) return t.cssKey;
6431
6432
  let r = function(e, t = !1) {
@@ -6433,75 +6434,75 @@ function si(e) {
6433
6434
  }(e?.getColor());
6434
6435
  return r = r ? " " + r : "", `${null !== t.size ? `${t.size}pt ` : ""}${t.cssKey}${r}`;
6435
6436
  }
6436
- ii.set(Z.StrokeStyle.None, {
6437
+ si.set(Z.StrokeStyle.None, {
6437
6438
  size: null,
6438
6439
  cssKey: "none"
6439
- }), ii.set(Z.StrokeStyle.DashDot, {
6440
+ }), si.set(Z.StrokeStyle.DashDot, {
6440
6441
  size: .5,
6441
6442
  cssKey: "dot-dash"
6442
- }), ii.set(Z.StrokeStyle.DashDotDot, {
6443
+ }), si.set(Z.StrokeStyle.DashDotDot, {
6443
6444
  size: .5,
6444
6445
  cssKey: "dot-dot-dash"
6445
- }), ii.set(Z.StrokeStyle.Dashed, {
6446
+ }), si.set(Z.StrokeStyle.Dashed, {
6446
6447
  size: .5,
6447
6448
  cssKey: "dashed"
6448
- }), ii.set(Z.StrokeStyle.MediumDashed, {
6449
+ }), si.set(Z.StrokeStyle.MediumDashed, {
6449
6450
  size: 1,
6450
6451
  cssKey: "dashed"
6451
- }), ii.set(Z.StrokeStyle.Dotted, {
6452
+ }), si.set(Z.StrokeStyle.Dotted, {
6452
6453
  size: .5,
6453
6454
  cssKey: "dotted"
6454
- }), ii.set(Z.StrokeStyle.MediumDashDot, {
6455
+ }), si.set(Z.StrokeStyle.MediumDashDot, {
6455
6456
  size: 1,
6456
6457
  cssKey: "dot-dash"
6457
- }), ii.set(Z.StrokeStyle.MediumDashDotDot, {
6458
+ }), si.set(Z.StrokeStyle.MediumDashDotDot, {
6458
6459
  size: 1,
6459
6460
  cssKey: "dot-dot-dash"
6460
- }), ii.set(Z.StrokeStyle.Hair, {
6461
+ }), si.set(Z.StrokeStyle.Hair, {
6461
6462
  size: .5,
6462
6463
  cssKey: "hairline"
6463
- }), ii.set(Z.StrokeStyle.Thin, {
6464
+ }), si.set(Z.StrokeStyle.Thin, {
6464
6465
  size: .5,
6465
6466
  cssKey: "solid"
6466
- }), ii.set(Z.StrokeStyle.Thick, {
6467
+ }), si.set(Z.StrokeStyle.Thick, {
6467
6468
  size: 1.5,
6468
6469
  cssKey: "solid"
6469
- }), ii.set(Z.StrokeStyle.Medium, {
6470
+ }), si.set(Z.StrokeStyle.Medium, {
6470
6471
  size: 1,
6471
6472
  cssKey: "solid"
6472
- }), ii.set(Z.StrokeStyle.Double, {
6473
+ }), si.set(Z.StrokeStyle.Double, {
6473
6474
  size: 2,
6474
6475
  cssKey: "double"
6475
- }), ii.set(Z.StrokeStyle.SlantDashDot, {
6476
+ }), si.set(Z.StrokeStyle.SlantDashDot, {
6476
6477
  size: 1,
6477
6478
  cssKey: "dot-dash-slanted"
6478
6479
  });
6479
- var li = [], ui = /* @__PURE__ */ new Set(), di = /* @__PURE__ */ new Map(), ci = (e, t) => {
6480
+ var ui = [], di = /* @__PURE__ */ new Set(), ci = /* @__PURE__ */ new Map(), mi = (e, t) => {
6480
6481
  let r = null !== e.size ? `${e.size.toString()} ${e.cssKey}` : e.cssKey;
6481
- di.set(r, t), ui.has(e.cssKey) || (li.push(e.cssKey), ui.add(e.cssKey));
6482
+ ci.set(r, t), di.has(e.cssKey) || (ui.push(e.cssKey), di.add(e.cssKey));
6482
6483
  };
6483
- ii.forEach(ci);
6484
- var mi = Object.keys(Z.StrokeStyle);
6485
- for (let e = 0; e < mi.length; e++) ci({
6484
+ si.forEach(mi);
6485
+ var hi = Object.keys(Z.StrokeStyle);
6486
+ for (let e = 0; e < hi.length; e++) mi({
6486
6487
  size: null,
6487
- cssKey: mi[e].toLowerCase()
6488
- }, Z.StrokeStyle[mi[e]]);
6489
- ci({
6488
+ cssKey: hi[e].toLowerCase()
6489
+ }, Z.StrokeStyle[hi[e]]);
6490
+ mi({
6490
6491
  size: null,
6491
6492
  cssKey: "double"
6492
- }, Z.StrokeStyle.Double), ci({
6493
+ }, Z.StrokeStyle.Double), mi({
6493
6494
  size: null,
6494
6495
  cssKey: "solid"
6495
- }, Z.StrokeStyle.Medium), ci({
6496
+ }, Z.StrokeStyle.Medium), mi({
6496
6497
  size: null,
6497
6498
  cssKey: "hidden"
6498
- }, Z.StrokeStyle.None), li.sort((e, t) => t.length - e.length);
6499
- var hi = "", pi = li.length;
6500
- for (let e = 0; e < pi; e++) hi.length > 0 && (hi += "|"), hi += "\\b" + li[e] + "\\b";
6501
- var gi = new RegExp(`(\\s*(?:${hi}))`, "g"), fi = /* @__PURE__ */ new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g");
6502
- function yi(e, t) {
6499
+ }, Z.StrokeStyle.None), ui.sort((e, t) => t.length - e.length);
6500
+ var pi = "", gi = ui.length;
6501
+ for (let e = 0; e < gi; e++) pi.length > 0 && (pi += "|"), pi += "\\b" + ui[e] + "\\b";
6502
+ var fi = new RegExp(`(\\s*(?:${pi}))`, "g"), yi = /* @__PURE__ */ new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g");
6503
+ function Si(e, t) {
6503
6504
  if (!e) return null;
6504
- let r = e.toLowerCase(), n = r.match(gi);
6505
+ let r = e.toLowerCase(), n = r.match(fi);
6505
6506
  if (!n) {
6506
6507
  const e = t?.(r);
6507
6508
  return e ? {
@@ -6517,53 +6518,53 @@ function yi(e, t) {
6517
6518
  let o = null;
6518
6519
  if (n && n.length > 0 && (o = a(n[0])), !o) return null;
6519
6520
  let i = null;
6520
- if (n = r.match(fi), n && n.length > 0) {
6521
+ if (n = r.match(yi), n && n.length > 0) {
6521
6522
  let e = a(n[0]);
6522
6523
  i = parseFloat(e.substring(0, e.length - 2));
6523
6524
  }
6524
6525
  r = r.trim();
6525
6526
  const s = r ? r.trim() : null;
6526
- let l = null === i ? o : `${i.toString()} ${o}`, u = di.get(l);
6527
- return u || (u = di.get(o)), u ? {
6527
+ let l = null === i ? o : `${i.toString()} ${o}`, u = ci.get(l);
6528
+ return u || (u = ci.get(o)), u ? {
6528
6529
  color: s,
6529
6530
  style: u
6530
6531
  } : null;
6531
6532
  }
6532
- var Si = /* @__PURE__ */ new Map();
6533
- function bi(e) {
6533
+ var bi = /* @__PURE__ */ new Map();
6534
+ function wi(e) {
6534
6535
  const r = t.textToKey(e);
6535
- return Si.get(r) || null;
6536
+ return bi.get(r) || null;
6536
6537
  }
6537
- Si.set(t.textToKey("start"), c.HorizontalAlignment.Left), Si.set(t.textToKey("left"), c.HorizontalAlignment.Left), Si.set(t.textToKey("end"), c.HorizontalAlignment.Right), Si.set(t.textToKey("right"), c.HorizontalAlignment.Right), Si.set(t.textToKey("center"), c.HorizontalAlignment.Center), Si.set(t.textToKey("justify"), c.HorizontalAlignment.Justify), Si.set(t.textToKey("justify-all"), c.HorizontalAlignment.Justify);
6538
- var wi = /* @__PURE__ */ new Map();
6539
- wi.set(t.textToKey("baseline"), c.VerticalAlignment.Bottom), wi.set(t.textToKey("top"), c.VerticalAlignment.Top), wi.set(t.textToKey("middle"), c.VerticalAlignment.Center), wi.set(t.textToKey("bottom"), c.VerticalAlignment.Bottom), wi.set(t.textToKey("sub"), c.VerticalAlignment.Bottom), wi.set(t.textToKey("text-top"), c.VerticalAlignment.Top), wi.set(t.textToKey("justify"), c.VerticalAlignment.Justify), wi.set(t.textToKey("distributed"), c.VerticalAlignment.Distributed);
6540
- var vi = (e) => {
6538
+ bi.set(t.textToKey("start"), c.HorizontalAlignment.Left), bi.set(t.textToKey("left"), c.HorizontalAlignment.Left), bi.set(t.textToKey("end"), c.HorizontalAlignment.Right), bi.set(t.textToKey("right"), c.HorizontalAlignment.Right), bi.set(t.textToKey("center"), c.HorizontalAlignment.Center), bi.set(t.textToKey("justify"), c.HorizontalAlignment.Justify), bi.set(t.textToKey("justify-all"), c.HorizontalAlignment.Justify);
6539
+ var vi = /* @__PURE__ */ new Map();
6540
+ vi.set(t.textToKey("baseline"), c.VerticalAlignment.Bottom), vi.set(t.textToKey("top"), c.VerticalAlignment.Top), vi.set(t.textToKey("middle"), c.VerticalAlignment.Center), vi.set(t.textToKey("bottom"), c.VerticalAlignment.Bottom), vi.set(t.textToKey("sub"), c.VerticalAlignment.Bottom), vi.set(t.textToKey("text-top"), c.VerticalAlignment.Top), vi.set(t.textToKey("justify"), c.VerticalAlignment.Justify), vi.set(t.textToKey("distributed"), c.VerticalAlignment.Distributed);
6541
+ var Ci = (e) => {
6541
6542
  const r = t.textToKey(e);
6542
- return wi.get(r) || null;
6543
- }, Ci = Object.freeze({
6543
+ return vi.get(r) || null;
6544
+ }, Mi = Object.freeze({
6544
6545
  left: 0,
6545
6546
  right: 0,
6546
6547
  top: 0,
6547
6548
  bottom: 0
6548
6549
  });
6549
- function Mi(e) {
6550
+ function ki(e) {
6550
6551
  return Math.ceil(e / 4);
6551
6552
  }
6552
- function ki(e) {
6553
+ function Ti(e) {
6553
6554
  return 1;
6554
6555
  }
6555
- function Ti(e, t, r) {
6556
+ function _i(e, t, r) {
6556
6557
  return ne;
6557
6558
  }
6558
- var _i = (e) => {
6559
- if (e instanceof To) return { color: e.toString() };
6559
+ var Di = (e) => {
6560
+ if (e instanceof _o) return { color: e.toString() };
6560
6561
  if ("string" == typeof e) try {
6561
6562
  return { color: "none" === e || "transparent" === e ? null : e };
6562
6563
  } catch (e) {
6563
6564
  throw e;
6564
6565
  }
6565
6566
  return e;
6566
- }, Di = r.PassThrough, xi = {
6567
+ }, xi = r.PassThrough, Ai = {
6567
6568
  shorthand: (e, t) => {
6568
6569
  if (!e || "none" === e || "transparent" === e) return null;
6569
6570
  try {
@@ -6574,10 +6575,10 @@ var _i = (e) => {
6574
6575
  return e;
6575
6576
  },
6576
6577
  merge: (e, t, r) => e
6577
- }, Ai = {
6578
+ }, Fi = {
6578
6579
  shorthand: (e, t) => {
6579
6580
  if (e.isIStroke) return e.getProperties();
6580
- if ("string" == typeof e && (e = yi(e, (e) => {
6581
+ if ("string" == typeof e && (e = Si(e, (e) => {
6581
6582
  try {
6582
6583
  return t.parseColor(e).toString();
6583
6584
  } catch {}
@@ -6587,14 +6588,14 @@ var _i = (e) => {
6587
6588
  return e.style && (r.style = e.style), e.color && (r.color = e.color), r;
6588
6589
  },
6589
6590
  properties: {
6590
- color: xi,
6591
- style: Di
6591
+ color: Ai,
6592
+ style: xi
6592
6593
  }
6593
- }, Fi = {
6594
+ }, Ni = {
6594
6595
  shorthand: (e, t) => {
6595
6596
  if (e.isIBorders) return e.getProperties();
6596
6597
  if ("string" == typeof e) {
6597
- const r = yi(e, (e) => {
6598
+ const r = Si(e, (e) => {
6598
6599
  try {
6599
6600
  return t.parseColor(e).toString();
6600
6601
  } catch {}
@@ -6614,29 +6615,29 @@ var _i = (e) => {
6614
6615
  return e;
6615
6616
  },
6616
6617
  properties: {
6617
- top: Ai,
6618
- left: Ai,
6619
- right: Ai,
6620
- bottom: Ai,
6621
- horizontal: Ai,
6622
- vertical: Ai,
6623
- diagonalUp: Ai,
6624
- diagonalDown: Ai
6625
- }
6626
- }, Ni = { shorthand: (e, t) => {
6618
+ top: Fi,
6619
+ left: Fi,
6620
+ right: Fi,
6621
+ bottom: Fi,
6622
+ horizontal: Fi,
6623
+ vertical: Fi,
6624
+ diagonalUp: Fi,
6625
+ diagonalDown: Fi
6626
+ }
6627
+ }, Bi = { shorthand: (e, t) => {
6627
6628
  if ("string" == typeof e) {
6628
- const t = _a.Styles.lookupDefault(e) ?? e, r = _a.toBuiltInID(t);
6629
+ const t = Da.Styles.lookupDefault(e) ?? e, r = Da.toBuiltInID(t);
6629
6630
  return "number" == typeof r && 0 !== r ? r : t;
6630
6631
  }
6631
- return "number" == typeof e ? 0 === e ? _a.Type.General : void 0 !== _a.builtInFormat(e) ? e : null : null;
6632
- } }, Bi = {
6632
+ return "number" == typeof e ? 0 === e ? Da.Type.General : void 0 !== Da.builtInFormat(e) ? e : null : null;
6633
+ } }, Li = {
6633
6634
  shorthand: (e, t) => {
6634
6635
  if (e.isIFontStyle) return e.toJSON();
6635
6636
  if ("string" == typeof e) {
6636
- const t = Lo(e);
6637
+ const t = Ro(e);
6637
6638
  if (t) {
6638
6639
  const e = {};
6639
- if (t.family && (e.family = t.family), t.fallbacks && (e.fallbacks = t.fallbacks), t.size && (e.size = Xo(t.size)), Object.keys(t).length > 0) return e;
6640
+ if (t.family && (e.family = t.family), t.fallbacks && (e.fallbacks = t.fallbacks), t.size && (e.size = Zo(t.size)), Object.keys(t).length > 0) return e;
6640
6641
  }
6641
6642
  return e;
6642
6643
  }
@@ -6648,38 +6649,38 @@ var _i = (e) => {
6648
6649
  })(e) : e;
6649
6650
  },
6650
6651
  properties: {
6651
- family: { shorthand: (e, t) => e === H.ThemeFamily.Heading || e === H.ThemeFamily.Body ? e : Lo(e)?.family ?? null },
6652
+ family: { shorthand: (e, t) => e === H.ThemeFamily.Heading || e === H.ThemeFamily.Body ? e : Ro(e)?.family ?? null },
6652
6653
  fallbacks: { shorthand: (e, t) => {
6653
6654
  if ("string" != typeof e) return e;
6654
- let r = Lo(e);
6655
+ let r = Ro(e);
6655
6656
  if (!r) return null;
6656
6657
  let n = [r.family];
6657
6658
  return r.fallbacks && (n = n.concat(r.fallbacks)), n;
6658
6659
  } },
6659
6660
  size: { shorthand: (e, r) => {
6660
6661
  let n = e;
6661
- return "string" == typeof e && (n = Xo(e, r.getNormal().getFont().getSize())), isNaN(n) || "number" != typeof n ? null : (n = Math.max(1, Math.min(t.roundAccurately(n, 1), 409)), n);
6662
+ return "string" == typeof e && (n = Zo(e, r.getNormal().getFont().getSize())), isNaN(n) || "number" != typeof n ? null : (n = Math.max(1, Math.min(t.roundAccurately(n, 1), 409)), n);
6662
6663
  } },
6663
6664
  weight: { shorthand: (e, t) => {
6664
6665
  if ("string" != typeof e) return e;
6665
- const r = Jo(e);
6666
+ const r = qo(e);
6666
6667
  return isNaN(r) || "number" != typeof r ? null : r;
6667
6668
  } },
6668
- style: Di,
6669
- color: xi,
6670
- letterSpacing: Di,
6671
- underline: { shorthand: (e, t) => e ? !0 === e ? z.UnderlineStyle.Single : Oo(e) : z.UnderlineStyle.None },
6669
+ style: xi,
6670
+ color: Ai,
6671
+ letterSpacing: xi,
6672
+ underline: { shorthand: (e, t) => e ? !0 === e ? z.UnderlineStyle.Single : zo(e) : z.UnderlineStyle.None },
6672
6673
  strike: { shorthand: (e, t) => !0 === e ? z.StrikeStyle.Single : !1 === e ? z.StrikeStyle.None : e },
6673
- baseline: Di,
6674
- shadow: Di,
6675
- outline: Di,
6674
+ baseline: xi,
6675
+ shadow: xi,
6676
+ outline: xi,
6676
6677
  charset: { shorthand: (e, t) => {
6677
6678
  if (null == e) return null;
6678
6679
  const r = "string" == typeof e ? parseInt(e, 10) : e;
6679
6680
  return "number" == typeof r && Number.isFinite(r) ? r : null;
6680
6681
  } }
6681
6682
  }
6682
- }, Li = {
6683
+ }, Ri = {
6683
6684
  shorthand: (e, t) => e && "object" == typeof e ? ((e) => {
6684
6685
  const { rotation: t, stacked: r } = e;
6685
6686
  return null != t && void 0 === r ? {
@@ -6691,97 +6692,97 @@ var _i = (e) => {
6691
6692
  } : e;
6692
6693
  })(e) : e,
6693
6694
  properties: {
6694
- horizontal: Di,
6695
- vertical: Di,
6695
+ horizontal: xi,
6696
+ vertical: xi,
6696
6697
  indent: { shorthand: (e, t) => {
6697
6698
  let r = e;
6698
6699
  return "string" == typeof e && (r = parseFloat(e)), isNaN(r) || "number" != typeof r ? null : r;
6699
6700
  } },
6700
- relativeIndent: Di,
6701
- overflow: Di,
6701
+ relativeIndent: xi,
6702
+ overflow: xi,
6702
6703
  rotation: { shorthand: (e, t) => {
6703
6704
  let r = e;
6704
6705
  return "string" == typeof e && (r = parseFloat(e)), isNaN(r) || "number" != typeof r ? null : (r %= 360, r < 0 && (r += 360), r);
6705
6706
  } },
6706
- stacked: Di,
6707
- justifyLastLine: Di,
6708
- readingDirection: Di
6707
+ stacked: xi,
6708
+ justifyLastLine: xi,
6709
+ readingDirection: xi
6709
6710
  }
6710
- }, Ri = { shorthand: (e, t) => "none" === e || "transparent" === e || "object" == typeof e && 0 === Object.keys(e).length ? { type: eo.Type.None } : (e.getType?.(), eo.Type.None, e) }, Pi = {
6711
+ }, Pi = { shorthand: (e, t) => "none" === e || "transparent" === e || "object" == typeof e && 0 === Object.keys(e).length ? { type: to.Type.None } : (e.getType?.(), to.Type.None, e) }, Ii = {
6711
6712
  shorthand: (e) => {
6712
- const t = _i(e);
6713
- return "object" == typeof t && t.color && (t.type = eo.Type.Solid), t;
6713
+ const t = Di(e);
6714
+ return "object" == typeof t && t.color && (t.type = to.Type.Solid), t;
6714
6715
  },
6715
6716
  merge: (e, t) => {
6716
6717
  const r = e;
6717
6718
  let n = t;
6718
- return r && "color" in r && null === r.color ? { type: eo.Type.None } : r.color ? r : (n?.toJSON && (n = n.toJSON()), n?.type === eo.Type.Solid ? { ...n } : n?.type === eo.Type.Gradient ? {
6719
- type: eo.Type.Solid,
6720
- color: n?.stops?.[0]?.color ?? xa.Scheme.Bg1
6721
- } : n?.type === eo.Type.Pattern ? {
6722
- type: eo.Type.Solid,
6723
- color: n?.foreground ?? xa.Scheme.Bg1
6719
+ return r && "color" in r && null === r.color ? { type: to.Type.None } : r.color ? r : (n?.toJSON && (n = n.toJSON()), n?.type === to.Type.Solid ? { ...n } : n?.type === to.Type.Gradient ? {
6720
+ type: to.Type.Solid,
6721
+ color: n?.stops?.[0]?.color ?? Aa.Scheme.Bg1
6722
+ } : n?.type === to.Type.Pattern ? {
6723
+ type: to.Type.Solid,
6724
+ color: n?.foreground ?? Aa.Scheme.Bg1
6724
6725
  } : r ? { ...r } : null);
6725
6726
  },
6726
6727
  properties: {
6727
- color: xi,
6728
- type: Di,
6729
- isRotatedWithShape: Di
6728
+ color: Ai,
6729
+ type: xi,
6730
+ isRotatedWithShape: xi
6730
6731
  }
6731
- }, Ii = {
6732
- shorthand: (e) => ("object" == typeof e && e.stops && (e.type = eo.Type.Gradient), e),
6732
+ }, Ei = {
6733
+ shorthand: (e) => ("object" == typeof e && e.stops && (e.type = to.Type.Gradient), e),
6733
6734
  merge: (e, t, r) => {
6734
6735
  const n = e;
6735
6736
  let a = t;
6736
- return n.stops ? n : (a?.toJSON && (a = a.toJSON()), a?.type === eo.Type.Gradient ? { ...a } : a?.type === eo.Type.Solid ? {
6737
- type: eo.Type.Gradient,
6737
+ return n.stops ? n : (a?.toJSON && (a = a.toJSON()), a?.type === to.Type.Gradient ? { ...a } : a?.type === to.Type.Solid ? {
6738
+ type: to.Type.Gradient,
6738
6739
  stops: [{
6739
6740
  offset: 0,
6740
- color: a?.color ?? xa.Scheme.Accent1
6741
+ color: a?.color ?? Aa.Scheme.Accent1
6741
6742
  }, {
6742
6743
  offset: 1,
6743
- color: xa.Scheme.Bg1
6744
+ color: Aa.Scheme.Bg1
6744
6745
  }]
6745
- } : a?.type === eo.Type.Pattern ? {
6746
- type: eo.Type.Gradient,
6746
+ } : a?.type === to.Type.Pattern ? {
6747
+ type: to.Type.Gradient,
6747
6748
  stops: [{
6748
6749
  offset: 0,
6749
- color: a?.foreground ?? xa.Scheme.Bg1
6750
+ color: a?.foreground ?? Aa.Scheme.Bg1
6750
6751
  }, {
6751
6752
  offset: 1,
6752
- color: a?.background ?? xa.Scheme.Accent1
6753
+ color: a?.background ?? Aa.Scheme.Accent1
6753
6754
  }]
6754
6755
  } : n ? { ...n } : null);
6755
6756
  },
6756
6757
  properties: {
6757
- type: Di,
6758
+ type: xi,
6758
6759
  stops: {
6759
6760
  shorthand: (e) => ("string" == typeof e && (e = e.split(",").map((e) => e.trim())), Array.isArray(e) ? e.map((e, t) => {
6760
6761
  if (!e) return;
6761
6762
  let r = e;
6762
- return "string" == typeof e && (r = _i(e)), e.isIColor && (r = { color: e.toString() }), r;
6763
+ return "string" == typeof e && (r = Di(e)), e.isIColor && (r = { color: e.toString() }), r;
6763
6764
  }) : e),
6764
6765
  arrayType: {
6765
- shorthand: (e) => _i(e),
6766
+ shorthand: (e) => Di(e),
6766
6767
  properties: {
6767
- color: xi,
6768
- offset: Di
6768
+ color: Ai,
6769
+ offset: xi
6769
6770
  }
6770
6771
  }
6771
6772
  },
6772
- gradientType: Di,
6773
- angle: Di,
6774
- focus: Di,
6775
- scaled: Di,
6776
- tileRect: Di,
6777
- flip: Di,
6778
- isRotatedWithShape: Di
6779
- }
6780
- }, Ei = {
6773
+ gradientType: xi,
6774
+ angle: xi,
6775
+ focus: xi,
6776
+ scaled: xi,
6777
+ tileRect: xi,
6778
+ flip: xi,
6779
+ isRotatedWithShape: xi
6780
+ }
6781
+ }, ji = {
6781
6782
  shorthand: (e, t) => {
6782
6783
  if ("object" == typeof e) {
6783
6784
  const t = e;
6784
- (t.foreground || t.background || t.patternType) && (t.type = eo.Type.Pattern, t.patternType = t.patternType ?? eo.BuiltInSheetPattern.Solid);
6785
+ (t.foreground || t.background || t.patternType) && (t.type = to.Type.Pattern, t.patternType = t.patternType ?? to.BuiltInSheetPattern.Solid);
6785
6786
  }
6786
6787
  return e;
6787
6788
  },
@@ -6790,92 +6791,92 @@ var _i = (e) => {
6790
6791
  let a = t;
6791
6792
  if (n.background && n.foreground) return n;
6792
6793
  a?.toJSON && (a = a.toJSON());
6793
- const o = eo.BuiltInSheetPattern.MediumGray;
6794
- if (a?.type === eo.Type.Pattern) {
6794
+ const o = to.BuiltInSheetPattern.MediumGray;
6795
+ if (a?.type === to.Type.Pattern) {
6795
6796
  const e = {
6796
- type: eo.Type.Pattern,
6797
+ type: to.Type.Pattern,
6797
6798
  patternType: n.patternType ?? a.patternType
6798
6799
  };
6799
6800
  return a.foreground && (e.foreground = a.foreground), a.background && (e.background = a.background), n.foreground && (e.foreground = n.foreground), n.background && (e.background = n.background), e;
6800
6801
  }
6801
- return a?.type === eo.Type.Solid ? {
6802
+ return a?.type === to.Type.Solid ? {
6802
6803
  patternType: o,
6803
- foreground: a?.color ?? xa.Named.WindowText,
6804
- background: xa.Scheme.Bg1,
6804
+ foreground: a?.color ?? Aa.Named.WindowText,
6805
+ background: Aa.Scheme.Bg1,
6805
6806
  ...n
6806
- } : a?.type === eo.Type.Gradient ? {
6807
+ } : a?.type === to.Type.Gradient ? {
6807
6808
  patternType: o,
6808
- foreground: a?.stops?.[0]?.color ?? xa.Named.WindowText,
6809
- background: a?.stops?.[1]?.color ?? xa.Scheme.Bg1,
6809
+ foreground: a?.stops?.[0]?.color ?? Aa.Named.WindowText,
6810
+ background: a?.stops?.[1]?.color ?? Aa.Scheme.Bg1,
6810
6811
  ...n
6811
6812
  } : n ? {
6812
- type: eo.Type.Pattern,
6813
- patternType: eo.BuiltInSheetPattern.Solid,
6814
- foreground: xa.Named.WindowText,
6815
- background: xa.Scheme.Bg1,
6813
+ type: to.Type.Pattern,
6814
+ patternType: to.BuiltInSheetPattern.Solid,
6815
+ foreground: Aa.Named.WindowText,
6816
+ background: Aa.Scheme.Bg1,
6816
6817
  ...n
6817
6818
  } : null;
6818
6819
  },
6819
6820
  properties: {
6820
- type: Di,
6821
- patternType: Di,
6822
- foreground: xi,
6823
- background: xi,
6824
- isRotatedWithShape: Di
6825
- }
6826
- }, ji = { properties: {
6827
- type: Di,
6828
- resId: Di,
6829
- sourceRect: Di,
6830
- stretch: Di,
6831
- tile: Di,
6832
- dpi: Di,
6833
- compressionState: Di,
6834
- imageEffects: Di,
6835
- extLst: Di,
6836
- isRotatedWithShape: Di
6837
- } }, Gi = { properties: {
6838
- type: Di,
6839
- isRotatedWithShape: Di
6840
- } }, Oi = [
6841
- Ri,
6821
+ type: xi,
6822
+ patternType: xi,
6823
+ foreground: Ai,
6824
+ background: Ai,
6825
+ isRotatedWithShape: xi
6826
+ }
6827
+ }, Gi = { properties: {
6828
+ type: xi,
6829
+ resId: xi,
6830
+ sourceRect: xi,
6831
+ stretch: xi,
6832
+ tile: xi,
6833
+ dpi: xi,
6834
+ compressionState: xi,
6835
+ imageEffects: xi,
6836
+ extLst: xi,
6837
+ isRotatedWithShape: xi
6838
+ } }, Oi = { properties: {
6839
+ type: xi,
6840
+ isRotatedWithShape: xi
6841
+ } }, zi = [
6842
6842
  Pi,
6843
6843
  Ii,
6844
6844
  Ei,
6845
6845
  ji,
6846
- Gi
6847
- ], zi = [];
6848
- for (let e = 0; e < Oi.length; e++) {
6849
- const t = Oi[e]?.shorthand;
6850
- t && zi.push(t);
6851
- }
6852
- var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
6846
+ Gi,
6847
+ Oi
6848
+ ], $i = [];
6849
+ for (let e = 0; e < zi.length; e++) {
6850
+ const t = zi[e]?.shorthand;
6851
+ t && $i.push(t);
6852
+ }
6853
+ var Hi, Ui, Ki, Wi, Vi = $i.length, Ji = {
6853
6854
  shorthand: (e, t) => {
6854
6855
  e.isIFill && (e = e.toJSON());
6855
- for (let r = 0; r < Wi; r++) {
6856
- let n = zi[r](e, t);
6856
+ for (let r = 0; r < Vi; r++) {
6857
+ let n = $i[r](e, t);
6857
6858
  if (n?.type) return n;
6858
6859
  }
6859
6860
  return e;
6860
6861
  },
6861
6862
  getSubType: (e, t) => {
6862
6863
  const r = e.type ?? t?.type;
6863
- return r === eo.Type.None ? Ri : r === eo.Type.Solid ? Pi : r === eo.Type.Gradient ? Ii : r === eo.Type.Pattern ? Ei : r === eo.Type.Image ? ji : r === eo.Type.Group ? Gi : null;
6864
- }
6865
- }, Ji = { properties: {
6866
- font: Bi,
6867
- fill: Vi,
6868
- alignment: Li,
6869
- borders: Fi,
6870
- numberFormat: Ni,
6871
- quotePrefix: Di,
6864
+ return r === to.Type.None ? Pi : r === to.Type.Solid ? Ii : r === to.Type.Gradient ? Ei : r === to.Type.Pattern ? ji : r === to.Type.Image ? Gi : r === to.Type.Group ? Oi : null;
6865
+ }
6866
+ }, qi = { properties: {
6867
+ font: Li,
6868
+ fill: Ji,
6869
+ alignment: Ri,
6870
+ borders: Ni,
6871
+ numberFormat: Bi,
6872
+ quotePrefix: xi,
6872
6873
  protection: { properties: {
6873
- alwaysUnlocked: Di,
6874
- showFormulas: Di
6874
+ alwaysUnlocked: xi,
6875
+ showFormulas: xi
6875
6876
  } },
6876
- named: Di,
6877
- insets: Di
6878
- } }, qi = Object.freeze([
6877
+ named: xi,
6878
+ insets: xi
6879
+ } }, Yi = Object.freeze([
6879
6880
  "font",
6880
6881
  "fill",
6881
6882
  "alignment",
@@ -6884,14 +6885,14 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
6884
6885
  "quotePrefix",
6885
6886
  "protection",
6886
6887
  "insets"
6887
- ]), Yi = {
6888
+ ]), Xi = {
6888
6889
  shorthand: (e, t) => {
6889
6890
  if (!e || "object" != typeof e) return;
6890
6891
  let r = e.named;
6891
6892
  if (!r) return;
6892
6893
  if (r.isINamed && (r = r.getName()), "string" != typeof r) return;
6893
6894
  let n = null;
6894
- if (r.toLowerCase() === ao.BuiltInName.Normal.toLowerCase()) n = qi;
6895
+ if (r.toLowerCase() === oo.BuiltInName.Normal.toLowerCase()) n = Yi;
6895
6896
  else {
6896
6897
  const e = t?.getNamedStyles().getByName(r)?.getRanged().getPropertiesAt(0, 0, null);
6897
6898
  e && (n = Object.keys(e));
@@ -6906,87 +6907,87 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
6906
6907
  }
6907
6908
  return a;
6908
6909
  },
6909
- properties: Ji.properties
6910
- }, Xi = { properties: {
6911
- style: Yi,
6912
- name: Di,
6913
- hidden: Di,
6914
- iLevel: Di,
6915
- customized: Di
6916
- } }, Zi = {
6917
- [eo.BuiltInSheetPattern.Gray0625]: {
6910
+ properties: qi.properties
6911
+ }, Zi = { properties: {
6912
+ style: Xi,
6913
+ name: xi,
6914
+ hidden: xi,
6915
+ iLevel: xi,
6916
+ customized: xi
6917
+ } }, Qi = {
6918
+ [to.BuiltInSheetPattern.Gray0625]: {
6918
6919
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 4.5 2.5 L 4.5 3.5 M 4.5 6.5 L 4.5 7.5",
6919
6920
  size: 8
6920
6921
  },
6921
- [eo.BuiltInSheetPattern.LightGray]: {
6922
+ [to.BuiltInSheetPattern.LightGray]: {
6922
6923
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 2.5 L 0.5 3.5 M 2.5 -0.5 L 2.5 0.5 M 2.5 1.5 L 2.5 2.5 M 2.5 3.5 L 2.5 4.5",
6923
6924
  size: 4
6924
6925
  },
6925
- [eo.BuiltInSheetPattern.MediumGray]: {
6926
+ [to.BuiltInSheetPattern.MediumGray]: {
6926
6927
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 1.5 L 1.5 2.5 M 1.5 -0.5 L 1.5 0.5 M -0.5 -0.5 L -0.5 0.5",
6927
6928
  size: 2
6928
6929
  },
6929
- [eo.BuiltInSheetPattern.DarkGray]: {
6930
+ [to.BuiltInSheetPattern.DarkGray]: {
6930
6931
  path: "M 0 0 L 0 4 M 1 1 L 1 2 M 1 3 L 1 4 M 2 0 L 2 4 M 3 0.5 L 3 1.5 M 3 2.5 L 3 3.5 M 4 0 L 4 4",
6931
6932
  size: 4
6932
6933
  },
6933
- [eo.BuiltInSheetPattern.LightHorizontal]: {
6934
+ [to.BuiltInSheetPattern.LightHorizontal]: {
6934
6935
  path: "M 0 2 L 4 2",
6935
6936
  size: 4
6936
6937
  },
6937
- [eo.BuiltInSheetPattern.DarkHorizontal]: {
6938
+ [to.BuiltInSheetPattern.DarkHorizontal]: {
6938
6939
  path: "M 0 2 L 4 2 M 0 3 L 4 3",
6939
6940
  size: 4
6940
6941
  },
6941
- [eo.BuiltInSheetPattern.LightVertical]: {
6942
+ [to.BuiltInSheetPattern.LightVertical]: {
6942
6943
  path: "M 2 0 L 2 4",
6943
6944
  size: 4
6944
6945
  },
6945
- [eo.BuiltInSheetPattern.DarkVertical]: {
6946
+ [to.BuiltInSheetPattern.DarkVertical]: {
6946
6947
  path: "M 2 0 L 2 4 M 3 0 L 3 4",
6947
6948
  size: 4
6948
6949
  },
6949
- [eo.BuiltInSheetPattern.LightUp]: {
6950
+ [to.BuiltInSheetPattern.LightUp]: {
6950
6951
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5",
6951
6952
  size: 4
6952
6953
  },
6953
- [eo.BuiltInSheetPattern.DarkUp]: {
6954
+ [to.BuiltInSheetPattern.DarkUp]: {
6954
6955
  path: "M 0.5 -0.5 L 0.5 1.5 M 0.5 3.5 L 0.5 4.5 M 1.5 2.5 L 1.5 4.5 M 2.5 1.5 L 2.5 3.5 M 3.5 0.5 L 3.5 2.5 M 1.5 -0.5 L 1.5 0.5",
6955
6956
  size: 4
6956
6957
  },
6957
- [eo.BuiltInSheetPattern.LightDown]: {
6958
+ [to.BuiltInSheetPattern.LightDown]: {
6958
6959
  path: "M 0.5 0 L 0.5 1 M 1.5 1 L 1.5 2 M 2.5 2 L 2.5 3 M 3.5 3 L 3.5 4",
6959
6960
  size: 4
6960
6961
  },
6961
- [eo.BuiltInSheetPattern.DarkDown]: {
6962
+ [to.BuiltInSheetPattern.DarkDown]: {
6962
6963
  path: "M 0.5 -0.5 L 0.5 2 M 1.5 1 L 1.5 3 M 2.5 2 L 2.5 4 M 3.5 3 L 3.5 5 M 3.5 -0.5 L 3.5 1.0",
6963
6964
  size: 4
6964
6965
  },
6965
- [eo.BuiltInSheetPattern.LightGrid]: {
6966
+ [to.BuiltInSheetPattern.LightGrid]: {
6966
6967
  path: "M 1.5 -0.5 L 1.5 4.5 M -0.5 1.5 L 4.5 1.5",
6967
6968
  size: 4
6968
6969
  },
6969
- [eo.BuiltInSheetPattern.DarkGrid]: {
6970
+ [to.BuiltInSheetPattern.DarkGrid]: {
6970
6971
  path: "M 0.5 -0.5 L 0.5 1.5 M 1.5 -0.5 L 1.5 1.5 M 2.5 1.5 L 2.5 3.5 M 3.5 1.5 L 3.5 3.5 M 0.5 3.5 L 0.5 4.5 M 1.5 3.5 L 1.5 4.5",
6971
6972
  size: 4
6972
6973
  },
6973
- [eo.BuiltInSheetPattern.LightTrellis]: {
6974
+ [to.BuiltInSheetPattern.LightTrellis]: {
6974
6975
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5 M 1.5 1.5 L 1.5 2.5 M 3.5 3.5 L 3.5 4.5 M 3.5 -0.5 L 3.5 0.5",
6975
6976
  size: 4
6976
6977
  },
6977
- [eo.BuiltInSheetPattern.DarkTrellis]: {
6978
+ [to.BuiltInSheetPattern.DarkTrellis]: {
6978
6979
  path: "M 0 0 L 4 0 M 0 1 L 2 1 M 0 2 L 4 2 M 2 3 L 4 3 M 0 4 L 4 4",
6979
6980
  size: 4
6980
6981
  },
6981
- [eo.BuiltInSheetPattern.Gray125]: {
6982
+ [to.BuiltInSheetPattern.Gray125]: {
6982
6983
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 2.5 2.5 L 2.5 3.5 M 2.5 6.5 L 2.5 7.5 M 4.5 0.5 L 4.5 1.5 M 4.5 4.5 L 4.5 5.5 M 6.5 2.5 L 6.5 3.5 M 6.5 6.5 L 6.5 7.5",
6983
6984
  size: 8
6984
6985
  }
6985
- }, Qi = Zi[eo.BuiltInSheetPattern.Gray125], es = (e, t, r) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}' viewBox='0 0 ${t} ${t}' shape-rendering='crispEdges' %3E%3Cpath d='${e}' stroke='${r}' %3E%3C/path%3E%3C/svg%3E")`, ts = new class {
6986
+ }, es = Qi[to.BuiltInSheetPattern.Gray125], ts = (e, t, r) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}' viewBox='0 0 ${t} ${t}' shape-rendering='crispEdges' %3E%3Cpath d='${e}' stroke='${r}' %3E%3C/path%3E%3C/svg%3E")`, rs = new class {
6986
6987
  _svgImage(e, t, r) {
6987
6988
  const { path: n, size: a } = r;
6988
6989
  return {
6989
- backgroundImage: es(n, a, e),
6990
+ backgroundImage: ts(n, a, e),
6990
6991
  backgroundRepeat: "repeat",
6991
6992
  backgroundSize: `${a}px ${a}px`,
6992
6993
  backgroundPositionX: "0px",
@@ -6996,23 +6997,23 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
6996
6997
  };
6997
6998
  }
6998
6999
  toCSS(e, t, r) {
6999
- return e && e !== eo.BuiltInSheetPattern.None ? e === eo.BuiltInSheetPattern.Solid ? { background: t } : this._svgImage(t, r, Zi[e] ?? Qi) : { background: "none" };
7000
+ return e && e !== to.BuiltInSheetPattern.None ? e === to.BuiltInSheetPattern.Solid ? { background: t } : this._svgImage(t, r, Qi[e] ?? es) : { background: "none" };
7000
7001
  }
7001
7002
  toCSSMask(e, t, r) {
7002
- if (!e || e === eo.BuiltInSheetPattern.None || e === eo.BuiltInSheetPattern.Solid) return null;
7003
- const { path: n, size: a } = Zi[e] ?? Qi;
7003
+ if (!e || e === to.BuiltInSheetPattern.None || e === to.BuiltInSheetPattern.Solid) return null;
7004
+ const { path: n, size: a } = Qi[e] ?? es;
7004
7005
  return {
7005
7006
  base: { backgroundColor: r },
7006
7007
  marks: {
7007
7008
  backgroundColor: t,
7008
- maskImage: es(n, a, "black"),
7009
+ maskImage: ts(n, a, "black"),
7009
7010
  maskRepeat: "repeat",
7010
7011
  maskSize: `${a}px ${a}px`,
7011
7012
  maskPosition: "0px 0px"
7012
7013
  }
7013
7014
  };
7014
7015
  }
7015
- }(), rs = class {
7016
+ }(), ns = class {
7016
7017
  constructor(e, t) {
7017
7018
  this._h = e, this._p = t;
7018
7019
  }
@@ -7032,9 +7033,9 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7032
7033
  get isIFill() {
7033
7034
  return !0;
7034
7035
  }
7035
- }, ns = Object.freeze({ background: "none" }), as = class extends rs {
7036
+ }, as = Object.freeze({ background: "none" }), os = class extends ns {
7036
7037
  getType() {
7037
- return eo.Type.None;
7038
+ return to.Type.None;
7038
7039
  }
7039
7040
  getColor() {
7040
7041
  return null;
@@ -7043,16 +7044,16 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7043
7044
  return null === e ? this : this._update({ color: e }, o("op.setFillColor"), t);
7044
7045
  }
7045
7046
  toCSS(e) {
7046
- return ns;
7047
+ return as;
7047
7048
  }
7048
7049
  hasVisibleStyling() {
7049
7050
  return !1;
7050
7051
  }
7051
7052
  isEqual(e) {
7052
- return !!e && e.getType() === eo.Type.None;
7053
+ return !!e && e.getType() === to.Type.None;
7053
7054
  }
7054
7055
  toJSON() {
7055
- return { type: eo.Type.None };
7056
+ return { type: to.Type.None };
7056
7057
  }
7057
7058
  get [Symbol.toStringTag]() {
7058
7059
  return "[NoneFill]";
@@ -7060,12 +7061,12 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7060
7061
  toString() {
7061
7062
  return "[NoneFill]";
7062
7063
  }
7063
- }, os = class extends rs {
7064
+ }, is = class extends ns {
7064
7065
  getType() {
7065
- return eo.Type.Solid;
7066
+ return to.Type.Solid;
7066
7067
  }
7067
7068
  getColor() {
7068
- return this._h.parseColor(this._value("color") ?? xa.Scheme.Bg1);
7069
+ return this._h.parseColor(this._value("color") ?? Aa.Scheme.Bg1);
7069
7070
  }
7070
7071
  setColor(e, t) {
7071
7072
  return this._update({ color: e }, o("op.setFillColor"), t);
@@ -7078,11 +7079,11 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7078
7079
  return !e || !e.isEqual(this);
7079
7080
  }
7080
7081
  isEqual(e) {
7081
- return !!e && e.getType() === eo.Type.Solid && !!e.getColor().isEqual(this.getColor());
7082
+ return !!e && e.getType() === to.Type.Solid && !!e.getColor().isEqual(this.getColor());
7082
7083
  }
7083
7084
  toJSON() {
7084
7085
  return {
7085
- type: eo.Type.Solid,
7086
+ type: to.Type.Solid,
7086
7087
  color: this.getColor()?.toString() ?? null
7087
7088
  };
7088
7089
  }
@@ -7092,7 +7093,7 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7092
7093
  toString() {
7093
7094
  return "[SolidFill]";
7094
7095
  }
7095
- }, is = class extends rs {
7096
+ }, ss = class extends ns {
7096
7097
  constructor(e, t, r, n) {
7097
7098
  super(r, n), this._i = e, this._l = t;
7098
7099
  }
@@ -7100,18 +7101,18 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7100
7101
  return this._value("offset") ?? (this._l > 1 ? this._i / (this._l - 1) : 0);
7101
7102
  }
7102
7103
  getColor() {
7103
- return this._h.parseColor(this._value("color") ?? xa.Scheme.Bg1);
7104
+ return this._h.parseColor(this._value("color") ?? Aa.Scheme.Bg1);
7104
7105
  }
7105
- }, ss = class extends rs {
7106
+ }, ls = class extends ns {
7106
7107
  getType() {
7107
- return eo.Type.Gradient;
7108
+ return to.Type.Gradient;
7108
7109
  }
7109
7110
  _stops() {
7110
7111
  return this._value("stops") ?? t.EmptyArray;
7111
7112
  }
7112
7113
  getColor() {
7113
7114
  const e = this._stops(), t = e.length;
7114
- return 0 === t ? null : new is(0, t, this._h, [e[0]]).getColor();
7115
+ return 0 === t ? null : new ss(0, t, this._h, [e[0]]).getColor();
7115
7116
  }
7116
7117
  setColor(e, t) {
7117
7118
  const r = this._stops(), n = r.length > 0 ? { ...r[0] } : {
@@ -7122,14 +7123,14 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7122
7123
  }
7123
7124
  getStops() {
7124
7125
  const e = this._stops(), r = e.length, n = 0 === r ? t.EmptyArray : new Array(r);
7125
- for (let t = 0; t < r; t++) n[t] = new is(t, r, this._h, [e[t]]);
7126
+ for (let t = 0; t < r; t++) n[t] = new ss(t, r, this._h, [e[t]]);
7126
7127
  return n;
7127
7128
  }
7128
7129
  setStops(e, t) {
7129
7130
  return this._update({ stops: e }, o("op.setStops"), t);
7130
7131
  }
7131
7132
  getGradientType() {
7132
- return this._value("gradientType") ?? eo.GradientType.Linear;
7133
+ return this._value("gradientType") ?? to.GradientType.Linear;
7133
7134
  }
7134
7135
  setGradientType(e, t) {
7135
7136
  return this._update({ gradientType: e }, o("op.setGradientType"), t);
@@ -7147,7 +7148,7 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7147
7148
  return this._update({ focus: e }, o("op.setFocus"), t);
7148
7149
  }
7149
7150
  toCSS(e, t) {
7150
- const r = ni(this, e, t);
7151
+ const r = ai(this, e, t);
7151
7152
  return r ? { background: r } : null;
7152
7153
  }
7153
7154
  hasVisibleStyling() {
@@ -7157,7 +7158,7 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7157
7158
  return !1;
7158
7159
  }
7159
7160
  toJSON() {
7160
- const e = { type: eo.Type.Gradient }, t = this._stops(), r = t.length;
7161
+ const e = { type: to.Type.Gradient }, t = this._stops(), r = t.length;
7161
7162
  if (r > 0) {
7162
7163
  const n = new Array(r);
7163
7164
  for (let e = 0; e < r; e++) {
@@ -7166,7 +7167,7 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7166
7167
  }
7167
7168
  e.stops = n;
7168
7169
  }
7169
- return 0 !== this.getAngle() && (e.angle = this.getAngle()), this.getGradientType() !== eo.GradientType.Linear && (e.gradientType = this.getGradientType()), this.getFocus() && (e.focus = this.getFocus()), e;
7170
+ return 0 !== this.getAngle() && (e.angle = this.getAngle()), this.getGradientType() !== to.GradientType.Linear && (e.gradientType = this.getGradientType()), this.getFocus() && (e.focus = this.getFocus()), e;
7170
7171
  }
7171
7172
  get [Symbol.toStringTag]() {
7172
7173
  return "[GradientFill]";
@@ -7174,9 +7175,9 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7174
7175
  toString() {
7175
7176
  return "[GradientFill]";
7176
7177
  }
7177
- }, ls = class extends rs {
7178
+ }, us = class extends ns {
7178
7179
  getType() {
7179
- return eo.Type.Pattern;
7180
+ return to.Type.Pattern;
7180
7181
  }
7181
7182
  getColor() {
7182
7183
  return this.getBackground();
@@ -7185,48 +7186,48 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7185
7186
  return this.setBackground(e, t);
7186
7187
  }
7187
7188
  getBackground() {
7188
- const e = this._value("background") ?? xa.Named.Window;
7189
+ const e = this._value("background") ?? Aa.Named.Window;
7189
7190
  return this._h.parseColor(e);
7190
7191
  }
7191
7192
  setBackground(e, t) {
7192
7193
  return this._update({ background: e }, o("op.setBackgroundColor"), t);
7193
7194
  }
7194
7195
  getForeground() {
7195
- return this._h.parseColor(this._value("foreground") ?? xa.Scheme.Tx1);
7196
+ return this._h.parseColor(this._value("foreground") ?? Aa.Scheme.Tx1);
7196
7197
  }
7197
7198
  setForeground(e, t) {
7198
7199
  return this._update({ foreground: e }, o("op.setForegroundColor"), t);
7199
7200
  }
7200
7201
  getPatternType() {
7201
- return this._value("patternType") ?? eo.BuiltInSheetPattern.None;
7202
+ return this._value("patternType") ?? to.BuiltInSheetPattern.None;
7202
7203
  }
7203
7204
  setPatternType(e, t) {
7204
7205
  return this._update({ patternType: e }, o("op.setPatternType"), t);
7205
7206
  }
7206
7207
  toCSS(e) {
7207
- if (this.getPatternType() === eo.BuiltInSheetPattern.None) return { background: "none" };
7208
- if (this.getPatternType() === eo.BuiltInSheetPattern.Solid) return { background: this.getForeground().toCSS(e) };
7208
+ if (this.getPatternType() === to.BuiltInSheetPattern.None) return { background: "none" };
7209
+ if (this.getPatternType() === to.BuiltInSheetPattern.Solid) return { background: this.getForeground().toCSS(e) };
7209
7210
  const t = !0 === e, r = (e) => {
7210
7211
  const r = e.toRGBA(t);
7211
7212
  return 0 === r.alpha ? "none" : r.toString(!1);
7212
7213
  };
7213
- return ts.toCSS(this.getPatternType(), r(this.getForeground()), r(this.getBackground()));
7214
+ return rs.toCSS(this.getPatternType(), r(this.getForeground()), r(this.getBackground()));
7214
7215
  }
7215
7216
  toCSSMask(e) {
7216
- return ts.toCSSMask(this.getPatternType(), this.getForeground().toCSS(e), this.getBackground().toCSS(e));
7217
+ return rs.toCSSMask(this.getPatternType(), this.getForeground().toCSS(e), this.getBackground().toCSS(e));
7217
7218
  }
7218
7219
  hasVisibleStyling() {
7219
7220
  return !0;
7220
7221
  }
7221
7222
  isEqual(e) {
7222
7223
  if (!e) return !1;
7223
- if (e.getType() !== eo.Type.Pattern) return !1;
7224
+ if (e.getType() !== to.Type.Pattern) return !1;
7224
7225
  const t = e;
7225
7226
  return t.getPatternType() === this.getPatternType() && !!t.getForeground().isEqual(this.getForeground()) && !!t.getBackground().isEqual(this.getBackground());
7226
7227
  }
7227
7228
  toJSON() {
7228
- const e = { type: eo.Type.Pattern };
7229
- this.getPatternType() !== eo.BuiltInSheetPattern.None && (e.patternType = this.getPatternType());
7229
+ const e = { type: to.Type.Pattern };
7230
+ this.getPatternType() !== to.BuiltInSheetPattern.None && (e.patternType = this.getPatternType());
7230
7231
  const t = this.getForeground();
7231
7232
  t && (e.foreground = t.toString());
7232
7233
  const r = this.getBackground();
@@ -7238,7 +7239,7 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7238
7239
  toString() {
7239
7240
  return "[PatternFill]";
7240
7241
  }
7241
- }, us = [
7242
+ }, ds = [
7242
7243
  "resId",
7243
7244
  "sourceRect",
7244
7245
  "stretch",
@@ -7247,16 +7248,16 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7247
7248
  "compressionState",
7248
7249
  "extLst",
7249
7250
  "isRotatedWithShape"
7250
- ], ds = class extends rs {
7251
+ ], cs = class extends ns {
7251
7252
  getType() {
7252
- return eo.Type.Image;
7253
+ return to.Type.Image;
7253
7254
  }
7254
7255
  getColor() {
7255
7256
  return null;
7256
7257
  }
7257
7258
  setColor(e, t) {
7258
7259
  return null === e ? this : this._update({
7259
- type: eo.Type.Solid,
7260
+ type: to.Type.Solid,
7260
7261
  color: e
7261
7262
  }, o("op.setFillColor"), t);
7262
7263
  }
@@ -7268,21 +7269,21 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7268
7269
  return void 0 !== this._value("tile");
7269
7270
  }
7270
7271
  toCSS(e) {
7271
- return ns;
7272
+ return as;
7272
7273
  }
7273
7274
  hasVisibleStyling() {
7274
7275
  return !0;
7275
7276
  }
7276
7277
  isEqual(e) {
7277
7278
  if (!e) return !1;
7278
- if (e.getType() !== eo.Type.Image) return !1;
7279
+ if (e.getType() !== to.Type.Image) return !1;
7279
7280
  const t = e.toJSON(), r = this.toJSON();
7280
- for (const e of us) if (JSON.stringify(r[e]) !== JSON.stringify(t[e])) return !1;
7281
+ for (const e of ds) if (JSON.stringify(r[e]) !== JSON.stringify(t[e])) return !1;
7281
7282
  return !0;
7282
7283
  }
7283
7284
  toJSON() {
7284
- const e = { type: eo.Type.Image };
7285
- for (const t of us) {
7285
+ const e = { type: to.Type.Image };
7286
+ for (const t of ds) {
7286
7287
  const r = this._value(t);
7287
7288
  void 0 !== r && (e[t] = r);
7288
7289
  }
@@ -7295,25 +7296,25 @@ var $i, Hi, Ui, Ki, Wi = zi.length, Vi = {
7295
7296
  return "[ImageFill]";
7296
7297
  }
7297
7298
  };
7298
- function cs(e, t) {
7299
+ function ms(e, t) {
7299
7300
  const r = t.filter((e) => !!e);
7300
7301
  let n;
7301
7302
  for (let e = r.length - 1; void 0 === n && e >= 0; e--) n = r[e].type;
7302
7303
  if (void 0 === n) {
7303
7304
  for (let e = r.length - 1; e >= 0; e--) if (void 0 !== r[e].color) {
7304
- n = eo.Type.Solid;
7305
+ n = to.Type.Solid;
7305
7306
  break;
7306
7307
  }
7307
7308
  }
7308
7309
  switch (n) {
7309
- case eo.Type.Solid: return new os(e, r);
7310
- case eo.Type.Gradient: return new ss(e, r);
7311
- case eo.Type.Pattern: return new ls(e, r);
7312
- case eo.Type.Image: return new ds(e, r);
7313
- default: return new as(e, r);
7310
+ case to.Type.Solid: return new is(e, r);
7311
+ case to.Type.Gradient: return new ls(e, r);
7312
+ case to.Type.Pattern: return new us(e, r);
7313
+ case to.Type.Image: return new cs(e, r);
7314
+ default: return new os(e, r);
7314
7315
  }
7315
7316
  }
7316
- var ms = Object.freeze({
7317
+ var hs = Object.freeze({
7317
7318
  AccentBorderCallout1: "accentBorderCallout1",
7318
7319
  AccentBorderCallout2: "accentBorderCallout2",
7319
7320
  AccentBorderCallout3: "accentBorderCallout3",
@@ -7502,28 +7503,28 @@ var ms = Object.freeze({
7502
7503
  WedgeRectCallout: "wedgeRectCallout",
7503
7504
  WedgeRoundRectCallout: "wedgeRoundRectCallout"
7504
7505
  });
7505
- (Hi = $i || ($i = {})).Preset = ms, Hi.PathLayer = {
7506
+ (Ui = Hi || (Hi = {})).Preset = hs, Ui.PathLayer = {
7506
7507
  Fill: "fill",
7507
7508
  Stroke: "stroke",
7508
7509
  Marker: "marker"
7509
- }, Hi.FillTransfer = Object.freeze({
7510
+ }, Ui.FillTransfer = Object.freeze({
7510
7511
  norm: [1, 0],
7511
7512
  darken: [.6, 0],
7512
7513
  darkenLess: [.8, 0],
7513
7514
  lighten: [.6, .4],
7514
7515
  lightenLess: [.8, .2]
7515
- }), Hi.HandleType = {
7516
+ }), Ui.HandleType = {
7516
7517
  XY: "xy",
7517
7518
  Polar: "polar"
7518
- }, (Ki = Ui || (Ui = {})).Type = {
7519
+ }, (Wi = Ki || (Ki = {})).Type = {
7519
7520
  Shape: "shape",
7520
7521
  Connector: "connector"
7521
- }, Ki.ConnectorType = {
7522
+ }, Wi.ConnectorType = {
7522
7523
  Straight: "straight",
7523
7524
  Elbow: "elbow",
7524
7525
  Curved: "curved"
7525
7526
  };
7526
- var hs = 96 / 72, ps = {
7527
+ var ps = 96 / 72, gs = {
7527
7528
  head: [
7528
7529
  "headType",
7529
7530
  "headWidth",
@@ -7534,8 +7535,8 @@ var hs = 96 / 72, ps = {
7534
7535
  "tailWidth",
7535
7536
  "tailLength"
7536
7537
  ]
7537
- }, gs = (e, t) => {
7538
- const [r, n, a] = ps[e];
7538
+ }, fs = (e, t) => {
7539
+ const [r, n, a] = gs[e];
7539
7540
  if (null === t) return {
7540
7541
  [r]: null,
7541
7542
  [n]: null,
@@ -7547,7 +7548,7 @@ var hs = 96 / 72, ps = {
7547
7548
  [n]: o.width ?? null,
7548
7549
  [a]: o.length ?? null
7549
7550
  };
7550
- }, fs = class e {
7551
+ }, ys = class e {
7551
7552
  constructor(e, t) {
7552
7553
  this._fill = null, this._h = e, this._p = t.filter((e) => !!e);
7553
7554
  }
@@ -7572,7 +7573,7 @@ var hs = 96 / 72, ps = {
7572
7573
  getResource: (t) => e.getResource?.(t) ?? null,
7573
7574
  updateFill: (t, r) => e.updateStroke({ fill: t }, r).getFill()
7574
7575
  }, r = this._p.map((e) => e.fill);
7575
- return this._fill = cs(t, r);
7576
+ return this._fill = ms(t, r);
7576
7577
  }
7577
7578
  setFill(e, t) {
7578
7579
  return this._update({ fill: e }, o("op.setStrokeColor"), t);
@@ -7585,19 +7586,19 @@ var hs = 96 / 72, ps = {
7585
7586
  return this._update({ width: e }, o("op.setStrokeWidth"), t);
7586
7587
  }
7587
7588
  getDash() {
7588
- return this._value("dash") ?? ro.DashStyle.Solid;
7589
+ return this._value("dash") ?? no.DashStyle.Solid;
7589
7590
  }
7590
7591
  setDash(e, t) {
7591
7592
  return this._update({ dash: e }, o("op.setStrokeDash"), t);
7592
7593
  }
7593
7594
  getLineCap() {
7594
- return this._value("lineCap") ?? ro.LineCap.Butt;
7595
+ return this._value("lineCap") ?? no.LineCap.Butt;
7595
7596
  }
7596
7597
  setLineCap(e, t) {
7597
7598
  return this._update({ lineCap: e }, o("op.setStroke"), t);
7598
7599
  }
7599
7600
  getLineJoin() {
7600
- return this._value("lineJoin") ?? ro.LineJoin.Miter;
7601
+ return this._value("lineJoin") ?? no.LineJoin.Miter;
7601
7602
  }
7602
7603
  setLineJoin(e, t) {
7603
7604
  return this._update({ lineJoin: e }, o("op.setStroke"), t);
@@ -7607,7 +7608,7 @@ var hs = 96 / 72, ps = {
7607
7608
  return "number" == typeof e ? e : 10;
7608
7609
  }
7609
7610
  _end(e) {
7610
- const [t, r, n] = ps[e], a = { type: this._value(t) ?? ro.LineEndType.None }, o = this._value(r);
7611
+ const [t, r, n] = gs[e], a = { type: this._value(t) ?? no.LineEndType.None }, o = this._value(r);
7611
7612
  void 0 !== o && (a.width = o);
7612
7613
  const i = this._value(n);
7613
7614
  return void 0 !== i && (a.length = i), a;
@@ -7616,19 +7617,19 @@ var hs = 96 / 72, ps = {
7616
7617
  return this._end("head");
7617
7618
  }
7618
7619
  setHead(e, t) {
7619
- return this._update(gs("head", e), o("op.setLineEnds"), t);
7620
+ return this._update(fs("head", e), o("op.setLineEnds"), t);
7620
7621
  }
7621
7622
  getTail() {
7622
7623
  return this._end("tail");
7623
7624
  }
7624
7625
  setTail(e, t) {
7625
- return this._update(gs("tail", e), o("op.setLineEnds"), t);
7626
+ return this._update(fs("tail", e), o("op.setLineEnds"), t);
7626
7627
  }
7627
7628
  getCompound() {
7628
- return this._value("compound") ?? ro.Compound.Single;
7629
+ return this._value("compound") ?? no.Compound.Single;
7629
7630
  }
7630
7631
  getAlign() {
7631
- return this._value("align") ?? ro.Align.Center;
7632
+ return this._value("align") ?? no.Align.Center;
7632
7633
  }
7633
7634
  update(t, r) {
7634
7635
  return this._h.updateStroke(e.toModifiers(t), {
@@ -7637,7 +7638,7 @@ var hs = 96 / 72, ps = {
7637
7638
  });
7638
7639
  }
7639
7640
  isVisible() {
7640
- return this.getWidth() > 0 && this.getFill().getType() !== eo.Type.None;
7641
+ return this.getWidth() > 0 && this.getFill().getType() !== to.Type.None;
7641
7642
  }
7642
7643
  isEqual(e) {
7643
7644
  return !!e && JSON.stringify(this.toJSON()) === JSON.stringify(e.toJSON());
@@ -7646,8 +7647,8 @@ var hs = 96 / 72, ps = {
7646
7647
  if (!this.isVisible()) return { border: "none" };
7647
7648
  const r = this.getFill().getColor(), n = this.getDash();
7648
7649
  return {
7649
- borderWidth: this.getWidth() * hs + "px",
7650
- borderStyle: n === ro.DashStyle.Solid ? "solid" : n === ro.DashStyle.Dot || n === ro.DashStyle.SysDot ? "dotted" : "dashed",
7650
+ borderWidth: this.getWidth() * ps + "px",
7651
+ borderStyle: n === no.DashStyle.Solid ? "solid" : n === no.DashStyle.Dot || n === no.DashStyle.SysDot ? "dotted" : "dashed",
7651
7652
  borderColor: r ? r.toCSS(e) : "currentColor"
7652
7653
  };
7653
7654
  }
@@ -7670,17 +7671,17 @@ var hs = 96 / 72, ps = {
7670
7671
  if ("string" == typeof e) return { fill: e };
7671
7672
  if (e.isIStroke) return e.toJSON();
7672
7673
  const { head: t, tail: r, ...n } = e, a = { ...n };
7673
- return void 0 !== t && Object.assign(a, gs("head", t)), void 0 !== r && Object.assign(a, gs("tail", r)), a;
7674
- }
7675
- }, ys = i({
7676
- TEXT_DEFAULTS: () => Ts,
7677
- defaultStyleRefs: () => Cs,
7678
- inheritedGroupFill: () => Bs,
7679
- inheritedTextSize: () => _s,
7680
- resolve: () => Ls,
7681
- withThemeDefaults: () => Ms,
7682
- withoutDefaultStyleRefs: () => ks
7683
- }), Ss = Object.freeze({
7674
+ return void 0 !== t && Object.assign(a, fs("head", t)), void 0 !== r && Object.assign(a, fs("tail", r)), a;
7675
+ }
7676
+ }, Ss = i({
7677
+ TEXT_DEFAULTS: () => _s,
7678
+ defaultStyleRefs: () => Ms,
7679
+ inheritedGroupFill: () => Ls,
7680
+ inheritedTextSize: () => Ds,
7681
+ resolve: () => Rs,
7682
+ withThemeDefaults: () => ks,
7683
+ withoutDefaultStyleRefs: () => Ts
7684
+ }), bs = Object.freeze({
7684
7685
  fill: {
7685
7686
  index: 1,
7686
7687
  color: "accent1"
@@ -7697,7 +7698,7 @@ var hs = 96 / 72, ps = {
7697
7698
  index: z.Scheme.Minor,
7698
7699
  color: "lt1"
7699
7700
  }
7700
- }), bs = Object.freeze({
7701
+ }), ws = Object.freeze({
7701
7702
  fill: {
7702
7703
  index: 0,
7703
7704
  color: "accent1"
@@ -7714,7 +7715,7 @@ var hs = 96 / 72, ps = {
7714
7715
  index: z.Scheme.Minor,
7715
7716
  color: "tx1"
7716
7717
  }
7717
- }), ws = Object.freeze({
7718
+ }), vs = Object.freeze({
7718
7719
  fill: { index: 0 },
7719
7720
  stroke: { index: 0 },
7720
7721
  effect: { index: 0 },
@@ -7722,24 +7723,24 @@ var hs = 96 / 72, ps = {
7722
7723
  index: z.Scheme.Minor,
7723
7724
  color: "dk1"
7724
7725
  }
7725
- }), vs = Object.freeze({
7726
+ }), Cs = Object.freeze({
7726
7727
  fill: {
7727
- type: eo.Type.Solid,
7728
+ type: to.Type.Solid,
7728
7729
  color: "lt1"
7729
7730
  },
7730
7731
  stroke: {
7731
7732
  width: .75,
7732
7733
  fill: {
7733
- type: eo.Type.Solid,
7734
+ type: to.Type.Solid,
7734
7735
  color: "lt1 shade 50"
7735
7736
  }
7736
7737
  }
7737
7738
  });
7738
- function Cs(e) {
7739
- return e?.type === Ui.Type.Connector ? bs : e?.textBox ? ws : Ss;
7739
+ function Ms(e) {
7740
+ return e?.type === Ki.Type.Connector ? ws : e?.textBox ? vs : bs;
7740
7741
  }
7741
- function Ms(e, t) {
7742
- const r = t.getObjectDefaults(), n = e.type === Ui.Type.Connector, a = (n ? r.line : e.textBox ? r.text : r.shape) ?? (e.textBox ? vs : null);
7742
+ function ks(e, t) {
7743
+ const r = t.getObjectDefaults(), n = e.type === Ki.Type.Connector, a = (n ? r.line : e.textBox ? r.text : r.shape) ?? (e.textBox ? Cs : null);
7743
7744
  if (!a) return e;
7744
7745
  const { type: o, geometry: i, textBox: s, ...l } = a;
7745
7746
  n && delete l.text;
@@ -7760,13 +7761,13 @@ function Ms(e, t) {
7760
7761
  ...l.text.body,
7761
7762
  ...e.text.body
7762
7763
  }));
7763
- const d = ks(u);
7764
+ const d = Ts(u);
7764
7765
  return void 0 === d ? delete u.style : u.style = d, u;
7765
7766
  }
7766
- function ks(e) {
7767
+ function Ts(e) {
7767
7768
  const t = e.style;
7768
7769
  if (!t) return t;
7769
- const r = Cs(e), n = {};
7770
+ const r = Ms(e), n = {};
7770
7771
  for (const e of [
7771
7772
  "fill",
7772
7773
  "stroke",
@@ -7778,48 +7779,48 @@ function ks(e) {
7778
7779
  }
7779
7780
  return Object.keys(n).length > 0 ? n : void 0;
7780
7781
  }
7781
- var Ts = Object.freeze({
7782
+ var _s = Object.freeze({
7782
7783
  verticalOverflow: c.Overflow.Clip,
7783
7784
  horizontalOverflow: c.Overflow.Clip,
7784
7785
  size: 11
7785
7786
  });
7786
- function _s(e, t) {
7787
+ function Ds(e, t) {
7787
7788
  const r = e.listStyle;
7788
7789
  return t.defaultRun?.size ?? r?.levels?.[t.level ?? 0]?.defaultRun?.size ?? r?.default?.defaultRun?.size;
7789
7790
  }
7790
- var Ds, xs = (e, t) => "string" == typeof e && e.startsWith("phClr") ? (t ?? "tx1") + e.slice(5) : e, As = (e, t) => {
7791
+ var xs, As = (e, t) => "string" == typeof e && e.startsWith("phClr") ? (t ?? "tx1") + e.slice(5) : e, Fs = (e, t) => {
7791
7792
  const r = { ...e };
7792
- return "color" in r && (r.color = xs(r.color, t)), "foreground" in r && (r.foreground = xs(r.foreground, t)), "background" in r && (r.background = xs(r.background, t)), Array.isArray(r.stops) && (r.stops = r.stops.map((e) => "string" == typeof e ? xs(e, t) : {
7793
+ return "color" in r && (r.color = As(r.color, t)), "foreground" in r && (r.foreground = As(r.foreground, t)), "background" in r && (r.background = As(r.background, t)), Array.isArray(r.stops) && (r.stops = r.stops.map((e) => "string" == typeof e ? As(e, t) : {
7793
7794
  ...e,
7794
- color: xs(e.color, t)
7795
+ color: As(e.color, t)
7795
7796
  })), r;
7796
- }, Fs = (e, t) => {
7797
- if (!e) return;
7798
- if (e.index <= 0) return { type: eo.Type.None };
7799
- const r = t?.fillStyleLst?.length ? t.fillStyleLst : Fo.fillStyleLst, n = r[Math.min(e.index, r.length) - 1];
7800
- return n ? As(n, e.color) : void 0;
7801
7797
  }, Ns = (e, t) => {
7802
7798
  if (!e) return;
7803
- if (e.index <= 0) return { fill: { type: eo.Type.None } };
7804
- const r = t?.lnStyleLst?.length ? t.lnStyleLst : Fo.lnStyleLst, n = r[Math.min(e.index, r.length) - 1];
7799
+ if (e.index <= 0) return { type: to.Type.None };
7800
+ const r = t?.fillStyleLst?.length ? t.fillStyleLst : No.fillStyleLst, n = r[Math.min(e.index, r.length) - 1];
7801
+ return n ? Fs(n, e.color) : void 0;
7802
+ }, Bs = (e, t) => {
7803
+ if (!e) return;
7804
+ if (e.index <= 0) return { fill: { type: to.Type.None } };
7805
+ const r = t?.lnStyleLst?.length ? t.lnStyleLst : No.lnStyleLst, n = r[Math.min(e.index, r.length) - 1];
7805
7806
  if (!n) return;
7806
7807
  const a = { ...n };
7807
- return a.fill && (a.fill = As(a.fill, e.color)), a;
7808
+ return a.fill && (a.fill = Fs(a.fill, e.color)), a;
7808
7809
  };
7809
- function Bs(e) {
7810
+ function Ls(e) {
7810
7811
  let t = e?.getParent() ?? null;
7811
7812
  for (; t;) {
7812
7813
  const e = t.getContent().getFill?.() ?? null;
7813
- if (e && e.type !== eo.Type.Group) return e;
7814
+ if (e && e.type !== to.Type.Group) return e;
7814
7815
  t = t.getParent();
7815
7816
  }
7816
7817
  return null;
7817
7818
  }
7818
- function Ls(e, t, r) {
7819
+ function Rs(e, t, r) {
7819
7820
  const n = null === e?.style ? {} : {
7820
- ...Cs(e),
7821
+ ...Ms(e),
7821
7822
  ...e?.style
7822
- }, a = (e?.fill?.type === eo.Type.Group ? r ?? void 0 : e?.fill) ?? Fs(n.fill, t), o = Ns(n.stroke, t), i = e?.stroke, s = i || o ? {
7823
+ }, a = (e?.fill?.type === to.Type.Group ? r ?? void 0 : e?.fill) ?? Ns(n.fill, t), o = Bs(n.stroke, t), i = e?.stroke, s = i || o ? {
7823
7824
  ...o,
7824
7825
  ...i,
7825
7826
  fill: i?.fill ?? o?.fill
@@ -7828,11 +7829,11 @@ function Ls(e, t, r) {
7828
7829
  fill: a,
7829
7830
  stroke: s,
7830
7831
  strokeWidth: "number" == typeof s?.width ? s.width : .75,
7831
- fontColor: n.font?.color ?? (a && a.type !== eo.Type.None ? "lt1" : "tx1")
7832
+ fontColor: n.font?.color ?? (a && a.type !== to.Type.None ? "lt1" : "tx1")
7832
7833
  };
7833
7834
  }
7834
- var Rs = [
7835
- [() => import("./ChWpsFGl-BYOnX_A.js"), [
7835
+ var Ps = [
7836
+ [() => import("./C4deMY87Q_haYyLF.js"), [
7836
7837
  "bentConnector2",
7837
7838
  "bentConnector3",
7838
7839
  "bentConnector4",
@@ -7845,7 +7846,7 @@ var Rs = [
7845
7846
  "lineInv",
7846
7847
  "straightConnector1"
7847
7848
  ]],
7848
- [() => import("./jPUOH4FHF4b-rapv.js"), [
7849
+ [() => import("./Dzz3yrKbECzg6caR.js"), [
7849
7850
  "rect",
7850
7851
  "round1Rect",
7851
7852
  "round2DiagRect",
@@ -7856,7 +7857,7 @@ var Rs = [
7856
7857
  "snip2SameRect",
7857
7858
  "snipRoundRect"
7858
7859
  ]],
7859
- [() => import("./Cfhv_Yw_LT8VzAMt.js"), [
7860
+ [() => import("./BodrfKIAhDFD-X3t.js"), [
7860
7861
  "mathDivide",
7861
7862
  "mathEqual",
7862
7863
  "mathMinus",
@@ -7864,7 +7865,7 @@ var Rs = [
7864
7865
  "mathNotEqual",
7865
7866
  "mathPlus"
7866
7867
  ]],
7867
- [() => import("./ZuYfVKlp41IJnrOS.js"), [
7868
+ [() => import("./Bj4BFLBC9Tf6SGSt.js"), [
7868
7869
  "flowChartAlternateProcess",
7869
7870
  "flowChartCollate",
7870
7871
  "flowChartConnector",
@@ -7895,7 +7896,7 @@ var Rs = [
7895
7896
  "flowChartSummingJunction",
7896
7897
  "flowChartTerminator"
7897
7898
  ]],
7898
- [() => import("./OVRdpPUzR0-ueTxE.js"), [
7899
+ [() => import("./DF7-oRscXc_vkMo8.js"), [
7899
7900
  "bentArrow",
7900
7901
  "bentUpArrow",
7901
7902
  "chevron",
@@ -7928,7 +7929,7 @@ var Rs = [
7928
7929
  "upDownArrowCallout",
7929
7930
  "uturnArrow"
7930
7931
  ]],
7931
- [() => import("./B5lHOOQ_rkP4Mi2r.js"), [
7932
+ [() => import("./BGZ_ltNFYvnAmbVR.js"), [
7932
7933
  "accentBorderCallout1",
7933
7934
  "accentBorderCallout2",
7934
7935
  "accentBorderCallout3",
@@ -7946,7 +7947,7 @@ var Rs = [
7946
7947
  "wedgeRectCallout",
7947
7948
  "wedgeRoundRectCallout"
7948
7949
  ]],
7949
- [() => import("./FS9NbEKgQvz5wqvZ.js"), [
7950
+ [() => import("./Mgs_OJP41a-Nfac3.js"), [
7950
7951
  "doubleWave",
7951
7952
  "ellipseRibbon",
7952
7953
  "ellipseRibbon2",
@@ -7969,7 +7970,7 @@ var Rs = [
7969
7970
  "verticalScroll",
7970
7971
  "wave"
7971
7972
  ]],
7972
- [() => import("./B-MqXm_7luDLwazY.js"), [
7973
+ [() => import("./Ljri8sTW3dWT4clD.js"), [
7973
7974
  "actionButtonBackPrevious",
7974
7975
  "actionButtonBeginning",
7975
7976
  "actionButtonBlank",
@@ -7989,7 +7990,7 @@ var Rs = [
7989
7990
  "plaqueTabs",
7990
7991
  "squareTabs"
7991
7992
  ]],
7992
- [() => import("./CJ5WQnaoCsdr5gf4.js"), [
7993
+ [() => import("./C46RpMrfF6FiEFI7.js"), [
7993
7994
  "arc",
7994
7995
  "bevel",
7995
7996
  "blockArc",
@@ -8037,7 +8038,7 @@ var Rs = [
8037
8038
  "trapezoid",
8038
8039
  "triangle"
8039
8040
  ]]
8040
- ], Ps = (e) => {
8041
+ ], Is = (e) => {
8041
8042
  let t = null;
8042
8043
  return () => {
8043
8044
  if (!t) {
@@ -8048,7 +8049,7 @@ var Rs = [
8048
8049
  }
8049
8050
  return t;
8050
8051
  };
8051
- }, Is = Ps(() => import("./C0CiMKC3lWK1z9p5.js")), Es = Ps(() => import("./DVchxwp6w6lu2Ihu.js")), js = null, Gs = (e) => {
8052
+ }, Es = Is(() => import("./B2BfjRdJGZs6afVL.js")), js = Is(() => import("./CUbCBf24Ie4A2l4R.js")), Gs = null, Os = (e) => {
8052
8053
  const t = /* @__PURE__ */ new Map();
8053
8054
  for (const [r, n] of Object.entries(e.BUILT_IN)) {
8054
8055
  const { cxn: a } = n;
@@ -8061,36 +8062,36 @@ var Rs = [
8061
8062
  });
8062
8063
  }
8063
8064
  return t;
8064
- }, Os = () => {
8065
- if (js) return js;
8066
- js = /* @__PURE__ */ new Map();
8067
- for (const [e, t] of Rs) {
8068
- const r = Ps(() => e().then(Gs));
8069
- for (const e of t) js.set(e, r);
8070
- }
8071
- return js;
8072
- }, zs = async (e) => {
8073
- const t = Os().get(e);
8065
+ }, zs = () => {
8066
+ if (Gs) return Gs;
8067
+ Gs = /* @__PURE__ */ new Map();
8068
+ for (const [e, t] of Ps) {
8069
+ const r = Is(() => e().then(Os));
8070
+ for (const e of t) Gs.set(e, r);
8071
+ }
8072
+ return Gs;
8073
+ }, $s = async (e) => {
8074
+ const t = zs().get(e);
8074
8075
  if (t) return (await t()).get(e);
8075
- }, $s = 96 / 72, Hs = (e) => s(e, 2), Us = (e, t, r) => {
8076
- if (!e || e === ro.LineEndType.None) return;
8076
+ }, Hs = 96 / 72, Us = (e) => s(e, 2), Ks = (e, t, r) => {
8077
+ if (!e || e === no.LineEndType.None) return;
8077
8078
  const n = { type: e };
8078
8079
  return t && (n.width = t), r && (n.length = r), n;
8079
- }, Ks = (e) => {
8080
+ }, Ws = (e) => {
8080
8081
  const t = e.stroke;
8081
- return t?.fill && t.fill.type !== eo.Type.None ? Ws(e) / 2 * Math.SQRT2 : 0;
8082
- }, Ws = (e) => Math.max(Math.max(0, e.strokeWidth) * $s, 1), Vs = (e, t) => ({
8082
+ return t?.fill && t.fill.type !== to.Type.None ? Vs(e) / 2 * Math.SQRT2 : 0;
8083
+ }, Vs = (e) => Math.max(Math.max(0, e.strokeWidth) * Hs, 1), Js = (e, t) => ({
8083
8084
  r: e,
8084
8085
  b: t,
8085
8086
  hc: e / 2,
8086
8087
  vc: t / 2
8087
- }), Js = (e, t, r) => ({ ...r }), qs = {
8088
+ }), qs = (e, t, r) => ({ ...r }), Ys = {
8088
8089
  pad: 0,
8089
8090
  evaluate(e, t) {
8090
- const { r, b: n, hc: a, vc: o } = Vs(e, t);
8091
+ const { r, b: n, hc: a, vc: o } = Js(e, t);
8091
8092
  return {
8092
8093
  paths: [{
8093
- d: `M0 0 L${Hs(r)} 0 L${Hs(r)} ${Hs(n)} L0 ${Hs(n)} Z`,
8094
+ d: `M0 0 L${Us(r)} 0 L${Us(r)} ${Us(n)} L0 ${Us(n)} Z`,
8094
8095
  fill: "norm",
8095
8096
  stroke: !0
8096
8097
  }],
@@ -8132,21 +8133,21 @@ var Rs = [
8132
8133
  adjustments: {}
8133
8134
  };
8134
8135
  },
8135
- adjustmentsFromHandle: Js
8136
- }, Ys = (e, t, r) => {
8136
+ adjustmentsFromHandle: qs
8137
+ }, Xs = (e, t, r) => {
8137
8138
  const n = r ? { line: r } : void 0;
8138
8139
  return {
8139
8140
  pad: 0,
8140
8141
  evaluate: (r, a, o) => e.evaluateGeometry(t, r, a, o, n),
8141
8142
  adjustmentsFromHandle: (r, n, a, o, i, s) => e.adjustmentsFromHandle(t, r, n, a, o, i, s)
8142
8143
  };
8143
- }, Xs = async (e, t) => {
8144
+ }, Zs = async (e, t) => {
8144
8145
  const r = e.geometry ?? "rect";
8145
- if ("rect" === r) return qs;
8146
+ if ("rect" === r) return Ys;
8146
8147
  if ("line" === r || "straightConnector1" === r) return ((e, t, r) => ({
8147
8148
  pad: 0,
8148
8149
  evaluate(n, a) {
8149
- const { r: o, b: i } = Vs(n, a), s = `M0 0 L${Hs(o)} ${Hs(i)}`, l = "line" === e, u = [], d = {
8150
+ const { r: o, b: i } = Js(n, a), s = `M0 0 L${Us(o)} ${Us(i)}`, l = "line" === e, u = [], d = {
8150
8151
  x: 0,
8151
8152
  y: 0,
8152
8153
  segments: [{
@@ -8202,14 +8203,14 @@ var Rs = [
8202
8203
  adjustments: {}
8203
8204
  };
8204
8205
  },
8205
- adjustmentsFromHandle: Js
8206
- }))(r, t, t ? await Es() : null);
8207
- if ("object" == typeof r) return Ys(await Is(), r, t);
8208
- if (n = r, !Os().has(n)) return null;
8206
+ adjustmentsFromHandle: qs
8207
+ }))(r, t, t ? await js() : null);
8208
+ if ("object" == typeof r) return Xs(await Es(), r, t);
8209
+ if (n = r, !zs().has(n)) return null;
8209
8210
  var n;
8210
- const [a, o] = await Promise.all([Is(), zs(r)]);
8211
- return o ? Ys(a, o, t) : null;
8212
- }, Zs = class e {
8211
+ const [a, o] = await Promise.all([Es(), $s(r)]);
8212
+ return o ? Xs(a, o, t) : null;
8213
+ }, Qs = class e {
8213
8214
  constructor(e, t, r, n) {
8214
8215
  this._evaluator = e, this._width = t, this._height = r, this._adjustments = n, this._evaluated = e.evaluate(t, r, n);
8215
8216
  }
@@ -8244,9 +8245,9 @@ var Rs = [
8244
8245
  fill: a
8245
8246
  });
8246
8247
  };
8247
- for (const t of e.paths) "" !== t.d && "none" !== t.fill && "line" !== t.fill && n(t.d, $i.PathLayer.Fill, t.fill);
8248
- for (const t of e.paths) "" !== t.d && t.stroke && n(t.d, $i.PathLayer.Stroke, "norm");
8249
- for (const t of e.paths) "" !== t.d && "line" === t.fill && n(t.d, $i.PathLayer.Marker, "norm");
8248
+ for (const t of e.paths) "" !== t.d && "none" !== t.fill && "line" !== t.fill && n(t.d, Hi.PathLayer.Fill, t.fill);
8249
+ for (const t of e.paths) "" !== t.d && t.stroke && n(t.d, Hi.PathLayer.Stroke, "norm");
8250
+ for (const t of e.paths) "" !== t.d && "line" === t.fill && n(t.d, Hi.PathLayer.Marker, "norm");
8250
8251
  })(this._evaluated, e, () => t++);
8251
8252
  }
8252
8253
  forEachHandle(e) {
@@ -8272,53 +8273,53 @@ var Rs = [
8272
8273
  adjustmentsFromHandle(e, t, r) {
8273
8274
  return this._evaluator.adjustmentsFromHandle(this._width, this._height, this._adjustments, e, t, r);
8274
8275
  }
8275
- }, Qs = (e) => e instanceof Zs ? e._getDrawnRect() : e.getPathBounds(), el = async (e, t, r, n) => {
8276
+ }, el = (e) => e instanceof Qs ? e._getDrawnRect() : e.getPathBounds(), tl = async (e, t, r, n) => {
8276
8277
  const a = await (async (e, t) => {
8277
- const r = Ls(e, t), n = await Xs(e, ((e) => {
8278
+ const r = Rs(e, t), n = await Zs(e, ((e) => {
8278
8279
  const t = e.stroke;
8279
- if (!t?.fill || t.fill.type === eo.Type.None) return;
8280
- const r = Us(t.headType, t.headWidth, t.headLength), n = Us(t.tailType, t.tailWidth, t.tailLength);
8280
+ if (!t?.fill || t.fill.type === to.Type.None) return;
8281
+ const r = Ks(t.headType, t.headWidth, t.headLength), n = Ks(t.tailType, t.tailWidth, t.tailLength);
8281
8282
  if (!r && !n) return;
8282
- const a = { width: Ws(e) };
8283
+ const a = { width: Vs(e) };
8283
8284
  return t.lineCap && (a.cap = t.lineCap), r && (a.head = r), n && (a.tail = n), a;
8284
8285
  })(r));
8285
8286
  return n ? {
8286
8287
  ...n,
8287
- pad: Ks(r)
8288
+ pad: Ws(r)
8288
8289
  } : null;
8289
8290
  })(e, t);
8290
- return a ? new Zs(a, r, n, e.adjustments) : null;
8291
- }, tl = r.PassThrough, rl = { properties: {
8292
- fill: Vi,
8291
+ return a ? new Qs(a, r, n, e.adjustments) : null;
8292
+ }, rl = r.PassThrough, nl = { properties: {
8293
+ fill: Ji,
8293
8294
  stroke: {
8294
8295
  shorthand: (e) => "string" == typeof e ? { fill: e } : e?.isIStroke ? e.toJSON() : e,
8295
8296
  properties: {
8296
- fill: Vi,
8297
- width: tl,
8298
- lineJoin: tl,
8299
- lineCap: tl,
8300
- miterLimit: tl,
8301
- headType: tl,
8302
- headWidth: tl,
8303
- headLength: tl,
8304
- tailType: tl,
8305
- tailWidth: tl,
8306
- tailLength: tl,
8307
- dash: tl,
8308
- compound: tl,
8309
- align: tl
8297
+ fill: Ji,
8298
+ width: rl,
8299
+ lineJoin: rl,
8300
+ lineCap: rl,
8301
+ miterLimit: rl,
8302
+ headType: rl,
8303
+ headWidth: rl,
8304
+ headLength: rl,
8305
+ tailType: rl,
8306
+ tailWidth: rl,
8307
+ tailLength: rl,
8308
+ dash: rl,
8309
+ compound: rl,
8310
+ align: rl
8310
8311
  }
8311
8312
  }
8312
- } }, nl = class {
8313
+ } }, al = class {
8313
8314
  constructor(e) {
8314
8315
  this._h = e;
8315
8316
  }
8316
8317
  _parseColor(e) {
8317
8318
  const t = this._h.getStyles();
8318
- return t ? t.parseColor(e) : new To(e);
8319
+ return t ? t.parseColor(e) : new _o(e);
8319
8320
  }
8320
8321
  _resolve(e) {
8321
- return this._h.resolve ? this._h.resolve(e) : Ls(e, this._h.getTheme(), Bs(this._h.getMovable()));
8322
+ return this._h.resolve ? this._h.resolve(e) : Rs(e, this._h.getTheme(), Ls(this._h.getMovable()));
8322
8323
  }
8323
8324
  _describe(e, t) {
8324
8325
  return this._h.describe?.(e) ?? t;
@@ -8332,7 +8333,7 @@ var Rs = [
8332
8333
  _fillHost() {
8333
8334
  return {
8334
8335
  parseColor: (e) => this._parseColor(e),
8335
- getBaseFill: () => cs(this._fillHost(), [this._resolve(this._without("fill")).fill]),
8336
+ getBaseFill: () => ms(this._fillHost(), [this._resolve(this._without("fill")).fill]),
8336
8337
  getResource: (e) => this._h.getResource(e),
8337
8338
  updateFill: (e, t) => (this.setFill(e, t), this.getFill())
8338
8339
  };
@@ -8340,13 +8341,13 @@ var Rs = [
8340
8341
  _strokeHost() {
8341
8342
  return {
8342
8343
  parseColor: (e) => this._parseColor(e),
8343
- getBaseStroke: () => new fs(this._strokeHost(), [this._resolve(this._without("stroke")).stroke]),
8344
+ getBaseStroke: () => new ys(this._strokeHost(), [this._resolve(this._without("stroke")).stroke]),
8344
8345
  getResource: (e) => this._h.getResource(e),
8345
8346
  updateStroke: (e, t) => (this.setStroke(e, t), this.getStroke())
8346
8347
  };
8347
8348
  }
8348
8349
  getFill() {
8349
- return cs(this._fillHost(), [this._resolve(this._h.getData()).fill]);
8350
+ return ms(this._fillHost(), [this._resolve(this._h.getData()).fill]);
8350
8351
  }
8351
8352
  setFill(e, t) {
8352
8353
  return this.update({ fill: e }, {
@@ -8355,31 +8356,31 @@ var Rs = [
8355
8356
  });
8356
8357
  }
8357
8358
  setFillSolid(e) {
8358
- return this.update({ fill: { type: eo.Type.Solid } }, {
8359
+ return this.update({ fill: { type: to.Type.Solid } }, {
8359
8360
  description: o("op.setFillSolid"),
8360
8361
  ...e
8361
8362
  }), this.getFill();
8362
8363
  }
8363
8364
  setFillGradient(e) {
8364
- return this.update({ fill: { type: eo.Type.Gradient } }, {
8365
+ return this.update({ fill: { type: to.Type.Gradient } }, {
8365
8366
  description: o("op.setFillGradient"),
8366
8367
  ...e
8367
8368
  }), this.getFill();
8368
8369
  }
8369
8370
  setFillPattern(e) {
8370
- return this.update({ fill: { type: eo.Type.Pattern } }, {
8371
+ return this.update({ fill: { type: to.Type.Pattern } }, {
8371
8372
  description: o("op.setFillPattern"),
8372
8373
  ...e
8373
8374
  }), this.getFill();
8374
8375
  }
8375
8376
  setFillNone(e) {
8376
- return this.update({ fill: { type: eo.Type.None } }, {
8377
+ return this.update({ fill: { type: to.Type.None } }, {
8377
8378
  description: o("op.setFillNone"),
8378
8379
  ...e
8379
8380
  }), this.getFill();
8380
8381
  }
8381
8382
  getStroke() {
8382
- return new fs(this._strokeHost(), [this._resolve(this._h.getData()).stroke]);
8383
+ return new ys(this._strokeHost(), [this._resolve(this._h.getData()).stroke]);
8383
8384
  }
8384
8385
  setStroke(e, t) {
8385
8386
  return this.update({ stroke: e }, {
@@ -8388,7 +8389,7 @@ var Rs = [
8388
8389
  });
8389
8390
  }
8390
8391
  setStrokeNone(e) {
8391
- return this.update({ stroke: { fill: { type: eo.Type.None } } }, {
8392
+ return this.update({ stroke: { fill: { type: to.Type.None } } }, {
8392
8393
  description: this._describe("stroke", o("op.setShapeStroke")),
8393
8394
  ...e
8394
8395
  }), this.getStroke();
@@ -8403,8 +8404,8 @@ var Rs = [
8403
8404
  fill: this._resolve(i).fill,
8404
8405
  stroke: i?.stroke
8405
8406
  }, l = { ...a };
8406
- void 0 !== l.stroke && (l.stroke = fs.toModifiers(l.stroke));
8407
- const u = this._h.getStyles(), d = r.resolveTypedUpdates(l, rl, u, s) ?? {}, c = {};
8407
+ void 0 !== l.stroke && (l.stroke = ys.toModifiers(l.stroke));
8408
+ const u = this._h.getStyles(), d = r.resolveTypedUpdates(l, nl, u, s) ?? {}, c = {};
8408
8409
  return "fill" in a && (c.fill = d.fill), "stroke" in a && (c.stroke = d.stroke), 0 === Object.keys(c).length || this._h.write(c, {
8409
8410
  ...t,
8410
8411
  description: n
@@ -8436,15 +8437,15 @@ var Rs = [
8436
8437
  get isIShapeStyle() {
8437
8438
  return !0;
8438
8439
  }
8439
- }, al = (e) => {
8440
+ }, ol = (e) => {
8440
8441
  const t = Math.floor(((e % 360 + 360) % 360 + 45) / 90) % 4;
8441
8442
  return 1 === t || 3 === t;
8442
- }, ol = (e, t) => al(t) ? {
8443
+ }, il = (e, t) => ol(t) ? {
8443
8444
  x: e.x + (e.width - e.height) / 2,
8444
8445
  y: e.y + (e.height - e.width) / 2,
8445
8446
  width: e.height,
8446
8447
  height: e.width
8447
- } : e, il = (e) => "function" == typeof e?._getDrawnRect, sl = (e, t, r, n) => {
8448
+ } : e, sl = (e) => "function" == typeof e?._getDrawnRect, ll = (e, t, r, n) => {
8448
8449
  let a = t ?? {
8449
8450
  l: 0,
8450
8451
  t: 0,
@@ -8477,12 +8478,12 @@ var Rs = [
8477
8478
  width: m - d,
8478
8479
  height: h - c
8479
8480
  };
8480
- }, ll = (e, t) => Math.max(0, e.x - t.x, e.y - t.y, t.x + t.width - (e.x + e.width), t.y + t.height - (e.y + e.height)), ul = (e, t) => e.x <= t.x + t.width && t.x <= e.x + e.width && e.y <= t.y + t.height && t.y <= e.y + e.height, dl = 0, cl = () => dl, ml = () => {
8481
- dl++;
8481
+ }, ul = (e, t) => Math.max(0, e.x - t.x, e.y - t.y, t.x + t.width - (e.x + e.width), t.y + t.height - (e.y + e.height)), dl = (e, t) => e.x <= t.x + t.width && t.x <= e.x + e.width && e.y <= t.y + t.height && t.y <= e.y + e.height, cl = 0, ml = () => cl, hl = () => {
8482
+ cl++;
8482
8483
  };
8483
8484
  (function(e) {
8484
8485
  e.placeInParent = (e, t, n) => {
8485
- const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = n.bounds, l = o !== i && al(n.rotation), u = l ? s.width * i : s.width * o, d = l ? s.height * o : s.height * i;
8486
+ const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = n.bounds, l = o !== i && ol(n.rotation), u = l ? s.width * i : s.width * o, d = l ? s.height * o : s.height * i;
8486
8487
  let c = (s.x + s.width / 2 - t.x) * o - a.width / 2, m = (s.y + s.height / 2 - t.y) * i - a.height / 2;
8487
8488
  const h = e.flip.horizontal, p = e.flip.vertical;
8488
8489
  h && (c = -c), p && (m = -m);
@@ -8504,7 +8505,7 @@ var Rs = [
8504
8505
  const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = e.flip.horizontal, l = e.flip.vertical, u = r(s !== l ? e.rotation - n.rotation : n.rotation - e.rotation), d = -(e.rotation || 0) * Math.PI / 180, c = Math.cos(d), m = Math.sin(d), h = n.bounds.x + n.bounds.width / 2 - (a.x + a.width / 2), p = n.bounds.y + n.bounds.height / 2 - (a.y + a.height / 2);
8505
8506
  let g = h * c - p * m, f = h * m + p * c;
8506
8507
  s && (g = -g), l && (f = -f);
8507
- const y = o !== i && al(u), S = y ? n.bounds.width / i : n.bounds.width / o, b = y ? n.bounds.height / o : n.bounds.height / i;
8508
+ const y = o !== i && ol(u), S = y ? n.bounds.width / i : n.bounds.width / o, b = y ? n.bounds.height / o : n.bounds.height / i;
8508
8509
  return {
8509
8510
  bounds: {
8510
8511
  x: (g + a.width / 2) / o + t.x - S / 2,
@@ -8558,8 +8559,8 @@ var Rs = [
8558
8559
  const t = (e % 360 + 360) % 360;
8559
8560
  return Object.is(t, -0) ? 0 : t;
8560
8561
  };
8561
- })(Ds || (Ds = {}));
8562
- var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8562
+ })(xs || (xs = {}));
8563
+ var pl = (e) => (e || 0) * Math.PI / 180, gl = (e) => {
8563
8564
  const t = (e || 0) / 90;
8564
8565
  if (Number.isInteger(t)) return [
8565
8566
  [1, 0],
@@ -8567,25 +8568,25 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8567
8568
  [-1, 0],
8568
8569
  [0, -1]
8569
8570
  ][(t % 4 + 4) % 4].slice();
8570
- const r = hl(e);
8571
+ const r = pl(e);
8571
8572
  return [Math.cos(r), Math.sin(r)];
8572
- }, gl = (e, t) => {
8573
- const { bounds: r, rotation: n, flip: a } = e, o = a.horizontal ? r.width - t.x : t.x, i = a.vertical ? r.height - t.y : t.y, s = o - r.width / 2, l = i - r.height / 2, [u, d] = pl(n);
8573
+ }, fl = (e, t) => {
8574
+ const { bounds: r, rotation: n, flip: a } = e, o = a.horizontal ? r.width - t.x : t.x, i = a.vertical ? r.height - t.y : t.y, s = o - r.width / 2, l = i - r.height / 2, [u, d] = gl(n);
8574
8575
  return {
8575
8576
  x: r.x + r.width / 2 + s * u - l * d,
8576
8577
  y: r.y + r.height / 2 + s * d + l * u
8577
8578
  };
8578
- }, fl = (e) => ({
8579
- start: gl(e, {
8579
+ }, yl = (e) => ({
8580
+ start: fl(e, {
8580
8581
  x: 0,
8581
8582
  y: 0
8582
8583
  }),
8583
- end: gl(e, {
8584
+ end: fl(e, {
8584
8585
  x: e.bounds.width,
8585
8586
  y: e.bounds.height
8586
8587
  })
8587
- }), yl = (e, t, r = 0) => {
8588
- const n = (e.x + t.x) / 2, a = (e.y + t.y) / 2, [o, i] = pl(-r), s = e.x - n, l = e.y - a, u = s * o - l * i, d = s * i + l * o, c = 2 * Math.abs(u), m = 2 * Math.abs(d);
8588
+ }), Sl = (e, t, r = 0) => {
8589
+ const n = (e.x + t.x) / 2, a = (e.y + t.y) / 2, [o, i] = gl(-r), s = e.x - n, l = e.y - a, u = s * o - l * i, d = s * i + l * o, c = 2 * Math.abs(u), m = 2 * Math.abs(d);
8589
8590
  return {
8590
8591
  bounds: {
8591
8592
  x: n - c / 2,
@@ -8599,10 +8600,10 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8599
8600
  vertical: d > 0
8600
8601
  }
8601
8602
  };
8602
- }, Sl = 24, bl = 4 / 3, wl = (e, t, r) => {
8603
+ }, bl = 24, wl = 4 / 3, vl = (e, t, r) => {
8603
8604
  const n = t.x - e.x, a = t.y - e.y;
8604
8605
  return (Math.abs(Math.abs(n) - Math.abs(a)) < 1e-6 ? r % 2 == 1 : Math.abs(n) > Math.abs(a)) ? n >= 0 ? 0 : 2 : a >= 0 ? 1 : 3;
8605
- }, vl = (e, t) => {
8606
+ }, Cl = (e, t) => {
8606
8607
  switch ((t % 4 + 4) % 4) {
8607
8608
  case 1: return {
8608
8609
  x: -e.y,
@@ -8621,11 +8622,11 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8621
8622
  y: e.y
8622
8623
  };
8623
8624
  }
8624
- }, Cl = (e, t) => {
8625
- const r = vl({
8625
+ }, Ml = (e, t) => {
8626
+ const r = Cl({
8626
8627
  x: e.x,
8627
8628
  y: e.y
8628
- }, t), n = vl({
8629
+ }, t), n = Cl({
8629
8630
  x: e.x + e.width,
8630
8631
  y: e.y + e.height
8631
8632
  }, t);
@@ -8635,17 +8636,17 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8635
8636
  width: Math.abs(r.x - n.x),
8636
8637
  height: Math.abs(r.y - n.y)
8637
8638
  };
8638
- }, Ml = (e) => ({
8639
+ }, kl = (e) => ({
8639
8640
  x: e.x,
8640
8641
  y: -e.y
8641
- }), kl = (e) => e.x + e.width, Tl = (e) => e.y + e.height, _l = (e, t) => e.y < t && t < Tl(e), Dl = (e, t, r) => {
8642
- const n = -e.direction, a = ((t.direction - e.direction) % 4 + 4) % 4, o = 1 === a, i = (e) => o ? Ml(vl(e, n)) : vl(e, n), s = (e) => o ? ((e) => ({
8642
+ }), Tl = (e) => e.x + e.width, _l = (e) => e.y + e.height, Dl = (e, t) => e.y < t && t < _l(e), xl = (e, t, r) => {
8643
+ const n = -e.direction, a = ((t.direction - e.direction) % 4 + 4) % 4, o = 1 === a, i = (e) => o ? kl(Cl(e, n)) : Cl(e, n), s = (e) => o ? ((e) => ({
8643
8644
  x: e.x,
8644
8645
  y: -(e.y + e.height),
8645
8646
  width: e.width,
8646
8647
  height: e.height
8647
- }))(Cl(e, n)) : Cl(e, n), l = ((e, t, r, n, a) => {
8648
- const o = () => n.x >= kl(t) ? (kl(t) + n.x) / 2 : e.x + Sl, i = (e) => e ? kl(t) <= n.x ? (kl(t) + n.x) / 2 : r.x - Sl : t.x >= kl(n) ? (kl(n) + t.x) / 2 : r.x + Sl, s = (t, n, a) => [
8648
+ }))(Ml(e, n)) : Ml(e, n), l = ((e, t, r, n, a) => {
8649
+ const o = () => n.x >= Tl(t) ? (Tl(t) + n.x) / 2 : e.x + bl, i = (e) => e ? Tl(t) <= n.x ? (Tl(t) + n.x) / 2 : r.x - bl : t.x >= Tl(n) ? (Tl(n) + t.x) / 2 : r.x + bl, s = (t, n, a) => [
8649
8650
  e,
8650
8651
  {
8651
8652
  x: t,
@@ -8668,7 +8669,7 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8668
8669
  switch (a) {
8669
8670
  case 2: {
8670
8671
  if (r.x >= e.x) {
8671
- const a = n.x >= kl(t) ? (kl(t) + n.x) / 2 : (e.x + r.x) / 2;
8672
+ const a = n.x >= Tl(t) ? (Tl(t) + n.x) / 2 : (e.x + r.x) / 2;
8672
8673
  return [
8673
8674
  e,
8674
8675
  {
@@ -8683,13 +8684,13 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8683
8684
  ];
8684
8685
  }
8685
8686
  let a;
8686
- return a = Tl(t) <= n.y ? (Tl(t) + n.y) / 2 : Tl(n) <= t.y ? (Tl(n) + t.y) / 2 : r.y >= e.y ? Math.max(Tl(t), Tl(n)) + Sl : Math.min(t.y, n.y) - Sl, s(o(), a, i(!0));
8687
+ return a = _l(t) <= n.y ? (_l(t) + n.y) / 2 : _l(n) <= t.y ? (_l(n) + t.y) / 2 : r.y >= e.y ? Math.max(_l(t), _l(n)) + bl : Math.min(t.y, n.y) - bl, s(o(), a, i(!0));
8687
8688
  }
8688
8689
  case 0: {
8689
8690
  const a = e.y === r.y;
8690
- if (n.x >= kl(t) && _l(n, e.y)) return s(o(), a ? Tl(n) + Sl : n.y - Sl, i(!1));
8691
- if (t.x >= kl(n) && _l(t, r.y)) return s(o(), a ? t.y - Sl : Tl(t) + Sl, i(!1));
8692
- const l = Math.max(e.x, r.x) + Sl;
8691
+ if (n.x >= Tl(t) && Dl(n, e.y)) return s(o(), a ? _l(n) + bl : n.y - bl, i(!1));
8692
+ if (t.x >= Tl(n) && Dl(t, r.y)) return s(o(), a ? t.y - bl : _l(t) + bl, i(!1));
8693
+ const l = Math.max(e.x, r.x) + bl;
8693
8694
  return [
8694
8695
  e,
8695
8696
  {
@@ -8713,8 +8714,8 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8713
8714
  r
8714
8715
  ];
8715
8716
  const a = o();
8716
- let i = Tl(t) <= n.y ? (Tl(t) + n.y) / 2 : r.y - Sl;
8717
- return Tl(t) > n.y && Math.min(a, r.x) < kl(t) && Math.max(a, r.x) > t.x && (i = Math.min(i, t.y - Sl)), [
8717
+ let i = _l(t) <= n.y ? (_l(t) + n.y) / 2 : r.y - bl;
8718
+ return _l(t) > n.y && Math.min(a, r.x) < Tl(t) && Math.max(a, r.x) > t.x && (i = Math.min(i, t.y - bl)), [
8718
8719
  e,
8719
8720
  {
8720
8721
  x: a,
@@ -8732,13 +8733,13 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8732
8733
  ];
8733
8734
  }
8734
8735
  }
8735
- })(i(e.point), s(e.box), i(t.point), s(t.box), o ? 3 : a).map((e) => vl(o ? Ml(e) : e, -n)), u = l.length, d = yl(l[0], l[u - 1], 90 * e.direction), c = { ...d.bounds };
8736
- u > 3 && c.width < 1e-9 && (c.width = bl), u > 4 && c.height < 1e-9 && (c.height = bl);
8736
+ })(i(e.point), s(e.box), i(t.point), s(t.box), o ? 3 : a).map((e) => Cl(o ? kl(e) : e, -n)), u = l.length, d = Sl(l[0], l[u - 1], 90 * e.direction), c = { ...d.bounds };
8737
+ u > 3 && c.width < 1e-9 && (c.width = wl), u > 4 && c.height < 1e-9 && (c.height = wl);
8737
8738
  const m = {
8738
8739
  ...d,
8739
8740
  bounds: c
8740
8741
  }, h = l.map((e) => ((e, t) => {
8741
- const { bounds: r, rotation: n, flip: a } = e, o = t.x - (r.x + r.width / 2), i = t.y - (r.y + r.height / 2), [s, l] = pl(-n), u = r.width / 2 + o * s - i * l, d = r.height / 2 + o * l + i * s;
8742
+ const { bounds: r, rotation: n, flip: a } = e, o = t.x - (r.x + r.width / 2), i = t.y - (r.y + r.height / 2), [s, l] = gl(-n), u = r.width / 2 + o * s - i * l, d = r.height / 2 + o * l + i * s;
8742
8743
  return {
8743
8744
  x: a.horizontal ? r.width - u : u,
8744
8745
  y: a.vertical ? r.height - d : d
@@ -8837,14 +8838,14 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8837
8838
  }
8838
8839
  ];
8839
8840
  }
8840
- })(u, c.width, c.height, g ?? {}).map((e) => gl(m, e));
8841
+ })(u, c.width, c.height, g ?? {}).map((e) => fl(m, e));
8841
8842
  return {
8842
8843
  geometry: `${r ? "curvedConnector" : "bentConnector"}${u - 1}`,
8843
8844
  adjustments: g,
8844
8845
  placement: m,
8845
8846
  points: f
8846
8847
  };
8847
- }, xl = (e, t, r) => {
8848
+ }, Al = (e, t, r) => {
8848
8849
  if (!t) return null;
8849
8850
  const n = e.getContent(), { width: a, height: o } = t.bounds, i = n.getConnections ? n.getConnections(a, o, {
8850
8851
  adjustments: t.adjustments,
@@ -8876,7 +8877,7 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8876
8877
  }
8877
8878
  ])(a, o);
8878
8879
  return i ? i.map((e) => {
8879
- const r = gl(t, e), n = hl(e.ang), a = gl(t, {
8880
+ const r = fl(t, e), n = pl(e.ang), a = fl(t, {
8880
8881
  x: e.x + Math.cos(n),
8881
8882
  y: e.y + Math.sin(n)
8882
8883
  });
@@ -8887,30 +8888,30 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8887
8888
  };
8888
8889
  var o, i;
8889
8890
  }) : null;
8890
- }, Al = (e) => {
8891
+ }, Fl = (e) => {
8891
8892
  const t = e.getContent();
8892
8893
  return t._getSourceId ? t._getSourceId() : t.toJSON?.()?.sourceId;
8893
- }, Fl = (e, t) => {
8894
+ }, Nl = (e, t) => {
8894
8895
  const r = e.getContent();
8895
8896
  if (!r._ensureSourceId) throw new a(`A ${r.getTypeDescription()} cannot be glued to while it is loading.`);
8896
8897
  return r._ensureSourceId(t);
8897
- }, Nl = (e) => {
8898
+ }, Bl = (e) => {
8898
8899
  const t = e.getContent();
8899
8900
  return t.isConnector?.() ? t.toJSON?.()?.connectorEnds ?? null : null;
8900
- }, Bl = (e) => {
8901
+ }, Ll = (e) => {
8901
8902
  const t = e.getContent(), r = t.getType();
8902
8903
  return "group" === r || "shape" === r && (!t.isConnector || t.isConnector());
8903
- }, Ll = (e) => e.getMovables().getItems({ deep: !0 }), Rl = (e, t) => {
8904
- for (const r of Ll(e)) if (Al(r) === t) return r;
8904
+ }, Rl = (e) => e.getMovables().getItems({ deep: !0 }), Pl = (e, t) => {
8905
+ for (const r of Rl(e)) if (Fl(r) === t) return r;
8905
8906
  return null;
8906
- }, Pl = (e) => {
8907
+ }, Il = (e) => {
8907
8908
  let t = 1;
8908
- for (const r of Ll(e)) {
8909
- const e = Al(r);
8909
+ for (const r of Rl(e)) {
8910
+ const e = Fl(r);
8910
8911
  "number" == typeof e && e > t && (t = e);
8911
8912
  }
8912
8913
  return t + 1;
8913
- }, Il = (e) => Ds.placementOf(e), El = (e) => {
8914
+ }, El = (e) => xs.placementOf(e), jl = (e) => {
8914
8915
  const { width: t, height: r } = e.bounds, n = [
8915
8916
  {
8916
8917
  x: 0,
@@ -8928,32 +8929,32 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8928
8929
  x: t,
8929
8930
  y: r
8930
8931
  }
8931
- ].map((t) => gl(e, t)), a = n.map((e) => e.x), o = n.map((e) => e.y), i = Math.min(...a), s = Math.min(...o);
8932
+ ].map((t) => fl(e, t)), a = n.map((e) => e.x), o = n.map((e) => e.y), i = Math.min(...a), s = Math.min(...o);
8932
8933
  return {
8933
8934
  x: i,
8934
8935
  y: s,
8935
8936
  width: Math.max(...a) - i,
8936
8937
  height: Math.max(...o) - s
8937
8938
  };
8938
- }, jl = (e, t) => {
8939
+ }, Gl = (e, t) => {
8939
8940
  if (!e || !t || void 0 !== t.adjustments) return !1;
8940
8941
  const r = e.bounds, n = t.bounds;
8941
8942
  return r.width === n.width && r.height === n.height && (r.x !== n.x || r.y !== n.y) && (e.rotation || 0) === (t.rotation || 0) && e.flip.horizontal === t.flip.horizontal && e.flip.vertical === t.flip.vertical;
8942
- }, Gl = (e, t, r, n, a = (t) => Rl(e, t), o) => {
8943
- const i = r(t), s = Nl(t);
8943
+ }, Ol = (e, t, r, n, a = (t) => Pl(e, t), o) => {
8944
+ const i = r(t), s = Bl(t);
8944
8945
  if (!i || !s) return null;
8945
- const l = fl(i), u = {};
8946
+ const l = yl(i), u = {};
8946
8947
  for (const e of ["start", "end"]) {
8947
8948
  const i = s[e];
8948
8949
  if (!i) continue;
8949
8950
  const l = a(i.id);
8950
8951
  if (!l || l === t) continue;
8951
- const d = r(l), c = xl(l, d, n)?.find((e) => e.index === i.index);
8952
+ const d = r(l), c = Al(l, d, n)?.find((e) => e.index === i.index);
8952
8953
  if (!c || !d) continue;
8953
- const m = o ?? jl(Il(l), d);
8954
+ const m = o ?? Gl(El(l), d);
8954
8955
  u[e] = {
8955
8956
  site: c,
8956
- box: El(d),
8957
+ box: jl(d),
8957
8958
  translated: m
8958
8959
  };
8959
8960
  }
@@ -8987,21 +8988,21 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
8987
8988
  box: t
8988
8989
  }, a = {
8989
8990
  point: l[n],
8990
- direction: wl(l[n], l[c], e.direction),
8991
+ direction: vl(l[n], l[c], e.direction),
8991
8992
  box: {
8992
8993
  x: l[n].x,
8993
8994
  y: l[n].y,
8994
8995
  width: 0,
8995
8996
  height: 0
8996
8997
  }
8997
- }, o = "start" === c ? Dl(r, a, "curved" === d) : Dl(a, r, "curved" === d);
8998
+ }, o = "start" === c ? xl(r, a, "curved" === d) : xl(a, r, "curved" === d);
8998
8999
  return {
8999
9000
  placement: o.placement,
9000
9001
  route: o
9001
9002
  };
9002
9003
  }
9003
9004
  return {
9004
- placement: yl(l.start, l.end, i.rotation),
9005
+ placement: Sl(l.start, l.end, i.rotation),
9005
9006
  route: null
9006
9007
  };
9007
9008
  }
@@ -9013,7 +9014,7 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
9013
9014
  x: h.site.x,
9014
9015
  y: h.site.y
9015
9016
  }, "elbow" === d || "curved" === d) {
9016
- const e = Dl({
9017
+ const e = xl({
9017
9018
  point: l.start,
9018
9019
  direction: m.site.direction,
9019
9020
  box: m.box
@@ -9028,82 +9029,82 @@ var hl = (e) => (e || 0) * Math.PI / 180, pl = (e) => {
9028
9029
  };
9029
9030
  }
9030
9031
  return {
9031
- placement: yl(l.start, l.end, i.rotation),
9032
+ placement: Sl(l.start, l.end, i.rotation),
9032
9033
  route: null
9033
9034
  };
9034
- }, Ol = (e, t) => {
9035
+ }, zl = (e, t) => {
9035
9036
  const { placement: r, route: n } = t, a = e.getBounds(), o = e.getFlip();
9036
- if (a && !Ds.isSameBounds(a, r.bounds)) return !1;
9037
+ if (a && !xs.isSameBounds(a, r.bounds)) return !1;
9037
9038
  if (o.horizontal !== r.flip.horizontal || o.vertical !== r.flip.vertical) return !1;
9038
9039
  if ((e.getRotation() || 0) !== r.rotation) return !1;
9039
9040
  if (!n) return !0;
9040
9041
  const i = e.getContent();
9041
- return i.getShapeType() === n.geometry && zl(i.getAdjustments(), n.adjustments);
9042
- }, zl = (e, t) => {
9042
+ return i.getShapeType() === n.geometry && $l(i.getAdjustments(), n.adjustments);
9043
+ }, $l = (e, t) => {
9043
9044
  const r = Object.keys(e), n = Object.keys(t ?? {});
9044
9045
  return r.length === n.length && n.every((r) => e[r] === t[r]);
9045
- }, $l = (e, t) => {
9046
+ }, Hl = (e, t) => {
9046
9047
  const r = [];
9047
9048
  for (const n of e.getMovables().getItems({
9048
9049
  type: "shape",
9049
9050
  deep: !0
9050
9051
  })) {
9051
- if (!Nl(n)) continue;
9052
- const a = Gl(e, n, Il, t);
9053
- a && !Ol(n, a) && r.push([n, a]);
9052
+ if (!Bl(n)) continue;
9053
+ const a = Ol(e, n, El, t);
9054
+ a && !zl(n, a) && r.push([n, a]);
9054
9055
  }
9055
9056
  return r;
9056
- }, Hl = (e, t) => {
9057
+ }, Ul = (e, t) => {
9057
9058
  const { placement: r, route: n } = t;
9058
9059
  (e.getRotation() || 0) !== r.rotation && e.setRotation(r.rotation);
9059
9060
  const a = e.getBounds();
9060
- a && !Ds.isSameBounds(a, r.bounds) && e.setBounds(r.bounds);
9061
+ a && !xs.isSameBounds(a, r.bounds) && e.setBounds(r.bounds);
9061
9062
  const o = e.getFlip();
9062
9063
  if (o.horizontal === r.flip.horizontal && o.vertical === r.flip.vertical || e.setFlip(r.flip), !n) return;
9063
9064
  const i = e.getContent();
9064
- i.getShapeType() === n.geometry && zl(i.getAdjustments(), n.adjustments) || i._setRoute?.(n.geometry, n.adjustments);
9065
- }, Ul = (e, t) => {
9065
+ i.getShapeType() === n.geometry && $l(i.getAdjustments(), n.adjustments) || i._setRoute?.(n.geometry, n.adjustments);
9066
+ }, Kl = (e, t) => {
9066
9067
  if (0 === t.size) return [];
9067
9068
  const r = [];
9068
9069
  for (const n of e.getMovables().getItems({
9069
9070
  type: "shape",
9070
9071
  deep: !0
9071
9072
  })) {
9072
- const e = Nl(n);
9073
+ const e = Bl(n);
9073
9074
  e && (e.start && t.has(e.start.id) || e.end && t.has(e.end.id)) && r.push(n);
9074
9075
  }
9075
9076
  return r;
9076
- }, Kl = (e) => {
9077
+ }, Wl = (e) => {
9077
9078
  const t = /* @__PURE__ */ new Map();
9078
9079
  for (const r of e) for (const e of [r, ...r.getMovables()?.getItems({ deep: !0 }) ?? []]) {
9079
- const r = Al(e);
9080
+ const r = Fl(e);
9080
9081
  void 0 !== r && t.set(r, e);
9081
9082
  }
9082
9083
  return t;
9083
- }, Wl = /* @__PURE__ */ new WeakSet(), Vl = (e, t, r, n = !1) => {
9084
- if (Wl.has(t)) return;
9085
- const a = Kl([t]), o = Ul(e, a);
9084
+ }, Vl = /* @__PURE__ */ new WeakSet(), Jl = (e, t, r, n = !1) => {
9085
+ if (Vl.has(t)) return;
9086
+ const a = Wl([t]), o = Kl(e, a);
9086
9087
  if (0 !== o.length) {
9087
- Wl.add(t);
9088
+ Vl.add(t);
9088
9089
  try {
9089
- const t = (t) => a.get(t) ?? Rl(e, t);
9090
+ const t = (t) => a.get(t) ?? Pl(e, t);
9090
9091
  for (const a of o) {
9091
- const o = Gl(e, a, Il, r, t, n);
9092
- o && Hl(a, o);
9092
+ const o = Ol(e, a, El, r, t, n);
9093
+ o && Ul(a, o);
9093
9094
  }
9094
9095
  } finally {
9095
- Wl.delete(t);
9096
+ Vl.delete(t);
9096
9097
  }
9097
9098
  }
9098
- }, Jl = (e, t, r) => {
9099
- if (!Wl.has(t)) {
9100
- Wl.add(t);
9099
+ }, ql = (e, t, r) => {
9100
+ if (!Vl.has(t)) {
9101
+ Vl.add(t);
9101
9102
  try {
9102
- const n = Gl(e, t, Il, r);
9103
- n && Hl(t, n);
9103
+ const n = Ol(e, t, El, r);
9104
+ n && Ul(t, n);
9104
9105
  } finally {
9105
- Wl.delete(t);
9106
+ Vl.delete(t);
9106
9107
  }
9107
9108
  }
9108
9109
  };
9109
- export { ml as $, il as $t, Jo as A, si as At, pn as B, Hn as Bt, Rl as C, Ko as Ct, wn as D, oi as Dt, ul as E, Ji as Et, ga as F, Un as Ft, Ds as G, tt as Gt, Fl as H, Ro as Ht, Mn as I, $l as It, X as J, Xr as Jt, To as K, Xn as Kt, eo as L, Po as Lt, _a as M, el as Mt, Bo as N, Xo as Nt, yl as O, Kl as Ot, Gl as P, Pl as Pt, No as Q, cs as Qt, vi as R, Vl as Rt, H as S, zo as St, Ui as T, Io as Tt, z as U, xa as Ut, cl as V, Z as Vt, We as W, ni as Wt, Il as X, $i as Xt, Fo as Y, ua as Yt, ee as Z, sl as Zt, xn as _, Xi as _t, k as a, Qn as at, ro as b, Ti as bt, x as c, Zn as ct, _n as d, Lo as dt, Sn as en, Ul as et, no as f, ri as ft, fl as g, Go as gt, bn as h, Qs as ht, bi as i, Fn as in, ol as it, kn as j, rn as jt, An as k, Yi as kt, E as l, Ho as lt, ys as m, an as mt, yn as n, nl as nn, at as nt, da as o, Uo as ot, ki as p, aa as pt, Bl as q, $o as qt, B as r, K as rn, w as rt, ll as s, c as st, xl as t, on as tn, Eo as tt, ya as u, Zr as ut, Co as v, Sa as vt, Ke as w, Hl as wt, Mi as x, Jl as xt, Tn as y, ao as yt, al as z, Oo as zt };
9110
+ export { ml as $, Xr as $t, wn as A, zo as At, pn as B, Po as Bt, H as C, li as Ct, ca as D, Ki as Dt, wi as E, Ti as Et, to as F, jo as Ft, z as G, Hn as Gt, xs as H, ai as Ht, Ci as I, rn as It, El as J, ni as Jt, We as K, Z as Kt, Bo as L, el as Lt, An as M, Hl as Mt, fa as N, Io as Nt, ul as O, dl as Ot, kn as P, Kl as Pt, No as Q, $o as Qt, Mn as R, Pl as Rt, Tn as S, Xi as St, Nl as T, ao as Tt, _o as U, Oo as Ut, Mo as V, Aa as Vt, Ll as W, Zi as Wt, Il as X, Xn as Xt, Zo as Y, tt as Yt, ee as Z, ql as Zt, xn as _, an as _t, da as a, on as an, w as at, Al as b, Wo as bt, x as c, Uo as ct, ya as d, Ho as dt, ua as en, Ul as et, _n as f, Zr as ft, ba as g, aa as gt, bn as h, Da as ht, k as i, Sn as in, at as it, yl as j, Ko as jt, Ss as k, Jl as kt, hl as l, c as lt, ki as m, Lo as mt, B as n, sl as nn, qi as nt, Hi as o, K as on, ol as ot, no as p, Ol as pt, X as q, Ro as qt, Sl as r, il as rn, ii as rt, ll as s, Fn as sn, Qn as st, yn as t, ms as tn, Eo as tt, E as u, Zn as ut, oo as v, nn as vt, Ke as w, Sa as wt, qo as x, Wl as xt, _i as y, tl as yt, al as z, Un as zt };