@sheetxl/studio-vanilla 0.8.0-beta.1 → 0.8.0-beta.10

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 (539) hide show
  1. package/browser/esm/-LoBx7J6imeqaxCq.mjs +236 -0
  2. package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
  3. package/browser/esm/{CJPemkFUzhcAD_qR.mjs → B00ixdmb8-O5ijEp.mjs} +1 -1
  4. package/{cdn/assets/Bv_96nwOEMHN9Sa0.js → browser/esm/B0Wjc3lwtjKMwnvn.mjs} +27 -29
  5. package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
  6. package/{cdn/assets/C_Io1QC4CeLGRBrz.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
  7. package/{cdn/assets/D_t53-8k73CNpV-p2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +94 -74
  8. package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
  9. package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
  10. package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
  11. package/browser/esm/{Dnx3_xXfRlD6ECfZ2.mjs → BMlPFJ1glExv-70Z.mjs} +5 -5
  12. package/browser/esm/{DBL3Qp5jyPrFg7KI2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
  13. package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
  14. package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
  15. package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
  16. package/browser/esm/{8V-VceXEjpADM8qK2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
  17. package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
  18. package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
  19. package/browser/esm/{CfvrjQGuf7vXiQCB.mjs → BWo1N4YbK_zGU0nu.mjs} +1 -1
  20. package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
  21. package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
  22. package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
  23. package/{cdn/assets/C1ZePT2B182vSnxW.js → browser/esm/BhkeuRcx8RlLCQ5E.mjs} +1 -1
  24. package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
  25. package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
  26. package/browser/esm/{B4iT_CduJeJunwBc.mjs → BsUrrzAgfyAdcCJW.mjs} +28 -13
  27. package/browser/esm/{47Yv4X226-93If7L.mjs → BtGmrIqU9W1L8zfZ.mjs} +1 -1
  28. package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
  29. package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
  30. package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
  31. package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
  32. package/browser/esm/{BqTFwWLbXXJ0Fu-X2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
  33. package/browser/esm/{Blc1T4zLkp8bRC_n2.mjs → ByqhqEMBLrnkaPKE.mjs} +28 -27
  34. package/{cdn/assets/8f9hCbpXTTYEgG31.js → browser/esm/C-0viTjg1dT2F-sk.mjs} +2 -2
  35. package/{cdn/assets/BMRav2VAqEzDSp3r.js → browser/esm/C3r_9RqlWrEmlXZ1.mjs} +37 -3
  36. package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
  37. package/browser/esm/{Be4QC65cR8N84rTn.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
  38. package/browser/esm/{1guzFZp1LHz_FwfL.mjs → C9NyIoUahFiyRCxP.mjs} +2 -2
  39. package/{cdn/assets/BykiUmcpDgSRNQI1.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
  40. package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
  41. package/browser/esm/{BLcn1kGRsjURZSzk.mjs → CDsuiN--qdALFyql.mjs} +179 -202
  42. package/{cdn/assets/BDkVAo0CDCTE04ZJ.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
  43. package/browser/esm/{CH0of3GZTzHviuQV.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
  44. package/browser/esm/{CEN8dYSpN2oew8HH.mjs → CMxbiQ5J79M3n1tk.mjs} +604 -405
  45. package/browser/esm/{vcRSnmAqjwKglEkY.mjs → CQOyeq_-pg3CM-uA.mjs} +6 -7
  46. package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
  47. package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
  48. package/{cdn/assets/hFSDx-LnUOObv-6h.js → browser/esm/CSEMxasVyGCekxKf.mjs} +6 -7
  49. package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
  50. package/{cdn/assets/CdMv3f8Gyxh8q2RR.js → browser/esm/CTdFZ_I-41Vr6Dy4.mjs} +1 -1
  51. package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
  52. package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
  53. package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
  54. package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
  55. package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
  56. package/{cdn/assets/DLEdaT0MmrOxMa2h2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +94 -94
  57. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
  58. package/browser/esm/{BVRzmIk5PujkT_Ap.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
  59. package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
  60. package/browser/esm/{DTaVECXVrgvC48BE.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
  61. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
  62. package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
  63. package/browser/esm/{CQM87ZBN7Yzn4Yxr.mjs → Cpza4AeltEVHASij.mjs} +3 -3
  64. package/browser/esm/{BceIETi6JJRW6Ss62.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
  65. package/{cdn/assets/iXWgTu3qpYZHcx1J.js → browser/esm/CtZPEkaldpJpoGtW.mjs} +2197 -2013
  66. package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
  67. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
  68. package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
  69. package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
  70. package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
  71. package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
  72. package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
  73. package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
  74. package/browser/esm/{9_bymSfTn_rR_v6W.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
  75. package/{cdn/assets/DKeLjEJPO9nT3bpr.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
  76. package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
  77. package/browser/esm/{RW23HF8taEtW8q9D.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
  78. package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
  79. package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
  80. package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
  81. package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
  82. package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
  83. package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
  84. package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
  85. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
  86. package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
  87. package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
  88. package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
  89. package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
  90. package/{cdn/assets/D9-wpGVbTS9rRpxx.js → browser/esm/DLqc11Pf8vaE4Q5B.mjs} +2 -2
  91. package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
  92. package/browser/esm/{R5bs6kCQSZmsCXz-.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
  93. package/browser/esm/{BCkXtOM3yKocv7L-2.mjs → DQEjvIGMgEkiaP6J.mjs} +1 -1
  94. package/{cdn/assets/CAPgMrAKg07EREFD2.js → browser/esm/DQIRFXG4MveFkK3I.mjs} +1 -1
  95. package/browser/esm/{DrUEYcXg6N2D2s1Z2.mjs → DRm1R4uVOkaMfXNI.mjs} +51 -11
  96. package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
  97. package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
  98. package/{cdn/assets/UYgwKnPX3US3Cj2k2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
  99. package/{cdn/assets/Clfp7SznkOrJoQvL.js → browser/esm/DVpi1vC8ixXvUQG_.mjs} +3 -3
  100. package/browser/esm/{BOl4FzJRD7MplCU72.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
  101. package/{cdn/assets/B5ZqqASTcBEV5L9K.js → browser/esm/DXo8mR6t5HGsmTcu.mjs} +1 -1
  102. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
  103. package/browser/esm/{DVZ_UnchuMRveDG32.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
  104. package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
  105. package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
  106. package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
  107. package/{cdn/assets/EwzqnZl1lTr56hH-.js → browser/esm/Dc2ZwgbIEgYWwAsF.mjs} +1 -1
  108. package/{cdn/assets/DQ4o4dG7gWbL1X8F.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
  109. package/{cdn/assets/DRc_Wi5c7WdKHTVN.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
  110. package/browser/esm/{D3G3tI3DVCUF3Gdk.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
  111. package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
  112. package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
  113. package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
  114. package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
  115. package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
  116. package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
  117. package/browser/esm/{DZbR5R1fNikjgqYb.mjs → DrI_S0A9TQvriTua.mjs} +1 -1
  118. package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
  119. package/browser/esm/{D6SKy2BtcWkhfiA02.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
  120. package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
  121. package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
  122. package/browser/esm/{Cbw0JeJURvQyxIoa.mjs → DxcRLd7wmBGDgJsA.mjs} +1 -1
  123. package/{cdn/assets/DOsbSsKsexrBoeXa2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
  124. package/browser/esm/{Dc0BDcQUGy_WIVFa.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
  125. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
  126. package/browser/esm/{BD7RxHQgrqy_4tb5.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
  127. package/{cdn/assets/COA_SZY2x8q6t4BD.js → browser/esm/FO1Jezau486fH4kN.mjs} +7 -6
  128. package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
  129. package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
  130. package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
  131. package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
  132. package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
  133. package/browser/esm/{Gy0CHZTvn4hY-rkx2.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
  134. package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
  135. package/browser/esm/{qG5zdZZAe6mQIJo32.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
  136. package/{cdn/assets/CtXoSHbCUKMY-tSJ2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
  137. package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
  138. package/browser/esm/{BHmYoIIbNW3GdcqV2.mjs → VwGokBaawZfZiV2X.mjs} +1 -1
  139. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
  140. package/browser/esm/{DW72HwfnJtQxzoGa.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
  141. package/browser/esm/{CR3jgkduTLczbMjH2.mjs → ZxsFYopF0_WWqw4Q.mjs} +1 -1
  142. package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
  143. package/{cdn/assets/BHBJtVTiQByD_y9j2.js → browser/esm/_t0Mx-mUFVtmVNkU.mjs} +2 -2
  144. package/browser/esm/{B0HA_dHcr0kKfudQ.mjs → _zRV52yhE4gPf3XI.mjs} +213 -190
  145. package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
  146. package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
  147. package/browser/esm/{NekeSGoazNCraGNC2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
  148. package/browser/esm/{DuPdSe-EXFTx9dsc2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
  149. package/{cdn/assets/DQ-0yyFAwoWtxmhV2.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
  150. package/browser/esm/{B4vYIE3kSPTxCgpf2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
  151. package/browser/esm/index.mjs +644 -48
  152. package/browser/esm/{7rixDGGrR72lXkMV.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
  153. package/{cdn/assets/BCZjYGV8AqIZghBH.js → browser/esm/lqknEt3DTma5Juxs.mjs} +69 -4
  154. package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
  155. package/browser/esm/{DtXC6uPF2LLktqFE.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
  156. package/browser/esm/{BPv6Pw1hW-sV5Fya.mjs → pc49xtHdprXZLW2X.mjs} +1 -1
  157. package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
  158. package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
  159. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
  160. package/browser/esm/{DXWmgQSeh0_HDxZj.mjs → rY-dC3WB558TIbum.mjs} +4 -4
  161. package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
  162. package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
  163. package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
  164. package/{cdn/assets/CopfZ7Y1Zn_PDNXK.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
  165. package/browser/esm/{CG5v2hAwGR5Ptufn.mjs → x6GcENwqoUVbd60j.mjs} +1 -1
  166. package/{cdn/assets/CGqvy5LwQ4z9J2oD.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
  167. package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
  168. package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
  169. package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
  170. package/{browser/esm/DVQNQmjI2PKkwiOw2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
  171. package/cdn/assets/{mtrwY1hjJeYlmzC-.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
  172. package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
  173. package/cdn/assets/{CJPemkFUzhcAD_qR.js → B00ixdmb8-O5ijEp.js} +1 -1
  174. package/{browser/esm/Bv_96nwOEMHN9Sa02.mjs → cdn/assets/B0Wjc3lwtjKMwnvn.js} +27 -29
  175. package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
  176. package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
  177. package/{browser/esm/D_t53-8k73CNpV-p.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +94 -74
  178. package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
  179. package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
  180. package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
  181. package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
  182. package/cdn/assets/{CF8m5SqeMaRkGIYM.js → BIsbcP5RXRU2XPfx.js} +2 -2
  183. package/cdn/assets/{Dnx3_xXfRlD6ECfZ.js → BMlPFJ1glExv-70Z.js} +5 -5
  184. package/cdn/assets/{DBL3Qp5jyPrFg7KI.js → BN2d5U1nw7pRtOrn.js} +1 -1
  185. package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
  186. package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
  187. package/cdn/assets/{8V-VceXEjpADM8qK.js → BSCja5yvevmKZPBB.js} +1 -1
  188. package/cdn/assets/{CfvrjQGuf7vXiQCB2.js → BWo1N4YbK_zGU0nu.js} +1 -1
  189. package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
  190. package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
  191. package/cdn/assets/{CBuvbUg67ah_3BOZ.js → BeQ95CzwR65il0CK.js} +2 -2
  192. package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
  193. package/cdn/assets/{C8mUyjJ26jsHGl_D.js → Bgbi7BFR3rN5qj51.js} +22 -21
  194. package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
  195. package/{browser/esm/C1ZePT2B182vSnxW2.mjs → cdn/assets/BhkeuRcx8RlLCQ5E.js} +1 -1
  196. package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
  197. package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
  198. package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
  199. package/cdn/assets/{-2S675KWulPRlVNb2.js → BpZ7P0CO148rR4zW.js} +23 -22
  200. package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
  201. package/cdn/assets/{j8nXVEYbO2kPuEYQ.js → Bsn-tUx172sEG2kR.js} +59 -47
  202. package/cdn/assets/{47Yv4X226-93If7L2.js → BtGmrIqU9W1L8zfZ.js} +1 -1
  203. package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
  204. package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
  205. package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
  206. package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
  207. package/cdn/assets/{BqTFwWLbXXJ0Fu-X.js → ByUcqyCNfqi5Mm7w.js} +2 -2
  208. package/{browser/esm/CsufM5aF6VTLKDWM.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
  209. package/{browser/esm/8f9hCbpXTTYEgG312.mjs → cdn/assets/C-0viTjg1dT2F-sk.js} +2 -2
  210. package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
  211. package/cdn/assets/{B55nrhIK6gAAu4ZA.js → C32co-XulWTkEKrW.js} +2 -2
  212. package/{browser/esm/BMRav2VAqEzDSp3r2.mjs → cdn/assets/C3r_9RqlWrEmlXZ1.js} +37 -3
  213. package/cdn/assets/{Be4QC65cR8N84rTn2.js → C5EKgE9Owsc_juw-.js} +1 -1
  214. package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
  215. package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
  216. package/{browser/esm/DMX-ZlC_ljcf7oUN.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
  217. package/{browser/esm/BykiUmcpDgSRNQI12.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
  218. package/cdn/assets/{DZDynaLqNeVaDoiH2.js → CCvBdPu7W2ZF6A9J.js} +3 -3
  219. package/cdn/assets/{Chq4BwbjH0sbIkJN2.js → CDAYVaQYywqaxg4O.js} +28 -13
  220. package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
  221. package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
  222. package/{browser/esm/BDkVAo0CDCTE04ZJ2.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
  223. package/cdn/assets/{1guzFZp1LHz_FwfL2.js → CHMqT9DzYKTxPfP6.js} +2 -2
  224. package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
  225. package/cdn/assets/{DnzDlqizzNkbhJP7.js → CIyaijfp6itgRpFM.js} +95 -87
  226. package/cdn/assets/{DW7JlG-SQEdLYNar2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
  227. package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
  228. package/cdn/assets/{CEN8dYSpN2oew8HH2.js → CMxbiQ5J79M3n1tk.js} +604 -405
  229. package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
  230. package/cdn/assets/{vcRSnmAqjwKglEkY2.js → CQOyeq_-pg3CM-uA.js} +6 -7
  231. package/cdn/assets/{c6VvwMHfXubjjtyj.js → CRXSrbGNABtzf532.js} +141 -126
  232. package/{browser/esm/hFSDx-LnUOObv-6h2.mjs → cdn/assets/CSEMxasVyGCekxKf.js} +6 -7
  233. package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
  234. package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
  235. package/{browser/esm/CdMv3f8Gyxh8q2RR2.mjs → cdn/assets/CTdFZ_I-41Vr6Dy4.js} +1 -1
  236. package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
  237. package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
  238. package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
  239. package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
  240. package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
  241. package/{browser/esm/D4VqLbEWag8lTWzC2.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
  242. package/{browser/esm/Bl6bX86tSq8hfyb2.mjs → cdn/assets/CbTN0q6XnYGJqyEp.js} +2215 -2027
  243. package/cdn/assets/{gspQcUnmlRIwG609.js → Cfg4Dtndwurxv9LM.js} +8 -8
  244. package/cdn/assets/{BhDLR-jtbOOG-tl12.js → ChAKLV5zrGAHAof2.js} +28 -27
  245. package/cdn/assets/{CpnA5TZRkPDt4HnM2.js → CsrTRThObSryov1b.js} +182 -132
  246. package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
  247. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
  248. package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
  249. package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
  250. package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
  251. package/cdn/assets/{CT3G9YRPVfKtHWwf2.js → D-bNmX0QsA8SuT0m.js} +32 -31
  252. package/{browser/esm/Dg5wjQp0fArKXlM3.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
  253. package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
  254. package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
  255. package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
  256. package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
  257. package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
  258. package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
  259. package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
  260. package/cdn/assets/{R5bs6kCQSZmsCXz-2.js → DNaPo7BQu6hr1fWq.js} +1 -1
  261. package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
  262. package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
  263. package/cdn/assets/{BCkXtOM3yKocv7L-.js → DQEjvIGMgEkiaP6J.js} +1 -1
  264. package/{browser/esm/CAPgMrAKg07EREFD.mjs → cdn/assets/DQIRFXG4MveFkK3I.js} +1 -1
  265. package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
  266. package/cdn/assets/{DrUEYcXg6N2D2s1Z.js → DRm1R4uVOkaMfXNI.js} +51 -11
  267. package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
  268. package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
  269. package/{browser/esm/Clfp7SznkOrJoQvL.mjs → cdn/assets/DVpi1vC8ixXvUQG_.js} +3 -3
  270. package/cdn/assets/{BOl4FzJRD7MplCU7.js → DWgp4t9N9u0eWthH.js} +1 -1
  271. package/{browser/esm/B5ZqqASTcBEV5L9K2.mjs → cdn/assets/DXo8mR6t5HGsmTcu.js} +1 -1
  272. package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
  273. package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
  274. package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
  275. package/{browser/esm/EwzqnZl1lTr56hH-2.mjs → cdn/assets/Dc2ZwgbIEgYWwAsF.js} +1 -1
  276. package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
  277. package/{browser/esm/oYdWyqsKo9ejAdVm.mjs → cdn/assets/De2z8LdHaWRFiR5T.js} +179 -202
  278. package/{browser/esm/DQ4o4dG7gWbL1X8F2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
  279. package/{browser/esm/DRc_Wi5c7WdKHTVN2.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
  280. package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
  281. package/cdn/assets/{D3G3tI3DVCUF3Gdk2.js → DjdkGy-EI1kSo226.js} +7 -5
  282. package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
  283. package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
  284. package/cdn/assets/{DaBczM5xU9ev5_or.js → Dp-GJXOMz_b8qAxD.js} +2 -2
  285. package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
  286. package/cdn/assets/{DZbR5R1fNikjgqYb.js → DrI_S0A9TQvriTua.js} +1 -1
  287. package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
  288. package/cdn/assets/{D6SKy2BtcWkhfiA0.js → Dv8aQFTTaQBJKDDk.js} +2 -5
  289. package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
  290. package/cdn/assets/{Cbw0JeJURvQyxIoa.js → DxcRLd7wmBGDgJsA.js} +1 -1
  291. package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
  292. package/cdn/assets/{Dc0BDcQUGy_WIVFa.js → Dy44qJVkwNseMG-3.js} +1 -1
  293. package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
  294. package/{browser/esm/COA_SZY2x8q6t4BD.mjs → cdn/assets/FO1Jezau486fH4kN.js} +7 -6
  295. package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
  296. package/cdn/assets/{DbEGszSW_J_k96KJ.js → G5z0uVlyF6CLw_PA.js} +179 -202
  297. package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
  298. package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
  299. package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
  300. package/cdn/assets/{Gy0CHZTvn4hY-rkx.js → PtGiIWFBYP-ujLmf.js} +1 -1
  301. package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
  302. package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
  303. package/cdn/assets/{qG5zdZZAe6mQIJo3.js → RfHd1JATBlcsfLPv.js} +5 -5
  304. package/{browser/esm/CtXoSHbCUKMY-tSJ.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
  305. package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
  306. package/{browser/esm/DzDwSOBdJh_lx_NM.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
  307. package/cdn/assets/{BHmYoIIbNW3GdcqV.js → VwGokBaawZfZiV2X.js} +1 -1
  308. package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
  309. package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
  310. package/cdn/assets/{CR3jgkduTLczbMjH.js → ZxsFYopF0_WWqw4Q.js} +1 -1
  311. package/{browser/esm/BHBJtVTiQByD_y9j.mjs → cdn/assets/_t0Mx-mUFVtmVNkU.js} +2 -2
  312. package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
  313. package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
  314. package/cdn/assets/{tVOVNvOs6ro8FXqa2.js → dn69mDhY7Xcc91kF.js} +20 -19
  315. package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
  316. package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
  317. package/cdn/assets/{EjOJX5m8OEL-IjPB.js → hg8WYI0Yy4WPPPoP.js} +28 -27
  318. package/{browser/esm/DQ-0yyFAwoWtxmhV2.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
  319. package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
  320. package/{browser/esm/BCZjYGV8AqIZghBH.mjs → cdn/assets/lqknEt3DTma5Juxs.js} +69 -4
  321. package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
  322. package/cdn/assets/{BPv6Pw1hW-sV5Fya.js → pc49xtHdprXZLW2X.js} +1 -1
  323. package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
  324. package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
  325. package/{browser/esm/BqwvP0318zI2izeL2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
  326. package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
  327. package/cdn/assets/{CG5v2hAwGR5Ptufn2.js → x6GcENwqoUVbd60j.js} +1 -1
  328. package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
  329. package/{browser/esm/CGqvy5LwQ4z9J2oD2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
  330. package/cdn/index.js +2 -2
  331. package/package.json +13 -14
  332. package/browser/cjs/1XrWGMP3GmsQOMIX2.cjs +0 -1
  333. package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +0 -7
  334. package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
  335. package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
  336. package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
  337. package/browser/cjs/B19QM3SGmPKKwD_o.cjs +0 -1
  338. package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
  339. package/browser/cjs/B5YBx0GqLor3i0O1.cjs +0 -1
  340. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  341. package/browser/cjs/B9EI7wviSkHS9ZkH.cjs +0 -1
  342. package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
  343. package/browser/cjs/BC2gCQkR1iykfAuC.cjs +0 -1
  344. package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
  345. package/browser/cjs/BEVqcFGFU6Ri9y8T.cjs +0 -5
  346. package/browser/cjs/BEzaum_kgG4yAOx0.cjs +0 -1
  347. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
  348. package/browser/cjs/BIQZDBQfv3Qm5iC8.cjs +0 -4
  349. package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
  350. package/browser/cjs/BSCgCfORdZz1Ii5S.cjs +0 -2
  351. package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
  352. package/browser/cjs/BZr-IqNS1skh1hr6.cjs +0 -21
  353. package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
  354. package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +0 -3
  355. package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +0 -1
  356. package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
  357. package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
  358. package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
  359. package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
  360. package/browser/cjs/BziOCn_XEGT4ynN5.cjs +0 -1
  361. package/browser/cjs/C-HOJozu5NgCil1q.cjs +0 -1
  362. package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
  363. package/browser/cjs/C2oTW2DjZypuqq7x.cjs +0 -1
  364. package/browser/cjs/C2uDl8VIJqh58YF_.cjs +0 -1
  365. package/browser/cjs/C5rQELB0TUeXY6VM.cjs +0 -1
  366. package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +0 -33
  367. package/browser/cjs/C9C-pr-T_ThweQX92.cjs +0 -1
  368. package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
  369. package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
  370. package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
  371. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  372. package/browser/cjs/CPgCih_KEqnUZ9Rv.cjs +0 -3
  373. package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
  374. package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +0 -5
  375. package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
  376. package/browser/cjs/CW-b31_-r-_raT8Y2.cjs +0 -1
  377. package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
  378. package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
  379. package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
  380. package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
  381. package/browser/cjs/CcneNtiqtKppCa-p.cjs +0 -57
  382. package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
  383. package/browser/cjs/Ci8Uu7_b4lwwRLAD2.cjs +0 -1
  384. package/browser/cjs/Clu7XiAsCB48GDXN2.cjs +0 -1
  385. package/browser/cjs/Cm21F18ga8TluA9h.cjs +0 -1
  386. package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
  387. package/browser/cjs/CojEXZgX08waZOoq.cjs +0 -1
  388. package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
  389. package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +0 -88
  390. package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
  391. package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
  392. package/browser/cjs/CvV18ZJgssoHMkdf2.cjs +0 -2
  393. package/browser/cjs/Cy-4IMt-AbR-ifP3.cjs +0 -126
  394. package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +0 -7
  395. package/browser/cjs/CzgwTfy2072Dmt5u.cjs +0 -1
  396. package/browser/cjs/D19RglhKiroWfpQn2.cjs +0 -1
  397. package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
  398. package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
  399. package/browser/cjs/DDnGLOLTqLFsdUDS2.cjs +0 -1
  400. package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
  401. package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +0 -1
  402. package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
  403. package/browser/cjs/DG2kqsWRUtVugjay2.cjs +0 -1
  404. package/browser/cjs/DH3WXPfGHwWJW0nH.cjs +0 -1
  405. package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
  406. package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
  407. package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
  408. package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
  409. package/browser/cjs/DNKyaSruDogoBd2H2.cjs +0 -1
  410. package/browser/cjs/DNy-UU3NKNqQQngF.cjs +0 -1
  411. package/browser/cjs/DPjEO7dwhCFd8DHR2.cjs +0 -2
  412. package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
  413. package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
  414. package/browser/cjs/DfMJOaJ0GcUiSn4Q.cjs +0 -1
  415. package/browser/cjs/DiZDRPIgbO3sQ8Vb.cjs +0 -1
  416. package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
  417. package/browser/cjs/DsIHLUKUrSrYhFHl.cjs +0 -1
  418. package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
  419. package/browser/cjs/DvSvfeo9V0Abfd3q2.cjs +0 -1
  420. package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
  421. package/browser/cjs/DxQkFYAFNZubVdn22.cjs +0 -1
  422. package/browser/cjs/E-IqDztfMb_xdszH.cjs +0 -1
  423. package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
  424. package/browser/cjs/ElcoSB--cCpS6i7R2.cjs +0 -1
  425. package/browser/cjs/JfM6P_qoQQTWakZf.cjs +0 -1
  426. package/browser/cjs/KNCocKN9uPR0tvUS.cjs +0 -1
  427. package/browser/cjs/Kr8f1inOTt-MICaP2.cjs +0 -1
  428. package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
  429. package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
  430. package/browser/cjs/PM3PrEWG3WHKxaDx.cjs +0 -1
  431. package/browser/cjs/YG320hBA20Dl3HoU2.cjs +0 -1
  432. package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
  433. package/browser/cjs/_H5j4dU7HOBYTawU.cjs +0 -1
  434. package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +0 -1
  435. package/browser/cjs/aONv0Ys3C8xmnaR82.cjs +0 -1
  436. package/browser/cjs/aYuNpndpwcZG5eik2.cjs +0 -20
  437. package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +0 -1
  438. package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +0 -1
  439. package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
  440. package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
  441. package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
  442. package/browser/cjs/hzUo76TXMOBqsI3U2.cjs +0 -1
  443. package/browser/cjs/i2VboqjlOcozI9MQ.cjs +0 -12
  444. package/browser/cjs/index.cjs +0 -79
  445. package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
  446. package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
  447. package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
  448. package/browser/cjs/xBcvszV6x7ys-m532.cjs +0 -1
  449. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  450. package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
  451. package/browser/esm/-vgNEEXiEad4bltZ.mjs +0 -28782
  452. package/browser/esm/3y_bCend8tkaewDG2.mjs +0 -106
  453. package/browser/esm/At60x9FEPePwPP_J.mjs +0 -51151
  454. package/browser/esm/B1NoGosH2YQh01g7.mjs +0 -105
  455. package/browser/esm/B4h6iO7hQ9lCR7kj.mjs +0 -11273
  456. package/browser/esm/BBtOlJMVlsWorNJH.mjs +0 -824
  457. package/browser/esm/BQDXkeSabbxB5DUB2.mjs +0 -47
  458. package/browser/esm/BUCKq_2lHPd1ndvw.mjs +0 -149
  459. package/browser/esm/BVjXdv_wkL1x_8ZJ2.mjs +0 -1149
  460. package/browser/esm/BX4f6i2WMBMKFVCq.mjs +0 -99
  461. package/browser/esm/BZsx0QHg1RZlM9ZN.mjs +0 -15
  462. package/browser/esm/BhxX7CZWSOlV2Dsz.mjs +0 -224
  463. package/browser/esm/BhzLZRz2N8RxjQ_U.mjs +0 -34
  464. package/browser/esm/BjTf3XA9Swj0ngpH.mjs +0 -7813
  465. package/browser/esm/BkSb_vyWe-AhyEDa.mjs +0 -4423
  466. package/browser/esm/Bp9qFBIcpIGXvMgo.mjs +0 -134
  467. package/browser/esm/C0rS1uBqfsj-gPR8.mjs +0 -152
  468. package/browser/esm/C6CK_4GD9IpxKglV2.mjs +0 -6713
  469. package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +0 -87
  470. package/browser/esm/CGyydD3tRb0ik50l2.mjs +0 -20
  471. package/browser/esm/CPUlpDM6aAzZzCat2.mjs +0 -471
  472. package/browser/esm/CU1d8OvDv5TU6fSd.mjs +0 -2211
  473. package/browser/esm/CY1zykikO58_ADk8.mjs +0 -3188
  474. package/browser/esm/CZWIS7FuqNjbheSw.mjs +0 -235
  475. package/browser/esm/Cb-FUOYcyRSkHG6u2.mjs +0 -238
  476. package/browser/esm/Cc5IufffX4N-8QpE.mjs +0 -6104
  477. package/browser/esm/Cd8HXAJlflkkTXxc.mjs +0 -53
  478. package/browser/esm/CfuhUkrvOq11d9FR.mjs +0 -44
  479. package/browser/esm/Ckl3FLCOeqw7yhkP2.mjs +0 -82
  480. package/browser/esm/CpjX81WsWJbXMUoT.mjs +0 -3655
  481. package/browser/esm/D9-wpGVbTS9rRpxx.mjs +0 -24
  482. package/browser/esm/DDOO4tcrO4OfMUDe.mjs +0 -25
  483. package/browser/esm/DDUYQ8FPeh1TJU24.mjs +0 -538
  484. package/browser/esm/DFdU1DsC1lXOrejZ.mjs +0 -8260
  485. package/browser/esm/DMLwXmjo28k_iNEU.mjs +0 -4740
  486. package/browser/esm/DVJd6McdAG5udItH.mjs +0 -27
  487. package/browser/esm/D_zNx76HGunFi7xJ.mjs +0 -509
  488. package/browser/esm/DfRGH6mEtIVDWEYN2.mjs +0 -304
  489. package/browser/esm/DnuaqN0xfgqzl8qG.mjs +0 -2687
  490. package/browser/esm/fJ1McMt7xzRA_lUX.mjs +0 -383
  491. package/browser/esm/nguMxPB9LKexKBRX.mjs +0 -219
  492. package/browser/esm/qzhFT2j-mpQEQnKs.mjs +0 -16386
  493. package/cdn/assets/2CuCH0wi9XPgVzE42.js +0 -44
  494. package/cdn/assets/2UHIeioUPXrwtZy-2.js +0 -83
  495. package/cdn/assets/BAhvL7M7ZcgZ8eDc2.js +0 -48
  496. package/cdn/assets/BJEpPEyFWtLzMIq-2.js +0 -3655
  497. package/cdn/assets/BKEzd89UphJ8q1pp2.js +0 -2211
  498. package/cdn/assets/BM7OqAUEUk-up7_82.js +0 -134
  499. package/cdn/assets/BNuoKAzs4zkxSocG2.js +0 -44
  500. package/cdn/assets/BNybEGR813e3aNIv.js +0 -8263
  501. package/cdn/assets/BU6uQhQhpaLElTT82.js +0 -225
  502. package/cdn/assets/BVgTMDEoPgsWFmku.js +0 -510
  503. package/cdn/assets/BVjXdv_wkL1x_8ZJ2.js +0 -1149
  504. package/cdn/assets/BWlMK76Aj2d4ygsH.js +0 -538
  505. package/cdn/assets/BZsx0QHg1RZlM9ZN2.js +0 -15
  506. package/cdn/assets/BixsQGDDf3Iv_PtW2.js +0 -4740
  507. package/cdn/assets/Bl6C6xWT8E6b7OwJ2.js +0 -239
  508. package/cdn/assets/BzUU8y1IFjREzgog2.js +0 -107
  509. package/cdn/assets/CGyydD3tRb0ik50l.js +0 -20
  510. package/cdn/assets/CH0of3GZTzHviuQV.js +0 -24
  511. package/cdn/assets/CH0of3GZTzHviuQV2.js +0 -24
  512. package/cdn/assets/CHttngK66Ido5dWW.js +0 -106
  513. package/cdn/assets/Ce5A_D4YBgi_s2KF.js +0 -176
  514. package/cdn/assets/CpYlf4dXa_V2v-iS2.js +0 -3188
  515. package/cdn/assets/Crkvq5j5KIa6eTLI2.js +0 -51151
  516. package/cdn/assets/Cv-KXN9kl0UeMezQ.js +0 -824
  517. package/cdn/assets/CvtkpvGzCHhNuwTm.js +0 -16386
  518. package/cdn/assets/D-fJXasEYyfRUcj2.js +0 -6104
  519. package/cdn/assets/D1MA2ed2cLMt7hV9.js +0 -236
  520. package/cdn/assets/D9gETGi23d14kT7u2.js +0 -99
  521. package/cdn/assets/D9joTG0Z2zdWHAEa2.js +0 -4423
  522. package/cdn/assets/DC9obE_EVmxtvXCf.js +0 -11275
  523. package/cdn/assets/DCnA2-zB7W_QB-tD2.js +0 -2199
  524. package/cdn/assets/DDNivpFWzQ3AIJia.js +0 -2687
  525. package/cdn/assets/DDOO4tcrO4OfMUDe.js +0 -25
  526. package/cdn/assets/DEUY_zuVwmptMX4l.js +0 -150
  527. package/cdn/assets/DIQf1pX-j-dWQu_e.js +0 -472
  528. package/cdn/assets/DJwQ9abZkyFO9Doy.js +0 -7404
  529. package/cdn/assets/DTCtbG90ip7Z7LaG.js +0 -220
  530. package/cdn/assets/DVS_5oDniuAFH3vT2.js +0 -6715
  531. package/cdn/assets/D_HeH7AJqWoxehn52.js +0 -53
  532. package/cdn/assets/DfRGH6mEtIVDWEYN.js +0 -304
  533. package/cdn/assets/DvItgGbf8IOWPyxd.js +0 -28784
  534. package/cdn/assets/DvlpP6sUZ9Qzl9s22.js +0 -616
  535. package/cdn/assets/WLUhtyUNK5QJ7Pff.js +0 -34
  536. package/cdn/assets/c7aIqKLOO4pvUsV12.js +0 -220
  537. package/cdn/assets/mtI43hWjdp4E3Z_-.js +0 -152
  538. package/cdn/assets/nmR_PgTW7GrlbHHZ.js +0 -27
  539. package/cdn/assets/vTCuFafvRlSaT9wy.js +0 -87
@@ -0,0 +1,3363 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { r as e } from "./DLqc11Pf8vaE4Q5B.mjs";
8
+ import { i as t, r as n } from "./C4VT6lNbpaDXCpBb.mjs";
9
+ import { M as r, P as i, w as a } from "./CMxbiQ5J79M3n1tk.mjs";
10
+ import { r as o } from "./D2aQPiGg0ZoMYzuf.mjs";
11
+ import { A as s, D as c, H as l, I as u, P as d, St as f, V as p, W as m, X as h, ft as g, j as _, l as v, m as y, mt as b, n as x, pt as S, r as C, tt as w, v as T } from "./BThOwSja2ra4xejQ.mjs";
12
+ import { t as E } from "./sxxbiJiCMOW2Eivd.mjs";
13
+ import { _ as D, d as O, g as k, l as A, n as j, t as M, v as N } from "./rkTVQiYG3wd8oPom.mjs";
14
+ import { $ as P, B as F, Et as I, F as L, L as R, N as z, P as B, T as ee, Tt as V, a as te, at as ne, bt as re, c as H, ct as U, d as ie, f as W, gt as ae, h as oe, i as G, j as K, lt as q, m as J, n as se, ot as ce, s as le, st as ue, tt as Y, u as de, ut as fe } from "./CtZPEkaldpJpoGtW.mjs";
15
+ import { _ as pe, p as me } from "./D2coM-dNrlLpnUu5.mjs";
16
+ import { n as he } from "./Bi5-feQLtwpV6Ai8.mjs";
17
+ import { t as ge } from "./pKc_RPdZPLAgvNDh.mjs";
18
+ var X = e(t(), 1), Z = e(n(), 1);
19
+ function _e(e) {
20
+ return D("MuiListItemButton", e);
21
+ }
22
+ var ve = k("MuiListItemButton", [
23
+ "root",
24
+ "focusVisible",
25
+ "dense",
26
+ "alignItemsFlexStart",
27
+ "disabled",
28
+ "divider",
29
+ "gutters",
30
+ "selected"
31
+ ]);
32
+ function ye(e) {
33
+ return D("MuiLinearProgress", e);
34
+ }
35
+ k("MuiLinearProgress", [
36
+ "root",
37
+ "colorPrimary",
38
+ "colorSecondary",
39
+ "determinate",
40
+ "indeterminate",
41
+ "buffer",
42
+ "query",
43
+ "dashed",
44
+ "bar",
45
+ "bar1",
46
+ "bar2"
47
+ ]);
48
+ var be = {}, xe = I`
49
+ 0% {
50
+ left: -35%;
51
+ right: 100%;
52
+ }
53
+
54
+ 60% {
55
+ left: 100%;
56
+ right: -90%;
57
+ }
58
+
59
+ 100% {
60
+ left: 100%;
61
+ right: -90%;
62
+ }
63
+ `, Se = typeof xe == "string" ? null : V`
64
+ animation: ${xe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
65
+ `, Ce = I`
66
+ 0% {
67
+ left: -200%;
68
+ right: 100%;
69
+ }
70
+
71
+ 60% {
72
+ left: 107%;
73
+ right: -8%;
74
+ }
75
+
76
+ 100% {
77
+ left: 107%;
78
+ right: -8%;
79
+ }
80
+ `, we = typeof Ce == "string" ? null : V`
81
+ animation: ${Ce} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
82
+ `, Te = I`
83
+ 0% {
84
+ opacity: 1;
85
+ background-position: 0 -23px;
86
+ }
87
+
88
+ 60% {
89
+ opacity: 0;
90
+ background-position: 0 -23px;
91
+ }
92
+
93
+ 100% {
94
+ opacity: 1;
95
+ background-position: -200px -23px;
96
+ }
97
+ `, Ee = typeof Te == "string" ? null : V`
98
+ animation: ${Te} 3s infinite linear;
99
+ `, De = (e, t) => e.vars ? e.vars.palette.LinearProgress[`${t}Bg`] : e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .5), Oe = q("span", {
100
+ name: "MuiLinearProgress",
101
+ slot: "Root",
102
+ overridesResolver: (e, t) => {
103
+ let { ownerState: n } = e;
104
+ return [
105
+ t.root,
106
+ t[`color${ce(n.color)}`],
107
+ t[n.variant]
108
+ ];
109
+ }
110
+ })(U(({ theme: e }) => ({
111
+ position: "relative",
112
+ overflow: "hidden",
113
+ display: "block",
114
+ height: 4,
115
+ zIndex: 0,
116
+ "@media print": { colorAdjust: "exact" },
117
+ variants: [
118
+ ...Object.entries(e.palette).filter(B()).map(([t]) => ({
119
+ props: { color: t },
120
+ style: { backgroundColor: De(e, t) }
121
+ })),
122
+ {
123
+ props: ({ ownerState: e }) => e.color === "inherit" && e.variant !== "buffer",
124
+ style: { "&::before": {
125
+ content: "\"\"",
126
+ position: "absolute",
127
+ left: 0,
128
+ top: 0,
129
+ right: 0,
130
+ bottom: 0,
131
+ backgroundColor: "currentColor",
132
+ opacity: .3
133
+ } }
134
+ },
135
+ {
136
+ props: { variant: "buffer" },
137
+ style: { backgroundColor: "transparent" }
138
+ },
139
+ {
140
+ props: { variant: "query" },
141
+ style: { transform: "rotate(180deg)" }
142
+ }
143
+ ]
144
+ }))), ke = q("span", {
145
+ name: "MuiLinearProgress",
146
+ slot: "Dashed"
147
+ })(U(({ theme: e }) => ({
148
+ position: "absolute",
149
+ marginTop: 0,
150
+ height: "100%",
151
+ width: "100%",
152
+ backgroundSize: "10px 10px",
153
+ backgroundPosition: "0 -23px",
154
+ variants: [{
155
+ props: { color: "inherit" },
156
+ style: {
157
+ opacity: .3,
158
+ backgroundImage: "radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"
159
+ }
160
+ }, ...Object.entries(e.palette).filter(B()).map(([t]) => {
161
+ let n = De(e, t);
162
+ return {
163
+ props: { color: t },
164
+ style: { backgroundImage: `radial-gradient(${n} 0%, ${n} 16%, transparent 42%)` }
165
+ };
166
+ })]
167
+ })), Ee || { animation: `${Te} 3s infinite linear` }, U(({ theme: e }) => P(e, { animation: "none" }) || be)), Ae = q("span", {
168
+ name: "MuiLinearProgress",
169
+ slot: "Bar1",
170
+ overridesResolver: (e, t) => [t.bar, t.bar1]
171
+ })(U(({ theme: e }) => {
172
+ let t = P(e, {
173
+ animation: "none",
174
+ left: "30%",
175
+ right: "auto",
176
+ width: "40%"
177
+ });
178
+ return {
179
+ width: "100%",
180
+ position: "absolute",
181
+ left: 0,
182
+ bottom: 0,
183
+ top: 0,
184
+ ...Y(e, "transform", {
185
+ duration: "0.2s",
186
+ easing: "linear"
187
+ }),
188
+ transformOrigin: "left",
189
+ variants: [
190
+ {
191
+ props: { color: "inherit" },
192
+ style: { backgroundColor: "currentColor" }
193
+ },
194
+ ...Object.entries(e.palette).filter(B()).map(([t]) => ({
195
+ props: { color: t },
196
+ style: { backgroundColor: (e.vars || e).palette[t].main }
197
+ })),
198
+ {
199
+ props: { variant: "determinate" },
200
+ style: { ...Y(e, "transform", {
201
+ duration: ".4s",
202
+ easing: "linear"
203
+ }) }
204
+ },
205
+ {
206
+ props: { variant: "buffer" },
207
+ style: {
208
+ zIndex: 1,
209
+ ...Y(e, "transform", {
210
+ duration: ".4s",
211
+ easing: "linear"
212
+ })
213
+ }
214
+ },
215
+ {
216
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
217
+ style: { width: "auto" }
218
+ },
219
+ {
220
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
221
+ style: Se || { animation: `${xe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite` }
222
+ },
223
+ ...t ? [{
224
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
225
+ style: t
226
+ }] : []
227
+ ]
228
+ };
229
+ })), je = q("span", {
230
+ name: "MuiLinearProgress",
231
+ slot: "Bar2",
232
+ overridesResolver: (e, t) => [t.bar, t.bar2]
233
+ })(U(({ theme: e }) => {
234
+ let t = P(e, {
235
+ animation: "none",
236
+ display: "none"
237
+ });
238
+ return {
239
+ width: "100%",
240
+ position: "absolute",
241
+ left: 0,
242
+ bottom: 0,
243
+ top: 0,
244
+ ...Y(e, "transform", {
245
+ duration: "0.2s",
246
+ easing: "linear"
247
+ }),
248
+ transformOrigin: "left",
249
+ variants: [
250
+ ...Object.entries(e.palette).filter(B()).map(([t]) => ({
251
+ props: { color: t },
252
+ style: { "--LinearProgressBar2-barColor": (e.vars || e).palette[t].main }
253
+ })),
254
+ {
255
+ props: ({ ownerState: e }) => e.variant !== "buffer" && e.color !== "inherit",
256
+ style: { backgroundColor: "var(--LinearProgressBar2-barColor, currentColor)" }
257
+ },
258
+ {
259
+ props: ({ ownerState: e }) => e.variant !== "buffer" && e.color === "inherit",
260
+ style: { backgroundColor: "currentColor" }
261
+ },
262
+ {
263
+ props: { color: "inherit" },
264
+ style: { opacity: .3 }
265
+ },
266
+ ...Object.entries(e.palette).filter(B()).map(([t]) => ({
267
+ props: {
268
+ color: t,
269
+ variant: "buffer"
270
+ },
271
+ style: {
272
+ backgroundColor: De(e, t),
273
+ ...Y(e, "transform", {
274
+ duration: ".4s",
275
+ easing: "linear"
276
+ })
277
+ }
278
+ })),
279
+ {
280
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
281
+ style: { width: "auto" }
282
+ },
283
+ {
284
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
285
+ style: we || { animation: `${Ce} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite` }
286
+ },
287
+ ...t ? [{
288
+ props: ({ ownerState: e }) => e.variant === "indeterminate" || e.variant === "query",
289
+ style: t
290
+ }] : []
291
+ ]
292
+ };
293
+ })), Me = X.forwardRef(function(e, t) {
294
+ let n = ue({
295
+ props: e,
296
+ name: "MuiLinearProgress"
297
+ }), { className: r, color: i = "primary", max: a, min: o, value: s, valueBuffer: c, variant: l = "indeterminate", ...u } = n, d = {
298
+ ...n,
299
+ color: i,
300
+ variant: l
301
+ }, f = o ?? 0, p = a ?? 100, m = ((e) => {
302
+ let { classes: t, variant: n, color: r } = e, i = {
303
+ root: [
304
+ "root",
305
+ `color${ce(r)}`,
306
+ n
307
+ ],
308
+ dashed: ["dashed"],
309
+ bar1: ["bar", "bar1"],
310
+ bar2: [
311
+ "bar",
312
+ "bar2",
313
+ n === "buffer" && `color${ce(r)}`
314
+ ]
315
+ };
316
+ return ae(i, ye, t);
317
+ })(d), h = re(), g = {}, _ = {
318
+ bar1: {},
319
+ bar2: {}
320
+ };
321
+ if ((l === "determinate" || l === "buffer") && s !== void 0) {
322
+ let e = p - f, t = (s - f) / e * 100 - 100;
323
+ h && (t = -t), _.bar1.transform = e > 0 ? `translateX(${t}%)` : "translateX(-100%)", g["aria-valuenow"] = s, g["aria-valuemin"] = f, g["aria-valuemax"] = p;
324
+ }
325
+ if (l === "buffer" && c !== void 0) {
326
+ let e = p - f, t = (c - f) / e * 100 - 100;
327
+ h && (t = -t), _.bar2.transform = e > 0 ? `translateX(${t}%)` : "translateX(-100%)";
328
+ }
329
+ return (0, Z.jsxs)(Oe, {
330
+ className: N(m.root, r),
331
+ ownerState: d,
332
+ role: "progressbar",
333
+ ...g,
334
+ ref: t,
335
+ ...u,
336
+ children: [
337
+ l === "buffer" ? (0, Z.jsx)(ke, {
338
+ className: m.dashed,
339
+ ownerState: d
340
+ }) : null,
341
+ (0, Z.jsx)(Ae, {
342
+ className: m.bar1,
343
+ ownerState: d,
344
+ style: _.bar1
345
+ }),
346
+ l === "determinate" ? null : (0, Z.jsx)(je, {
347
+ className: m.bar2,
348
+ ownerState: d,
349
+ style: _.bar2
350
+ })
351
+ ]
352
+ });
353
+ }), Ne = q(L, {
354
+ shouldForwardProp: (e) => fe(e) || e === "classes",
355
+ name: "MuiListItemButton",
356
+ slot: "Root",
357
+ overridesResolver: (e, t) => {
358
+ let { ownerState: n } = e;
359
+ return [
360
+ t.root,
361
+ n.dense && t.dense,
362
+ n.alignItems === "flex-start" && t.alignItemsFlexStart,
363
+ n.divider && t.divider,
364
+ !n.disableGutters && t.gutters
365
+ ];
366
+ }
367
+ })(U(({ theme: e }) => ({
368
+ display: "flex",
369
+ flexGrow: 1,
370
+ justifyContent: "flex-start",
371
+ alignItems: "center",
372
+ position: "relative",
373
+ textDecoration: "none",
374
+ minWidth: 0,
375
+ boxSizing: "border-box",
376
+ textAlign: "left",
377
+ paddingTop: 8,
378
+ paddingBottom: 8,
379
+ ...Y(e, "background-color", { duration: e.transitions.duration.shortest }),
380
+ "&:hover": {
381
+ textDecoration: "none",
382
+ backgroundColor: (e.vars || e).palette.action.hover,
383
+ "@media (hover: none)": { backgroundColor: "transparent" }
384
+ },
385
+ [`&.${ve.selected}`]: {
386
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
387
+ ...!e.focusVisible && { [`&.${ve.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }
388
+ },
389
+ [`&.${ve.selected}:hover`]: {
390
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
391
+ "@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity) }
392
+ },
393
+ ...e.focusVisible ? A(1) : { [`&.${ve.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus } },
394
+ [`&.${ve.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
395
+ variants: [
396
+ {
397
+ props: ({ ownerState: e }) => e.divider,
398
+ style: {
399
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
400
+ backgroundClip: "padding-box"
401
+ }
402
+ },
403
+ {
404
+ props: { alignItems: "flex-start" },
405
+ style: { alignItems: "flex-start" }
406
+ },
407
+ {
408
+ props: ({ ownerState: e }) => !e.disableGutters,
409
+ style: {
410
+ paddingLeft: 16,
411
+ paddingRight: 16
412
+ }
413
+ },
414
+ {
415
+ props: ({ ownerState: e }) => e.dense,
416
+ style: {
417
+ paddingTop: 4,
418
+ paddingBottom: 4
419
+ }
420
+ }
421
+ ]
422
+ }))), Pe = X.forwardRef(function(e, t) {
423
+ let n = ue({
424
+ props: e,
425
+ name: "MuiListItemButton"
426
+ }), { alignItems: r = "center", autoFocus: i = !1, component: a = "div", children: o, dense: s = !1, disableGutters: c = !1, divider: l = !1, focusVisibleClassName: u, selected: d = !1, className: f, ...p } = n, m = X.useContext(me), h = X.useMemo(() => ({
427
+ dense: s || m.dense || !1,
428
+ alignItems: r,
429
+ disableGutters: c
430
+ }), [
431
+ r,
432
+ m.dense,
433
+ s,
434
+ c
435
+ ]), g = X.useRef(null);
436
+ he(() => {
437
+ i && g.current && g.current.focus();
438
+ }, [i]);
439
+ let _ = {
440
+ ...n,
441
+ alignItems: r,
442
+ dense: h.dense,
443
+ disableGutters: c,
444
+ divider: l,
445
+ selected: d
446
+ }, v = ((e) => {
447
+ let { alignItems: t, classes: n, dense: r, disabled: i, disableGutters: a, divider: o, selected: s } = e, c = ae({ root: [
448
+ "root",
449
+ r && "dense",
450
+ !a && "gutters",
451
+ o && "divider",
452
+ i && "disabled",
453
+ t === "flex-start" && "alignItemsFlexStart",
454
+ s && "selected"
455
+ ] }, _e, n);
456
+ return {
457
+ ...n,
458
+ ...c
459
+ };
460
+ })(_), { root: y, ...b } = v, x = ne(g, t);
461
+ return (0, Z.jsx)(me.Provider, {
462
+ value: h,
463
+ children: (0, Z.jsx)(Ne, {
464
+ ref: x,
465
+ href: p.href || p.to,
466
+ component: (p.href || p.to) && a === "div" ? "button" : a,
467
+ internalNativeButton: !1,
468
+ focusVisibleClassName: N(v.focusVisible, u),
469
+ ownerState: _,
470
+ className: N(v.root, f),
471
+ ...p,
472
+ classes: b,
473
+ children: o
474
+ })
475
+ });
476
+ }), Fe = q("div", {
477
+ name: "MuiListItemIcon",
478
+ slot: "Root",
479
+ overridesResolver: (e, t) => {
480
+ let { ownerState: n } = e;
481
+ return [t.root, n.alignItems === "flex-start" && t.alignItemsFlexStart];
482
+ }
483
+ })(U(({ theme: e }) => ({
484
+ minWidth: e.spacing(4.5),
485
+ color: (e.vars || e).palette.action.active,
486
+ flexShrink: 0,
487
+ display: "inline-flex",
488
+ variants: [{
489
+ props: { alignItems: "flex-start" },
490
+ style: { marginTop: 8 }
491
+ }]
492
+ }))), Ie = X.forwardRef(function(e, t) {
493
+ let n = ue({
494
+ props: e,
495
+ name: "MuiListItemIcon"
496
+ }), { className: r, ...i } = n, a = X.useContext(me), o = {
497
+ ...n,
498
+ alignItems: a.alignItems
499
+ }, s = ((e) => {
500
+ let { alignItems: t, classes: n } = e;
501
+ return ae({ root: ["root", t === "flex-start" && "alignItemsFlexStart"] }, ge, n);
502
+ })(o);
503
+ return (0, Z.jsx)(Fe, {
504
+ className: N(s.root, r),
505
+ ownerState: o,
506
+ ref: t,
507
+ ...i
508
+ });
509
+ });
510
+ function Le(e) {
511
+ return D("MuiToolbar", e);
512
+ }
513
+ k("MuiToolbar", [
514
+ "root",
515
+ "gutters",
516
+ "regular",
517
+ "dense"
518
+ ]);
519
+ var Re = q("div", {
520
+ name: "MuiToolbar",
521
+ slot: "Root",
522
+ overridesResolver: (e, t) => {
523
+ let { ownerState: n } = e;
524
+ return [
525
+ t.root,
526
+ !n.disableGutters && t.gutters,
527
+ t[n.variant]
528
+ ];
529
+ }
530
+ })(U(({ theme: e }) => ({
531
+ position: "relative",
532
+ display: "flex",
533
+ alignItems: "center",
534
+ variants: [
535
+ {
536
+ props: ({ ownerState: e }) => !e.disableGutters,
537
+ style: {
538
+ paddingLeft: e.spacing(2),
539
+ paddingRight: e.spacing(2),
540
+ [e.breakpoints.up("sm")]: {
541
+ paddingLeft: e.spacing(3),
542
+ paddingRight: e.spacing(3)
543
+ }
544
+ }
545
+ },
546
+ {
547
+ props: { variant: "dense" },
548
+ style: { minHeight: 48 }
549
+ },
550
+ {
551
+ props: { variant: "regular" },
552
+ style: e.mixins.toolbar
553
+ }
554
+ ]
555
+ }))), ze = X.forwardRef(function(e, t) {
556
+ let n = ue({
557
+ props: e,
558
+ name: "MuiToolbar"
559
+ }), { className: r, component: i = "div", disableGutters: a = !1, variant: o = "regular", ...s } = n, c = {
560
+ ...n,
561
+ component: i,
562
+ disableGutters: a,
563
+ variant: o
564
+ }, l = ((e) => {
565
+ let { classes: t, disableGutters: n, variant: r } = e;
566
+ return ae({ root: [
567
+ "root",
568
+ !n && "gutters",
569
+ r
570
+ ] }, Le, t);
571
+ })(c);
572
+ return (0, Z.jsx)(Re, {
573
+ as: i,
574
+ className: N(l.root, r),
575
+ ref: t,
576
+ ownerState: c,
577
+ ...s
578
+ });
579
+ });
580
+ (function() {
581
+ try {
582
+ if (typeof document < "u") {
583
+ var e = document.createElement("style");
584
+ e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{border-radius:50%;position:absolute}._traverse-ellipsis_14l1h_1 div:first-child{animation:.6s infinite _traverse-ellipsis1_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(2){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(3){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:24px}._traverse-ellipsis_14l1h_1 div:nth-child(4){animation:.6s infinite _traverse-ellipsis3_14l1h_1;left:48px}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}/*$vite$:1*/")), document.head.appendChild(e);
585
+ }
586
+ } catch (e) {
587
+ console.error("vite-plugin-css-injected-by-js", e);
588
+ }
589
+ })();
590
+ var Be = {
591
+ whiteSpace: "nowrap",
592
+ textTransform: "none",
593
+ lineHeight: 1,
594
+ fontSize: (e) => e.typography.subtitle2.fontSize,
595
+ paddingLeft: (e) => e.spacing(.25),
596
+ paddingRight: (e) => e.spacing(.25)
597
+ };
598
+ function Ve(e, t) {
599
+ let n = t != null && !1 !== t && t !== "" ? (0, Z.jsx)(K, {
600
+ component: "div",
601
+ sx: Be,
602
+ children: t
603
+ }) : null;
604
+ return e && n ? (0, Z.jsxs)(M, {
605
+ sx: {
606
+ display: "flex",
607
+ alignItems: "center"
608
+ },
609
+ children: [e, n]
610
+ }) : e ?? n ?? void 0;
611
+ }
612
+ var He = ({ isHorizontal: e, isBefore: t }) => {
613
+ let n = w();
614
+ return (0, Z.jsx)(Z.Fragment, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
615
+ }, Ue = (e) => {
616
+ let t = {
617
+ style: { cursor: "pointer" },
618
+ ...e
619
+ }, n = S(t);
620
+ if (e.isBefore !== void 0 && !e.disabled) {
621
+ let t = e.orientation === _.Horizontal;
622
+ n = (0, Z.jsx)(te, {
623
+ title: (0, Z.jsx)(He, {
624
+ isHorizontal: t,
625
+ isBefore: e.isBefore
626
+ }),
627
+ enterDelay: 800,
628
+ enterNextDelay: 1600,
629
+ children: e.disabled ? (0, Z.jsx)("div", {
630
+ style: { display: "flex" },
631
+ children: n
632
+ }) : n
633
+ });
634
+ }
635
+ return n;
636
+ }, We = (e, t, n, r) => {
637
+ let { style: i, ...a } = e, o = (0, Z.jsx)(z, {
638
+ component: "div",
639
+ ...a,
640
+ style: {
641
+ ...i,
642
+ padding: "0px"
643
+ },
644
+ sx: { padding: "0" },
645
+ color: e.disabled ? void 0 : "primary",
646
+ "aria-label": n,
647
+ size: "small",
648
+ children: t
649
+ });
650
+ return (0, Z.jsx)(te, {
651
+ title: e.disabled ? n : r,
652
+ enterDelay: 800,
653
+ enterNextDelay: 1600,
654
+ children: e.disabled ? (0, Z.jsx)("div", {
655
+ style: { display: "flex" },
656
+ children: o
657
+ }) : o
658
+ });
659
+ }, Ge = (e) => We(e, _.Horizontal ? (0, Z.jsx)(o, {
660
+ iconKey: "ArrowLeft",
661
+ size: "small"
662
+ }) : (0, Z.jsx)(o, {
663
+ iconKey: "ArrowUpward",
664
+ size: "small"
665
+ }), "Scroll " + (e.orientation === _.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === _.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), Ke = (e) => We(e, _.Horizontal ? (0, Z.jsx)(o, {
666
+ iconKey: "ArrowRight",
667
+ size: "small"
668
+ }) : (0, Z.jsx)(o, {
669
+ iconKey: "ArrowDownward",
670
+ size: "small"
671
+ }), "Scroll " + (e.orientation === _.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === _.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), qe = (0, X.memo)((0, X.forwardRef)((e, t) => {
672
+ let { orientation: n = "vertical", sx: r, ...i } = e, a = n === "vertical";
673
+ return (0, Z.jsx)(E, {
674
+ ref: t,
675
+ sx: {
676
+ marginLeft: a ? "2px" : void 0,
677
+ marginRight: a ? "2px" : void 0,
678
+ backgroundColor: "transparent !important",
679
+ minHeight: a ? "1em" : void 0,
680
+ minWidth: a ? void 0 : "1em",
681
+ borderColor: (e) => e.palette.divider,
682
+ ...r
683
+ },
684
+ orientation: n,
685
+ variant: "middle",
686
+ flexItem: !0,
687
+ ...i
688
+ });
689
+ })), Je = ((0, X.memo)((e) => {
690
+ let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
691
+ return (0, Z.jsx)(M, {
692
+ sx: {
693
+ width: `${r}px`,
694
+ height: `${r}px`,
695
+ zIndex: 1,
696
+ "& .primary": {
697
+ stroke: (e) => e.palette.grey[600],
698
+ fill: "none"
699
+ },
700
+ ...t
701
+ },
702
+ ...i,
703
+ children: (0, Z.jsxs)("svg", {
704
+ x: "0px",
705
+ y: "0px",
706
+ viewBox: "0 0 100 100",
707
+ children: [
708
+ (0, Z.jsx)("circle", {
709
+ className: "primary",
710
+ strokeWidth: "4",
711
+ cx: "50",
712
+ cy: "50",
713
+ r: "48"
714
+ }),
715
+ (0, Z.jsx)("line", {
716
+ className: "primary",
717
+ strokeLinecap: "round",
718
+ strokeWidth: "4",
719
+ x1: "50",
720
+ y1: "50",
721
+ x2: "85",
722
+ y2: "50.5",
723
+ children: (0, Z.jsx)("animateTransform", {
724
+ attributeName: "transform",
725
+ dur: `${n}s`,
726
+ type: "rotate",
727
+ from: "0 50 50",
728
+ to: "360 50 50",
729
+ repeatCount: "indefinite"
730
+ })
731
+ }),
732
+ (0, Z.jsx)("line", {
733
+ className: "primary",
734
+ strokeLinecap: "round",
735
+ strokeWidth: "4",
736
+ x1: "50",
737
+ y1: "50",
738
+ x2: "49.5",
739
+ y2: "74",
740
+ children: (0, Z.jsx)("animateTransform", {
741
+ attributeName: "transform",
742
+ dur: 7.5 * n + "s",
743
+ type: "rotate",
744
+ from: "0 50 50",
745
+ to: "360 50 50",
746
+ repeatCount: "indefinite"
747
+ })
748
+ })
749
+ ]
750
+ })
751
+ });
752
+ }), (0, X.memo)((e) => {
753
+ let { sx: t, speed: n = 1.5, size: r = 70, ...i } = e;
754
+ return (0, Z.jsx)(M, {
755
+ sx: {
756
+ width: `${r}px`,
757
+ height: `${r}px`,
758
+ zIndex: 1,
759
+ "& .primary": { fill: (e) => e.palette.grey[600] },
760
+ "& .secondary": {
761
+ stroke: (e) => e.palette.grey[600],
762
+ fill: "none",
763
+ opacity: .5
764
+ },
765
+ ...t
766
+ },
767
+ ...i,
768
+ children: (0, Z.jsxs)("svg", {
769
+ x: "0px",
770
+ y: "0px",
771
+ viewBox: "0 0 100 100",
772
+ children: [(0, Z.jsx)("circle", {
773
+ className: "secondary",
774
+ strokeWidth: "4",
775
+ cx: "50",
776
+ cy: "50",
777
+ r: "21"
778
+ }), (0, Z.jsx)("path", {
779
+ className: "primary",
780
+ d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",
781
+ children: (0, Z.jsx)("animateTransform", {
782
+ attributeName: "transform",
783
+ type: "rotate",
784
+ dur: 1 * n + "s",
785
+ from: "0 50 50",
786
+ to: "360 50 50",
787
+ repeatCount: "indefinite"
788
+ })
789
+ })]
790
+ })
791
+ });
792
+ })), Ye = ((0, X.memo)((e) => {
793
+ let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
794
+ return (0, Z.jsx)(M, {
795
+ sx: {
796
+ width: `${r}px`,
797
+ height: `${r}px`,
798
+ zIndex: 1,
799
+ ...t
800
+ },
801
+ ...i,
802
+ children: (0, Z.jsxs)("svg", {
803
+ x: "0px",
804
+ y: "0px",
805
+ viewBox: "0 0 100 100",
806
+ children: [
807
+ (0, Z.jsx)("circle", {
808
+ className: "primary",
809
+ cx: "6",
810
+ cy: "50",
811
+ r: "6",
812
+ children: (0, Z.jsx)("animate", {
813
+ attributeName: "opacity",
814
+ dur: `${n}s`,
815
+ values: "0;1;0",
816
+ repeatCount: "indefinite",
817
+ begin: "0.1"
818
+ })
819
+ }),
820
+ (0, Z.jsx)("circle", {
821
+ className: "primary",
822
+ cx: "26",
823
+ cy: "50",
824
+ r: "6",
825
+ children: (0, Z.jsx)("animate", {
826
+ attributeName: "opacity",
827
+ dur: `${n}s`,
828
+ values: "0;1;0",
829
+ repeatCount: "indefinite",
830
+ begin: "0.2"
831
+ })
832
+ }),
833
+ (0, Z.jsx)("circle", {
834
+ className: "primary",
835
+ cx: "46",
836
+ cy: "50",
837
+ r: "6",
838
+ children: (0, Z.jsx)("animate", {
839
+ attributeName: "opacity",
840
+ dur: `${n}s`,
841
+ values: "0;1;0",
842
+ repeatCount: "indefinite",
843
+ begin: "0.3"
844
+ })
845
+ })
846
+ ]
847
+ })
848
+ });
849
+ }), (0, X.memo)((e) => {
850
+ let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
851
+ return (0, Z.jsx)(M, {
852
+ sx: {
853
+ width: `${r}px`,
854
+ height: `${r}px`,
855
+ zIndex: 1,
856
+ "& .primary": {
857
+ fill: (e) => e.palette.grey[600],
858
+ stroke: "none"
859
+ },
860
+ ...t
861
+ },
862
+ ...i,
863
+ children: (0, Z.jsxs)("svg", {
864
+ x: "0px",
865
+ y: "0px",
866
+ viewBox: "0 0 100 100",
867
+ children: [
868
+ (0, Z.jsx)("circle", {
869
+ className: "primary",
870
+ cx: "6",
871
+ cy: "50",
872
+ r: "6",
873
+ children: (0, Z.jsx)("animateTransform", {
874
+ attributeName: "transform",
875
+ dur: `${n}s`,
876
+ type: "translate",
877
+ values: "0 15 ; 0 -15; 0 15",
878
+ repeatCount: "indefinite",
879
+ begin: "0.1"
880
+ })
881
+ }),
882
+ (0, Z.jsx)("circle", {
883
+ className: "primary",
884
+ cx: "30",
885
+ cy: "50",
886
+ r: "6",
887
+ children: (0, Z.jsx)("animateTransform", {
888
+ attributeName: "transform",
889
+ dur: `${n}s`,
890
+ type: "translate",
891
+ values: "0 10 ; 0 -10; 0 10",
892
+ repeatCount: "indefinite",
893
+ begin: "0.2"
894
+ })
895
+ }),
896
+ (0, Z.jsx)("circle", {
897
+ className: "primary",
898
+ cx: "54",
899
+ cy: "50",
900
+ r: "6",
901
+ children: (0, Z.jsx)("animateTransform", {
902
+ attributeName: "transform",
903
+ dur: `${n}s`,
904
+ type: "translate",
905
+ values: "0 5 ; 0 -5; 0 5",
906
+ repeatCount: "indefinite",
907
+ begin: "0.3"
908
+ })
909
+ })
910
+ ]
911
+ })
912
+ });
913
+ }), (0, X.memo)((e) => {
914
+ let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
915
+ return (0, Z.jsx)(M, {
916
+ sx: {
917
+ width: `${r}px`,
918
+ height: `${r}px`,
919
+ zIndex: 1,
920
+ "& .primary": {
921
+ stroke: (e) => e.palette.grey[600],
922
+ opacity: .5,
923
+ fill: "none"
924
+ },
925
+ "& .secondary": {
926
+ fillOpacity: (e) => e.palette.grey[600],
927
+ opacity: .8,
928
+ stroke: (e) => e.palette.background.paper
929
+ },
930
+ ...t
931
+ },
932
+ ...i,
933
+ children: (0, Z.jsxs)("svg", {
934
+ x: "0px",
935
+ y: "0px",
936
+ viewBox: "0 0 100 100",
937
+ children: [(0, Z.jsx)("circle", {
938
+ className: "primary",
939
+ strokeWidth: "4",
940
+ cx: "50",
941
+ cy: "50",
942
+ r: "44"
943
+ }), (0, Z.jsx)("circle", {
944
+ className: "secondary",
945
+ strokeWidth: "3",
946
+ cx: "8",
947
+ cy: "54",
948
+ r: "6",
949
+ children: (0, Z.jsx)("animateTransform", {
950
+ attributeName: "transform",
951
+ dur: `${n}s`,
952
+ type: "rotate",
953
+ from: "0 50 48",
954
+ to: "360 50 52",
955
+ repeatCount: "indefinite"
956
+ })
957
+ })]
958
+ })
959
+ });
960
+ }), (0, X.memo)((e) => {
961
+ let { sx: t, speed: n = 1, size: r = 13, width: i = 64, height: a = 17, ...o } = e;
962
+ return (0, Z.jsxs)(M, {
963
+ sx: {
964
+ width: `${i}px`,
965
+ height: `${a}px`,
966
+ "& .primary": {
967
+ backgroundColor: (e) => e.palette.grey[600],
968
+ top: (a - r) / 2 + "px",
969
+ width: () => `${r}px`,
970
+ height: () => `${r}px`
971
+ },
972
+ ...t
973
+ },
974
+ className: J("_traverse-ellipsis_14l1h_1", "animated-icon"),
975
+ ...o,
976
+ children: [
977
+ (0, Z.jsx)("div", { className: "primary" }),
978
+ (0, Z.jsx)("div", { className: "primary" }),
979
+ (0, Z.jsx)("div", { className: "primary" }),
980
+ (0, Z.jsx)("div", { className: "primary" })
981
+ ]
982
+ });
983
+ })), Xe = (0, Z.jsx)(Je, {}), Ze = (e, t) => {
984
+ if (!e) return null;
985
+ if (t !== void 0) {
986
+ let n = e.querySelector("[data-sxl-loading-label]");
987
+ n && (n.textContent = t);
988
+ }
989
+ if (e.classList.contains("animating")) return null;
990
+ e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
991
+ let n = typeof e.getAnimations == "function" ? e.getAnimations() : null;
992
+ return n?.length === 0 ? null : new Promise((e) => {
993
+ let t = setTimeout(e, 250), r = () => {
994
+ clearTimeout(t), e();
995
+ };
996
+ n ? Promise.all(n.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
997
+ });
998
+ }, Qe = (e) => {
999
+ e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
1000
+ }, $e = (0, X.memo)((0, X.forwardRef)((e, t) => {
1001
+ let { sx: n, style: r, onMount: i, onUnmount: a, transitionDelay: o = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: l = !0, icon: u = Xe, label: d, progress: f = null, ...p } = e, m = (0, X.useMemo)(() => typeof d == "string" || !c && d == null ? (0, Z.jsx)(K, {
1002
+ "data-sxl-loading-label": "",
1003
+ variant: "caption",
1004
+ component: "div",
1005
+ sx: {
1006
+ fontSize: "0.875rem",
1007
+ lineHeight: 1.43,
1008
+ letterSpacing: "0.01071em"
1009
+ },
1010
+ children: typeof d == "string" ? d : ""
1011
+ }) : d, [d, c]), g = (0, X.useMemo)(() => {
1012
+ if (typeof f != "number") return u;
1013
+ let e = Math.max(0, Math.min(100, Math.round(100 * f)));
1014
+ return (0, Z.jsx)(M, {
1015
+ sx: {
1016
+ display: "flex",
1017
+ alignItems: "center",
1018
+ width: "180px"
1019
+ },
1020
+ children: (0, Z.jsx)(Me, {
1021
+ variant: "determinate",
1022
+ value: e,
1023
+ color: "inherit",
1024
+ sx: {
1025
+ width: "100%",
1026
+ borderRadius: "2px",
1027
+ "@keyframes sxlProgressPulse": {
1028
+ "0%, 100%": { opacity: 1 },
1029
+ "50%": { opacity: .25 }
1030
+ },
1031
+ "& .MuiLinearProgress-bar": {
1032
+ transition: "transform 0.5s linear",
1033
+ ...e >= 100 && {
1034
+ willChange: "opacity",
1035
+ animation: "sxlProgressPulse 1s ease-in-out infinite"
1036
+ }
1037
+ }
1038
+ }
1039
+ })
1040
+ });
1041
+ }, [f, u]), _ = (0, X.useRef)(null), v = se([_, t]), y = (0, X.useMemo)(() => {
1042
+ let e = (0, Z.jsxs)(M, {
1043
+ sx: {
1044
+ display: "flex",
1045
+ flexDirection: "column",
1046
+ alignItems: "center",
1047
+ rowGap: "8px"
1048
+ },
1049
+ children: [m, g]
1050
+ });
1051
+ return !0 === s && (e = (0, Z.jsx)(F, {
1052
+ elevation: 0,
1053
+ sx: {
1054
+ display: "flex",
1055
+ flexDirection: "column",
1056
+ justifyContent: "center",
1057
+ alignItems: "center",
1058
+ alignSelf: "center",
1059
+ marginBottom: "5%",
1060
+ backgroundColor: (e) => e.palette.info.light,
1061
+ color: (e) => e.palette.info.contrastText,
1062
+ paddingLeft: (e) => e.spacing(2),
1063
+ paddingRight: (e) => e.spacing(2),
1064
+ paddingTop: (e) => e.spacing(2),
1065
+ paddingBottom: (e) => e.spacing(1),
1066
+ rowGap: (e) => e.spacing(1),
1067
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1068
+ boxShadow: (e) => e.shadows[2],
1069
+ "& .primary": {
1070
+ background: (e) => `${O(e.palette.info.contrastText, .9)} !important`,
1071
+ boxShadow: (e) => `0 0 0 1px ${e.palette.mode === "dark" ? e.palette.text.secondary : e.palette.divider}`,
1072
+ boxSizing: "content-box",
1073
+ border: "solid transparent"
1074
+ },
1075
+ zIndex: 1
1076
+ },
1077
+ children: e
1078
+ })), (0, Z.jsx)(M, {
1079
+ ...p,
1080
+ ref: v,
1081
+ className: "animatable",
1082
+ sx: {
1083
+ cursor: "wait",
1084
+ boxSizing: "border-box",
1085
+ alignItems: "center",
1086
+ justifyContent: "center",
1087
+ display: "flex",
1088
+ flexDirection: "column",
1089
+ willChange: "opacity",
1090
+ "&:not(.animating) *": { animationPlayState: "paused" },
1091
+ opacity: l ? .001 : 1,
1092
+ transitionProperty: "opacity",
1093
+ transitionDelay: o,
1094
+ transitionDuration: "320ms",
1095
+ transitionTimingFunction: "ease-in",
1096
+ overflow: "hidden",
1097
+ outline: "none",
1098
+ width: "100%",
1099
+ height: "100%",
1100
+ minWidth: 0,
1101
+ minHeight: 0,
1102
+ zIndex: 99999,
1103
+ "&.animating": { opacity: 1 },
1104
+ "&.animating-idle": { transition: "none" },
1105
+ "&.animating-exit": {
1106
+ opacity: 0,
1107
+ transition: "opacity 210ms"
1108
+ },
1109
+ ...n,
1110
+ ...r
1111
+ },
1112
+ children: (0, Z.jsxs)(M, {
1113
+ className: "center",
1114
+ sx: {
1115
+ display: "flex",
1116
+ flex: "1 1 100%",
1117
+ height: "100%",
1118
+ width: "100%",
1119
+ alignItems: "center",
1120
+ justifyContent: "center",
1121
+ boxSizing: "border-box",
1122
+ position: "relative"
1123
+ },
1124
+ children: [(0, Z.jsx)(M, {
1125
+ className: "backdrop",
1126
+ sx: {
1127
+ opacity: (e) => l ? 1.5 * e.palette.action.disabledOpacity : void 0,
1128
+ background: (e) => l ? void 0 : e.palette.background.paper,
1129
+ backdropFilter: "blur(4px)",
1130
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1131
+ zIndex: -1,
1132
+ position: "absolute",
1133
+ width: "100%",
1134
+ height: "100%",
1135
+ boxSizing: "border-box"
1136
+ }
1137
+ }), e]
1138
+ })
1139
+ });
1140
+ }, [
1141
+ n,
1142
+ s,
1143
+ m,
1144
+ g,
1145
+ v
1146
+ ]), b = (0, X.useRef)(!1);
1147
+ return h(() => {
1148
+ if (!1 === c) return;
1149
+ let e = _.current;
1150
+ e && !b.current && (b.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
1151
+ }, [_.current, c]), (0, X.useEffect)(() => () => {
1152
+ b.current && (_.current?.classList.remove("animating"), b.current = !1, a?.());
1153
+ }, []), y;
1154
+ }));
1155
+ $e.displayName = "AnimatedLoadingPanel";
1156
+ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, nt = (e) => {
1157
+ if (!e) return "";
1158
+ try {
1159
+ e = new URL(e).pathname;
1160
+ } catch {}
1161
+ return (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
1162
+ }, rt = (0, X.memo)(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
1163
+ let i = w(), [a, s] = (0, X.useState)(null);
1164
+ if (!e?.stack) return null;
1165
+ let c = r.collectErrorChain(e).reverse(), l = [];
1166
+ c.forEach(({ error: e }, t) => {
1167
+ let n = (e.stack || "").split("\n").filter(Boolean).map((e) => {
1168
+ let t = e.match(et);
1169
+ if (t) {
1170
+ let [, e = "", n, r, i, a] = t;
1171
+ return {
1172
+ line: `at ${e ? e + " " : ""}${n}`,
1173
+ location: `${nt(r).split(/[\\/]/).pop()}:${i}:${a}`
1174
+ };
1175
+ }
1176
+ if (t = e.match(tt), t) {
1177
+ let [, e = "", n, r, i] = t, a = nt(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
1178
+ return {
1179
+ line: `at ${e ? e + " " : ""}${o}`,
1180
+ location: a === o ? void 0 : `${a}:${r}:${i}`
1181
+ };
1182
+ }
1183
+ return { line: e.trim() };
1184
+ });
1185
+ n.length && (l.push({
1186
+ line: t ? `Caused by: ${n[0].line}` : n[0].line,
1187
+ isBoundary: !0
1188
+ }), l.push(...n.slice(1)));
1189
+ });
1190
+ let u = t ? l.slice(0, t) : l, d = t && l.length > t;
1191
+ return (0, Z.jsxs)(M, {
1192
+ sx: {
1193
+ width: "100%",
1194
+ mt: 1
1195
+ },
1196
+ children: [(0, Z.jsxs)(M, {
1197
+ sx: {
1198
+ display: "flex",
1199
+ alignItems: "center",
1200
+ gap: 1,
1201
+ borderRadius: 1,
1202
+ px: 1,
1203
+ py: .5
1204
+ },
1205
+ children: [
1206
+ (0, Z.jsx)(K, {
1207
+ variant: "caption",
1208
+ component: "div",
1209
+ sx: {
1210
+ fontSize: "0.75rem",
1211
+ opacity: .8
1212
+ },
1213
+ children: c.length > 1 ? i("stackTrace.headingFrames", { count: c.length }) : i("stackTrace.heading")
1214
+ }),
1215
+ (0, Z.jsx)(M, { sx: { flex: 1 } }),
1216
+ a && (0, Z.jsx)(K, {
1217
+ variant: "caption",
1218
+ component: "div",
1219
+ sx: {
1220
+ fontSize: "0.625rem",
1221
+ opacity: .8
1222
+ },
1223
+ children: a
1224
+ }),
1225
+ (0, Z.jsx)(z, {
1226
+ size: "small",
1227
+ onClick: async () => {
1228
+ try {
1229
+ let e = 0, t = l.map((t) => {
1230
+ if (t.isBoundary) return e = 0, t.line;
1231
+ e++;
1232
+ let n = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
1233
+ return e >= 1 && (n = ` ${n}`), n;
1234
+ }).join("\n");
1235
+ await navigator.clipboard.writeText(t), s("Copied!"), setTimeout(() => s(null), 2e3);
1236
+ } catch (e) {
1237
+ s("Can't copy!"), console.warn("Failed to copy stack trace:", e);
1238
+ }
1239
+ },
1240
+ sx: {
1241
+ color: "inherit",
1242
+ opacity: .7,
1243
+ "&:hover": { opacity: 1 }
1244
+ },
1245
+ title: i("stackTrace.copy"),
1246
+ children: (0, Z.jsx)(o, {
1247
+ iconKey: "ContentCopy",
1248
+ style: { fontSize: "0.875rem" }
1249
+ })
1250
+ }),
1251
+ (0, Z.jsx)(z, {
1252
+ size: "small",
1253
+ onClick: () => {
1254
+ s("Logged!"), setTimeout(() => s(null), 2e3), console.warn(e);
1255
+ },
1256
+ sx: {
1257
+ color: "inherit",
1258
+ opacity: .7,
1259
+ "&:hover": { opacity: 1 }
1260
+ },
1261
+ title: i("stackTrace.log"),
1262
+ children: (0, Z.jsx)(o, {
1263
+ iconKey: "BugReport",
1264
+ style: { fontSize: "0.875rem" }
1265
+ })
1266
+ })
1267
+ ]
1268
+ }), (0, Z.jsxs)(M, {
1269
+ sx: {
1270
+ mt: 1,
1271
+ backgroundColor: "rgba(0, 0, 0, 0.2)",
1272
+ borderRadius: 1,
1273
+ p: 1,
1274
+ maxHeight: "300px",
1275
+ overflow: "auto",
1276
+ fontFamily: "monospace",
1277
+ fontSize: "0.75rem",
1278
+ lineHeight: 1.4
1279
+ },
1280
+ children: [u.map((e, t) => e.isBoundary ? (0, Z.jsx)(M, {
1281
+ sx: {
1282
+ py: 1,
1283
+ mt: +(t > 0),
1284
+ mb: .5,
1285
+ borderTop: t > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
1286
+ },
1287
+ children: (0, Z.jsx)(K, {
1288
+ variant: "caption",
1289
+ component: "div",
1290
+ sx: {
1291
+ fontSize: "0.75rem",
1292
+ fontWeight: "bold",
1293
+ color: (t) => e.isBoundary ? t.palette.text.primary : t.palette.text.secondary,
1294
+ display: "block"
1295
+ },
1296
+ children: e.line
1297
+ })
1298
+ }, `error-${t}`) : (0, Z.jsxs)(M, {
1299
+ sx: {
1300
+ display: "flex",
1301
+ alignItems: "flex-start",
1302
+ gap: 1,
1303
+ py: .25,
1304
+ pl: 1,
1305
+ "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
1306
+ },
1307
+ children: [!n && (0, Z.jsx)(K, {
1308
+ variant: "caption",
1309
+ component: "div",
1310
+ sx: {
1311
+ fontSize: "0.625rem",
1312
+ opacity: .5,
1313
+ minWidth: "20px",
1314
+ textAlign: "right",
1315
+ userSelect: "none"
1316
+ },
1317
+ children: t + 1
1318
+ }), (0, Z.jsxs)(M, {
1319
+ sx: {
1320
+ flex: 1,
1321
+ overflow: "hidden"
1322
+ },
1323
+ children: [(0, Z.jsx)(K, {
1324
+ variant: "caption",
1325
+ component: "div",
1326
+ sx: {
1327
+ fontSize: "0.75rem",
1328
+ whiteSpace: "nowrap",
1329
+ overflow: "hidden",
1330
+ textOverflow: "ellipsis",
1331
+ color: "inherit"
1332
+ },
1333
+ children: e.line
1334
+ }), e.location && e.line !== e.location && (0, Z.jsx)(K, {
1335
+ variant: "caption",
1336
+ component: "div",
1337
+ sx: {
1338
+ fontSize: "0.625rem",
1339
+ opacity: .6,
1340
+ fontStyle: "italic"
1341
+ },
1342
+ children: e.location
1343
+ })]
1344
+ })]
1345
+ }, `stack-${t}`)), d && (0, Z.jsx)(K, {
1346
+ variant: "caption",
1347
+ component: "div",
1348
+ sx: {
1349
+ fontSize: "0.625rem",
1350
+ opacity: .6,
1351
+ fontStyle: "italic",
1352
+ textAlign: "center",
1353
+ display: "block",
1354
+ mt: 1
1355
+ },
1356
+ children: i("stackTrace.moreFrames", { count: l.length - t })
1357
+ })]
1358
+ })]
1359
+ });
1360
+ });
1361
+ rt.displayName = "StackTrace";
1362
+ var it = (0, X.memo)((0, X.forwardRef)((e, t) => {
1363
+ let { sx: n, icon: r = (0, Z.jsx)(o, {
1364
+ iconKey: "Error",
1365
+ style: { fontSize: 48 }
1366
+ }), error: i, hideStackTrace: a = !1, stackTraceExpanded: s = !1, fullscreen: c = !1, ...l } = e, u = w(), d = (0, X.useMemo)(() => at(i, a, s, c, u), [
1367
+ i,
1368
+ a,
1369
+ s,
1370
+ c,
1371
+ u
1372
+ ]);
1373
+ return (0, X.useMemo)(() => (0, Z.jsx)(M, {
1374
+ ref: t,
1375
+ sx: {
1376
+ boxSizing: "border-box",
1377
+ alignItems: "center",
1378
+ justifyContent: "center",
1379
+ display: "flex",
1380
+ flexDirection: "row",
1381
+ overflow: "hidden",
1382
+ width: "100%",
1383
+ height: "100%",
1384
+ ...n
1385
+ },
1386
+ ...l,
1387
+ children: (0, Z.jsxs)(M, {
1388
+ sx: {
1389
+ display: "flex",
1390
+ flex: "1 1 100%",
1391
+ height: "100%",
1392
+ alignItems: "center",
1393
+ justifyContent: "center",
1394
+ boxSizing: "border-box",
1395
+ position: "relative"
1396
+ },
1397
+ children: [(0, Z.jsx)(M, {
1398
+ className: "backdrop",
1399
+ sx: {
1400
+ backdropFilter: "blur(4px)",
1401
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1402
+ zIndex: -1,
1403
+ position: "absolute",
1404
+ width: "100%",
1405
+ height: "100%",
1406
+ boxSizing: "border-box"
1407
+ }
1408
+ }), (0, Z.jsx)(F, {
1409
+ elevation: 0,
1410
+ sx: {
1411
+ display: "flex",
1412
+ flexDirection: "column",
1413
+ justifyContent: "center",
1414
+ alignItems: "center",
1415
+ rowGap: "8px",
1416
+ alignSelf: "center",
1417
+ marginBottom: "5%",
1418
+ backgroundColor: (e) => e.palette.background.paper,
1419
+ color: (e) => e.palette.text.primary,
1420
+ border: (e) => `1px solid ${e.palette.divider}`,
1421
+ padding: (e) => e.spacing(3),
1422
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1423
+ boxShadow: (e) => e.shadows[3],
1424
+ zIndex: 1
1425
+ },
1426
+ children: (0, Z.jsx)(M, {
1427
+ sx: {
1428
+ display: "flex",
1429
+ flexDirection: "column",
1430
+ alignItems: "center",
1431
+ gap: (e) => e.spacing(2),
1432
+ width: "100%",
1433
+ maxWidth: c ? void 0 : "600px"
1434
+ },
1435
+ children: (0, Z.jsxs)(M, {
1436
+ sx: {
1437
+ display: "flex",
1438
+ flexDirection: "row",
1439
+ alignItems: "flex-start",
1440
+ gap: (e) => e.spacing(2)
1441
+ },
1442
+ children: [(0, Z.jsx)(M, {
1443
+ sx: {
1444
+ display: "flex",
1445
+ color: (e) => e.palette.error.main
1446
+ },
1447
+ children: typeof r == "string" ? (0, Z.jsx)(o, {
1448
+ iconKey: r,
1449
+ style: { fontSize: 48 }
1450
+ }) : r
1451
+ }), d]
1452
+ })
1453
+ })
1454
+ })]
1455
+ })
1456
+ }), [
1457
+ n,
1458
+ r,
1459
+ d
1460
+ ]);
1461
+ }));
1462
+ it.displayName = "StackTraceErrorPanel";
1463
+ var at = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
1464
+ if ((0, X.isValidElement)(e)) return e;
1465
+ if (e instanceof Error) return (0, Z.jsxs)(M, {
1466
+ sx: {
1467
+ display: "flex",
1468
+ flexDirection: "column",
1469
+ minWidth: r ? "70vw" : "300px",
1470
+ maxWidth: r ? void 0 : "500px",
1471
+ width: "100%"
1472
+ },
1473
+ children: [
1474
+ (0, Z.jsx)(K, {
1475
+ variant: "caption",
1476
+ component: "div",
1477
+ sx: {
1478
+ fontSize: "0.875rem",
1479
+ lineHeight: 1.43,
1480
+ mb: 1
1481
+ },
1482
+ children: e.message
1483
+ }),
1484
+ e.cause ? (0, Z.jsx)(K, {
1485
+ variant: "caption",
1486
+ component: "div",
1487
+ sx: {
1488
+ fontSize: "0.875rem",
1489
+ lineHeight: 1.43,
1490
+ letterSpacing: "0.01071em",
1491
+ mb: 1,
1492
+ opacity: .8
1493
+ },
1494
+ children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
1495
+ }) : null,
1496
+ !t && (0, Z.jsx)(rt, {
1497
+ error: e,
1498
+ hideLineNumbers: !0
1499
+ })
1500
+ ]
1501
+ });
1502
+ let a = e === "string" ? e : `Unknown Error: ${String(e)}`;
1503
+ return (0, Z.jsx)(K, {
1504
+ variant: "caption",
1505
+ component: "div",
1506
+ sx: {
1507
+ fontSize: "0.875rem",
1508
+ lineHeight: 1.43,
1509
+ letterSpacing: "0.01071em"
1510
+ },
1511
+ children: a
1512
+ });
1513
+ }, ot = (0, X.memo)((e) => {
1514
+ let { error: t, ...n } = e, r = x(), i = w(), a = t instanceof Error ? t.message : String(t);
1515
+ return (0, Z.jsx)(it, {
1516
+ hideStackTrace: !0,
1517
+ error: (0, Z.jsxs)(M, {
1518
+ sx: {
1519
+ display: "flex",
1520
+ flexDirection: "column",
1521
+ alignItems: "flex-start",
1522
+ gap: 1
1523
+ },
1524
+ children: [(0, Z.jsx)(K, {
1525
+ variant: "body2",
1526
+ component: "div",
1527
+ children: a
1528
+ }), r ? (0, Z.jsx)(ee, {
1529
+ variant: "outlined",
1530
+ size: "small",
1531
+ onClick: r,
1532
+ children: i("lazyLoad.retry")
1533
+ }) : null]
1534
+ }),
1535
+ ...n
1536
+ });
1537
+ });
1538
+ ot.displayName = "LazyLoadErrorPanel";
1539
+ var st = {
1540
+ Toolbar: "toolbar",
1541
+ Menuitem: "menuitem"
1542
+ }, ct = (e) => {
1543
+ let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
1544
+ return (0, Z.jsx)(M, {
1545
+ className: J("menu", o),
1546
+ sx: {
1547
+ display: "flex",
1548
+ flexDirection: "column",
1549
+ paddingTop: (e) => `${e.shape.borderRadius}px`,
1550
+ paddingBottom: (e) => `${e.shape.borderRadius}px`,
1551
+ ...s
1552
+ },
1553
+ ...c,
1554
+ children: a
1555
+ });
1556
+ }, lt = (e, t, n) => {
1557
+ let r = "";
1558
+ return n && (r = (r ? r + " " : "") + "rotate(180deg)"), (0, Z.jsx)(W, {
1559
+ style: {
1560
+ marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
1561
+ marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
1562
+ transform: r
1563
+ },
1564
+ color: "inherit"
1565
+ });
1566
+ }, ut = (0, X.memo)((0, X.forwardRef)((e, t) => {
1567
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = ct, propsPopper: c, onMount: l, onClosing: u, onClose: f, onOpening: p, onOpen: m, children: h, sx: g, ..._ } = e, v = y(u ?? (() => {}), [u]), b = y(f ?? (() => {}), [f]), x = y(p ?? (() => {}), [p]), S = y(m ?? (() => {}), [m]), [C, w] = (0, X.useState)(), T = (0, X.useRef)(null), E = y((e, t) => {
1568
+ w(e), l?.(T.current, t);
1569
+ }, [l]), D = (0, X.useMemo)(() => {
1570
+ let e = {
1571
+ popupContainer: C,
1572
+ floatReference: o,
1573
+ children: h,
1574
+ ..._
1575
+ }, t = s(e);
1576
+ return (0, Z.jsx)(F, {
1577
+ elevation: 8,
1578
+ ref: T,
1579
+ sx: {
1580
+ display: "flex",
1581
+ overflowX: "hidden",
1582
+ overflowY: "auto",
1583
+ outline: "none",
1584
+ backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
1585
+ border: "1px solid var(--sxl-color-elevated-border, transparent)",
1586
+ "&.MuiPaper-root": (e) => de(e)
1587
+ },
1588
+ tabIndex: 0,
1589
+ children: t
1590
+ });
1591
+ }, [
1592
+ s,
1593
+ h,
1594
+ C,
1595
+ o
1596
+ ]);
1597
+ return (0, Z.jsx)(d, {
1598
+ ref: t,
1599
+ anchorEl: r,
1600
+ anchorPosition: i,
1601
+ label: a,
1602
+ open: n,
1603
+ onMount: E,
1604
+ onOpening: x,
1605
+ onOpen: S,
1606
+ onClosing: v,
1607
+ onClose: b,
1608
+ ...c,
1609
+ children: D
1610
+ });
1611
+ }));
1612
+ ut.displayName = "ExhibitFloatPanel";
1613
+ var dt = (e) => (0, Z.jsx)(ut, { ...e }), ft = (e) => (0, Z.jsx)(f, {
1614
+ renderFloatPanel: dt,
1615
+ createPopupPanel: ct,
1616
+ ...e
1617
+ }), pt = (0, X.memo)((0, X.forwardRef)((e, t) => {
1618
+ let { nestedChildren: n, variant: r, disabled: i, createPopupPanel: a, ...o } = e, s = {
1619
+ disabled: i,
1620
+ createPopupPanel: y((e) => {
1621
+ if (!n || n.length === 0) return (0, Z.jsx)(Z.Fragment, {});
1622
+ let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1623
+ for (let e = 0; e < n.length; e++) {
1624
+ let t = n[e];
1625
+ t && s.push((0, Z.jsx)(pt, {
1626
+ ...o,
1627
+ ...t
1628
+ }, e));
1629
+ }
1630
+ return (0, Z.jsxs)(M, {
1631
+ ref: t,
1632
+ sx: {
1633
+ display: "flex",
1634
+ flexDirection: "column",
1635
+ paddingTop: "4px",
1636
+ paddingBottom: "4px"
1637
+ },
1638
+ children: [
1639
+ "Children here",
1640
+ s,
1641
+ (0, Z.jsx)(St, { children: "Close other children" })
1642
+ ]
1643
+ });
1644
+ }, [n]),
1645
+ ...o
1646
+ };
1647
+ return (0, Z.jsx)(r === st.Toolbar ? wt : Dt, { ...s });
1648
+ })), mt = { placement: "right-start" }, ht = (0, X.memo)((0, X.forwardRef)((e, t) => {
1649
+ let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = mt, label: s, ...l } = e;
1650
+ if (!(0, X.isValidElement)(n)) throw Error("Must supply a child component to enable a context menu.");
1651
+ let u = n, d = (0, X.useMemo)(() => ({
1652
+ ...u?.props,
1653
+ ...l,
1654
+ onContextMenu: (e) => {
1655
+ u?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (l?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
1656
+ }
1657
+ }), [l, u?.props]), f = y(a ?? (() => {}), [a]), [p, m] = (0, X.useState)(null), { reference: h, component: g } = c({
1658
+ label: s ?? "contextMenu",
1659
+ propsPopper: o,
1660
+ parentFloat: i,
1661
+ anchor: { getBoundingClientRect: () => new DOMRect(p?.clientX || 0, p?.clientY || 0) },
1662
+ onClose: () => m(null),
1663
+ createPopupPanel: f
1664
+ });
1665
+ return (0, X.useEffect)(() => {
1666
+ p ? h.open(0) : h.close(0);
1667
+ }, [p]), (0, Z.jsxs)(Z.Fragment, { children: [(0, X.cloneElement)(n, d), g] });
1668
+ })), gt = (0, Z.jsx)(o, {}), _t = (0, Z.jsx)(o, { iconKey: "Check" }), vt = (0, X.memo)((0, X.forwardRef)((e, t) => {
1669
+ let { dense: n = !0, outlined: r = !1, disableHover: a = !1, selected: o, icon: s, propsTooltip: c, children: l, primary: u, sx: d, disabled: f, className: p, onFocus: m, onBlur: h, ...g } = e, [_, v] = (0, X.useState)(!1), y = {
1670
+ marginRight: "0px",
1671
+ padding: n ? "2px" : "7px",
1672
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1673
+ color: (e) => u ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1674
+ border: (e) => `solid ${r ? e.palette.divider : "transparent"} 1px`,
1675
+ "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
1676
+ "&.Mui-selected": {
1677
+ backgroundColor: (e) => O(e.palette.text.primary, e.palette.action.selectedOpacity),
1678
+ border: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px`
1679
+ },
1680
+ "&.Mui-disabled": { border: (e) => `solid ${r ? e.palette.divider : "transparent"} 1px` },
1681
+ "&.Mui-disabled > .icon path": {
1682
+ filter: "grayscale(65%)",
1683
+ opacity: ".8"
1684
+ },
1685
+ "&.Mui-focusVisible": {
1686
+ outline: "solid transparent 1px",
1687
+ border: "1px solid transparent"
1688
+ },
1689
+ ...d
1690
+ }, b = {
1691
+ "&:hover:not(.Mui-disabled, [disabled])": {
1692
+ color: (e) => e.palette.text.primary,
1693
+ border: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px`,
1694
+ "&.Mui-selected": { backgroundColor: (e) => O(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1695
+ "> .outline-hover": { outline: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px` },
1696
+ backgroundColor: (e) => O(e.palette.action.active, e.palette.action.hoverOpacity),
1697
+ "@media (hover: none)": { backgroundColor: "transparent" }
1698
+ },
1699
+ "&.Mui-focusVisible": {
1700
+ outline: (e) => `solid ${e.palette.primary.main} 1px`,
1701
+ border: (e) => `1px solid ${e.palette?.primary?.main}`,
1702
+ zIndex: 1
1703
+ }
1704
+ }, x = y;
1705
+ a || (x = i.mergeContentful(y, b));
1706
+ let S = (0, X.useMemo)(() => {
1707
+ let e = typeof s == "function" ? s() : s;
1708
+ return e === null ? e : e || (o === void 0 ? gt : _t);
1709
+ }, [s, o]), C = (0, Z.jsxs)(z, {
1710
+ component: "div",
1711
+ ref: t,
1712
+ className: J({
1713
+ "Mui-focusVisible": _,
1714
+ "Mui-selected": o,
1715
+ "Mui-disabled": f
1716
+ }, p),
1717
+ onFocus: (e) => {
1718
+ v(!0), m?.(e);
1719
+ },
1720
+ onBlur: (e) => {
1721
+ v(!1), h?.(e);
1722
+ },
1723
+ size: "small",
1724
+ TouchRippleProps: { center: !1 },
1725
+ sx: x,
1726
+ edge: "end",
1727
+ ...g,
1728
+ disabled: f || !1,
1729
+ children: [S, l]
1730
+ });
1731
+ if (c) {
1732
+ if (c.simple && c.label && !c.disabled) {
1733
+ let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips: s, ref: l, ...u } = c;
1734
+ C = (0, Z.jsx)(te, {
1735
+ disableInteractive: !0,
1736
+ title: e ?? "",
1737
+ ...u,
1738
+ children: (0, Z.jsx)(M, {
1739
+ sx: { display: "flex" },
1740
+ children: C
1741
+ })
1742
+ });
1743
+ } else C = (0, Z.jsx)(G, {
1744
+ children: C,
1745
+ ...c
1746
+ });
1747
+ }
1748
+ return C;
1749
+ })), yt = (0, Z.jsx)(o, {}), bt = {
1750
+ marginLeft: "4px",
1751
+ marginRight: "4px",
1752
+ paddingLeft: "6px",
1753
+ paddingRight: "18px"
1754
+ }, xt = (e) => e.icon, St = (0, X.memo)((0, X.forwardRef)((e, t) => {
1755
+ let { icon: n = yt, renderIcon: r = xt, className: i, onFocus: a, selected: o, onBlur: s, onMouseOver: c, onMouseOut: u, onMouseEnter: d, disabled: f, children: p, sx: m, propsTooltip: h, chips: g, primary: _, ...v } = e, y = l(), [b, x] = (0, X.useState)(!1), [S, C] = (0, X.useState)(!1), w = (0, X.useMemo)(() => {
1756
+ let e = r?.({
1757
+ icon: n,
1758
+ disabled: f,
1759
+ selected: o
1760
+ });
1761
+ return e ? (0, Z.jsx)(Ie, {
1762
+ className: J({
1763
+ "Mui-focusVisible": b,
1764
+ "Mui-hovered": S
1765
+ }),
1766
+ sx: {
1767
+ "& .MuiSvgIcon-root": { color: (e) => _ ? void 0 : e.palette.text.icon ?? e.palette.action.active },
1768
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e) => e.palette.text.primary } }
1769
+ },
1770
+ children: e
1771
+ }) : null;
1772
+ }, [
1773
+ r,
1774
+ f,
1775
+ n,
1776
+ b,
1777
+ S,
1778
+ _,
1779
+ o
1780
+ ]), T = (0, Z.jsxs)(Pe, {
1781
+ ref: t,
1782
+ role: "menuitem",
1783
+ disabled: f,
1784
+ onMouseOver: (e) => {
1785
+ c?.(e), e.isDefaultPrevented() || C(!0);
1786
+ },
1787
+ onMouseOut: (e) => {
1788
+ u?.(e), e.isDefaultPrevented() || C(!1);
1789
+ },
1790
+ onMouseEnter: (e) => {
1791
+ d?.(e), e.isDefaultPrevented() || y?.closeChild();
1792
+ },
1793
+ TouchRippleProps: { center: !1 },
1794
+ className: J({
1795
+ "Mui-focusVisible": b,
1796
+ "Mui-hovered": S
1797
+ }, i),
1798
+ onFocus: (e) => {
1799
+ a?.(e), x(!0);
1800
+ },
1801
+ onBlur: (e) => {
1802
+ s?.(e), x(!1);
1803
+ },
1804
+ sx: {
1805
+ flex: "1 1 100%",
1806
+ whiteSpace: "nowrap",
1807
+ fontFamily: (e) => e.typography.fontFamily,
1808
+ fontWeight: 400,
1809
+ lineHeight: 1.5,
1810
+ paddingTop: "2px",
1811
+ paddingBottom: "2px",
1812
+ ...bt,
1813
+ borderRadius: "4px",
1814
+ fontSize: "0.875em",
1815
+ "@media (pointer: coarse)": { fontSize: "1em" },
1816
+ "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
1817
+ "&.Mui-selected": { color: (e) => e.palette.text.primary },
1818
+ color: (e) => e.palette.text.secondary,
1819
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1820
+ ...m
1821
+ },
1822
+ ...v,
1823
+ children: [
1824
+ w,
1825
+ p,
1826
+ g ? (0, Z.jsx)(H, { chips: g }) : null
1827
+ ]
1828
+ });
1829
+ return h && (T = (0, Z.jsx)(G, {
1830
+ children: T,
1831
+ placement: "right-start",
1832
+ ...h
1833
+ })), T;
1834
+ })), Ct = (0, X.memo)((0, X.forwardRef)((e, t) => {
1835
+ let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1836
+ return (0, Z.jsx)(Z.Fragment, { children: (0, Z.jsx)(K, {
1837
+ ref: t,
1838
+ variant: a,
1839
+ component: "div",
1840
+ sx: {
1841
+ userSelect: "none",
1842
+ fontWeight: "500",
1843
+ paddingLeft: "8px",
1844
+ paddingTop: a === "subtitle1" ? "2px" : void 0,
1845
+ paddingBottom: a === "subtitle1" ? "2px" : void 0,
1846
+ color: (e) => i ? void 0 : e.palette.text.secondary,
1847
+ ...r
1848
+ },
1849
+ ...o,
1850
+ children: n
1851
+ }) });
1852
+ })), wt = (0, X.memo)((0, X.forwardRef)((e, t) => {
1853
+ let { dense: n = !0, outlined: r = !1, label: a, showLabel: o = !1, selected: s = !1, onQuickClick: l, parentFloat: u, createPopupPanel: d, propsPopup: f, onPopupOpen: p, onPopupClose: m, propsQuickButton: h, renderQuickButton: g, tooltip: _ = "", createTooltip: v, icon: x, disabled: S, propsButton: C = i.EmptyObject, disableHover: w, ripple: T, primary: E, children: D, sx: k, className: A, ...N } = e, P = j(), F = (0, X.useMemo)(() => {
1854
+ let e = (e, t, n, i = n) => {
1855
+ let a = typeof r == "boolean" ? null : r[e];
1856
+ return typeof a == "function" ? a(t) : a || (r ? n : i);
1857
+ };
1858
+ return {
1859
+ outline: {
1860
+ color: (t) => e("color", t, t.palette.divider, "transparent"),
1861
+ hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
1862
+ focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
1863
+ },
1864
+ active: P.palette.mode === "dark" ? P.palette.text.secondary : P.palette.text.primary,
1865
+ text: P.palette.text.icon ?? P.palette.action.active
1866
+ };
1867
+ }, [r, P]), [I, L] = (0, X.useState)(!1), [R, B] = (0, X.useState)(!1), [ee, V] = (0, X.useState)(!1), ne = (0, X.useRef)(null), re = (0, X.useRef)(null), H = c({
1868
+ anchor: ne.current,
1869
+ label: a,
1870
+ createPopupPanel: d,
1871
+ parentFloat: u,
1872
+ propsPopper: f?.propsPopper,
1873
+ onClose: () => {
1874
+ L(!1), m?.();
1875
+ },
1876
+ onOpen: () => {
1877
+ L(!0), p?.();
1878
+ }
1879
+ }), U = y((e) => {
1880
+ l?.(e), H.reference.close(0);
1881
+ }, [l, H]), ie = y(() => {
1882
+ I ? H.reference.close(0) : H.reference.open(0);
1883
+ }, [
1884
+ I,
1885
+ H,
1886
+ u,
1887
+ a
1888
+ ]), W = (0, X.useMemo)(() => {
1889
+ let e = {
1890
+ "&.bordered": {
1891
+ borderWidth: "1px",
1892
+ borderRadius: "0px",
1893
+ borderTopStyle: "solid",
1894
+ borderBottomStyle: "solid",
1895
+ borderColor: (e) => F.outline.color(e),
1896
+ "&.Mui-focusVisible": { border: (e) => `1px solid ${F.outline.focusColor(e)} !important` },
1897
+ "&:hover:not(.Mui-disabled, [disabled])": {
1898
+ borderColor: () => w ? "transparent" : void 0,
1899
+ backgroundColor: () => w ? "transparent" : void 0
1900
+ },
1901
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1902
+ "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1903
+ "&.left": {
1904
+ borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
1905
+ borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
1906
+ borderLeftStyle: "solid"
1907
+ },
1908
+ "&.hard-right": {
1909
+ borderRightStyle: "solid",
1910
+ borderRightWidth: "1px",
1911
+ borderRightColor: (e) => F.outline.color(e)
1912
+ },
1913
+ "&.right": {
1914
+ borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
1915
+ borderBottomRightRadius: (e) => `${e.shape.borderRadius}px`,
1916
+ borderRightStyle: "solid"
1917
+ },
1918
+ "&.divider": { borderLeftWidth: "0px !important" }
1919
+ },
1920
+ "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
1921
+ }, t = { "&.Mui-selected": {
1922
+ backgroundColor: (e) => O(e.palette.primary.main, e.palette.action.selectedOpacity),
1923
+ "&:hover:not(.Mui-disabled)": {
1924
+ backgroundColor: (e) => O(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1925
+ "@media (hover: none)": { backgroundColor: (e) => O(e.palette.primary.main, e.palette.action.selectedOpacity) }
1926
+ }
1927
+ } }, r = {
1928
+ maxHeight: "100%",
1929
+ "&.Mui-selected": {
1930
+ backgroundColor: (e) => O(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1931
+ "&:hover:not(.Mui-disabled)": {
1932
+ backgroundColor: (e) => O(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1933
+ "@media (hover: none)": { backgroundColor: (e) => O(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1934
+ }
1935
+ },
1936
+ "&:hover:not(.Mui-disabled, [disabled])": {
1937
+ color: (e) => e.palette.text.primary,
1938
+ ...w ? null : {
1939
+ backgroundColor: (e) => O(e.palette.action.active, e.palette.action.hoverOpacity),
1940
+ "@media (hover: none)": { backgroundColor: "transparent" }
1941
+ }
1942
+ },
1943
+ backgroundColor: () => w ? "transparent" : void 0,
1944
+ color: (e) => e.palette.text.icon,
1945
+ "&.Mui-disabled > .icon path": {
1946
+ filter: "grayscale(65%)",
1947
+ opacity: ".8"
1948
+ },
1949
+ padding: () => n ? "2px 3px" : "7px",
1950
+ marginRight: "0"
1951
+ }, a = i.mergeContentful(r, e), o = i.mergeContentful(a, t), s = i.mergeContentful(r, e);
1952
+ return {
1953
+ quickButtonStyling: a,
1954
+ openQuickButtonStyling: o,
1955
+ compoundStyling: s,
1956
+ openCompoundStyling: i.mergeContentful(s, t)
1957
+ };
1958
+ }, [F, w]), ae = y((e) => {
1959
+ let { children: t, ref: n, ...r } = e;
1960
+ return (0, Z.jsx)(te, {
1961
+ ref: n,
1962
+ ...r,
1963
+ disableInteractive: !0,
1964
+ children: t
1965
+ });
1966
+ }, []), oe = l || g, G = oe && (h?.tooltip || h?.createTooltip), K = (e) => {
1967
+ let { tooltip: t, createTooltip: n, sx: r, ...i } = e, a = (0, Z.jsx)(z, {
1968
+ sx: { ...r },
1969
+ component: "div",
1970
+ ...i
1971
+ });
1972
+ return G && (a = (n ?? ae)({
1973
+ title: I ? "" : t ?? _,
1974
+ children: (0, Z.jsx)("div", { children: a })
1975
+ }, I)), a;
1976
+ }, q = { onKeyDown: (e) => {
1977
+ e.keyCode === b.Space ? ie() : e.keyCode === b.F4 || e.keyCode === b.Down ? H.reference.open(0) : e.keyCode === b.Up && H.reference.close(0);
1978
+ } }, se = (0, Z.jsx)(Z.Fragment, {}), ce = (0, X.useMemo)(() => Ve((typeof x == "function" ? x() : x) ?? (oe ? Tt : null), o ? a : null), [
1979
+ x,
1980
+ a,
1981
+ o,
1982
+ oe
1983
+ ]);
1984
+ if (oe) {
1985
+ let e = I ? W.openQuickButtonStyling : W.quickButtonStyling, t = (g || K)({
1986
+ tabIndex: -1,
1987
+ disabled: S,
1988
+ size: "small",
1989
+ edge: "end",
1990
+ onMouseEnter: () => {
1991
+ H.reference.parent?.closeChild();
1992
+ },
1993
+ onMouseDown: (e) => {
1994
+ e.button === 0 && (e.preventDefault(), U(e));
1995
+ },
1996
+ disableRipple: !!T,
1997
+ children: (0, Z.jsxs)(Z.Fragment, { children: [ce, T] }),
1998
+ ...h,
1999
+ className: J({
2000
+ "Mui-focusVisible": R || I,
2001
+ "Mui-selected": s,
2002
+ "Mui-hovered": ee || I,
2003
+ "Mui-disabled": S,
2004
+ bordered: !0,
2005
+ left: !0,
2006
+ "hard-right": !0
2007
+ }, h?.className),
2008
+ sx: {
2009
+ ...W.quickButtonStyling,
2010
+ height: "100%",
2011
+ ...h?.sx
2012
+ }
2013
+ }), r = lt(!0, n, I);
2014
+ G && (r = (v ?? ae)({
2015
+ title: I ? "" : _,
2016
+ children: r
2017
+ }, I)), se = (0, Z.jsxs)(Z.Fragment, { children: [t, (0, Z.jsx)(z, {
2018
+ ref: re,
2019
+ component: "div",
2020
+ className: J({
2021
+ "Mui-selected": I,
2022
+ "Mui-hovered": ee || I,
2023
+ "Mui-disabled": S,
2024
+ "Mui-focusVisible": R || I,
2025
+ bordered: !0,
2026
+ right: !0,
2027
+ divider: !0
2028
+ }),
2029
+ sx: {
2030
+ paddingLeft: (n ? 0 : 2) + "px",
2031
+ paddingRight: (n ? 0 : 2) + "px",
2032
+ width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
2033
+ ...W.quickButtonStyling,
2034
+ ...e
2035
+ },
2036
+ TouchRippleProps: { center: !1 },
2037
+ tabIndex: -1,
2038
+ disabled: S,
2039
+ size: "small",
2040
+ edge: "end",
2041
+ onMouseDown: (e) => {
2042
+ e.button === 0 && (e.preventDefault(), ie());
2043
+ },
2044
+ children: r
2045
+ })] });
2046
+ } else {
2047
+ let e = I ? W.openCompoundStyling : W.compoundStyling;
2048
+ se = (0, Z.jsx)(vt, {
2049
+ ref: re,
2050
+ tabIndex: -1,
2051
+ disabled: S,
2052
+ size: "small",
2053
+ icon: ce,
2054
+ className: J({
2055
+ "Mui-selected": I || s,
2056
+ "Mui-hovered": ee,
2057
+ "Mui-disabled": S,
2058
+ "Mui-focusVisible": R || I,
2059
+ bordered: !0,
2060
+ left: !0,
2061
+ right: !0
2062
+ }),
2063
+ sx: {
2064
+ flex: "1 1 auto",
2065
+ ...W.quickButtonStyling,
2066
+ ...e
2067
+ },
2068
+ onMouseDown: (e) => {
2069
+ e.button === 0 && (e.preventDefault(), ie());
2070
+ },
2071
+ children: lt(!1, n, I)
2072
+ });
2073
+ }
2074
+ let { className: le, sx: ue, ...Y } = C, de = (0, Z.jsx)(M, {
2075
+ onFocus: () => B(!0),
2076
+ onBlur: () => B(!1),
2077
+ onMouseOver: () => V(!0),
2078
+ onMouseOut: () => V(!1),
2079
+ ...q,
2080
+ "aria-label": "split button",
2081
+ ref: ne,
2082
+ tabIndex: S ? void 0 : 0,
2083
+ className: J(le, "split-button-root", {
2084
+ "Mui-focusVisible": R || I,
2085
+ "Mui-selected": I || s,
2086
+ "Mui-hovered": ee,
2087
+ "Mui-disabled": S
2088
+ }),
2089
+ sx: {
2090
+ display: "flex",
2091
+ flex: "1 1 100%",
2092
+ alignItems: "stretch",
2093
+ width: "fit-content",
2094
+ "&:not(.Mui-disabled)": { cursor: "pointer" },
2095
+ marginLeft: r ? "1px" : "0px",
2096
+ marginRight: r ? "1px" : "0px",
2097
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
2098
+ "&.Mui-focusVisible": {
2099
+ outline: (e) => `solid ${e.palette.primary.main} 1px`,
2100
+ zIndex: 2
2101
+ },
2102
+ ...ue
2103
+ },
2104
+ ...Y,
2105
+ children: se
2106
+ });
2107
+ return G || (de = (v ?? ae)({
2108
+ title: I ? "" : _,
2109
+ children: de
2110
+ }, I)), (0, Z.jsxs)(M, {
2111
+ className: J(A, "popupIconButton"),
2112
+ ref: t,
2113
+ ...N,
2114
+ sx: {
2115
+ zIndex: R || I ? 2 : void 0,
2116
+ display: "flex",
2117
+ alignItems: "center",
2118
+ ...k
2119
+ },
2120
+ children: [de, H.component]
2121
+ });
2122
+ }));
2123
+ wt.displayName = "ExhibitPopupIconButton";
2124
+ var Tt = (0, Z.jsx)(o, { iconKey: "Check" }), Et = {}, Dt = (0, X.memo)((0, X.forwardRef)((e, t) => {
2125
+ let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, createPopupPanel: s, propsPopup: l = Et, onPopupOpen: u, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: m = "", createTooltip: h, icon: g, disabled: _, ripple: v, primary: b, children: x, sx: S, ...C } = e, [w, T] = (0, X.useState)(!1), [D, O] = (0, X.useState)(!1), [k, A] = (0, X.useState)(!1), [j, N] = (0, X.useState)(!1), P = (0, X.useRef)(null), F = (0, X.useRef)(null), I = (0, X.useMemo)(() => {
2126
+ if (!l) return;
2127
+ let { propsPopper: e } = l;
2128
+ return {
2129
+ placement: "right-start",
2130
+ offsets: [-4, -2],
2131
+ ...e
2132
+ };
2133
+ }, [l]), L = c({
2134
+ anchor: P.current,
2135
+ label: r,
2136
+ createPopupPanel: s,
2137
+ parentFloat: o,
2138
+ propsPopper: I,
2139
+ onClose: () => {
2140
+ T(!1), d?.();
2141
+ },
2142
+ onOpen: () => {
2143
+ T(!0), u?.();
2144
+ }
2145
+ }), R = y((e) => {
2146
+ e.button === 0 && (a?.(e), L.reference.close(0));
2147
+ }, [a]), z = (0, Z.jsx)(le, {}), B = { "&.Mui-selected": {
2148
+ color: (e) => e.palette.text.primary,
2149
+ "& svg * ": { color: (e) => e.palette.text.primary }
2150
+ } }, ee = (0, X.useCallback)((e) => {
2151
+ let { children: t, ref: n, ...r } = e;
2152
+ return (0, Z.jsx)(te, {
2153
+ ref: n,
2154
+ ...r,
2155
+ disableInteractive: !0,
2156
+ children: t
2157
+ });
2158
+ }, []), V = a || p, ne = (e) => {
2159
+ let { tooltip: t, createTooltip: n, ...i } = e;
2160
+ return (0, Z.jsxs)(St, {
2161
+ icon: g,
2162
+ disableRipple: !!v,
2163
+ className: J({ "Mui-hovered": k }),
2164
+ sx: {
2165
+ flex: "1 1 100%",
2166
+ ...B
2167
+ },
2168
+ ...i,
2169
+ children: [r, v]
2170
+ });
2171
+ }, re = {
2172
+ onFocus: () => {
2173
+ O(!0);
2174
+ },
2175
+ onBlur: () => O(!1),
2176
+ onMouseOver: () => {
2177
+ A(!0);
2178
+ },
2179
+ onMouseLeave: () => {
2180
+ A(!1);
2181
+ },
2182
+ onMouseEnter: (e) => {
2183
+ e.preventDefault(), L.reference.open();
2184
+ },
2185
+ onMouseDown: (e) => {
2186
+ e.button === 0 && e.preventDefault();
2187
+ }
2188
+ }, H = (0, Z.jsx)(Z.Fragment, {});
2189
+ if (V) {
2190
+ let e = (p || ne)({
2191
+ tabIndex: -1,
2192
+ disabled: _,
2193
+ onMouseEnter: () => {
2194
+ L.reference.parent?.closeChild();
2195
+ },
2196
+ onMouseDown: (e) => {
2197
+ e.button === 0 && (e.preventDefault(), R(e));
2198
+ },
2199
+ className: J("quick-left", {}, f?.className),
2200
+ ...f
2201
+ });
2202
+ H = (0, Z.jsxs)(Z.Fragment, { children: [
2203
+ e,
2204
+ (0, Z.jsx)(E, {
2205
+ sx: {
2206
+ ml: "0px",
2207
+ mr: "0px"
2208
+ },
2209
+ orientation: "vertical",
2210
+ variant: "middle",
2211
+ flexItem: !0
2212
+ }),
2213
+ (0, Z.jsx)(Pe, {
2214
+ ref: F,
2215
+ className: J({
2216
+ "Mui-selected": w,
2217
+ "Mui-hovered": k
2218
+ }),
2219
+ sx: {
2220
+ borderTopLeftRadius: "0px",
2221
+ borderBottomLeftRadius: "0px",
2222
+ borderTopRightRadius: "4px",
2223
+ borderBottomRightRadius: "4px",
2224
+ padding: "0",
2225
+ paddingTop: "2px",
2226
+ paddingBottom: "2px",
2227
+ marginLeft: "0px",
2228
+ marginRight: "6px",
2229
+ color: (e) => b ? void 0 : e.palette.text.secondary,
2230
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
2231
+ ...B
2232
+ },
2233
+ tabIndex: -1,
2234
+ disabled: _,
2235
+ ...re,
2236
+ children: (0, Z.jsx)(M, {
2237
+ className: "expand-icon",
2238
+ sx: {
2239
+ flex: "none",
2240
+ display: "flex",
2241
+ border: "1px solid transparent",
2242
+ paddingTop: "1px",
2243
+ paddingBottom: "1px",
2244
+ color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
2245
+ },
2246
+ onMouseOver: (e) => {
2247
+ e.preventDefault(), N(!0);
2248
+ },
2249
+ onMouseLeave: () => {
2250
+ N(!1);
2251
+ },
2252
+ onClick: (e) => {
2253
+ e.preventDefault(), w ? L.reference.close() : L.reference.open();
2254
+ },
2255
+ children: z
2256
+ })
2257
+ })
2258
+ ] });
2259
+ } else H = (0, Z.jsxs)(St, {
2260
+ ref: F,
2261
+ tabIndex: -1,
2262
+ disabled: _,
2263
+ icon: g,
2264
+ className: J({
2265
+ "Mui-selected": w || n,
2266
+ "Mui-hovered": k
2267
+ }),
2268
+ sx: {
2269
+ flex: "1 1 100%",
2270
+ paddingRight: "0px",
2271
+ ...B
2272
+ },
2273
+ onClick: (e) => {
2274
+ e.preventDefault(), w ? L.reference.close() : L.reference.open();
2275
+ },
2276
+ ...re,
2277
+ children: [(0, Z.jsx)("div", {
2278
+ style: { flex: "1 1 100%" },
2279
+ children: r
2280
+ }), (0, Z.jsx)(M, {
2281
+ className: "expand-icon",
2282
+ sx: {
2283
+ flex: "none",
2284
+ display: "flex",
2285
+ color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
2286
+ },
2287
+ children: z
2288
+ })]
2289
+ });
2290
+ let U = (0, Z.jsx)(M, {
2291
+ "aria-label": "split button",
2292
+ ref: P,
2293
+ tabIndex: _ ? void 0 : 0,
2294
+ className: J({
2295
+ "Mui-disabled": _,
2296
+ "Mui-selected": w,
2297
+ "Mui-focusVisible": D || w,
2298
+ "Mui-hovered": k
2299
+ }),
2300
+ sx: {
2301
+ display: "flex",
2302
+ flex: "1 1 100%",
2303
+ alignItems: "center",
2304
+ width: "fit-content",
2305
+ "& .quick-left": {
2306
+ borderTopRightRadius: "0px",
2307
+ borderBottomRightRadius: "0px",
2308
+ marginRight: "-1px"
2309
+ },
2310
+ "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
2311
+ ...S
2312
+ },
2313
+ ...C,
2314
+ children: H
2315
+ });
2316
+ return V && !j && (f?.tooltip || f?.createTooltip) && (U = (f?.createTooltip ?? ee)({
2317
+ title: w ? "" : U ?? f?.tooltip,
2318
+ children: U
2319
+ }, w)), (0, Z.jsxs)(M, {
2320
+ ref: t,
2321
+ sx: {
2322
+ zIndex: D || w ? 2 : void 0,
2323
+ display: "flex",
2324
+ " .tooltip-wrapper": {
2325
+ display: "flex",
2326
+ flex: "1 1 100%"
2327
+ }
2328
+ },
2329
+ children: [U, L.component]
2330
+ });
2331
+ })), Ot = (0, X.memo)((0, X.forwardRef)((e, t) => {
2332
+ let { onSelectToggle: n, selected: r = !1, label: i, shortcut: a, tabIndex: o = 0, preventFocus: s = !1, ...c } = e;
2333
+ return (0, Z.jsx)(G, {
2334
+ label: i,
2335
+ shortcut: a,
2336
+ children: (0, Z.jsx)(vt, {
2337
+ ref: t,
2338
+ outlined: !1,
2339
+ tabIndex: o,
2340
+ selected: r,
2341
+ onMouseDown: (e) => {
2342
+ s && e.preventDefault();
2343
+ },
2344
+ onClick: () => {
2345
+ n?.(!r);
2346
+ },
2347
+ ...c
2348
+ })
2349
+ });
2350
+ })), kt = (0, Z.jsx)(o, {}), At = (0, Z.jsx)(o, { iconKey: "Check" }), jt = (0, X.memo)((0, X.forwardRef)((e, t) => {
2351
+ let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = (0, X.useMemo)(() => ({
2352
+ display: "flex",
2353
+ border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
2354
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
2355
+ backgroundColor: (e) => {
2356
+ if (r) return O(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
2357
+ },
2358
+ ...a
2359
+ }), [a]), c = n;
2360
+ return c === null && (c = kt), c ||= At, (0, Z.jsx)(M, {
2361
+ ref: t,
2362
+ sx: s,
2363
+ ...o,
2364
+ children: c
2365
+ });
2366
+ }));
2367
+ ie();
2368
+ var Q, Mt = {
2369
+ inline: null,
2370
+ popup: []
2371
+ }, Nt = (0, X.memo)((0, X.forwardRef)((e, t) => {
2372
+ let { children: n, sx: r, ...i } = e, a = w(), s = v(t, () => ({}), []), [c, u] = T(), d = (0, X.useRef)(null), f = (0, X.useRef)(null), [p, m] = (0, X.useReducer)((e) => e + 1, 0), [h, g] = (0, X.useState)(null), [_, y] = (0, X.useState)(null), b = _?.popup ?? null, x = (0, X.useRef)(0), [S, C] = (0, X.useState)(!1), E = (0, X.useRef)(!1), D = l(), O = (0, X.useRef)(D);
2373
+ O.current = D;
2374
+ let k = (0, X.useCallback)(() => {
2375
+ O.current?.closeChild(0);
2376
+ }, []), A = (0, X.useCallback)(() => {
2377
+ E.current = !0, C(!0);
2378
+ }, []), j = (0, X.useCallback)(() => {
2379
+ E.current = !1, C(!1);
2380
+ }, []), N = (0, X.useRef)(null), P = (0, X.useRef)(/* @__PURE__ */ new Map()), F = (0, X.useCallback)(() => {
2381
+ P.current.clear(), y(null), m();
2382
+ }, []);
2383
+ (0, X.useLayoutEffect)(() => {
2384
+ f.current = { refs: [] };
2385
+ let e = [], t = X.Children.toArray(n), r = 0;
2386
+ t.forEach((n, i) => {
2387
+ e.push((0, Z.jsx)(M, {
2388
+ sx: {
2389
+ display: "flex",
2390
+ flex: "0 0 auto"
2391
+ },
2392
+ ref: (e) => {
2393
+ r++, r === t.length && m();
2394
+ let n = { current: null };
2395
+ n.current = e, f.current.refs[i] = n;
2396
+ },
2397
+ children: n
2398
+ }, i));
2399
+ }), g(e);
2400
+ }, [n, u]), (0, X.useLayoutEffect)(() => {
2401
+ if (!h) return;
2402
+ let e = f.current?.refs ?? [], t = e.length;
2403
+ if (!s.current || t === 0) return void y(null);
2404
+ let n = s.current?.getBoundingClientRect(), r = [], i = [], a = () => {
2405
+ let n = N.current;
2406
+ n ? n.disconnect() : n = N.current = new ResizeObserver((e) => {
2407
+ for (let t = 0; t < e.length; t++) {
2408
+ let n = e[t].target;
2409
+ if (!n.isConnected) continue;
2410
+ let r = P.current.get(n);
2411
+ if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void F();
2412
+ }
2413
+ }), P.current.clear();
2414
+ for (let r = 0; r < t; r++) {
2415
+ let t = e[r]?.current;
2416
+ t && (P.current.set(t, t.getBoundingClientRect().width), n.observe(t));
2417
+ }
2418
+ }, o = 0, c = !1;
2419
+ for (let r = 0; !c && r < t; r++) {
2420
+ let t = e[r];
2421
+ if (!t) continue;
2422
+ if (!t.current) {
2423
+ c = !0;
2424
+ continue;
2425
+ }
2426
+ let i = t.current.getBoundingClientRect();
2427
+ o += i?.width, o > n.width && (c = !0);
2428
+ }
2429
+ if (!c) return a(), E.current && k(), void y(Mt);
2430
+ let l = d.current?.getBoundingClientRect();
2431
+ l?.width && (x.current = l.width);
2432
+ let u = n.width - x.current;
2433
+ o = 0;
2434
+ for (let n = 0; n < t; n++) {
2435
+ let t = e[n], a = !1;
2436
+ if (t.current) {
2437
+ let e = t.current.getBoundingClientRect();
2438
+ o += e?.width, o <= u && (a = !0);
2439
+ }
2440
+ a ? r.push(h[n]) : i.push(h[n]);
2441
+ }
2442
+ a(), y({
2443
+ inline: r,
2444
+ popup: i
2445
+ });
2446
+ }, [
2447
+ n,
2448
+ h,
2449
+ u,
2450
+ p
2451
+ ]), (0, X.useLayoutEffect)(() => () => {
2452
+ N.current?.disconnect(), N.current = null;
2453
+ }, []);
2454
+ let I = (0, X.useCallback)((e) => {
2455
+ let t = [], n = b?.length ?? 0;
2456
+ for (let e = 0; e < n; e++) {
2457
+ let n = X.Children.toArray(b[e])[0];
2458
+ X.Children.toArray(n.props.children?.props?.children ?? n.props.children).forEach((n, r) => {
2459
+ let i = n, a = {
2460
+ ...i.props,
2461
+ key: `overflow-${e}-${r}${i.key ?? ""}`
2462
+ }, o = (0, X.cloneElement)(i, a);
2463
+ t.push(o);
2464
+ });
2465
+ }
2466
+ return ct({
2467
+ ...e,
2468
+ children: (0, Z.jsx)(M, {
2469
+ className: "overflow-palette-popup-panel",
2470
+ sx: {
2471
+ display: "flex",
2472
+ flexDirection: "row",
2473
+ flexWrap: "wrap",
2474
+ rowGap: (e) => e.spacing(.25),
2475
+ paddingTop: (e) => e.spacing(.5),
2476
+ paddingBottom: (e) => e.spacing(.5),
2477
+ paddingLeft: (e) => e.spacing(1),
2478
+ paddingRight: (e) => e.spacing(1),
2479
+ overflow: "hidden"
2480
+ },
2481
+ children: t
2482
+ })
2483
+ });
2484
+ }, [b]), L = se([
2485
+ s,
2486
+ c,
2487
+ t
2488
+ ]);
2489
+ return (0, Z.jsxs)(M, {
2490
+ className: "overflow-palette",
2491
+ sx: {
2492
+ display: "flex",
2493
+ flexDirection: "row",
2494
+ flexWrap: "nowrap",
2495
+ flex: "1 1 100%",
2496
+ width: "100%",
2497
+ maxWidth: "100%",
2498
+ minWidth: 0,
2499
+ overflow: "hidden",
2500
+ ...r
2501
+ },
2502
+ ref: L,
2503
+ ...i,
2504
+ children: [(0, Z.jsx)(M, {
2505
+ sx: {
2506
+ flexDirection: "row",
2507
+ display: "flex",
2508
+ flexWrap: "nowrap",
2509
+ maxWidth: "100%",
2510
+ flex: "1 1 100%",
2511
+ minWidth: 0,
2512
+ overflow: "hidden",
2513
+ alignItems: "center"
2514
+ },
2515
+ children: _?.inline ?? h
2516
+ }), (0, Z.jsx)(M, {
2517
+ className: "overflow-palette-popup-button",
2518
+ sx: {
2519
+ display: S || b === null || b.length !== 0 ? "flex" : "none",
2520
+ flex: "0 0 auto",
2521
+ alignItems: "center"
2522
+ },
2523
+ children: (0, Z.jsx)(wt, {
2524
+ createPopupPanel: I,
2525
+ ref: d,
2526
+ onPopupOpen: A,
2527
+ onPopupClose: j,
2528
+ createTooltip: ({ children: e }, t) => (0, Z.jsx)(G, {
2529
+ label: a("overflow.more"),
2530
+ description: a("overflow.moreDescription"),
2531
+ disabled: t,
2532
+ children: e
2533
+ }),
2534
+ icon: (0, Z.jsx)(o, { iconKey: "MoreHorizontal" })
2535
+ })
2536
+ })]
2537
+ });
2538
+ }));
2539
+ function $() {
2540
+ return $ = Object.assign ? Object.assign.bind() : function(e) {
2541
+ for (var t = 1; t < arguments.length; t++) {
2542
+ var n = arguments[t];
2543
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
2544
+ }
2545
+ return e;
2546
+ }, $.apply(null, arguments);
2547
+ }
2548
+ function Pt(e, t) {
2549
+ if (e == null) return {};
2550
+ var n = {};
2551
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
2552
+ if (t.indexOf(r) !== -1) continue;
2553
+ n[r] = e[r];
2554
+ }
2555
+ return n;
2556
+ }
2557
+ var Ft, It = {
2558
+ state: {},
2559
+ updateModal: function() {},
2560
+ hideModal: function() {},
2561
+ destroyModal: function() {},
2562
+ destroyModalsByRootId: function() {},
2563
+ showModal: function() {
2564
+ return {
2565
+ id: "id",
2566
+ hide: function() {},
2567
+ destroy: function() {},
2568
+ update: function() {}
2569
+ };
2570
+ }
2571
+ }, Lt = (0, X.createContext)(void 0);
2572
+ (Ft = Q ||= {}).SHOW = "SHOW", Ft.HIDE = "HIDE", Ft.UPDATE = "UPDATE", Ft.DESTROY = "DESTROY", Ft.DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", Ft.UNKNOWN = "UNKNOWN";
2573
+ var Rt = {};
2574
+ function zt(e, t) {
2575
+ switch (t.type) {
2576
+ case Q.SHOW:
2577
+ var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
2578
+ return $({}, e, ((n = {})[i] = {
2579
+ component: a,
2580
+ props: $({}, o, { open: !0 }),
2581
+ options: s
2582
+ }, n));
2583
+ case Q.HIDE:
2584
+ var c, l = t.payload.id;
2585
+ return e[l] ? $({}, e, ((c = {})[l] = $({}, e[l], { props: $({}, e[l].props, { open: !1 }) }), c)) : e;
2586
+ case Q.UPDATE:
2587
+ var u, d = t.payload, f = d.id, p = d.props;
2588
+ return e[f] ? $({}, e, ((u = {})[f] = $({}, e[f], { props: $({}, e[f].props, p) }), u)) : e;
2589
+ case Q.DESTROY:
2590
+ var m = t.payload.id, h = $({}, e);
2591
+ return delete h[m], h;
2592
+ case Q.DESTROY_BY_ROOT_ID:
2593
+ var g = t.payload.rootId;
2594
+ return Object.keys(e).filter(function(e) {
2595
+ return e.split(".")[0] !== g;
2596
+ }).reduce(function(t, n) {
2597
+ var r;
2598
+ return $({}, t, ((r = {})[n] = e[n], r));
2599
+ }, {});
2600
+ default: throw Error("Unexpected action");
2601
+ }
2602
+ }
2603
+ var Bt = "[ERROR]: Modal ID is missing", Vt = function(e) {
2604
+ e === void 0 && (e = 8);
2605
+ for (var t = [], n = 0; n < e; n++) t[n] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62 * Math.random()));
2606
+ return t.join("");
2607
+ }, Ht = ["open"];
2608
+ function Ut(e) {
2609
+ var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c = X.useReducer(zt, Rt), l = c[0], u = c[1], d = X.useCallback(function(e, t) {
2610
+ var n = Pt(t, Ht);
2611
+ e ? u({
2612
+ type: Q.UPDATE,
2613
+ payload: {
2614
+ id: e,
2615
+ props: n
2616
+ }
2617
+ }) : console.error(Bt);
2618
+ }, [u]), f = X.useCallback(function(e) {
2619
+ e ? u({
2620
+ type: Q.HIDE,
2621
+ payload: { id: e }
2622
+ }) : console.error(Bt);
2623
+ }, [u]), p = X.useCallback(function(e) {
2624
+ e ? u({
2625
+ type: Q.DESTROY,
2626
+ payload: { id: e }
2627
+ }) : console.error(Bt);
2628
+ }, [u]), m = X.useCallback(function(e) {
2629
+ e ? u({
2630
+ type: Q.DESTROY_BY_ROOT_ID,
2631
+ payload: { rootId: e }
2632
+ }) : console.error("[ERROR]: Modal root ID is missing");
2633
+ }, [u]), h = X.useCallback(function(e, t, n) {
2634
+ var r = Vt(8);
2635
+ return n && n.rootId && (r = n.rootId + "." + r), u({
2636
+ type: Q.SHOW,
2637
+ payload: {
2638
+ id: r,
2639
+ component: e,
2640
+ props: t,
2641
+ options: n
2642
+ }
2643
+ }), {
2644
+ id: r,
2645
+ hide: function() {
2646
+ return f(r);
2647
+ },
2648
+ destroy: function() {
2649
+ return p(r);
2650
+ },
2651
+ update: function(e) {
2652
+ return d(r, e);
2653
+ }
2654
+ };
2655
+ }, [
2656
+ u,
2657
+ f,
2658
+ p,
2659
+ d
2660
+ ]), g = a ? X.Suspense : X.Fragment;
2661
+ return X.createElement(Lt.Provider, { value: {
2662
+ state: l,
2663
+ updateModal: d,
2664
+ hideModal: f,
2665
+ destroyModal: p,
2666
+ showModal: h,
2667
+ destroyModalsByRootId: m
2668
+ } }, t, X.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
2669
+ var t, n = l[e], i = n.component, a = n.props, o = n.options, s = function() {
2670
+ var t, n;
2671
+ a != null && a.onExited && a.onExited.apply(a, arguments), a != null && (t = a.TransitionProps) != null && t.onExited && (n = a.TransitionProps).onExited.apply(n, arguments), p(e);
2672
+ };
2673
+ return t = r ? { onExited: s } : { TransitionProps: $({}, a?.TransitionProps, { onExited: s }) }, X.createElement(i, Object.assign({}, a, {
2674
+ key: e,
2675
+ onClose: function() {
2676
+ o && o.hideOnClose && f(e), o && o.destroyOnClose && o.hideOnClose && p(e), a && a.onClose && a.onClose.apply(a, arguments);
2677
+ }
2678
+ }, o && !o.destroyOnClose && t));
2679
+ })));
2680
+ }
2681
+ var Wt = { enforceProvider: !1 }, Gt = ["showModal", "destroyModalsByRootId"], Kt = { disableAutoDestroy: !1 };
2682
+ function qt(e) {
2683
+ e === void 0 && (e = Kt);
2684
+ var t = $({}, Kt, e).disableAutoDestroy, n = function() {
2685
+ var e = (0, X.useContext)(Lt);
2686
+ if (Wt.enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2687
+ return e || It;
2688
+ }(), r = n.showModal, i = n.destroyModalsByRootId, a = Pt(n, Gt), o = (0, X.useRef)(Vt(6));
2689
+ return (0, X.useEffect)(function() {
2690
+ return function() {
2691
+ !t && i && i(o.current);
2692
+ };
2693
+ }, [t, i]), $({
2694
+ showModal: (0, X.useCallback)(function(e, t, n) {
2695
+ return r(e, t, $({
2696
+ rootId: o.current,
2697
+ hideOnClose: !0
2698
+ }, n));
2699
+ }, [r]),
2700
+ destroyModalsByRootId: i
2701
+ }, a);
2702
+ }
2703
+ var Jt = (0, X.createContext)(void 0), Yt = ({ error: e }) => {
2704
+ let t = (0, X.useContext)(Jt);
2705
+ return (0, X.useEffect)(() => {
2706
+ t?.(e);
2707
+ }, [e]), null;
2708
+ };
2709
+ function Xt(e) {
2710
+ let t = p(e, { renderError: (e) => (0, Z.jsx)(Yt, { error: e }) });
2711
+ return (e) => {
2712
+ let { onLoadError: n, ...r } = e;
2713
+ return (0, Z.jsx)(Jt.Provider, {
2714
+ value: n,
2715
+ children: (0, Z.jsx)(X.Suspense, {
2716
+ fallback: null,
2717
+ children: (0, Z.jsx)(t, { ...r })
2718
+ })
2719
+ });
2720
+ };
2721
+ }
2722
+ function Zt(e) {
2723
+ let [t, n] = (0, X.useState)(() => /* @__PURE__ */ new Map()), r = (0, X.useRef)(null);
2724
+ r.current === null && (r.current = /* @__PURE__ */ new Map());
2725
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = qt({ disableAutoDestroy: !0 });
2726
+ return (c, l, u, d) => new Promise((f, p) => {
2727
+ let m = !1;
2728
+ u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
2729
+ let h = !1;
2730
+ if (u?.prewarm !== void 0 && (h = u.prewarm, delete (u = { ...u }).prewarm, h && (m = !0)), h && t.get(c)) return void f(t.get(c).element);
2731
+ let g = {
2732
+ ...e,
2733
+ ...u,
2734
+ ...d,
2735
+ onHide: () => {
2736
+ if (d?.onHide?.(), m) return;
2737
+ let e = t.get(c);
2738
+ n((e) => (e.delete(c), e)), e?.id && s(e.id);
2739
+ },
2740
+ onDone: (e) => {
2741
+ if (d?.onDone?.(e), m) return;
2742
+ let r = t.get(c);
2743
+ n((e) => (e.delete(c), e)), r?.id && o(r.id);
2744
+ },
2745
+ onShown: (e) => {
2746
+ n((t) => {
2747
+ let n = t.get(c);
2748
+ return n && t.set(c, {
2749
+ ...n,
2750
+ element: e ?? n.element
2751
+ }), t;
2752
+ }), f(e);
2753
+ },
2754
+ onLoadError: (e) => {
2755
+ let r = t.get(c);
2756
+ n((e) => (e.delete(c), e)), r?.id && o(r.id), p(e);
2757
+ },
2758
+ disableAutoDestroy: m,
2759
+ revealToken: 0,
2760
+ startHidden: h,
2761
+ open: !0
2762
+ }, _ = t.get(c);
2763
+ if (_) {
2764
+ let e = (_.revealToken ?? 0) + 1;
2765
+ a(_.id, {
2766
+ ...g,
2767
+ revealToken: e
2768
+ }), n((t) => {
2769
+ let n = t.get(c);
2770
+ return n && t.set(c, {
2771
+ ...n,
2772
+ revealToken: e
2773
+ }), t;
2774
+ }), f(_.element);
2775
+ return;
2776
+ }
2777
+ if (!l) return void p(`Invalid function for window '${c}'`);
2778
+ let v = r.current.get(c);
2779
+ v || (v = Xt(l), r.current.set(c, v));
2780
+ let y = i(v, g, { destroyOnClose: !m });
2781
+ n((e) => (e.set(c, {
2782
+ id: y.id,
2783
+ element: null,
2784
+ revealToken: 0
2785
+ }), e)), h && f(null);
2786
+ });
2787
+ }
2788
+ var Qt = (e) => {
2789
+ let { showModal: t } = qt();
2790
+ return (n) => new Promise((r) => {
2791
+ let i = t(oe, {
2792
+ ...e,
2793
+ ...n,
2794
+ onOption(e, t, i) {
2795
+ n?.onOption?.(e, t, i), r(e);
2796
+ },
2797
+ onDone: () => {
2798
+ n?.onDone?.(), i.hide();
2799
+ }
2800
+ });
2801
+ });
2802
+ }, $t = Xt(a("utils-mui:inputDialog", () => import("./djM9mJznx8GzVq51.mjs")).load), en = (e) => {
2803
+ let { showModal: t } = qt();
2804
+ return (n) => {
2805
+ let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2806
+ return new Promise((n, o) => {
2807
+ let s = t($t, {
2808
+ ...e,
2809
+ defaultOption: r,
2810
+ cancelOption: i,
2811
+ ...a,
2812
+ onOption(e, t, r) {
2813
+ a?.onOption?.(e, t, r), n({
2814
+ input: "",
2815
+ option: e
2816
+ });
2817
+ },
2818
+ onInput(e, t) {
2819
+ a?.onInput?.(e, t), n({
2820
+ input: e,
2821
+ option: t
2822
+ });
2823
+ },
2824
+ onDone: () => {
2825
+ a?.onDone?.(), s.hide();
2826
+ },
2827
+ onLoadError: (e) => {
2828
+ s.destroy(), o(e);
2829
+ }
2830
+ });
2831
+ });
2832
+ };
2833
+ }, tn = (0, X.memo)((0, X.forwardRef)((e, t) => {
2834
+ let { commandKey: n, command: r, disabled: i, shortcut: a, children: o, ...s } = e, [c] = g(n ?? []), l = r ?? c, u = l?.getShortcut();
2835
+ return (0, Z.jsx)(G, {
2836
+ ref: t,
2837
+ label: i === void 0 ? "" : l?.getLabel(),
2838
+ shortcut: a === void 0 ? Array.isArray(u) ? u[0] : u : a,
2839
+ description: l?.getDescription(),
2840
+ disabled: i,
2841
+ componentDisabled: l?.disabled(),
2842
+ ...s,
2843
+ children: (0, Z.jsx)("div", {
2844
+ style: {
2845
+ display: "flex",
2846
+ flex: "1 1 0%"
2847
+ },
2848
+ children: o
2849
+ })
2850
+ });
2851
+ })), nn = R;
2852
+ function rn() {
2853
+ let e = (0, X.useRef)(null);
2854
+ return {
2855
+ ripple: (0, X.useMemo)(() => (0, Z.jsx)(nn, {
2856
+ ref: e,
2857
+ center: !1
2858
+ }), []),
2859
+ trigger: (0, X.useCallback)(() => {
2860
+ e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
2861
+ }, [])
2862
+ };
2863
+ }
2864
+ var an = (0, Z.jsx)(o, {}), on = (0, X.memo)((0, X.forwardRef)((e, t) => {
2865
+ let n, { commandKey: r, command: i, groupKey: a, icon: s, label: c, showLabel: l = !1, disabled: u, variant: d = m.Toolbar, shortcut: f, commandState: p, propsTooltip: h, ..._ } = e, { ripple: v, trigger: y } = rn(), x = (0, X.useMemo)(() => ({ onExecute() {
2866
+ y();
2867
+ } }), [y]), [S] = g(r ?? [], x), C = i ?? S, w = (0, X.useCallback)((e) => {
2868
+ e.button === 0 && e.preventDefault();
2869
+ }, []), T = (0, X.useCallback)(async (e) => {
2870
+ e.button === 0 && C && await C.execute(p);
2871
+ }, [C, p]), E = (0, X.useCallback)((e) => {
2872
+ e.keyCode !== b.Enter && e.keyCode !== b.Space || C?.execute(p);
2873
+ }, [C, p]), D = u ?? (!C || C.disabled()), O = C?.getState(), k = (0, X.useMemo)(() => {
2874
+ if (s === null) return an;
2875
+ let e;
2876
+ return e = typeof s == "function" ? C ? s(C) : void 0 : s, e ||= C?.getIcon(a), e ? (typeof e == "string" && (e = (0, Z.jsx)(o, { iconKey: e })), e) : d === m.Toolbar || O ? void 0 : an;
2877
+ }, [
2878
+ C,
2879
+ a,
2880
+ s,
2881
+ O,
2882
+ d
2883
+ ]), A = {
2884
+ tabIndex: 0,
2885
+ ref: t,
2886
+ selected: !!O,
2887
+ icon: d === m.Toolbar ? l ? Ve(k, c ?? C?.getLabel(a)) : k : (0, Z.jsx)(jt, {
2888
+ selected: O ?? !1,
2889
+ children: k
2890
+ }),
2891
+ disableRipple: !0,
2892
+ disabled: D,
2893
+ onMouseDown: w,
2894
+ onMouseUp: T,
2895
+ onKeyDown: E
2896
+ };
2897
+ return n = d === m.Menuitem ? (0, Z.jsxs)(St, {
2898
+ ..._,
2899
+ ...A,
2900
+ children: [c ?? C?.getLabel(a), v]
2901
+ }) : (0, Z.jsx)(vt, {
2902
+ ..._,
2903
+ ...A,
2904
+ children: v
2905
+ }), (c || C?.getLabel()) && (D && (n = (0, Z.jsx)("div", { children: n })), n = (0, Z.jsx)(tn, {
2906
+ commandKey: r,
2907
+ command: i,
2908
+ disabled: D,
2909
+ placement: d === m.Toolbar ? "bottom-start" : "right-start",
2910
+ shortcut: f,
2911
+ ...h,
2912
+ children: n
2913
+ })), n;
2914
+ }));
2915
+ on.displayName = "CommandButton";
2916
+ var sn = (0, Z.jsx)(o, {}), cn = (0, X.memo)((0, X.forwardRef)((e, t) => {
2917
+ let { commandKey: n, groupKey: r, icon: i, commandState: a, label: s, variant: c = m.Toolbar, disabled: l, parseInput: u, inputProps: d, inputRef: f, ...p } = e, { ripple: h, trigger: _ } = rn(), v = (0, X.useMemo)(() => ({ onExecute() {
2918
+ _();
2919
+ } }), [_]), x = g(n ?? [], v)[0], S = () => x?.getState()?.toString() || "", [C, w] = (0, X.useState)(""), T = (0, X.useRef)(S()), E = y(() => {
2920
+ let e = C;
2921
+ if (u) try {
2922
+ e = u(C);
2923
+ } catch {
2924
+ w(S());
2925
+ return;
2926
+ }
2927
+ T.current === C ? w(S()) : (T.current = C, x?.execute(e));
2928
+ }, [
2929
+ S,
2930
+ x,
2931
+ C,
2932
+ u
2933
+ ]);
2934
+ (0, X.useEffect)(() => {
2935
+ w(S());
2936
+ }, [x?.getState()]);
2937
+ let D, O = (0, X.useMemo)(() => {
2938
+ if (i === null) return sn;
2939
+ let e;
2940
+ return e = typeof i == "function" ? x ? i(x) : void 0 : i, e ||= x?.getIcon(), e ? (typeof e == "string" && (e = (0, Z.jsx)(o, { iconKey: e })), e) : c === m.Toolbar || x?.getState() ? void 0 : sn;
2941
+ }, [x?.getIcon(), i]), k = (0, X.useMemo)(() => s === void 0 ? x?.getLabel(r) : typeof s == "function" ? s() : s, [s, x?.getLabel(r)]), A = l ?? (!x || x.disabled()), j = (0, X.useMemo)(() => (0, Z.jsx)(z, {
2942
+ ...p,
2943
+ sx: {
2944
+ paddingTop: "0px",
2945
+ paddingBottom: "0px"
2946
+ },
2947
+ component: "div",
2948
+ disableRipple: !0,
2949
+ onClick: (e) => e.stopPropagation(),
2950
+ onMouseDown: (e) => {
2951
+ e.button === 0 && e.stopPropagation();
2952
+ },
2953
+ onMouseUp: (e) => {
2954
+ e.button === 0 && e.stopPropagation();
2955
+ },
2956
+ children: (0, Z.jsx)(pe, {
2957
+ disabled: A,
2958
+ inputRef: f,
2959
+ inputProps: {
2960
+ tabIndex: 0,
2961
+ name: `input-${x?.getKey()}`,
2962
+ autoComplete: "off",
2963
+ ...d
2964
+ },
2965
+ sx: {
2966
+ paddingTop: "0px",
2967
+ paddingBottom: "0px",
2968
+ paddingLeft: "0px",
2969
+ paddingRight: "0px",
2970
+ fontSize: (e) => `${Math.round(e.typography.fontSize)}px`,
2971
+ width: (e) => "3.2em",
2972
+ input: {
2973
+ padding: "0 0",
2974
+ textAlign: "center",
2975
+ MozAppearance: "textfield"
2976
+ },
2977
+ "input::-webkit-inner-spin-button": {
2978
+ WebkitAppearance: "none",
2979
+ margin: "0"
2980
+ },
2981
+ minHeight: "24px"
2982
+ },
2983
+ value: C,
2984
+ onFocus: (e) => {
2985
+ e.target?.select();
2986
+ },
2987
+ onKeyDown: (e) => {
2988
+ if (e.which === b.Enter) S() !== C && (e.stopPropagation(), e.preventDefault(), E());
2989
+ else if (e.which === b.Escape) S() !== C && (w(S()), setTimeout(() => {
2990
+ e.target?.select();
2991
+ }, 0), e.stopPropagation(), e.preventDefault());
2992
+ else {
2993
+ if (e.key.match("[-]") || e.key.match("[0-9.]") && (C + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
2994
+ if (e.which === b.Space) return void e.preventDefault();
2995
+ }
2996
+ },
2997
+ onBlur: () => {
2998
+ E();
2999
+ },
3000
+ onChange: (e) => {
3001
+ if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
3002
+ w(e.target.value);
3003
+ }
3004
+ })
3005
+ }), [
3006
+ C,
3007
+ A,
3008
+ d,
3009
+ f
3010
+ ]), M = {
3011
+ tabIndex: 0,
3012
+ ref: t,
3013
+ icon: O,
3014
+ disableRipple: !0,
3015
+ disabled: l || !x || x.disabled(),
3016
+ onMouseDown: (e) => {
3017
+ e.button === 0 && e.preventDefault();
3018
+ },
3019
+ onMouseUp: (e) => {
3020
+ e.button !== 0 || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), E());
3021
+ },
3022
+ onKeyDown: (e) => {
3023
+ e.keyCode !== b.Enter && e.keyCode !== b.Tab || E();
3024
+ }
3025
+ };
3026
+ return D = c === m.Menuitem ? (0, Z.jsxs)(St, {
3027
+ ...p,
3028
+ ...M,
3029
+ children: [
3030
+ k,
3031
+ j,
3032
+ h
3033
+ ]
3034
+ }) : (0, Z.jsx)(vt, {
3035
+ ...p,
3036
+ ...M,
3037
+ children: h
3038
+ }), x?.getLabel() && ((x.disabled() || l) && (D = (0, Z.jsx)("div", { children: D })), D = (0, Z.jsx)(tn, {
3039
+ commandKey: n,
3040
+ placement: c === m.Toolbar ? "bottom-start" : "right-start",
3041
+ children: D
3042
+ })), D;
3043
+ })), ln = (0, X.memo)((0, X.forwardRef)((e, t) => {
3044
+ let { variant: n = m.Toolbar, quickCommand: r, onQuickClick: i, commandState: a, disabled: s, label: c, icon: l, createPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...h } = e, { ripple: _, trigger: v } = rn(), b = (0, X.useMemo)(() => ({ onExecute() {
3045
+ v();
3046
+ } }), [v]), [x] = g(r ?? [], b), { label: S, icon: C } = (0, X.useMemo)(() => {
3047
+ let e = null;
3048
+ c && (e = typeof c == "function" ? x ? c(x) : null : c), e ||= x?.getLabel?.(p);
3049
+ let t = l;
3050
+ return t ||= x?.getIcon?.(p), typeof t == "string" ? t = (0, Z.jsx)(o, { iconKey: t }) : typeof t == "function" && (t = x ? t(x) : void 0), {
3051
+ label: e,
3052
+ icon: t
3053
+ };
3054
+ }, [
3055
+ x,
3056
+ c,
3057
+ l
3058
+ ]), w = {
3059
+ disabled: s || !(x || !r),
3060
+ ripple: _,
3061
+ onQuickClick: i,
3062
+ tooltip: d,
3063
+ label: S,
3064
+ icon: C
3065
+ };
3066
+ (S || d) && (w.createTooltip = ({ children: e }, t) => (0, Z.jsx)(G, {
3067
+ label: S,
3068
+ description: d,
3069
+ disabled: t,
3070
+ children: e
3071
+ }));
3072
+ let T = y((e) => u?.(e), [u]), E = y((e) => x?.execute(a), [x]);
3073
+ return x ? (w.propsQuickButton = {}, w.propsQuickButton.createTooltip = ({ children: e, placement: t }, i) => (0, Z.jsx)(tn, {
3074
+ commandKey: r,
3075
+ placement: t ?? n === m.Toolbar ? "bottom-start" : "right-start",
3076
+ disabled: i,
3077
+ children: e
3078
+ }), w.disabled = w.disabled ?? x?.disabled(), i || (w.onQuickClick = E)) : r && (w.onQuickClick = () => {}), w.selected = f ?? x?.getState(), w.createPopupPanel = T, n === m.Toolbar ? (0, Z.jsx)(wt, {
3079
+ ...h,
3080
+ ...w,
3081
+ ref: t
3082
+ }) : (0, Z.jsx)(Dt, {
3083
+ ...h,
3084
+ ...w,
3085
+ ref: t
3086
+ });
3087
+ }));
3088
+ function un(e, t = {}) {
3089
+ let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
3090
+ n !== void 0 && (l.variant = n);
3091
+ let u = { ...s };
3092
+ n !== void 0 && (u.variant = n);
3093
+ let d = (e, t, n) => {
3094
+ let r = {
3095
+ ...l,
3096
+ groupKey: i,
3097
+ commandKey: e,
3098
+ commandState: t === void 0 ? a : t,
3099
+ label: n?.getLabel?.(i),
3100
+ icon: n?.getIcon?.(i),
3101
+ showLabel: n?.showLabel
3102
+ };
3103
+ return (n?.render ? n.render(r, i) : (0, Z.jsx)(on, { ...r })) ?? null;
3104
+ }, f = (e) => {
3105
+ let t = typeof e == "string" ? e : e.key, n = typeof e == "string" ? void 0 : e;
3106
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : (0, Z.jsx)(dn, {
3107
+ ...u,
3108
+ members: e.members,
3109
+ icon: e.getIcon?.(),
3110
+ label: e.getLabel?.(),
3111
+ tooltip: e.getDescription?.()
3112
+ }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
3113
+ let r = c?.get(t) ?? null;
3114
+ return r ? ((e, t, n) => {
3115
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : (0, Z.jsx)(dn, {
3116
+ ...u,
3117
+ groupKey: t,
3118
+ icon: n?.getIcon?.(t),
3119
+ label: n?.getLabel?.(t),
3120
+ showLabel: n?.showLabel
3121
+ });
3122
+ if (e.render) return e.render({ ...u }, i) ?? null;
3123
+ let r = n ? {
3124
+ ...e,
3125
+ ...n
3126
+ } : e;
3127
+ return d(e.defaultKey ?? t, r.state, r);
3128
+ })(r, t, n) : d(t, n?.state, n);
3129
+ }, p = [], m = 0, h = !1, g = !1, _ = e ?? [];
3130
+ for (let e = 0; e < _.length; e++) {
3131
+ let t = _[e];
3132
+ if (!t || t === "-") {
3133
+ g && (h = !0);
3134
+ continue;
3135
+ }
3136
+ let n = f(t);
3137
+ n && (h &&= (p.push((0, Z.jsx)(qe, { orientation: r }, "member-" + m++)), !1), p.push((0, X.cloneElement)(n, { key: "member-" + m++ })), g = !0);
3138
+ }
3139
+ return p;
3140
+ }
3141
+ ln.displayName = "CommandPopupButton";
3142
+ var dn = (0, X.memo)((0, X.forwardRef)((e, t) => {
3143
+ let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: d, disabled: f, ...p } = e, h = u(), _ = i ?? h, v = !r && n ? _.get(n) : null, y = v && Array.isArray(v.members) ? v : null, b = (0, X.useMemo)(() => r ?? (n ? _.resolveMembers(n) : null) ?? null, [
3144
+ r,
3145
+ n,
3146
+ _
3147
+ ]), x = n, S = a ?? y?.defaultKey, C = o ?? y?.getIcon?.(x), w = s ?? y?.getLabel?.(x), T = c ?? y?.showLabel, E = l ?? y?.getDescription?.(x), D = (0, X.useMemo)(() => {
3148
+ let e = [], t = b ?? [];
3149
+ for (let n = 0; n < t.length; n++) {
3150
+ let r = t[n];
3151
+ r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
3152
+ }
3153
+ return e;
3154
+ }, [b]), O = g(S ? [S, ...D] : D), k = (0, X.useMemo)(() => {
3155
+ for (let e = 0; e < O.length; e++) {
3156
+ let t = O[e];
3157
+ if (t && !t.disabled()) return !1;
3158
+ }
3159
+ return !0;
3160
+ }, [O]), A = (0, X.useCallback)((e) => {
3161
+ let t = {};
3162
+ f !== void 0 && (t.disabled = f);
3163
+ let n = un(b, {
3164
+ variant: m.Menuitem,
3165
+ dividerOrientation: "horizontal",
3166
+ groupKey: x,
3167
+ commandState: d,
3168
+ propsCommandButton: t,
3169
+ propsCommandPopup: t,
3170
+ registry: _
3171
+ });
3172
+ return ct({
3173
+ ...e,
3174
+ children: n
3175
+ });
3176
+ }, [
3177
+ b,
3178
+ _,
3179
+ x,
3180
+ d,
3181
+ f
3182
+ ]);
3183
+ return b ? (0, Z.jsx)(ln, {
3184
+ ref: t,
3185
+ quickCommand: S,
3186
+ icon: C,
3187
+ label: w,
3188
+ showLabel: T,
3189
+ tooltip: E,
3190
+ commandState: d,
3191
+ disabled: f ?? k,
3192
+ createPopupPanel: A,
3193
+ ...p
3194
+ }) : null;
3195
+ }));
3196
+ dn.displayName = "CommandGroup";
3197
+ var fn = (0, Z.jsx)(o, { iconKey: "Check" }), pn = (e) => {
3198
+ let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...s } = e, [c] = g(t ?? []), l = (0, X.useMemo)(() => {
3199
+ if (i !== void 0) return i;
3200
+ let e = c?.getIcon(r);
3201
+ return e ? (typeof e == "string" && (e = (0, Z.jsx)(o, { iconKey: e })), e) : fn;
3202
+ }, [
3203
+ i,
3204
+ r,
3205
+ c
3206
+ ]);
3207
+ return (0, Z.jsxs)(M, {
3208
+ sx: {
3209
+ display: "flex",
3210
+ flexDirection: "row",
3211
+ textTransform: "none",
3212
+ alignItems: "center",
3213
+ fontSize: (e) => e.typography.subtitle2.fontSize,
3214
+ ...a
3215
+ },
3216
+ ...s,
3217
+ children: [l, (0, Z.jsx)(K, {
3218
+ component: "div",
3219
+ sx: {
3220
+ whiteSpace: "nowrap",
3221
+ lineHeight: "1",
3222
+ paddingLeft: (e) => e.spacing(.25),
3223
+ paddingRight: (e) => e.spacing(.25),
3224
+ fontSize: "inherit"
3225
+ },
3226
+ children: n ?? c?.getLabel(r)
3227
+ })]
3228
+ });
3229
+ }, mn = (0, X.memo)((0, X.forwardRef)((e, t) => {
3230
+ let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: l, renderToolbarPalette: d, children: f, ...p } = e, m = u(), h = l ?? m, g = (0, X.useMemo)(() => o ?? (a ? h.resolveMembers(a) : null) ?? null, [
3231
+ o,
3232
+ a,
3233
+ h,
3234
+ h.getVersion()
3235
+ ]), _ = v(t, () => ({}), []), [x, S] = (0, X.useState)(null), { reference: w } = c({
3236
+ label: "toolbar",
3237
+ anchor: _.current,
3238
+ parentFloat: i,
3239
+ createPopupPanel: null
3240
+ }), T = y(() => {
3241
+ let e = x;
3242
+ e && requestAnimationFrame(() => {
3243
+ _.current?.contains(document.activeElement) && e.focus();
3244
+ });
3245
+ }, [x]), E = (0, X.useMemo)(() => ({
3246
+ dense: !0,
3247
+ outlined: !1
3248
+ }), []), D = (0, X.useMemo)(() => ({ ...r || {} }), [r]), O = (0, X.useMemo)(() => ({
3249
+ ...E,
3250
+ ...D
3251
+ }), [E, D]), k = (0, X.useMemo)(() => ({ ...D }), [O, r]), A = 0;
3252
+ E.dense || (A += 2), E.outlined && A++;
3253
+ let j = 2;
3254
+ E.dense || (j = 4);
3255
+ let M = (0, X.useMemo)(() => {
3256
+ let e = {
3257
+ propsCommandButton: O,
3258
+ propsCommandPopup: {
3259
+ ...k,
3260
+ ...r
3261
+ }
3262
+ };
3263
+ return d ? d(e) : g ? (0, Z.jsx)(Nt, { children: un(g, {
3264
+ dividerOrientation: "vertical",
3265
+ groupKey: a,
3266
+ propsCommandButton: e.propsCommandButton,
3267
+ propsCommandPopup: e.propsCommandPopup,
3268
+ registry: h
3269
+ }) }) : null;
3270
+ }, [
3271
+ O,
3272
+ k,
3273
+ r,
3274
+ d,
3275
+ g,
3276
+ a,
3277
+ h
3278
+ ]);
3279
+ return (0, Z.jsx)(ze, {
3280
+ variant: "dense",
3281
+ sx: {
3282
+ minHeight: "unset",
3283
+ height: "unset",
3284
+ paddingTop: `${j}px`,
3285
+ paddingBottom: `${j}px`,
3286
+ paddingLeft: "6px !important",
3287
+ paddingRight: "6px !important",
3288
+ flex: "1 1 0%",
3289
+ alignItems: "center",
3290
+ userSelect: "none",
3291
+ flexGrow: 1,
3292
+ display: "flex",
3293
+ overflow: "hidden",
3294
+ ...n
3295
+ },
3296
+ ref: _,
3297
+ onFocus: (e) => {
3298
+ e.relatedTarget && !x && S(e.relatedTarget);
3299
+ },
3300
+ onBlur: (e) => {
3301
+ x && !_?.current?.contains(e.relatedTarget) && S(null);
3302
+ },
3303
+ onKeyDown: (e) => {
3304
+ x && e.which === b.Escape && x.focus();
3305
+ },
3306
+ ...p,
3307
+ children: (0, Z.jsx)("div", {
3308
+ ref: _,
3309
+ style: {
3310
+ flex: "1 1 100%",
3311
+ display: "flex",
3312
+ flexWrap: "wrap",
3313
+ rowGap: `${j}px`,
3314
+ columnGap: `${A}px`,
3315
+ alignItems: "center",
3316
+ maxWidth: "100%"
3317
+ },
3318
+ children: (0, Z.jsx)(C, {
3319
+ value: w,
3320
+ children: (0, Z.jsx)(s, {
3321
+ value: T,
3322
+ children: M
3323
+ })
3324
+ })
3325
+ })
3326
+ });
3327
+ }));
3328
+ mn.displayName = "CommandToolbar";
3329
+ var hn = (0, X.memo)((0, X.forwardRef)((e, t) => {
3330
+ let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = u(), l = i ?? c, d = (0, X.useMemo)(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
3331
+ r,
3332
+ n,
3333
+ l
3334
+ ]), f = (0, X.useMemo)(() => {
3335
+ let e = [], t = d ?? [];
3336
+ for (let n = 0; n < t.length; n++) {
3337
+ let r = t[n];
3338
+ r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
3339
+ }
3340
+ return e;
3341
+ }, [d]), p = g(f), m = null, h = null;
3342
+ for (let e = 0; !m && e < p.length; e++) {
3343
+ let t = p[e];
3344
+ t && !t.disabled() && t.getState() && (m = f[e], h = t.getIcon());
3345
+ }
3346
+ let _ = a === "icon" ? {
3347
+ icon: h ?? o,
3348
+ quickCommand: void 0
3349
+ } : {
3350
+ quickCommand: m ?? f[0],
3351
+ icon: void 0
3352
+ };
3353
+ return (0, Z.jsx)(dn, {
3354
+ ref: t,
3355
+ groupKey: n,
3356
+ members: r,
3357
+ registry: l,
3358
+ ...s,
3359
+ ..._
3360
+ });
3361
+ }));
3362
+ hn.displayName = "ToggleGroupButton";
3363
+ export { St as A, Ie as B, qe as C, dn as D, Ct as E, un as F, Dt as I, Be as L, tn as M, ft as N, mn as O, hn as P, Ot as R, wt as S, vt as T, Pe as V, ot as _, Ue as a, bt as b, rt as c, st as d, Ye as f, Qt as g, Qe as h, Ze as i, it as j, ht as k, en as l, Zt as m, cn as n, $e as o, jt as p, Ke as r, Xt as s, ct as t, Ut as u, on as v, Ge as w, ln as x, pn as y, qt as z };