@abtnode/webapp 1.16.34 → 1.16.35

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 (208) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-CB3E_i_7.js → Add-Iqq5UL4X.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-CfqqzEVC.js → ArrowDropDown-BzdnsirE.js} +1 -1
  5. package/dist/assets/{Autocomplete-CA8T_8VG.js → Autocomplete-BjYb6zBA.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-CixjL8_p.js → Breadcrumbs-B_yTpaGI.js} +1 -1
  7. package/dist/assets/{ButtonGroup-XrPwO8Q6.js → ButtonGroup-B9g57_Ix.js} +1 -1
  8. package/dist/assets/{CSSTransition-DeoxwYwB.js → CSSTransition-Bmy9En_5.js} +1 -1
  9. package/dist/assets/{CheckCircle-BBxMZden.js → CheckCircle-BSPdwpaz.js} +1 -1
  10. package/dist/assets/{ChevronLeft-BVEhqL0a.js → ChevronLeft-DIrjaRfk.js} +1 -1
  11. package/dist/assets/{ChevronRight-Dgndy_Tx.js → ChevronRight-BhDKV57P.js} +1 -1
  12. package/dist/assets/{Delete-D7NoNb87.js → Delete-Cgqm12Xe.js} +1 -1
  13. package/dist/assets/{DeleteOutline-CehpYKMD.js → DeleteOutline-DfpoQfad.js} +1 -1
  14. package/dist/assets/{Done-BxwBGo9Z.js → Done-CQmwtYHM.js} +1 -1
  15. package/dist/assets/{Edit-t5t3YBFr.js → Edit-C8sUZUU6.js} +1 -1
  16. package/dist/assets/{EditIcon-DPfkBGTz.js → EditIcon-CZCunhmA.js} +1 -1
  17. package/dist/assets/{ExpandMore-BiJn2W3A.js → ExpandMore-BYtoX48D.js} +1 -1
  18. package/dist/assets/{Google-Ccnubb91.js → Google-DKZLPo7-.js} +1 -1
  19. package/dist/assets/{HelpOutline-BqTojNnK.js → HelpOutline-DGp-1BRD.js} +1 -1
  20. package/dist/assets/{Https-amX5pnZ-.js → Https-BYryT_bQ.js} +1 -1
  21. package/dist/assets/{InputAdornment-1LTeHxh6.js → InputAdornment-vuq-FjCl.js} +1 -1
  22. package/dist/assets/{InputLabel-BEvb6pBW.js → InputLabel-BpHdIT50.js} +1 -1
  23. package/dist/assets/{LastPage-__GqzflZ.js → LastPage-Cr-0h2EM.js} +1 -1
  24. package/dist/assets/{Launch-Biswalm8.js → Launch-rq__ygCr.js} +1 -1
  25. package/dist/assets/{Link-D-d6ABah.js → Link-DdW83tAD.js} +1 -1
  26. package/dist/assets/{ListSubheader-D01PmlUo.js → ListSubheader-D0hIXr7u.js} +1 -1
  27. package/dist/assets/{LoadingButton-DEoIaYnW.js → LoadingButton-DM3opAqK.js} +1 -1
  28. package/dist/assets/{LockIcon-LoltP6V8.js → LockIcon-DCJGPPEt.js} +1 -1
  29. package/dist/assets/{Loop-Md-TPW17.js → Loop-nI3ml_tu.js} +1 -1
  30. package/dist/assets/{MoreHoriz-C7pSvKTB.js → MoreHoriz-BLXWI1Fn.js} +1 -1
  31. package/dist/assets/{MoreVert-Cf6FwqrB.js → MoreVert-CVu4BzQC.js} +1 -1
  32. package/dist/assets/{Pagination-CKSHSfPE.js → Pagination-Zy0ZVuUr.js} +1 -1
  33. package/dist/assets/{Public-BVz1VeTj.js → Public-DpP3zQ2V.js} +1 -1
  34. package/dist/assets/{SchemaReference.es-BKsuZfnr.js → SchemaReference.es-spndC1oz.js} +1 -1
  35. package/dist/assets/{Search-DVTTUfAR.js → Search-DgsnShxd.js} +1 -1
  36. package/dist/assets/{Select-ZoGQlFtQ.js → Select-C9prPdE8.js} +1 -1
  37. package/dist/assets/{ShoppingCart-Bs1vpvBu.js → ShoppingCart-BMe5IDQI.js} +1 -1
  38. package/dist/assets/{Skeleton-kSow7Hmt.js → Skeleton-BrUMN46n.js} +1 -1
  39. package/dist/assets/{Stepper-DHyMnin3.js → Stepper-vUXTA0k0.js} +1 -1
  40. package/dist/assets/{TextField-DAI8Qdpe.js → TextField-DmmMqMAo.js} +1 -1
  41. package/dist/assets/{ToggleButtonGroup-BqAg9PDl.js → ToggleButtonGroup-Ce-1uV__.js} +1 -1
  42. package/dist/assets/{ViewColumn-B-n8_W0D.js → ViewColumn-avwxMG4J.js} +1 -1
  43. package/dist/assets/{ViewList-CRm6tuSw.js → ViewList-CC4-2p7Y.js} +1 -1
  44. package/dist/assets/{_createAggregator-C8I6G1rY.js → _createAggregator-CB0GKIBb.js} +1 -1
  45. package/dist/assets/{actions--Jh9Ytkt.js → actions-C0Zbx3QK.js} +1 -1
  46. package/dist/assets/{actions-ChzBM1oM.js → actions-d05pHP8u.js} +1 -1
  47. package/dist/assets/{agreement-Bya0zAe5.js → agreement-Bz4EKxUK.js} +1 -1
  48. package/dist/assets/api-DUyjcTBU.js +1 -0
  49. package/dist/assets/{app-avatar-CkwqyV_0.js → app-avatar-CulnXVaa.js} +1 -1
  50. package/dist/assets/ar-BDRVvPrM.js +3 -0
  51. package/dist/assets/{audit-logs-D-hcAUw3.js → audit-logs-3c6G-2jN.js} +1 -1
  52. package/dist/assets/{base32-qDJD7e6F.js → base32-CHpjH8PG.js} +1 -1
  53. package/dist/assets/blocklet-BysF7NjN.js +1 -0
  54. package/dist/assets/{brace-fold.es-DGwXyxd0.js → brace-fold.es-CIhjNimf.js} +1 -1
  55. package/dist/assets/{bundle-avatar-CAMrkHMQ.js → bundle-avatar-CqTlQZdw.js} +1 -1
  56. package/dist/assets/{chart-X4Bt4jVl.js → chart-BV_xvVd1.js} +1 -1
  57. package/dist/assets/{click-to-copy-cyfJmCk0.js → click-to-copy-D6a3LbT7.js} +1 -1
  58. package/dist/assets/{closebrackets.es-BgVawAXa.js → closebrackets.es-D1Zn5koL.js} +1 -1
  59. package/dist/assets/{codemirror.es-BoE9lBuH.js → codemirror.es-DXnzri9H.js} +1 -1
  60. package/dist/assets/{comment.es-B63PqK2d.js → comment.es-DvMop7gW.js} +1 -1
  61. package/dist/assets/{config-navigation-C4GRMVsQ.js → config-navigation-CbheNo97.js} +3 -3
  62. package/dist/assets/{connect-to-DBFguNNN.js → connect-to-wLmbAcvg.js} +1 -1
  63. package/dist/assets/de-B227a1no.js +3 -0
  64. package/dist/assets/{delete-confirm-BiicGoxV.js → delete-confirm-CG9pn4Op.js} +1 -1
  65. package/dist/assets/{detail-BJdKApB9.js → detail-CiYveroN.js} +3 -3
  66. package/dist/assets/{dialog.es-CKZU7uWD.js → dialog.es-BKReOq1S.js} +1 -1
  67. package/dist/assets/{download-ChxYFn7N.js → download-C3ZD7Sji.js} +1 -1
  68. package/dist/assets/emotion-react.browser.esm-Ce5DYL2G.js +1 -0
  69. package/dist/assets/es-DAn9P2pX.js +3 -0
  70. package/dist/assets/{foldgutter.es-BV9veuLJ.js → foldgutter.es-BSJD2IC7.js} +1 -1
  71. package/dist/assets/fr-hW_Tvq9a.js +3 -0
  72. package/dist/assets/{get-safe-url-Dt9rPUt5.js → get-safe-url-D9TInGJ7.js} +1 -1
  73. package/dist/assets/{get-safe-url-QTk1Sdfr.js → get-safe-url-d4wdsWI-.js} +1 -1
  74. package/dist/assets/getValidReactChildren-CxWlB_GY.js +1 -0
  75. package/dist/assets/hi-6yAhJdFx.js +1 -0
  76. package/dist/assets/{hint.es-DAtLgdHT.js → hint.es-B_n7A6VT.js} +1 -1
  77. package/dist/assets/{hint.es2-VXU0fpwG.js → hint.es2-Cmps2vt6.js} +1 -1
  78. package/dist/assets/id-BMkTW_Ii.js +3 -0
  79. package/dist/assets/{iframe-CDtW5AKp.js → iframe-BKue5fLa.js} +1 -1
  80. package/dist/assets/{index-DKtwy9xB.js → index-B7UCZsjO.js} +1 -1
  81. package/dist/assets/{index-BzuXYnd8.js → index-B8LxINcc.js} +1 -1
  82. package/dist/assets/{index-BzNA0CqE.js → index-BBO4eV6M.js} +1 -1
  83. package/dist/assets/{index-D7XN3Ep7.js → index-BEA-r-Xt.js} +1 -1
  84. package/dist/assets/{index-CuulkVT6.js → index-BZpDshq_.js} +1 -1
  85. package/dist/assets/{index-CpcFfAqd.js → index-Bjz36idA.js} +1 -1
  86. package/dist/assets/{index-CMciRqbU.js → index-BlzJjap-.js} +1 -1
  87. package/dist/assets/{index-BVo1y4px.js → index-Bnj8RUhY.js} +1 -1
  88. package/dist/assets/{index-gqghhYg-.js → index-BotJ3AX5.js} +1 -1
  89. package/dist/assets/{index-BqY9yKTd.js → index-Bqlp4s5C.js} +1 -1
  90. package/dist/assets/{index-DkBqG4kx.js → index-BsQBtUGA.js} +1 -1
  91. package/dist/assets/{index-CqRkHpDP.js → index-BxmndiW6.js} +1 -1
  92. package/dist/assets/{index-BAFoOKLc.js → index-C8YFeWmi.js} +1 -1
  93. package/dist/assets/{index-DiOMxvTK.js → index-CABG6WnA.js} +1 -1
  94. package/dist/assets/{index-Cvos3rah.js → index-CF-46tr4.js} +1 -1
  95. package/dist/assets/{index-1m57D84j.js → index-COjbf0ze.js} +1 -1
  96. package/dist/assets/{index-B4paaVul.js → index-CWKzScD8.js} +3 -3
  97. package/dist/assets/{index-CHFZEsTy.js → index-CWTorMDl.js} +1 -1
  98. package/dist/assets/{index-BBwK0xsH.js → index-CXsdGe6B.js} +1 -1
  99. package/dist/assets/{index-B422IDQn.js → index-CXxy8kEI.js} +1 -1
  100. package/dist/assets/{index-CHm9qPJD.js → index-CcQsJNy1.js} +1 -1
  101. package/dist/assets/{index-D-ZaUnBi.js → index-CezAO7BR.js} +1 -1
  102. package/dist/assets/{index-DcUEykKc.js → index-Cgo_tcN6.js} +5 -5
  103. package/dist/assets/{index-DEy7D_Af.js → index-CnIyAnd4.js} +1 -1
  104. package/dist/assets/{index-Bam7k3he.js → index-Cq1Ew3yw.js} +1 -1
  105. package/dist/assets/{index-D_9nA38Z.js → index-Csp4QH_V.js} +1 -1
  106. package/dist/assets/{index-CwCvYckH.js → index-Cu_P5aPZ.js} +1 -1
  107. package/dist/assets/{index-B5aAzE-y.js → index-CvGXEvkW.js} +1 -1
  108. package/dist/assets/{index-BPomuV_D.js → index-CvqQay-i.js} +1 -1
  109. package/dist/assets/{index-BuCRKgwB.js → index-CwFt9Te9.js} +1 -1
  110. package/dist/assets/{index-fz_DOQ-g.js → index-D2z1mjPq.js} +1 -1
  111. package/dist/assets/index-D3iLUVT_.js +5 -0
  112. package/dist/assets/{index-D1i_dZNg.js → index-D6AgsP-4.js} +1 -1
  113. package/dist/assets/{index-DIFx05Kl.js → index-D9VUHffN.js} +1 -1
  114. package/dist/assets/{index-QsMyNs5M.js → index-DPd4Sq53.js} +1 -1
  115. package/dist/assets/{index-R-nzvsnB.js → index-Db12S-QJ.js} +3 -3
  116. package/dist/assets/{index-6eKiKwxy.js → index-DrDaIwTG.js} +1 -1
  117. package/dist/assets/{index-CTanw7BS.js → index-GQZM8G46.js} +1 -1
  118. package/dist/assets/{index-LfcBen0e.js → index-M3td2VXe.js} +1 -1
  119. package/dist/assets/{index-8xWytbgk.js → index-fVZinT7E.js} +1 -1
  120. package/dist/assets/{index-wbEYjXbS.js → index-gvPnSndt.js} +3 -3
  121. package/dist/assets/{index-AcK_GNM5.js → index-qhlxzrLU.js} +2 -2
  122. package/dist/assets/{index-CvoQfwdo.js → index-szLyLiKt.js} +6 -4
  123. package/dist/assets/{index.esm-J1O3GSwj.js → index.esm-CSdzhfxu.js} +1 -1
  124. package/dist/assets/{info-addon.es-Bw6LVdU4.js → info-addon.es-BiJ84hAD.js} +1 -1
  125. package/dist/assets/{info.es-ykccBWpX.js → info.es-W2OzC3tp.js} +1 -1
  126. package/dist/assets/{install-from-url-CsgX1Mrn.js → install-from-url-DkTaMKuV.js} +1 -1
  127. package/dist/assets/{invitation-anSRhUVJ.js → invitation-BOPhDE2y.js} +1 -1
  128. package/dist/assets/{is-path-prefix-equal-Cr4sQmMt.js → is-path-prefix-equal-ZyMnCod8.js} +1 -1
  129. package/dist/assets/{item-C4Tw6kqm.js → item-B4oZu1M-.js} +1 -1
  130. package/dist/assets/ja-DMoxkdsA.js +3 -0
  131. package/dist/assets/{javascript.es-DOjc_sbG.js → javascript.es-DJ9F-IUY.js} +1 -1
  132. package/dist/assets/{jump-to-line.es-D8I8baeT.js → jump-to-line.es-x9kGGHmA.js} +1 -1
  133. package/dist/assets/{jump.es-QWYfYf8Z.js → jump.es-6YBKNjTH.js} +1 -1
  134. package/dist/assets/ko-C926kBBj.js +3 -0
  135. package/dist/assets/{lint.es-BJSU_PKG.js → lint.es-DgsUO5dq.js} +1 -1
  136. package/dist/assets/{lint.es2-D1FwC8bn.js → lint.es2-BQyeTE1J.js} +1 -1
  137. package/dist/assets/{lint.es3-n4lT7F8v.js → lint.es3-BTG1clr1.js} +1 -1
  138. package/dist/assets/{list-header-8M5v0mEZ.js → list-header-CXtRgeb8.js} +1 -1
  139. package/dist/assets/{log-DnibkVKU.js → log-Cadt5khV.js} +1 -1
  140. package/dist/assets/{logo-uploader-FvI8Gg-V.js → logo-uploader-DH6CrN_X.js} +3 -3
  141. package/dist/assets/{lottie-react.esm-NYbV_1l0.js → lottie-react.esm-BSE7Hou8.js} +1 -1
  142. package/dist/assets/{matchbrackets.es-BpEPtDVu.js → matchbrackets.es-CMtdKoWo.js} +1 -1
  143. package/dist/assets/{memory-Besqmmjk.js → memory-CMzX15_3.js} +1 -1
  144. package/dist/assets/{mode.es-4LyXjQl6.js → mode.es-h6vBm9Ab.js} +1 -1
  145. package/dist/assets/{mode.es2-CoWlBN1V.js → mode.es2-obVTlMzb.js} +1 -1
  146. package/dist/assets/{mode.es3-AkivrF_d.js → mode.es3-Dvsck4WY.js} +1 -1
  147. package/dist/assets/{onlineParser.es-BTrI7ZNy.js → onlineParser.es-CNHcXfZ_.js} +1 -1
  148. package/dist/assets/{overview-D_CqZ_Zd.js → overview-DYYEl0kX.js} +1 -1
  149. package/dist/assets/pt-S0JrQ9Y4.js +1 -0
  150. package/dist/assets/{resource-dialog-Ce7XfSZ0.js → resource-dialog-B3-hy8cw.js} +1 -1
  151. package/dist/assets/ru-Qa5qbmx5.js +1 -0
  152. package/dist/assets/{runtime-D3uKAyT-.js → runtime-BXpBg9UE.js} +1 -1
  153. package/dist/assets/{schema-B2s_JuVP.js → schema-Bo-nEED9.js} +1 -1
  154. package/dist/assets/sdk-DG5Padvs.js +1 -0
  155. package/dist/assets/{search.es-1EGQHQDD.js → search.es-C2YPN9Zf.js} +1 -1
  156. package/dist/assets/{searchcursor.es-DAAQMAO0.js → searchcursor.es-DtFpodBc.js} +1 -1
  157. package/dist/assets/{service-CbegThe7.js → service-DCusgPUg.js} +1 -1
  158. package/dist/assets/{shorten-label-BLL_il_j.js → shorten-label-T_aHg8P2.js} +1 -1
  159. package/dist/assets/{show-hint.es-B7s00sXv.js → show-hint.es-Ck00IMH1.js} +1 -1
  160. package/dist/assets/{simple-select-Dkp26b_9.js → simple-select-DT-WXgAf.js} +1 -1
  161. package/dist/assets/{slicedToArray-BSVcAmJr.js → slicedToArray-C3L866dd.js} +1 -1
  162. package/dist/assets/{spaces-CDcGrBnn.js → spaces-CqfN1sHH.js} +1 -1
  163. package/dist/assets/{status-DDubVmJJ.js → status-BAuBwMKk.js} +1 -1
  164. package/dist/assets/{sublime.es-BHvkWbHt.js → sublime.es-v7EM771f.js} +1 -1
  165. package/dist/assets/{switch-control-BRA6GhdU.js → switch-control-C-0E-2ue.js} +1 -1
  166. package/dist/assets/{table-icons-ZE6_-sIK.js → table-icons-C0V1baGk.js} +1 -1
  167. package/dist/assets/{team-BsMAhTHe.js → team-C90gWPMY.js} +1 -1
  168. package/dist/assets/th-BoRhU51f.js +1 -0
  169. package/dist/assets/{toUpper-ClbAdkoz.js → toUpper-CFkfojgH.js} +1 -1
  170. package/dist/assets/{traffic-DvVSCQZw.js → traffic-BAWl5wSo.js} +1 -1
  171. package/dist/assets/{trim-CiSVnwN4.js → trim-VWi233vQ.js} +1 -1
  172. package/dist/assets/{uniqBy-L5gdenz-.js → uniqBy-DMKiy0t2.js} +1 -1
  173. package/dist/assets/{url-evaluation-CkdeW9xb.js → url-evaluation-BS1bNemt.js} +1 -1
  174. package/dist/assets/{url-join-Cj3I6f7j.js → url-join-C5gF0TYO.js} +1 -1
  175. package/dist/assets/{useAsync-C_2Izamz.js → useAsync-Cl9cUzHN.js} +1 -1
  176. package/dist/assets/{useLocalStorage-Dm8U5SnM.js → useLocalStorage-GLWMibqZ.js} +1 -1
  177. package/dist/assets/{useThemeProps-DLZVHtlO.js → useThemeProps-e0r4gLct.js} +1 -1
  178. package/dist/assets/{util-Bwj7-kW5.js → util-BL1BrZx8.js} +1 -1
  179. package/dist/assets/vi-klSG5jCL.js +1 -0
  180. package/dist/assets/{wait-container-9ZyoIbmc.js → wait-container-LWuRgdV5.js} +1 -1
  181. package/dist/assets/{withStyles-BUxuIWEH.js → withStyles-CK3EIjsg.js} +1 -1
  182. package/dist/assets/wrap-locale-CrH4CaJK.js +1 -0
  183. package/dist/assets/zh-Bbb3gm_K.js +4 -0
  184. package/dist/assets/zh-tw-D9dNfXQ_.js +3 -0
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/assets/api-C-r9W7Df.js +0 -1
  189. package/dist/assets/ar-DdnvAQ3d.js +0 -1
  190. package/dist/assets/blocklet-DeYEPs7W.js +0 -1
  191. package/dist/assets/de-DMQbJIQd.js +0 -1
  192. package/dist/assets/emotion-react.browser.esm-D7mngV6f.js +0 -1
  193. package/dist/assets/es-D1yxfOJ-.js +0 -1
  194. package/dist/assets/fr-Db87bqVK.js +0 -1
  195. package/dist/assets/getValidReactChildren-Dsdsd33U.js +0 -1
  196. package/dist/assets/hi-Df99Lcv0.js +0 -1
  197. package/dist/assets/id-DtIWnQAT.js +0 -1
  198. package/dist/assets/index-C8jKkD0N.js +0 -5
  199. package/dist/assets/ja-C6Sh7xsg.js +0 -1
  200. package/dist/assets/ko-DOMsI63X.js +0 -1
  201. package/dist/assets/pt-DY-L1LL9.js +0 -1
  202. package/dist/assets/ru-CsG3qZSl.js +0 -1
  203. package/dist/assets/sdk-BDOUO8dj.js +0 -1
  204. package/dist/assets/th-Bxw1yx6O.js +0 -1
  205. package/dist/assets/vi-Df7bxeAg.js +0 -1
  206. package/dist/assets/wrap-locale-CC42vlla.js +0 -1
  207. package/dist/assets/zh-Cl_8lQ_b.js +0 -2
  208. package/dist/assets/zh-tw-BWV-R4Hq.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-R-nzvsnB.js","./index-CvoQfwdo.js","./index-DUNzMUoy.css","./visuallyHidden-Dan1xhjv.js","./url-join-Cj3I6f7j.js","./index-Bam7k3he.js","./_createAggregator-C8I6G1rY.js","./index-1m57D84j.js","./index-B5aAzE-y.js","./resource-dialog-Ce7XfSZ0.js","./ExpandMore-BiJn2W3A.js","./index-BzuXYnd8.js","./Skeleton-kSow7Hmt.js","./HelpOutline-BqTojNnK.js","./index-LfcBen0e.js","./ButtonGroup-XrPwO8Q6.js","./getValidReactChildren-Dsdsd33U.js","./TextField-DAI8Qdpe.js","./Select-ZoGQlFtQ.js","./InputLabel-BEvb6pBW.js","./index-BuCRKgwB.js","./Delete-D7NoNb87.js","./index-BBwK0xsH.js","./index-fz_DOQ-g.js","./index-DiOMxvTK.js","./emotion-react.browser.esm-D7mngV6f.js","./index-CuulkVT6.js","./index-B422IDQn.js","./useThemeProps-DLZVHtlO.js","./ViewColumn-B-n8_W0D.js","./LastPage-__GqzflZ.js","./Search-DVTTUfAR.js","./MoreVert-Cf6FwqrB.js","./uniqBy-L5gdenz-.js","./toUpper-ClbAdkoz.js"])))=>i.map(i=>d[i]);
2
- var Oh=Object.defineProperty;var Ah=(t,e,i)=>e in t?Oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Fe=(t,e,i)=>Ah(t,typeof e!="symbol"?e+"":e,i);import{g as _t,jM as Uh,bN as Y,bP as ut,de as Ca,dG as Ih,dc as fo,dL as Mh,dB as Bh,hq as Nh,dr as zh,ds as Lh,gV as jh,e$ as $h,it as Tu,hQ as qh,r as N,c0 as mo,j as Z,h0 as Hh,bR as tn,bQ as $i,bU as Ie,bV as an,hu as Wh,dK as br,gU as Vh,fs as Gh,d1 as vn,bY as Ye,dz as hl,hk as Kh,hl as Xh,iA as Yh,hX as Qh,cZ as Jh,jN as Du,jO as Zh,jP as ef,cN as Ru,eR as Fs,eS as Kt,jJ as go,P as U,cP as fl,a3 as ml,C as tf,fd as Ou,fR as af,hs as nf,bo as Au,aR as sf,jQ as gl,cg as of,jf as vl,a0 as bl,i as rf,jR as lf,eu as cf}from"./index-CvoQfwdo.js";import{j as Jn}from"./url-join-Cj3I6f7j.js";import{p as uf}from"./index-Bam7k3he.js";import{_ as pf,u as df}from"./_createAggregator-C8I6G1rY.js";import{a as hf}from"./index-1m57D84j.js";import{c as Oe}from"./index-B5aAzE-y.js";import{W as ff}from"./resource-dialog-Ce7XfSZ0.js";import"./index-BuCRKgwB.js";import"./index-BBwK0xsH.js";import"./index-fz_DOQ-g.js";import{p as yl}from"./index-DiOMxvTK.js";import"./index-CuulkVT6.js";import"./index-B422IDQn.js";import{a as Uu}from"./uniqBy-L5gdenz-.js";import{t as mf}from"./toUpper-ClbAdkoz.js";var gf=Uh,vf=pf,bf=vf(function(t,e,i){gf(t,i,e)}),yf=bf;const Iu=_t(yf),nn="$$material";function xf(t,e){return Y({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const Na={black:"#000",white:"#fff"},wf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},wi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_i={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Si={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_f=["mode","contrastThreshold","tonalOffset"],xl={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Na.white,default:Na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Cs={text:{primary:Na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Na.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wl(t,e,i,a){const n=a.light||a,s=a.dark||a*1.5;t[e]||(t.hasOwnProperty(i)?t[e]=t[i]:e==="light"?t.light=Mh(t.main,n):e==="dark"&&(t.dark=Bh(t.main,s)))}function Sf(t="light"){return t==="dark"?{main:_i[200],light:_i[50],dark:_i[400]}:{main:_i[700],light:_i[400],dark:_i[800]}}function Pf(t="light"){return t==="dark"?{main:xi[200],light:xi[50],dark:xi[400]}:{main:xi[500],light:xi[300],dark:xi[700]}}function Ff(t="light"){return t==="dark"?{main:wi[500],light:wi[300],dark:wi[700]}:{main:wi[700],light:wi[400],dark:wi[800]}}function Cf(t="light"){return t==="dark"?{main:Si[400],light:Si[300],dark:Si[700]}:{main:Si[700],light:Si[500],dark:Si[900]}}function kf(t="light"){return t==="dark"?{main:Pi[400],light:Pi[300],dark:Pi[700]}:{main:Pi[800],light:Pi[500],dark:Pi[900]}}function Ef(t="light"){return t==="dark"?{main:Qi[400],light:Qi[300],dark:Qi[700]}:{main:"#ed6c02",light:Qi[500],dark:Qi[900]}}function Tf(t){const{mode:e="light",contrastThreshold:i=3,tonalOffset:a=.2}=t,n=ut(t,_f),s=t.primary||Sf(e),o=t.secondary||Pf(e),r=t.error||Ff(e),l=t.info||Cf(e),u=t.success||kf(e),p=t.warning||Ef(e);function c(y){return Ih(y,Cs.text.primary)>=i?Cs.text.primary:xl.text.primary}const h=({color:y,name:m,mainShade:v=500,lightShade:P=300,darkShade:w=700})=>{if(y=Y({},y),!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(fo(11,m?` (${m})`:"",v));if(typeof y.main!="string")throw new Error(fo(12,m?` (${m})`:"",JSON.stringify(y.main)));return wl(y,"light",P,a),wl(y,"dark",w,a),y.contrastText||(y.contrastText=c(y.main)),y},f={dark:Cs,light:xl};return Ca(Y({common:Y({},Na),mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:r,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:wf,contrastThreshold:i,getContrastText:c,augmentColor:h,tonalOffset:a},f[e]),n)}const Df=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Rf(t){return Math.round(t*1e5)/1e5}const _l={textTransform:"uppercase"},Sl='"Roboto", "Helvetica", "Arial", sans-serif';function Of(t,e){const i=typeof e=="function"?e(t):e,{fontFamily:a=Sl,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:r=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:p,pxToRem:c}=i,h=ut(i,Df),f=n/14,g=c||(v=>`${v/u*f}rem`),y=(v,P,w,F,E)=>Y({fontFamily:a,fontWeight:v,fontSize:g(P),lineHeight:w},a===Sl?{letterSpacing:`${Rf(F/P)}em`}:{},E,p),m={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(r,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(r,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(r,14,1.75,.4,_l),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,_l),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Y({htmlFontSize:u,pxToRem:g,fontFamily:a,fontSize:n,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:r,fontWeightBold:l},m),h,{clone:!1})}const Af=.2,Uf=.14,If=.12;function ae(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Af})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Uf})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${If})`].join(",")}const Mf=["none",ae(0,2,1,-1,0,1,1,0,0,1,3,0),ae(0,3,1,-2,0,2,2,0,0,1,5,0),ae(0,3,3,-2,0,3,4,0,0,1,8,0),ae(0,2,4,-1,0,4,5,0,0,1,10,0),ae(0,3,5,-1,0,5,8,0,0,1,14,0),ae(0,3,5,-1,0,6,10,0,0,1,18,0),ae(0,4,5,-2,0,7,10,1,0,2,16,1),ae(0,5,5,-3,0,8,10,1,0,3,14,2),ae(0,5,6,-3,0,9,12,1,0,3,16,2),ae(0,6,6,-3,0,10,14,1,0,4,18,3),ae(0,6,7,-4,0,11,15,1,0,4,20,3),ae(0,7,8,-4,0,12,17,2,0,5,22,4),ae(0,7,8,-4,0,13,19,2,0,5,24,4),ae(0,7,9,-4,0,14,21,2,0,5,26,4),ae(0,8,9,-5,0,15,22,2,0,6,28,5),ae(0,8,10,-5,0,16,24,2,0,6,30,5),ae(0,8,11,-5,0,17,26,2,0,6,32,5),ae(0,9,11,-5,0,18,28,2,0,7,34,6),ae(0,9,12,-6,0,19,29,2,0,7,36,6),ae(0,10,13,-6,0,20,31,3,0,8,38,7),ae(0,10,13,-6,0,21,33,3,0,8,40,7),ae(0,10,14,-6,0,22,35,3,0,8,42,7),ae(0,11,14,-7,0,23,36,3,0,9,44,8),ae(0,11,15,-7,0,24,38,3,0,9,46,8)],Bf=["duration","easing","delay"],Nf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pl(t){return`${Math.round(t)}ms`}function Lf(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function jf(t){const e=Y({},Nf,t.easing),i=Y({},zf,t.duration);return Y({getAutoHeightDuration:Lf,create:(n=["all"],s={})=>{const{duration:o=i.standard,easing:r=e.easeInOut,delay:l=0}=s;return ut(s,Bf),(Array.isArray(n)?n:[n]).map(u=>`${u} ${typeof o=="string"?o:Pl(o)} ${r} ${typeof l=="string"?l:Pl(l)}`).join(",")}},t,{easing:e,duration:i})}const $f={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},qf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Mu(t={},...e){const{mixins:i={},palette:a={},transitions:n={},typography:s={}}=t,o=ut(t,qf);if(t.vars)throw new Error(fo(18));const r=Tf(a),l=Nh(t);let u=Ca(l,{mixins:xf(l.breakpoints,i),palette:r,shadows:Mf.slice(),typography:Of(r,s),transitions:jf(n),zIndex:Y({},$f)});return u=Ca(u,o),u=e.reduce((p,c)=>Ca(p,c),u),u.unstable_sxConfig=Y({},zh,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(c){return Lh({sx:c,theme:this})},u}const us=Mu();function Bu(){const t=jh(us);return t[nn]||t}function qi({props:t,name:e}){return $h({props:t,name:e,defaultTheme:us,themeId:nn})}const Hf=t=>Tu(t)&&t!=="classes",g3=Tu,yi=qh({themeId:nn,defaultTheme:us,rootShouldForwardProp:Hf}),Wf=t=>t.scrollTop;function Fl(t,e){var i,a;const{timeout:n,easing:s,style:o={}}=t;return{duration:(i=o.transitionDuration)!=null?i:typeof n=="number"?n:n[e.mode]||0,easing:(a=o.transitionTimingFunction)!=null?a:typeof s=="object"?s[e.mode]:s,delay:o.transitionDelay}}const Vf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gf={entering:{opacity:1},entered:{opacity:1}},Kf=N.forwardRef(function(e,i){const a=Bu(),n={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:r,easing:l,in:u,onEnter:p,onEntered:c,onEntering:h,onExit:f,onExited:g,onExiting:y,style:m,timeout:v=n,TransitionComponent:P=Hh}=e,w=ut(e,Vf),F=N.useRef(null),E=mo(F,r.ref,i),S=I=>$=>{if(I){const _=F.current;$===void 0?I(_):I(_,$)}},C=S(h),R=S((I,$)=>{Wf(I);const _=Fl({style:m,timeout:v,easing:l},{mode:"enter"});I.style.webkitTransition=a.transitions.create("opacity",_),I.style.transition=a.transitions.create("opacity",_),p&&p(I,$)}),A=S(c),z=S(y),L=S(I=>{const $=Fl({style:m,timeout:v,easing:l},{mode:"exit"});I.style.webkitTransition=a.transitions.create("opacity",$),I.style.transition=a.transitions.create("opacity",$),f&&f(I)}),V=S(g),H=I=>{s&&s(F.current,I)};return Z.jsx(P,Y({appear:o,in:u,nodeRef:F,onEnter:R,onEntered:A,onEntering:C,onExit:L,onExited:V,onExiting:z,addEndListener:H,timeout:v},w,{children:(I,$)=>N.cloneElement(r,Y({style:Y({opacity:0,visibility:I==="exited"&&!u?"hidden":void 0},Gf[I],m,r.props.style),ref:E},$))}))});function Xf(t){return tn("MuiBackdrop",t)}$i("MuiBackdrop",["root","invisible"]);const Yf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qf=t=>{const{classes:e,invisible:i}=t;return an({root:["root",i&&"invisible"]},Xf,e)},Jf=yi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,i.invisible&&e.invisible]}})(({ownerState:t})=>Y({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),Zf=N.forwardRef(function(e,i){var a,n,s;const o=qi({props:e,name:"MuiBackdrop"}),{children:r,className:l,component:u="div",components:p={},componentsProps:c={},invisible:h=!1,open:f,slotProps:g={},slots:y={},TransitionComponent:m=Kf,transitionDuration:v}=o,P=ut(o,Yf),w=Y({},o,{component:u,invisible:h}),F=Qf(w),E=(a=g.root)!=null?a:c.root;return Z.jsx(m,Y({in:f,timeout:v},P,{children:Z.jsx(Jf,Y({"aria-hidden":!0},E,{as:(n=(s=y.root)!=null?s:p.Root)!=null?n:u,className:Ie(F.root,l,E==null?void 0:E.className),ownerState:Y({},w,E==null?void 0:E.ownerState),classes:F,ref:i,children:r}))}))});function em(t){return Z.jsx(Wh,Y({},t,{defaultTheme:us,themeId:nn}))}function tm(t){const{className:e,classes:i,pulsate:a=!1,rippleX:n,rippleY:s,rippleSize:o,in:r,onExited:l,timeout:u}=t,[p,c]=N.useState(!1),h=Ie(e,i.ripple,i.rippleVisible,a&&i.ripplePulsate),f={width:o,height:o,top:-(o/2)+s,left:-(o/2)+n},g=Ie(i.child,p&&i.childLeaving,a&&i.childPulsate);return!r&&!p&&c(!0),N.useEffect(()=>{if(!r&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,r,u]),Z.jsx("span",{className:h,style:f,children:Z.jsx("span",{className:g})})}const Ke=$i("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),im=["center","classes","className"];let ps=t=>t,Cl,kl,El,Tl;const vo=550,am=80,nm=br(Cl||(Cl=ps`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Db12S-QJ.js","./index-szLyLiKt.js","./index-DUNzMUoy.css","./visuallyHidden-Dan1xhjv.js","./url-join-C5gF0TYO.js","./index-Cq1Ew3yw.js","./_createAggregator-CB0GKIBb.js","./index-COjbf0ze.js","./index-CvGXEvkW.js","./resource-dialog-B3-hy8cw.js","./ExpandMore-BYtoX48D.js","./index-B8LxINcc.js","./Skeleton-BrUMN46n.js","./HelpOutline-DGp-1BRD.js","./index-M3td2VXe.js","./ButtonGroup-B9g57_Ix.js","./getValidReactChildren-CxWlB_GY.js","./TextField-DmmMqMAo.js","./Select-C9prPdE8.js","./InputLabel-BpHdIT50.js","./index-CwFt9Te9.js","./Delete-Cgqm12Xe.js","./index-CXsdGe6B.js","./index-D2z1mjPq.js","./index-CABG6WnA.js","./emotion-react.browser.esm-Ce5DYL2G.js","./index-BZpDshq_.js","./index-CXxy8kEI.js","./useThemeProps-e0r4gLct.js","./ViewColumn-avwxMG4J.js","./LastPage-Cr-0h2EM.js","./Search-DgsnShxd.js","./MoreVert-CVu4BzQC.js","./uniqBy-DMKiy0t2.js","./toUpper-CFkfojgH.js"])))=>i.map(i=>d[i]);
2
+ var Oh=Object.defineProperty;var Ah=(t,e,i)=>e in t?Oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Fe=(t,e,i)=>Ah(t,typeof e!="symbol"?e+"":e,i);import{g as _t,jM as Uh,bN as Y,bP as ut,de as Ca,dG as Ih,dc as fo,dL as Mh,dB as Bh,hq as Nh,dr as zh,ds as Lh,gV as jh,e$ as $h,it as Tu,hQ as qh,r as N,c0 as mo,j as Z,h0 as Hh,bR as tn,bQ as $i,bU as Ie,bV as an,hu as Wh,dK as br,gU as Vh,fs as Gh,d1 as vn,bY as Ye,dz as hl,hk as Kh,hl as Xh,iA as Yh,hX as Qh,cZ as Jh,jN as Du,jO as Zh,jP as ef,cN as Ru,eR as Fs,eS as Kt,jJ as go,P as U,cP as fl,a3 as ml,C as tf,fd as Ou,fR as af,hs as nf,bo as Au,aR as sf,jQ as gl,cg as of,jf as vl,a0 as bl,i as rf,jR as lf,eu as cf}from"./index-szLyLiKt.js";import{j as Jn}from"./url-join-C5gF0TYO.js";import{p as uf}from"./index-Cq1Ew3yw.js";import{_ as pf,u as df}from"./_createAggregator-CB0GKIBb.js";import{a as hf}from"./index-COjbf0ze.js";import{c as Oe}from"./index-CvGXEvkW.js";import{W as ff}from"./resource-dialog-B3-hy8cw.js";import"./index-CwFt9Te9.js";import"./index-CXsdGe6B.js";import"./index-D2z1mjPq.js";import{p as yl}from"./index-CABG6WnA.js";import"./index-BZpDshq_.js";import"./index-CXxy8kEI.js";import{a as Uu}from"./uniqBy-DMKiy0t2.js";import{t as mf}from"./toUpper-CFkfojgH.js";var gf=Uh,vf=pf,bf=vf(function(t,e,i){gf(t,i,e)}),yf=bf;const Iu=_t(yf),nn="$$material";function xf(t,e){return Y({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const Na={black:"#000",white:"#fff"},wf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},wi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_i={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Si={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_f=["mode","contrastThreshold","tonalOffset"],xl={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Na.white,default:Na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Cs={text:{primary:Na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Na.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wl(t,e,i,a){const n=a.light||a,s=a.dark||a*1.5;t[e]||(t.hasOwnProperty(i)?t[e]=t[i]:e==="light"?t.light=Mh(t.main,n):e==="dark"&&(t.dark=Bh(t.main,s)))}function Sf(t="light"){return t==="dark"?{main:_i[200],light:_i[50],dark:_i[400]}:{main:_i[700],light:_i[400],dark:_i[800]}}function Pf(t="light"){return t==="dark"?{main:xi[200],light:xi[50],dark:xi[400]}:{main:xi[500],light:xi[300],dark:xi[700]}}function Ff(t="light"){return t==="dark"?{main:wi[500],light:wi[300],dark:wi[700]}:{main:wi[700],light:wi[400],dark:wi[800]}}function Cf(t="light"){return t==="dark"?{main:Si[400],light:Si[300],dark:Si[700]}:{main:Si[700],light:Si[500],dark:Si[900]}}function kf(t="light"){return t==="dark"?{main:Pi[400],light:Pi[300],dark:Pi[700]}:{main:Pi[800],light:Pi[500],dark:Pi[900]}}function Ef(t="light"){return t==="dark"?{main:Qi[400],light:Qi[300],dark:Qi[700]}:{main:"#ed6c02",light:Qi[500],dark:Qi[900]}}function Tf(t){const{mode:e="light",contrastThreshold:i=3,tonalOffset:a=.2}=t,n=ut(t,_f),s=t.primary||Sf(e),o=t.secondary||Pf(e),r=t.error||Ff(e),l=t.info||Cf(e),u=t.success||kf(e),p=t.warning||Ef(e);function c(y){return Ih(y,Cs.text.primary)>=i?Cs.text.primary:xl.text.primary}const h=({color:y,name:m,mainShade:v=500,lightShade:P=300,darkShade:w=700})=>{if(y=Y({},y),!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(fo(11,m?` (${m})`:"",v));if(typeof y.main!="string")throw new Error(fo(12,m?` (${m})`:"",JSON.stringify(y.main)));return wl(y,"light",P,a),wl(y,"dark",w,a),y.contrastText||(y.contrastText=c(y.main)),y},f={dark:Cs,light:xl};return Ca(Y({common:Y({},Na),mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:r,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:wf,contrastThreshold:i,getContrastText:c,augmentColor:h,tonalOffset:a},f[e]),n)}const Df=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Rf(t){return Math.round(t*1e5)/1e5}const _l={textTransform:"uppercase"},Sl='"Roboto", "Helvetica", "Arial", sans-serif';function Of(t,e){const i=typeof e=="function"?e(t):e,{fontFamily:a=Sl,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:r=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:p,pxToRem:c}=i,h=ut(i,Df),f=n/14,g=c||(v=>`${v/u*f}rem`),y=(v,P,w,F,E)=>Y({fontFamily:a,fontWeight:v,fontSize:g(P),lineHeight:w},a===Sl?{letterSpacing:`${Rf(F/P)}em`}:{},E,p),m={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(r,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(r,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(r,14,1.75,.4,_l),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,_l),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Y({htmlFontSize:u,pxToRem:g,fontFamily:a,fontSize:n,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:r,fontWeightBold:l},m),h,{clone:!1})}const Af=.2,Uf=.14,If=.12;function ae(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Af})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Uf})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${If})`].join(",")}const Mf=["none",ae(0,2,1,-1,0,1,1,0,0,1,3,0),ae(0,3,1,-2,0,2,2,0,0,1,5,0),ae(0,3,3,-2,0,3,4,0,0,1,8,0),ae(0,2,4,-1,0,4,5,0,0,1,10,0),ae(0,3,5,-1,0,5,8,0,0,1,14,0),ae(0,3,5,-1,0,6,10,0,0,1,18,0),ae(0,4,5,-2,0,7,10,1,0,2,16,1),ae(0,5,5,-3,0,8,10,1,0,3,14,2),ae(0,5,6,-3,0,9,12,1,0,3,16,2),ae(0,6,6,-3,0,10,14,1,0,4,18,3),ae(0,6,7,-4,0,11,15,1,0,4,20,3),ae(0,7,8,-4,0,12,17,2,0,5,22,4),ae(0,7,8,-4,0,13,19,2,0,5,24,4),ae(0,7,9,-4,0,14,21,2,0,5,26,4),ae(0,8,9,-5,0,15,22,2,0,6,28,5),ae(0,8,10,-5,0,16,24,2,0,6,30,5),ae(0,8,11,-5,0,17,26,2,0,6,32,5),ae(0,9,11,-5,0,18,28,2,0,7,34,6),ae(0,9,12,-6,0,19,29,2,0,7,36,6),ae(0,10,13,-6,0,20,31,3,0,8,38,7),ae(0,10,13,-6,0,21,33,3,0,8,40,7),ae(0,10,14,-6,0,22,35,3,0,8,42,7),ae(0,11,14,-7,0,23,36,3,0,9,44,8),ae(0,11,15,-7,0,24,38,3,0,9,46,8)],Bf=["duration","easing","delay"],Nf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pl(t){return`${Math.round(t)}ms`}function Lf(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function jf(t){const e=Y({},Nf,t.easing),i=Y({},zf,t.duration);return Y({getAutoHeightDuration:Lf,create:(n=["all"],s={})=>{const{duration:o=i.standard,easing:r=e.easeInOut,delay:l=0}=s;return ut(s,Bf),(Array.isArray(n)?n:[n]).map(u=>`${u} ${typeof o=="string"?o:Pl(o)} ${r} ${typeof l=="string"?l:Pl(l)}`).join(",")}},t,{easing:e,duration:i})}const $f={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},qf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Mu(t={},...e){const{mixins:i={},palette:a={},transitions:n={},typography:s={}}=t,o=ut(t,qf);if(t.vars)throw new Error(fo(18));const r=Tf(a),l=Nh(t);let u=Ca(l,{mixins:xf(l.breakpoints,i),palette:r,shadows:Mf.slice(),typography:Of(r,s),transitions:jf(n),zIndex:Y({},$f)});return u=Ca(u,o),u=e.reduce((p,c)=>Ca(p,c),u),u.unstable_sxConfig=Y({},zh,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(c){return Lh({sx:c,theme:this})},u}const us=Mu();function Bu(){const t=jh(us);return t[nn]||t}function qi({props:t,name:e}){return $h({props:t,name:e,defaultTheme:us,themeId:nn})}const Hf=t=>Tu(t)&&t!=="classes",g3=Tu,yi=qh({themeId:nn,defaultTheme:us,rootShouldForwardProp:Hf}),Wf=t=>t.scrollTop;function Fl(t,e){var i,a;const{timeout:n,easing:s,style:o={}}=t;return{duration:(i=o.transitionDuration)!=null?i:typeof n=="number"?n:n[e.mode]||0,easing:(a=o.transitionTimingFunction)!=null?a:typeof s=="object"?s[e.mode]:s,delay:o.transitionDelay}}const Vf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gf={entering:{opacity:1},entered:{opacity:1}},Kf=N.forwardRef(function(e,i){const a=Bu(),n={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:r,easing:l,in:u,onEnter:p,onEntered:c,onEntering:h,onExit:f,onExited:g,onExiting:y,style:m,timeout:v=n,TransitionComponent:P=Hh}=e,w=ut(e,Vf),F=N.useRef(null),E=mo(F,r.ref,i),S=I=>$=>{if(I){const _=F.current;$===void 0?I(_):I(_,$)}},C=S(h),R=S((I,$)=>{Wf(I);const _=Fl({style:m,timeout:v,easing:l},{mode:"enter"});I.style.webkitTransition=a.transitions.create("opacity",_),I.style.transition=a.transitions.create("opacity",_),p&&p(I,$)}),A=S(c),z=S(y),L=S(I=>{const $=Fl({style:m,timeout:v,easing:l},{mode:"exit"});I.style.webkitTransition=a.transitions.create("opacity",$),I.style.transition=a.transitions.create("opacity",$),f&&f(I)}),V=S(g),H=I=>{s&&s(F.current,I)};return Z.jsx(P,Y({appear:o,in:u,nodeRef:F,onEnter:R,onEntered:A,onEntering:C,onExit:L,onExited:V,onExiting:z,addEndListener:H,timeout:v},w,{children:(I,$)=>N.cloneElement(r,Y({style:Y({opacity:0,visibility:I==="exited"&&!u?"hidden":void 0},Gf[I],m,r.props.style),ref:E},$))}))});function Xf(t){return tn("MuiBackdrop",t)}$i("MuiBackdrop",["root","invisible"]);const Yf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qf=t=>{const{classes:e,invisible:i}=t;return an({root:["root",i&&"invisible"]},Xf,e)},Jf=yi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,i.invisible&&e.invisible]}})(({ownerState:t})=>Y({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),Zf=N.forwardRef(function(e,i){var a,n,s;const o=qi({props:e,name:"MuiBackdrop"}),{children:r,className:l,component:u="div",components:p={},componentsProps:c={},invisible:h=!1,open:f,slotProps:g={},slots:y={},TransitionComponent:m=Kf,transitionDuration:v}=o,P=ut(o,Yf),w=Y({},o,{component:u,invisible:h}),F=Qf(w),E=(a=g.root)!=null?a:c.root;return Z.jsx(m,Y({in:f,timeout:v},P,{children:Z.jsx(Jf,Y({"aria-hidden":!0},E,{as:(n=(s=y.root)!=null?s:p.Root)!=null?n:u,className:Ie(F.root,l,E==null?void 0:E.className),ownerState:Y({},w,E==null?void 0:E.ownerState),classes:F,ref:i,children:r}))}))});function em(t){return Z.jsx(Wh,Y({},t,{defaultTheme:us,themeId:nn}))}function tm(t){const{className:e,classes:i,pulsate:a=!1,rippleX:n,rippleY:s,rippleSize:o,in:r,onExited:l,timeout:u}=t,[p,c]=N.useState(!1),h=Ie(e,i.ripple,i.rippleVisible,a&&i.ripplePulsate),f={width:o,height:o,top:-(o/2)+s,left:-(o/2)+n},g=Ie(i.child,p&&i.childLeaving,a&&i.childPulsate);return!r&&!p&&c(!0),N.useEffect(()=>{if(!r&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,r,u]),Z.jsx("span",{className:h,style:f,children:Z.jsx("span",{className:g})})}const Ke=$i("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),im=["center","classes","className"];let ps=t=>t,Cl,kl,El,Tl;const vo=550,am=80,nm=br(Cl||(Cl=ps`
3
3
  0% {
4
4
  transform: scale(0);
5
5
  opacity: 0.1;
@@ -125,5 +125,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
125
125
  <div class="uppy-ProviderBrowserItem-inner uploaded-add-item">
126
126
  <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>
127
127
  </div>
128
- `,a.addEventListener("click",async()=>{await this.uppy.openPlugin("My Device")}),i.insertBefore(a,i.firstChild),this.addUploadItemFlag=!1}}},{wait:200}));Fe(this,"convertImgToObject",go(()=>{this.canConvertImgToObject&&(document.querySelectorAll("#uploaded img").forEach(a=>{var l;if(!(a!=null&&a.src))return;const{src:n}=a,s=(l=this.uploadedAPIData.files)==null?void 0:l.find(u=>u.previewUrl===n),o=document.createElement("div");o.style="width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; ";const r=document.createElement("div");if(r.className="uppy-ProviderBrowserItem-name",r.style="pointer-events: none; position: absolute; bottom: 0; left: 0; right: 0; padding: 5px; background: #0000004d; color: #fff; ",r.innerHTML=mh(s.originalname),[".mp4",".webm"].find(u=>{var p;return(p=a.src)==null?void 0:p.endsWith(u)})){const u=document.createElement("video");u.src=a.src,u.width=a.width,u.height=a.height,u.autoplay=!0,u.setAttribute("playsinline","playsinline"),u.muted=!0,u.loop=!0,u.style="pointer-events: none;",o.appendChild(u)}else{const u=document.createElement("object");u.data=n,u.type=s.mimetype||"image/png",u.alt=s.originalname,u.style="pointer-events: none; max-width: 100%; max-height: 100%; webkit-user-drag: none; object-fit: contain;",u.loading="lazy",o.appendChild(u)}o.appendChild(r),a.parentNode.replaceChild(o,a)}),this.canConvertImgToObject=!1)},{wait:200}));Fe(this,"resetState",()=>{this.uploadedAPIData={...xu},this.uploaded.setPluginState({...wu}),this.addUploadItemFlag=!0});this.id=this.opts.id||"Uploaded",this.title=this.opts.title||"Uploaded",this.params=this.opts.params||{},this.type="acquirer",this.uppy=i,this.uploadedAPIData={...xu},this.addUploadItemFlag=!0,this.icon=()=>me("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"18",viewBox:"0 0 1024 1024",children:[me("path",{d:"M145.6 0c-44.8 0-80 36.8-80 81.6V944c0 44.8 35.2 80 80 80h732.8c44.8 0 81.6-35.2 81.6-80V326.4L657.6 0h-512z",fill:"#49C9A7"}),me("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z",fill:"#49C9A7"}),me("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#37BB91"}),me("path",{d:"M225.6 859.2V524.8H560v334.4H225.6z m300.8-300.8H259.2v201.6h267.2V558.4z m-153.6 134.4l62.4-84.8 20.8 33.6 20.8-6.4 16 89.6H283.2l56-52.8 33.6 20.8z m-60.8-59.2c-14.4 0-27.2-9.6-27.2-24 0-12.8 12.8-24 27.2-24 14.4 0 25.6 11.2 25.6 24 0 14.4-11.2 24-25.6 24z",fill:"#FFFFFF"})]})}render(i){var a;return!this.uploadedAPIData.loading&&((a=this.uploadedAPIData.files)==null?void 0:a.length)===0&&this.queryUploadedFromMediaKit(),me("div",{id:"uploaded",className:"uploaded",children:this.view.render(i)})}update(){this.convertImgToObject(),this.addUploadItem()}onFirstRender(){}install(){this.view=new Er(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.uploaded=this.view.plugin,this.uploaded.setPluginState({...wu}),this.uploaded.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.uploaded.getPluginState(),o=this.uploaded.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l._id===n._id)?this.uploaded.setPluginState({currentSelection:[...s.filter(l=>l._id!==n._id)]}):(r||s.pop(),this.uploaded.setPluginState({currentSelection:[...s,n]}))},this.view.donePicking=()=>{const{currentSelection:a}=this.uploaded.getPluginState();this.uppy.emit("uploaded:selected",a),this.uploaded.parent.hideAllPanels()},this.uploaded.uppy.validateRestrictions=()=>!1,this.view.handleScroll=a=>{const{scrollHeight:n,scrollTop:s,offsetHeight:o}=a.target;n-(s+o)<30&&this.queryUploadedFromMediaKit()};const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.unmount(),this.uploaded.uppy.off("dashboard:show-panel",this.resetState)}}const _u={initialized:!1,data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,componentDid:"",components:[]},Su={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0},vh={padding:"5px 15px",marginRight:"8px",marginTop:"8px",borderRadius:"4px",cursor:"pointer",border:"1px solid rgb(29, 193, 199)",color:"rgb(29, 193, 199)",backgroundColor:"transparent",fontSize:"14px",lineHeight:"24.5px",fontWeight:"bold"},p2={...vh,color:"#fff",backgroundColor:"rgb(29, 193, 199)"};class d2 extends ye{constructor(i,a){super(i,a);Fe(this,"queryResources",async()=>{if(!this.apiData.loading){this.apiData.loading=!0;const{data:i}=await Ki.get("/api/resources",{params:{componentDid:this.apiData.componentDid}});this.apiData.loading=!1,this.apiData.initialized=!0,this.apiData.components=i.components||[],this.apiData.componentDid=i.componentDid||"",this.apiData.files=Uu([...i.resources.map(a=>{let n="file";const{filename:s}=a,o=en(s,0,0,wt);return n=en(s,400,0,wt),{filename:s,_id:s,id:s,name:s,icon:n,previewUrl:n,fileUrl:o}})],"id"),this.resources.setPluginState({files:this.apiData.files,loading:!1})}});Fe(this,"resetState",()=>{this.apiData={..._u},this.resources.setPluginState({...Su})});this.id=this.opts.id||"Resources",this.title=this.opts.title||"Resources",this.params=this.opts.params||{},this.type="acquirer",this.uppy=i,this.componentDid="",this.apiData={..._u},this.icon=()=>me("svg",{t:"1700146012231",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15673",width:"200",height:"200",children:[me("path",{d:"M403.2 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-187.733333c0-49.066667-38.4-85.333333-85.333333-85.333334zM426.666667 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-21.333333 0-38.4-17.066667-38.4-36.266667v-162.133333c0-19.2 17.066667-36.266667 36.266667-36.266667h160c19.2 0 36.266667 17.066667 36.266666 36.266667v162.133333z",fill:"#0171F1","p-id":"15674"}),me("path",{d:"M808.533333 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-187.733333c0-49.066667-36.266667-85.333333-85.333334-85.333334zM832 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-19.2 0-36.266667-17.066667-36.266666-36.266667v-162.133333c-2.133333-19.2 14.933333-36.266667 34.133333-36.266667h160c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333zM403.2 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-189.866667c0-46.933333-38.4-85.333333-85.333333-85.333333zM426.666667 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-21.333333 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#55ABE5","p-id":"15675"}),me("path",{d:"M808.533333 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-189.866667c0-46.933333-36.266667-85.333333-85.333334-85.333333zM832 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-19.2 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c21.333333 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#0171F1","p-id":"15676"})]})}render(i){return!this.apiData.loading&&!this.apiData.initialized&&this.queryResources(),me("div",{id:"resources",className:"uploaded",children:[me("div",{style:{padding:this.apiData.components.length?"12px":"0",backgroundColor:"#fff",display:"flex",flexWrap:"wrap",marginTop:"-8px"},children:this.apiData.components.map(a=>me("button",{style:this.apiData.componentDid===a.did?p2:vh,id:a.componentDid,onClick:()=>{this.apiData.componentDid!==a.did&&(this.apiData.componentDid=a.did,this.queryResources())},children:mf(a.name)}))}),this.view.render(i)]})}update(){}onFirstRender(){}install(){this.view=new Er(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.resources=this.view.plugin,this.resources.setPluginState({...Su}),this.resources.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.resources.getPluginState(),o=this.resources.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l.id===n.id)?this.resources.setPluginState({currentSelection:[...s.filter(l=>l.id!==n.id)]}):(r||s.pop(),this.resources.setPluginState({currentSelection:[...s,n]}))},this.resources.uppy.validateRestrictions=()=>!1,this.view.donePicking=()=>{const{currentSelection:a}=this.resources.getPluginState();this.uppy.emit("resources:selected",a),this.resources.parent.hideAllPanels()};const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.unmount(),this.resources.uppy.off("dashboard:show-panel",this.resetState)}}var h2=af();const f2=_t(h2);var Be=Uint8Array,Ai=Uint16Array,m2=Int32Array,bh=new Be([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yh=new Be([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),g2=new Be([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xh=function(t,e){for(var i=new Ai(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];for(var n=new m2(i[30]),a=1;a<30;++a)for(var s=i[a];s<i[a+1];++s)n[s]=s-i[a]<<5|a;return{b:i,r:n}},wh=xh(bh,2),_h=wh.b,v2=wh.r;_h[28]=258,v2[258]=28;var b2=xh(yh,0),y2=b2.b,mr=new Ai(32768);for(var ie=0;ie<32768;++ie){var Lt=(ie&43690)>>1|(ie&21845)<<1;Lt=(Lt&52428)>>2|(Lt&13107)<<2,Lt=(Lt&61680)>>4|(Lt&3855)<<4,mr[ie]=((Lt&65280)>>8|(Lt&255)<<8)>>1}var Ba=function(t,e,i){for(var a=t.length,n=0,s=new Ai(e);n<a;++n)t[n]&&++s[t[n]-1];var o=new Ai(e);for(n=1;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;var r;if(i){r=new Ai(1<<e);var l=15-e;for(n=0;n<a;++n)if(t[n])for(var u=n<<4|t[n],p=e-t[n],c=o[t[n]-1]++<<p,h=c|(1<<p)-1;c<=h;++c)r[mr[c]>>l]=u}else for(r=new Ai(a),n=0;n<a;++n)t[n]&&(r[n]=mr[o[t[n]-1]++]>>15-t[n]);return r},dn=new Be(288);for(var ie=0;ie<144;++ie)dn[ie]=8;for(var ie=144;ie<256;++ie)dn[ie]=9;for(var ie=256;ie<280;++ie)dn[ie]=7;for(var ie=280;ie<288;++ie)dn[ie]=8;var Sh=new Be(32);for(var ie=0;ie<32;++ie)Sh[ie]=5;var x2=Ba(dn,9,1),w2=Ba(Sh,5,1),co=function(t){for(var e=t[0],i=1;i<t.length;++i)t[i]>e&&(e=t[i]);return e},it=function(t,e,i){var a=e/8|0;return(t[a]|t[a+1]<<8)>>(e&7)&i},uo=function(t,e){var i=e/8|0;return(t[i]|t[i+1]<<8|t[i+2]<<16)>>(e&7)},_2=function(t){return(t+7)/8|0},ol=function(t,e,i){return(e==null||e<0)&&(e=0),(i==null||i>t.length)&&(i=t.length),new Be(t.subarray(e,i))},S2=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ce=function(t,e,i){var a=new Error(e||S2[t]);if(a.code=t,Error.captureStackTrace&&Error.captureStackTrace(a,Ce),!i)throw a;return a},rl=function(t,e,i,a){var n=t.length,s=a?a.length:0;if(!n||e.f&&!e.l)return i||new Be(0);var o=!i,r=o||e.i!=2,l=e.i;o&&(i=new Be(n*3));var u=function(St){var Xt=i.length;if(St>Xt){var Je=new Be(Math.max(Xt*2,St));Je.set(i),i=Je}},p=e.f||0,c=e.p||0,h=e.b||0,f=e.l,g=e.d,y=e.m,m=e.n,v=n*8;do{if(!f){p=it(t,c,1);var P=it(t,c+1,3);if(c+=3,P)if(P==1)f=x2,g=w2,y=9,m=5;else if(P==2){var S=it(t,c,31)+257,C=it(t,c+10,15)+4,R=S+it(t,c+5,31)+1;c+=14;for(var A=new Be(R),z=new Be(19),L=0;L<C;++L)z[g2[L]]=it(t,c+L*3,7);c+=C*3;for(var V=co(z),H=(1<<V)-1,I=Ba(z,V,1),L=0;L<R;){var $=I[it(t,c,H)];c+=$&15;var w=$>>4;if(w<16)A[L++]=w;else{var _=0,b=0;for(w==16?(b=3+it(t,c,3),c+=2,_=A[L-1]):w==17?(b=3+it(t,c,7),c+=3):w==18&&(b=11+it(t,c,127),c+=7);b--;)A[L++]=_}}var x=A.subarray(0,S),k=A.subarray(S);y=co(x),m=co(k),f=Ba(x,y,1),g=Ba(k,m,1)}else Ce(1);else{var w=_2(c)+4,F=t[w-4]|t[w-3]<<8,E=w+F;if(E>n){l&&Ce(0);break}r&&u(h+F),i.set(t.subarray(w,E),h),e.b=h+=F,e.p=c=E*8,e.f=p;continue}if(c>v){l&&Ce(0);break}}r&&u(h+131072);for(var O=(1<<y)-1,D=(1<<m)-1,T=c;;T=c){var _=f[uo(t,c)&O],M=_>>4;if(c+=_&15,c>v){l&&Ce(0);break}if(_||Ce(2),M<256)i[h++]=M;else if(M==256){T=c,f=null;break}else{var q=M-254;if(M>264){var L=M-257,K=bh[L];q=it(t,c,(1<<K)-1)+_h[L],c+=K}var G=g[uo(t,c)&D],Q=G>>4;G||Ce(3),c+=G&15;var k=y2[Q];if(Q>3){var K=yh[Q];k+=uo(t,c)&(1<<K)-1,c+=K}if(c>v){l&&Ce(0);break}r&&u(h+131072);var xe=h+q;if(h<k){var we=s-k,Xi=Math.min(k,xe);for(we+h<0&&Ce(3);h<Xi;++h)i[h]=a[we+h]}for(;h<xe;++h)i[h]=i[h-k]}}e.l=f,e.p=T,e.b=h,e.f=p,f&&(p=1,e.m=y,e.d=g,e.n=m)}while(!p);return h!=i.length&&o?ol(i,0,h):i.subarray(0,h)},P2=new Be(0),ft=function(t,e){return t[e]|t[e+1]<<8},lt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},po=function(t,e){return lt(t,e)+lt(t,e+4)*4294967296},F2=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Ce(6,"invalid gzip data");var e=t[3],i=10;e&4&&(i+=(t[10]|t[11]<<8)+2);for(var a=(e>>3&1)+(e>>4&1);a>0;a-=!t[i++]);return i+(e&2)},C2=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},k2=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Ce(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Ce(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function Ph(t,e){return rl(t,{i:2},e&&e.out,e&&e.dictionary)}function E2(t,e){var i=F2(t);return i+8>t.length&&Ce(6,"invalid gzip data"),rl(t.subarray(i,-8),{i:2},e&&e.out||new Be(C2(t)),e&&e.dictionary)}function T2(t,e){return rl(t.subarray(k2(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function ho(t,e){return t[0]==31&&t[1]==139&&t[2]==8?E2(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Ph(t,e):T2(t,e)}var gr=typeof TextDecoder<"u"&&new TextDecoder,D2=0;try{gr.decode(P2,{stream:!0}),D2=1}catch{}var R2=function(t){for(var e="",i=0;;){var a=t[i++],n=(a>127)+(a>223)+(a>239);if(i+n>t.length)return{s:e,r:ol(t,i-1)};n?n==3?(a=((a&15)<<18|(t[i++]&63)<<12|(t[i++]&63)<<6|t[i++]&63)-65536,e+=String.fromCharCode(55296|a>>10,56320|a&1023)):n&1?e+=String.fromCharCode((a&31)<<6|t[i++]&63):e+=String.fromCharCode((a&15)<<12|(t[i++]&63)<<6|t[i++]&63):e+=String.fromCharCode(a)}};function O2(t,e){if(e){for(var i="",a=0;a<t.length;a+=16384)i+=String.fromCharCode.apply(null,t.subarray(a,a+16384));return i}else{if(gr)return gr.decode(t);var n=R2(t),s=n.s,i=n.r;return i.length&&Ce(8),s}}var A2=function(t,e){return e+30+ft(t,e+26)+ft(t,e+28)},U2=function(t,e,i){var a=ft(t,e+28),n=O2(t.subarray(e+46,e+46+a),!(ft(t,e+8)&2048)),s=e+46+a,o=lt(t,e+20),r=i&&o==4294967295?I2(t,s):[o,lt(t,e+24),lt(t,e+42)],l=r[0],u=r[1],p=r[2];return[ft(t,e+10),l,u,n,s+ft(t,e+30)+ft(t,e+32),p]},I2=function(t,e){for(;ft(t,e)!=1;e+=4+ft(t,e+2));return[po(t,e+12),po(t,e+4),po(t,e+20)]};function M2(t,e){for(var i={},a=t.length-22;lt(t,a)!=101010256;--a)(!a||t.length-a>65558)&&Ce(13);var n=ft(t,a+8);if(!n)return{};var s=lt(t,a+16),o=s==4294967295||n==65535;if(o){var r=lt(t,a-12);o=lt(t,r)==101075792,o&&(n=lt(t,r+32),s=lt(t,r+48))}for(var l=e&&e.filter,u=0;u<n;++u){var p=U2(t,s,o),c=p[0],h=p[1],f=p[2],g=p[3],y=p[4],m=p[5],v=A2(t,m);s=y,(!l||l({name:g,size:h,originalSize:f,compression:c}))&&(c?c==8?i[g]=Ph(t.subarray(v,v+h),{out:new Be(f)}):Ce(14,"unknown compression type "+c):i[g]=ol(t,v,v+h))}return i}const Mn={zip:M2,gz:ho,tgz:ho,deflate:ho};class B2 extends ye{constructor(i,a){super(i,{...{},...a});Fe(this,"setHashFileName",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:s}=n,o=1024*1024*5,r=s.slice(0,o),l=f2.createHash("md5").update(await r.text()).digest("hex"),u=Bi(n),p=`${l}${u?`.${u}`:""}`;this.uppy.setFileState(a,{hashFileName:p})}});Fe(this,"setMetaData",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:{webkitRelativePath:s,relativePath:o,name:r},hashFileName:l}=n,u=o||s||r||l;this.uppy.setFileMeta(a,{relativePath:u,name:u})}});Fe(this,"preventXssAttack",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{name:s,meta:o}=this.uppy.getFile(a),r=yl.sanitize(s);if(s!==r){const u=Bi(n),p=r.endsWith(`.${u}`)?r:`${r}.${u}`;this.uppy.setFileState(a,{name:p,meta:{...o,name:p,filename:p}})}if(await gh(n)){const{data:u,name:p,type:c}=this.uppy.getFile(a),h=await u.text(),f=yl.sanitize(h,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["use"]});if(h!==f){const g=new Blob([f],{type:c}),y=pr(g,p);this.uppy.setFileState(a,{...this.uppy.getFile(a),data:y}),console.info("clean svg file xss attack",{name:p,originalFile:n.data.text(),cleanFile:f})}}}});Fe(this,"preventZipBombAttack",async i=>{const{id:a}=i,n=this.uppy.getFile(a);try{if(n&&Mn[n.extension]){const{data:s}=n,o=Mn[n.extension](new Uint8Array(await s.arrayBuffer()));let r=0;const l=(p,c)=>(r++,Object.entries(p instanceof Uint8Array?{[c||n.name]:p}:p).reduce((h,[f,g])=>{const y=h+g.byteLength;if(r>=5||y>n.size*100)throw console.error("Zip bomb detected, please check your file",{maxDepth:r,baseAcc:y,fileSize:n.size}),new Error("Zip bomb detected, please check your file");const m=mt.extension(mt.lookup(f));if(Mn[m]){const v=Mn[m](g);return y+l(v,f)}return y},0)),u=l(o);if(console.info(n.name,{totalUnzippedSize:u,maxDepth:r,zippedSize:n.size}),u>n.size*100)throw new Error("Zip bomb detected, please check your file")}}catch(s){if(s.message.includes("Zip bomb detected"))throw s}});Fe(this,"validateImagesRespectCropperOptions",async()=>this.uppy.getFiles().reduce(async(i,a)=>{var y,m,v;await i;const{id:n}=a;let s=this.uppy.getFile(n);if(s.isRemote&&(await this.tryDownloadRemoteFile(s),s=this.uppy.getFile(n)),!((y=this.opts.cropperOptions)!=null&&y.aspectRatio)||!((m=s==null?void 0:s.type)!=null&&m.includes("image"))||(v=s.type)!=null&&v.includes("image/svg"))return Promise.resolve();const{aspectRatio:o}=this.opts.cropperOptions,r=this.uppy.getPlugin("ImageEditor"),l=document.querySelector(`[src="${s.preview}"]`)||document.getElementById("uppy_"+n).querySelector("img"),u=l==null?void 0:l.naturalWidth,p=l==null?void 0:l.naturalHeight,c=Number(u/p).toFixed(2),h=Number(o).toFixed(2);if(c===h)return Promise.resolve();this.uppy.emit("preprocess-progress",s,{mode:"indeterminate",message:this.i18n("editorLoading")}),r.parent.openFileEditor(s);const g=this.i18n("aspectRatioMessage",{imageAspectRatio:c,aspectRatio:h});return this.uppy.info({message:g,details:g}),new Promise((P,w)=>{this.uppy.once("file-editor:complete",()=>{setTimeout(()=>{P()},200)}),this.uppy.once("file-editor:cancel",()=>{})})},Promise.resolve()));Fe(this,"prepareUploadWrapper",async i=>{await this.tryDownloadRemoteFile(i),await this.getPreviewFromData(i),await this.setHashFileName(i),await this.preventXssAttack(i),await this.preventZipBombAttack(i),await this.setMetaData(i)});Fe(this,"tryDownloadRemoteFile",async i=>{var F,E;const{type:a,name:n,preview:s,source:o,isRemote:r,isDownloading:l,id:u,isLoading:p,remote:c,meta:h,errorCount:f=0}=i,g=!p&&r,y=`uploader:${u}:downloaded`,m=Bi(i),v=(F=n==null?void 0:n.split("?"))==null?void 0:F[0],w=(()=>{const S=["jpg","jpeg"];return S.includes(m)&&S.some(C=>v==null?void 0:v.endsWith(C))?!0:v==null?void 0:v.endsWith(m)})()?v:`${v}${m?`.${m}`:""}`;if(g){const S=uh(s||((E=c==null?void 0:c.body)==null?void 0:E.url));if(f>=3)throw this.uppy.setFileState(u,{error:this.i18n("downloadRemoteFileFailure"),meta:{...h,name:this.i18n("downloadRemoteFileFailure")}}),new Error("Download remote file failure");this.uppy.setFileState(u,{isLoading:!0,isDownloading:!0,size:null,meta:{...h,name:this.i18n("loading")}}),await nl.get(`${this.opts.companionUrl}/proxy`,{responseType:"blob",params:{url:S}}).then(C=>C==null?void 0:C.data).then(async C=>{const R=pr(C,w);this.uppy.setFileState(u,{name:w,extension:m,type:a,data:R,preview:s||ur(R),source:o,size:R.size,isDownloading:!1,isRemote:!1,meta:{...h,name:w,filename:w}}),this.uppy.getFile(u),this.uppy.emit(y,u)}).catch(async C=>{console.error("Axios download remote file error: ",C),this.uppy.setFileState(u,{isRemote:!0,isLoading:!1,errorCount:f+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(u))})}else l&&await(async()=>new Promise(C=>{this.uppy.once(y,async()=>{C()})}))()});Fe(this,"getPreviewFromData",i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:s,type:o,preview:r}=n;(o.indexOf("gif")>-1||!r)&&s&&o.indexOf("image")>-1&&setTimeout(()=>{this.uppy.setFileState(a,{preview:ur(s)})},o.indexOf("gif")>-1?1e3:0)}});Fe(this,"prepareUpload",async i=>{await this.validateImagesRespectCropperOptions();const a=i.map(async s=>{const o=this.uppy.getFile(s);o.isDownloading&&this.uppy.emit("preprocess-progress",o,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(o)}),n=()=>{i.forEach(s=>{const o=this.uppy.getFile(s);this.uppy.emit("preprocess-complete",o)})};return Promise.all(a).then(n)});this.id=this.opts.id||"PrepareUpload",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",async i=>{setTimeout(()=>{this.prepareUploadWrapper(i)},200)}),this.uppy.on("file-editor:complete",i=>{this.getPreviewFromData(i)})}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}}class N2 extends ye{constructor(e,i){super(e,i),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>me("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:me("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[me("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),me("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return me("div",{id:"ai-image",className:"ai-image",children:me("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}const z2="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";function L2(t){return tn("MuiTypography",t)}$i("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const j2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$2=t=>{const{align:e,gutterBottom:i,noWrap:a,paragraph:n,variant:s,classes:o}=t,r={root:["root",s,t.align!=="inherit"&&`align${Ye(e)}`,i&&"gutterBottom",a&&"noWrap",n&&"paragraph"]};return an(r,L2,o)},q2=yi("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,i.variant&&e[i.variant],i.align!=="inherit"&&e[`align${Ye(i.align)}`],i.noWrap&&e.noWrap,i.gutterBottom&&e.gutterBottom,i.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>Y({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Pu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},H2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},W2=t=>H2[t]||t,V2=N.forwardRef(function(e,i){const a=qi({props:e,name:"MuiTypography"}),n=W2(a.color),s=nf(Y({},a,{color:n})),{align:o="inherit",className:r,component:l,gutterBottom:u=!1,noWrap:p=!1,paragraph:c=!1,variant:h="body1",variantMapping:f=Pu}=s,g=ut(s,j2),y=Y({},s,{align:o,color:n,className:r,component:l,gutterBottom:u,noWrap:p,paragraph:c,variant:h,variantMapping:f}),m=l||(c?"p":f[h]||Pu[h])||"span",v=$2(y);return Z.jsx(q2,Y({as:m,ref:i,ownerState:y,className:Ie(v.root,r)},g))}),G2=N.lazy(()=>Au(()=>import("./index-R-nzvsnB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url)),Fu="uploader-container",Bn="uploader-dashboard",zi=localStorage.getItem("uppy_debug"),K2=()=>cr.get("x-csrf-token")?{"x-csrf-token":cr.get("x-csrf-token")}:{},X2=t=>{var c;const{apiPathProps:e,availablePluginMap:i={},uploadedProps:a,resourcesProps:n,imageEditorProps:s={},theme:o}=t,{companionUrl:r}=sl(e),l=K2(),u=async h=>(await Ki.post("/api/image/generations",h)).data,p={...t==null?void 0:t.restrictions,maxFileSize:1/0};return[{id:"ImageEditor",plugin:kd,options:{quality:1,...s},alwayUse:!0},(zi||Ni()&&i.Uploaded&&!dr())&&{id:"Uploaded",plugin:u2,options:{params:a==null?void 0:a.params}},(zi||Ni()&&i.Resources&&!dr())&&{id:"Resources",plugin:d2,options:{params:n==null?void 0:n.params}},Ni()&&ph()&&i.AIImage&&{id:"AIImage",plugin:N2,options:{companionUrl:r,companionHeaders:l},onShowPanel:h=>{function f(){setTimeout(()=>{var y,m;const g=document.getElementById("ai-image");g?lf(g).render(Z.jsx(G2,{theme:o,api:u,restrictions:p,i18n:(m=(y=h.current)==null?void 0:y.getUploader())==null?void 0:m.i18n,onSelect:v=>{const P=h.current.getUploader();P==null||P.emit("ai-image:selected",v),v.forEach(({src:w,alt:F},E)=>{const S=A=>(A==null?void 0:A.length)>16?`${A==null?void 0:A.slice(0,8)}...${A==null?void 0:A.slice(-4)}`:A,C=`${S(F)||S(w)}.png`,R={name:C,type:"image/png",data:ch(w,C),source:"AIImage",isRemote:!1};P==null||P.addFile(R)})}})):f()},100)}f()}},{id:"Url",plugin:rn,options:{companionUrl:r,companionHeaders:l}},{id:"Webcam",plugin:rp,options:{showVideoSourceDropdown:!0,showRecordingLength:!0,mirror:!1,videoConstraints:{facingMode:"environment"}}},!!((c=window==null?void 0:window.blocklet)!=null&&c.UNSPLASH_KEY)&&i.Unsplash&&{id:"Unsplash",plugin:kp,options:{companionUrl:r,companionHeaders:l,companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:B2,options:{companionUrl:r,companionHeaders:l,cropperOptions:(s==null?void 0:s.cropperOptions)||null},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Ir,options:{thumbnailType:"image/png",thumbnailWidth:"100%"},alwayUse:!0}].filter(Boolean)};function ll(t){const{id:e,plugins:i,locale:a,onAfterResponse:n,onUploadFinish:s,coreProps:o,apiPathProps:r,tusProps:l,dropTargetProps:u,pluginList:p,restrictions:c,onChange:h,initialFiles:f}=t,g=Iu(p,"id"),{uploaderUrl:y}=sl(r);let m=new xr({id:e,meta:{uploaderId:e},debug:["true",!0].includes(zi||""),locale:th[a||"en"],onBeforeFileAdded:(w,F)=>{if(Object.hasOwn(F,w.id))return!1;const E=!!mt.extension(w.type),S=mt.lookup(w.name)||"";if(!E&&S&&S!==w.type){const C=Bi(w);C&&(w.extension=C),w.type=S}return w},...o,restrictions:c}).use(eh,{chunkSize:1024*1024*10,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:y,async onBeforeRequest(w,F){var V,H;const{hashFileName:E,id:S,meta:C}=F,R=((V=m.getFile(S))==null?void 0:V.mockResponse)||null;w.getMethod()==="PATCH"&&R&&(w.send=()=>R);const A=Bi(F);w.setHeader("x-uploader-file-name",`${E}`),w.setHeader("x-uploader-file-id",`${S}`),w.setHeader("x-uploader-file-ext",`${A}`),w.setHeader("x-uploader-base-url",new URL(w.getURL()).pathname),w.setHeader("x-uploader-endpoint-url",y),w.setHeader("x-uploader-metadata",JSON.stringify(C,(I,$)=>typeof $=="string"?encodeURIComponent($):$));const z=cr.get("x-csrf-token");z&&w.setHeader("x-csrf-token",z);const L=(window==null?void 0:window.uploaderComponentId)||((H=window==null?void 0:window.blocklet)==null?void 0:H.componentId);L&&w.setHeader("x-component-did",(L||"").split("/").pop())},onAfterResponse:async(w,F)=>{const E={},S=w.getUnderlyingObject();try{S.response&&(E.data=JSON.parse(S.response))}catch{E.data={}}E.method=w.getMethod().toUpperCase(),E.url=w.getURL(),E.status=S.status,E.headers={...w._headers};const C=S.getAllResponseHeaders();C&&C.split(`\r
128
+ `,a.addEventListener("click",async()=>{await this.uppy.openPlugin("My Device")}),i.insertBefore(a,i.firstChild),this.addUploadItemFlag=!1}}},{wait:200}));Fe(this,"convertImgToObject",go(()=>{this.canConvertImgToObject&&(document.querySelectorAll("#uploaded img").forEach(a=>{var l;if(!(a!=null&&a.src))return;const{src:n}=a,s=(l=this.uploadedAPIData.files)==null?void 0:l.find(u=>u.previewUrl===n),o=document.createElement("div");o.style="width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; ";const r=document.createElement("div");if(r.className="uppy-ProviderBrowserItem-name",r.style="pointer-events: none; position: absolute; bottom: 0; left: 0; right: 0; padding: 5px; background: #0000004d; color: #fff; ",r.innerHTML=mh(s.originalname),[".mp4",".webm"].find(u=>{var p;return(p=a.src)==null?void 0:p.endsWith(u)})){const u=document.createElement("video");u.src=a.src,u.width=a.width,u.height=a.height,u.autoplay=!0,u.setAttribute("playsinline","playsinline"),u.muted=!0,u.loop=!0,u.style="pointer-events: none;",o.appendChild(u)}else{const u=document.createElement("object");u.data=n,u.type=s.mimetype||"image/png",u.alt=s.originalname,u.style="pointer-events: none; max-width: 100%; max-height: 100%; webkit-user-drag: none; object-fit: contain;",u.loading="lazy",o.appendChild(u)}o.appendChild(r),a.parentNode.replaceChild(o,a)}),this.canConvertImgToObject=!1)},{wait:200}));Fe(this,"resetState",()=>{this.uploadedAPIData={...xu},this.uploaded.setPluginState({...wu}),this.addUploadItemFlag=!0});this.id=this.opts.id||"Uploaded",this.title=this.opts.title||"Uploaded",this.params=this.opts.params||{},this.type="acquirer",this.uppy=i,this.uploadedAPIData={...xu},this.addUploadItemFlag=!0,this.icon=()=>me("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"18",viewBox:"0 0 1024 1024",children:[me("path",{d:"M145.6 0c-44.8 0-80 36.8-80 81.6V944c0 44.8 35.2 80 80 80h732.8c44.8 0 81.6-35.2 81.6-80V326.4L657.6 0h-512z",fill:"#49C9A7"}),me("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z",fill:"#49C9A7"}),me("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#37BB91"}),me("path",{d:"M225.6 859.2V524.8H560v334.4H225.6z m300.8-300.8H259.2v201.6h267.2V558.4z m-153.6 134.4l62.4-84.8 20.8 33.6 20.8-6.4 16 89.6H283.2l56-52.8 33.6 20.8z m-60.8-59.2c-14.4 0-27.2-9.6-27.2-24 0-12.8 12.8-24 27.2-24 14.4 0 25.6 11.2 25.6 24 0 14.4-11.2 24-25.6 24z",fill:"#FFFFFF"})]})}render(i){var a;return!this.uploadedAPIData.loading&&((a=this.uploadedAPIData.files)==null?void 0:a.length)===0&&this.queryUploadedFromMediaKit(),me("div",{id:"uploaded",className:"uploaded",children:this.view.render(i)})}update(){this.convertImgToObject(),this.addUploadItem()}onFirstRender(){}install(){this.view=new Er(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.uploaded=this.view.plugin,this.uploaded.setPluginState({...wu}),this.uploaded.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.uploaded.getPluginState(),o=this.uploaded.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l._id===n._id)?this.uploaded.setPluginState({currentSelection:[...s.filter(l=>l._id!==n._id)]}):(r||s.pop(),this.uploaded.setPluginState({currentSelection:[...s,n]}))},this.view.donePicking=()=>{const{currentSelection:a}=this.uploaded.getPluginState();this.uppy.emit("uploaded:selected",a),this.uploaded.parent.hideAllPanels()},this.uploaded.uppy.validateRestrictions=()=>!1,this.view.handleScroll=a=>{const{scrollHeight:n,scrollTop:s,offsetHeight:o}=a.target;n-(s+o)<30&&this.queryUploadedFromMediaKit()};const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.unmount(),this.uploaded.uppy.off("dashboard:show-panel",this.resetState)}}const _u={initialized:!1,data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,componentDid:"",components:[]},Su={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0},vh={padding:"5px 15px",marginRight:"8px",marginTop:"8px",borderRadius:"4px",cursor:"pointer",border:"1px solid rgb(29, 193, 199)",color:"rgb(29, 193, 199)",backgroundColor:"transparent",fontSize:"14px",lineHeight:"24.5px",fontWeight:"bold"},p2={...vh,color:"#fff",backgroundColor:"rgb(29, 193, 199)"};class d2 extends ye{constructor(i,a){super(i,a);Fe(this,"queryResources",async()=>{if(!this.apiData.loading){this.apiData.loading=!0;const{data:i}=await Ki.get("/api/resources",{params:{componentDid:this.apiData.componentDid}});this.apiData.loading=!1,this.apiData.initialized=!0,this.apiData.components=i.components||[],this.apiData.componentDid=i.componentDid||"",this.apiData.files=Uu([...i.resources.map(a=>{let n="file";const{filename:s}=a,o=en(s,0,0,wt);return n=en(s,400,0,wt),{filename:s,_id:s,id:s,name:s,icon:n,previewUrl:n,fileUrl:o}})],"id"),this.resources.setPluginState({files:this.apiData.files,loading:!1})}});Fe(this,"resetState",()=>{this.apiData={..._u},this.resources.setPluginState({...Su})});this.id=this.opts.id||"Resources",this.title=this.opts.title||"Resources",this.params=this.opts.params||{},this.type="acquirer",this.uppy=i,this.componentDid="",this.apiData={..._u},this.icon=()=>me("svg",{t:"1700146012231",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15673",width:"200",height:"200",children:[me("path",{d:"M403.2 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-187.733333c0-49.066667-38.4-85.333333-85.333333-85.333334zM426.666667 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-21.333333 0-38.4-17.066667-38.4-36.266667v-162.133333c0-19.2 17.066667-36.266667 36.266667-36.266667h160c19.2 0 36.266667 17.066667 36.266666 36.266667v162.133333z",fill:"#0171F1","p-id":"15674"}),me("path",{d:"M808.533333 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-187.733333c0-49.066667-36.266667-85.333333-85.333334-85.333334zM832 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-19.2 0-36.266667-17.066667-36.266666-36.266667v-162.133333c-2.133333-19.2 14.933333-36.266667 34.133333-36.266667h160c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333zM403.2 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-189.866667c0-46.933333-38.4-85.333333-85.333333-85.333333zM426.666667 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-21.333333 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#55ABE5","p-id":"15675"}),me("path",{d:"M808.533333 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-189.866667c0-46.933333-36.266667-85.333333-85.333334-85.333333zM832 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-19.2 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c21.333333 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#0171F1","p-id":"15676"})]})}render(i){return!this.apiData.loading&&!this.apiData.initialized&&this.queryResources(),me("div",{id:"resources",className:"uploaded",children:[me("div",{style:{padding:this.apiData.components.length?"12px":"0",backgroundColor:"#fff",display:"flex",flexWrap:"wrap",marginTop:"-8px"},children:this.apiData.components.map(a=>me("button",{style:this.apiData.componentDid===a.did?p2:vh,id:a.componentDid,onClick:()=>{this.apiData.componentDid!==a.did&&(this.apiData.componentDid=a.did,this.queryResources())},children:mf(a.name)}))}),this.view.render(i)]})}update(){}onFirstRender(){}install(){this.view=new Er(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.resources=this.view.plugin,this.resources.setPluginState({...Su}),this.resources.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.resources.getPluginState(),o=this.resources.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l.id===n.id)?this.resources.setPluginState({currentSelection:[...s.filter(l=>l.id!==n.id)]}):(r||s.pop(),this.resources.setPluginState({currentSelection:[...s,n]}))},this.resources.uppy.validateRestrictions=()=>!1,this.view.donePicking=()=>{const{currentSelection:a}=this.resources.getPluginState();this.uppy.emit("resources:selected",a),this.resources.parent.hideAllPanels()};const{target:i}=this.opts;i&&this.mount(i,this)}uninstall(){this.unmount(),this.resources.uppy.off("dashboard:show-panel",this.resetState)}}var h2=af();const f2=_t(h2);var Be=Uint8Array,Ai=Uint16Array,m2=Int32Array,bh=new Be([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yh=new Be([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),g2=new Be([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xh=function(t,e){for(var i=new Ai(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];for(var n=new m2(i[30]),a=1;a<30;++a)for(var s=i[a];s<i[a+1];++s)n[s]=s-i[a]<<5|a;return{b:i,r:n}},wh=xh(bh,2),_h=wh.b,v2=wh.r;_h[28]=258,v2[258]=28;var b2=xh(yh,0),y2=b2.b,mr=new Ai(32768);for(var ie=0;ie<32768;++ie){var Lt=(ie&43690)>>1|(ie&21845)<<1;Lt=(Lt&52428)>>2|(Lt&13107)<<2,Lt=(Lt&61680)>>4|(Lt&3855)<<4,mr[ie]=((Lt&65280)>>8|(Lt&255)<<8)>>1}var Ba=function(t,e,i){for(var a=t.length,n=0,s=new Ai(e);n<a;++n)t[n]&&++s[t[n]-1];var o=new Ai(e);for(n=1;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;var r;if(i){r=new Ai(1<<e);var l=15-e;for(n=0;n<a;++n)if(t[n])for(var u=n<<4|t[n],p=e-t[n],c=o[t[n]-1]++<<p,h=c|(1<<p)-1;c<=h;++c)r[mr[c]>>l]=u}else for(r=new Ai(a),n=0;n<a;++n)t[n]&&(r[n]=mr[o[t[n]-1]++]>>15-t[n]);return r},dn=new Be(288);for(var ie=0;ie<144;++ie)dn[ie]=8;for(var ie=144;ie<256;++ie)dn[ie]=9;for(var ie=256;ie<280;++ie)dn[ie]=7;for(var ie=280;ie<288;++ie)dn[ie]=8;var Sh=new Be(32);for(var ie=0;ie<32;++ie)Sh[ie]=5;var x2=Ba(dn,9,1),w2=Ba(Sh,5,1),co=function(t){for(var e=t[0],i=1;i<t.length;++i)t[i]>e&&(e=t[i]);return e},it=function(t,e,i){var a=e/8|0;return(t[a]|t[a+1]<<8)>>(e&7)&i},uo=function(t,e){var i=e/8|0;return(t[i]|t[i+1]<<8|t[i+2]<<16)>>(e&7)},_2=function(t){return(t+7)/8|0},ol=function(t,e,i){return(e==null||e<0)&&(e=0),(i==null||i>t.length)&&(i=t.length),new Be(t.subarray(e,i))},S2=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ce=function(t,e,i){var a=new Error(e||S2[t]);if(a.code=t,Error.captureStackTrace&&Error.captureStackTrace(a,Ce),!i)throw a;return a},rl=function(t,e,i,a){var n=t.length,s=a?a.length:0;if(!n||e.f&&!e.l)return i||new Be(0);var o=!i,r=o||e.i!=2,l=e.i;o&&(i=new Be(n*3));var u=function(St){var Xt=i.length;if(St>Xt){var Je=new Be(Math.max(Xt*2,St));Je.set(i),i=Je}},p=e.f||0,c=e.p||0,h=e.b||0,f=e.l,g=e.d,y=e.m,m=e.n,v=n*8;do{if(!f){p=it(t,c,1);var P=it(t,c+1,3);if(c+=3,P)if(P==1)f=x2,g=w2,y=9,m=5;else if(P==2){var S=it(t,c,31)+257,C=it(t,c+10,15)+4,R=S+it(t,c+5,31)+1;c+=14;for(var A=new Be(R),z=new Be(19),L=0;L<C;++L)z[g2[L]]=it(t,c+L*3,7);c+=C*3;for(var V=co(z),H=(1<<V)-1,I=Ba(z,V,1),L=0;L<R;){var $=I[it(t,c,H)];c+=$&15;var w=$>>4;if(w<16)A[L++]=w;else{var _=0,b=0;for(w==16?(b=3+it(t,c,3),c+=2,_=A[L-1]):w==17?(b=3+it(t,c,7),c+=3):w==18&&(b=11+it(t,c,127),c+=7);b--;)A[L++]=_}}var x=A.subarray(0,S),k=A.subarray(S);y=co(x),m=co(k),f=Ba(x,y,1),g=Ba(k,m,1)}else Ce(1);else{var w=_2(c)+4,F=t[w-4]|t[w-3]<<8,E=w+F;if(E>n){l&&Ce(0);break}r&&u(h+F),i.set(t.subarray(w,E),h),e.b=h+=F,e.p=c=E*8,e.f=p;continue}if(c>v){l&&Ce(0);break}}r&&u(h+131072);for(var O=(1<<y)-1,D=(1<<m)-1,T=c;;T=c){var _=f[uo(t,c)&O],M=_>>4;if(c+=_&15,c>v){l&&Ce(0);break}if(_||Ce(2),M<256)i[h++]=M;else if(M==256){T=c,f=null;break}else{var q=M-254;if(M>264){var L=M-257,K=bh[L];q=it(t,c,(1<<K)-1)+_h[L],c+=K}var G=g[uo(t,c)&D],Q=G>>4;G||Ce(3),c+=G&15;var k=y2[Q];if(Q>3){var K=yh[Q];k+=uo(t,c)&(1<<K)-1,c+=K}if(c>v){l&&Ce(0);break}r&&u(h+131072);var xe=h+q;if(h<k){var we=s-k,Xi=Math.min(k,xe);for(we+h<0&&Ce(3);h<Xi;++h)i[h]=a[we+h]}for(;h<xe;++h)i[h]=i[h-k]}}e.l=f,e.p=T,e.b=h,e.f=p,f&&(p=1,e.m=y,e.d=g,e.n=m)}while(!p);return h!=i.length&&o?ol(i,0,h):i.subarray(0,h)},P2=new Be(0),ft=function(t,e){return t[e]|t[e+1]<<8},lt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},po=function(t,e){return lt(t,e)+lt(t,e+4)*4294967296},F2=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Ce(6,"invalid gzip data");var e=t[3],i=10;e&4&&(i+=(t[10]|t[11]<<8)+2);for(var a=(e>>3&1)+(e>>4&1);a>0;a-=!t[i++]);return i+(e&2)},C2=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},k2=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Ce(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Ce(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function Ph(t,e){return rl(t,{i:2},e&&e.out,e&&e.dictionary)}function E2(t,e){var i=F2(t);return i+8>t.length&&Ce(6,"invalid gzip data"),rl(t.subarray(i,-8),{i:2},e&&e.out||new Be(C2(t)),e&&e.dictionary)}function T2(t,e){return rl(t.subarray(k2(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function ho(t,e){return t[0]==31&&t[1]==139&&t[2]==8?E2(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Ph(t,e):T2(t,e)}var gr=typeof TextDecoder<"u"&&new TextDecoder,D2=0;try{gr.decode(P2,{stream:!0}),D2=1}catch{}var R2=function(t){for(var e="",i=0;;){var a=t[i++],n=(a>127)+(a>223)+(a>239);if(i+n>t.length)return{s:e,r:ol(t,i-1)};n?n==3?(a=((a&15)<<18|(t[i++]&63)<<12|(t[i++]&63)<<6|t[i++]&63)-65536,e+=String.fromCharCode(55296|a>>10,56320|a&1023)):n&1?e+=String.fromCharCode((a&31)<<6|t[i++]&63):e+=String.fromCharCode((a&15)<<12|(t[i++]&63)<<6|t[i++]&63):e+=String.fromCharCode(a)}};function O2(t,e){if(e){for(var i="",a=0;a<t.length;a+=16384)i+=String.fromCharCode.apply(null,t.subarray(a,a+16384));return i}else{if(gr)return gr.decode(t);var n=R2(t),s=n.s,i=n.r;return i.length&&Ce(8),s}}var A2=function(t,e){return e+30+ft(t,e+26)+ft(t,e+28)},U2=function(t,e,i){var a=ft(t,e+28),n=O2(t.subarray(e+46,e+46+a),!(ft(t,e+8)&2048)),s=e+46+a,o=lt(t,e+20),r=i&&o==4294967295?I2(t,s):[o,lt(t,e+24),lt(t,e+42)],l=r[0],u=r[1],p=r[2];return[ft(t,e+10),l,u,n,s+ft(t,e+30)+ft(t,e+32),p]},I2=function(t,e){for(;ft(t,e)!=1;e+=4+ft(t,e+2));return[po(t,e+12),po(t,e+4),po(t,e+20)]};function M2(t,e){for(var i={},a=t.length-22;lt(t,a)!=101010256;--a)(!a||t.length-a>65558)&&Ce(13);var n=ft(t,a+8);if(!n)return{};var s=lt(t,a+16),o=s==4294967295||n==65535;if(o){var r=lt(t,a-12);o=lt(t,r)==101075792,o&&(n=lt(t,r+32),s=lt(t,r+48))}for(var l=e&&e.filter,u=0;u<n;++u){var p=U2(t,s,o),c=p[0],h=p[1],f=p[2],g=p[3],y=p[4],m=p[5],v=A2(t,m);s=y,(!l||l({name:g,size:h,originalSize:f,compression:c}))&&(c?c==8?i[g]=Ph(t.subarray(v,v+h),{out:new Be(f)}):Ce(14,"unknown compression type "+c):i[g]=ol(t,v,v+h))}return i}const Mn={zip:M2,gz:ho,tgz:ho,deflate:ho};class B2 extends ye{constructor(i,a){super(i,{...{},...a});Fe(this,"setHashFileName",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:s}=n,o=1024*1024*5,r=s.slice(0,o),l=f2.createHash("md5").update(await r.text()).digest("hex"),u=Bi(n),p=`${l}${u?`.${u}`:""}`;this.uppy.setFileState(a,{hashFileName:p})}});Fe(this,"setMetaData",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:{webkitRelativePath:s,relativePath:o,name:r},hashFileName:l}=n,u=o||s||r||l;this.uppy.setFileMeta(a,{relativePath:u,name:u})}});Fe(this,"preventXssAttack",async i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{name:s,meta:o}=this.uppy.getFile(a),r=yl.sanitize(s);if(s!==r){const u=Bi(n),p=r.endsWith(`.${u}`)?r:`${r}.${u}`;this.uppy.setFileState(a,{name:p,meta:{...o,name:p,filename:p}})}if(await gh(n)){const{data:u,name:p,type:c}=this.uppy.getFile(a),h=await u.text(),f=yl.sanitize(h,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["use"]});if(h!==f){const g=new Blob([f],{type:c}),y=pr(g,p);this.uppy.setFileState(a,{...this.uppy.getFile(a),data:y}),console.info("clean svg file xss attack",{name:p,originalFile:n.data.text(),cleanFile:f})}}}});Fe(this,"preventZipBombAttack",async i=>{const{id:a}=i,n=this.uppy.getFile(a);try{if(n&&Mn[n.extension]){const{data:s}=n,o=Mn[n.extension](new Uint8Array(await s.arrayBuffer()));let r=0;const l=(p,c)=>(r++,Object.entries(p instanceof Uint8Array?{[c||n.name]:p}:p).reduce((h,[f,g])=>{const y=h+g.byteLength;if(r>=5||y>n.size*100)throw console.error("Zip bomb detected, please check your file",{maxDepth:r,baseAcc:y,fileSize:n.size}),new Error("Zip bomb detected, please check your file");const m=mt.extension(mt.lookup(f));if(Mn[m]){const v=Mn[m](g);return y+l(v,f)}return y},0)),u=l(o);if(console.info(n.name,{totalUnzippedSize:u,maxDepth:r,zippedSize:n.size}),u>n.size*100)throw new Error("Zip bomb detected, please check your file")}}catch(s){if(s.message.includes("Zip bomb detected"))throw s}});Fe(this,"validateImagesRespectCropperOptions",async()=>this.uppy.getFiles().reduce(async(i,a)=>{var y,m,v;await i;const{id:n}=a;let s=this.uppy.getFile(n);if(s.isRemote&&(await this.tryDownloadRemoteFile(s),s=this.uppy.getFile(n)),!((y=this.opts.cropperOptions)!=null&&y.aspectRatio)||!((m=s==null?void 0:s.type)!=null&&m.includes("image"))||(v=s.type)!=null&&v.includes("image/svg"))return Promise.resolve();const{aspectRatio:o}=this.opts.cropperOptions,r=this.uppy.getPlugin("ImageEditor"),l=document.querySelector(`[src="${s.preview}"]`)||document.getElementById("uppy_"+n).querySelector("img"),u=l==null?void 0:l.naturalWidth,p=l==null?void 0:l.naturalHeight,c=Number(u/p).toFixed(2),h=Number(o).toFixed(2);if(c===h)return Promise.resolve();this.uppy.emit("preprocess-progress",s,{mode:"indeterminate",message:this.i18n("editorLoading")}),r.parent.openFileEditor(s);const g=this.i18n("aspectRatioMessage",{imageAspectRatio:c,aspectRatio:h});return this.uppy.info({message:g,details:g}),new Promise((P,w)=>{this.uppy.once("file-editor:complete",()=>{setTimeout(()=>{P()},200)}),this.uppy.once("file-editor:cancel",()=>{})})},Promise.resolve()));Fe(this,"prepareUploadWrapper",async i=>{await this.tryDownloadRemoteFile(i),await this.getPreviewFromData(i),await this.setHashFileName(i),await this.preventXssAttack(i),await this.preventZipBombAttack(i),await this.setMetaData(i)});Fe(this,"tryDownloadRemoteFile",async i=>{var F,E;const{type:a,name:n,preview:s,source:o,isRemote:r,isDownloading:l,id:u,isLoading:p,remote:c,meta:h,errorCount:f=0}=i,g=!p&&r,y=`uploader:${u}:downloaded`,m=Bi(i),v=(F=n==null?void 0:n.split("?"))==null?void 0:F[0],w=(()=>{const S=["jpg","jpeg"];return S.includes(m)&&S.some(C=>v==null?void 0:v.endsWith(C))?!0:v==null?void 0:v.endsWith(m)})()?v:`${v}${m?`.${m}`:""}`;if(g){const S=uh(s||((E=c==null?void 0:c.body)==null?void 0:E.url));if(f>=3)throw this.uppy.setFileState(u,{error:this.i18n("downloadRemoteFileFailure"),meta:{...h,name:this.i18n("downloadRemoteFileFailure")}}),new Error("Download remote file failure");this.uppy.setFileState(u,{isLoading:!0,isDownloading:!0,size:null,meta:{...h,name:this.i18n("loading")}}),await nl.get(`${this.opts.companionUrl}/proxy`,{responseType:"blob",params:{url:S}}).then(C=>C==null?void 0:C.data).then(async C=>{const R=pr(C,w);this.uppy.setFileState(u,{name:w,extension:m,type:a,data:R,preview:s||ur(R),source:o,size:R.size,isDownloading:!1,isRemote:!1,meta:{...h,name:w,filename:w}}),this.uppy.getFile(u),this.uppy.emit(y,u)}).catch(async C=>{console.error("Axios download remote file error: ",C),this.uppy.setFileState(u,{isRemote:!0,isLoading:!1,errorCount:f+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(u))})}else l&&await(async()=>new Promise(C=>{this.uppy.once(y,async()=>{C()})}))()});Fe(this,"getPreviewFromData",i=>{const{id:a}=i,n=this.uppy.getFile(a);if(n){const{data:s,type:o,preview:r}=n;(o.indexOf("gif")>-1||!r)&&s&&o.indexOf("image")>-1&&setTimeout(()=>{this.uppy.setFileState(a,{preview:ur(s)})},o.indexOf("gif")>-1?1e3:0)}});Fe(this,"prepareUpload",async i=>{await this.validateImagesRespectCropperOptions();const a=i.map(async s=>{const o=this.uppy.getFile(s);o.isDownloading&&this.uppy.emit("preprocess-progress",o,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(o)}),n=()=>{i.forEach(s=>{const o=this.uppy.getFile(s);this.uppy.emit("preprocess-complete",o)})};return Promise.all(a).then(n)});this.id=this.opts.id||"PrepareUpload",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",async i=>{setTimeout(()=>{this.prepareUploadWrapper(i)},200)}),this.uppy.on("file-editor:complete",i=>{this.getPreviewFromData(i)})}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}}class N2 extends ye{constructor(e,i){super(e,i),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>me("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:me("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[me("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),me("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return me("div",{id:"ai-image",className:"ai-image",children:me("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}const z2="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9";function L2(t){return tn("MuiTypography",t)}$i("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const j2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$2=t=>{const{align:e,gutterBottom:i,noWrap:a,paragraph:n,variant:s,classes:o}=t,r={root:["root",s,t.align!=="inherit"&&`align${Ye(e)}`,i&&"gutterBottom",a&&"noWrap",n&&"paragraph"]};return an(r,L2,o)},q2=yi("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,i.variant&&e[i.variant],i.align!=="inherit"&&e[`align${Ye(i.align)}`],i.noWrap&&e.noWrap,i.gutterBottom&&e.gutterBottom,i.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>Y({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Pu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},H2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},W2=t=>H2[t]||t,V2=N.forwardRef(function(e,i){const a=qi({props:e,name:"MuiTypography"}),n=W2(a.color),s=nf(Y({},a,{color:n})),{align:o="inherit",className:r,component:l,gutterBottom:u=!1,noWrap:p=!1,paragraph:c=!1,variant:h="body1",variantMapping:f=Pu}=s,g=ut(s,j2),y=Y({},s,{align:o,color:n,className:r,component:l,gutterBottom:u,noWrap:p,paragraph:c,variant:h,variantMapping:f}),m=l||(c?"p":f[h]||Pu[h])||"span",v=$2(y);return Z.jsx(q2,Y({as:m,ref:i,ownerState:y,className:Ie(v.root,r)},g))}),G2=N.lazy(()=>Au(()=>import("./index-Db12S-QJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url)),Fu="uploader-container",Bn="uploader-dashboard",zi=localStorage.getItem("uppy_debug"),K2=()=>cr.get("x-csrf-token")?{"x-csrf-token":cr.get("x-csrf-token")}:{},X2=t=>{var c;const{apiPathProps:e,availablePluginMap:i={},uploadedProps:a,resourcesProps:n,imageEditorProps:s={},theme:o}=t,{companionUrl:r}=sl(e),l=K2(),u=async h=>(await Ki.post("/api/image/generations",h)).data,p={...t==null?void 0:t.restrictions,maxFileSize:1/0};return[{id:"ImageEditor",plugin:kd,options:{quality:1,...s},alwayUse:!0},(zi||Ni()&&i.Uploaded&&!dr())&&{id:"Uploaded",plugin:u2,options:{params:a==null?void 0:a.params}},(zi||Ni()&&i.Resources&&!dr())&&{id:"Resources",plugin:d2,options:{params:n==null?void 0:n.params}},Ni()&&ph()&&i.AIImage&&{id:"AIImage",plugin:N2,options:{companionUrl:r,companionHeaders:l},onShowPanel:h=>{function f(){setTimeout(()=>{var y,m;const g=document.getElementById("ai-image");g?lf(g).render(Z.jsx(G2,{theme:o,api:u,restrictions:p,i18n:(m=(y=h.current)==null?void 0:y.getUploader())==null?void 0:m.i18n,onSelect:v=>{const P=h.current.getUploader();P==null||P.emit("ai-image:selected",v),v.forEach(({src:w,alt:F},E)=>{const S=A=>(A==null?void 0:A.length)>16?`${A==null?void 0:A.slice(0,8)}...${A==null?void 0:A.slice(-4)}`:A,C=`${S(F)||S(w)}.png`,R={name:C,type:"image/png",data:ch(w,C),source:"AIImage",isRemote:!1};P==null||P.addFile(R)})}})):f()},100)}f()}},{id:"Url",plugin:rn,options:{companionUrl:r,companionHeaders:l}},{id:"Webcam",plugin:rp,options:{showVideoSourceDropdown:!0,showRecordingLength:!0,mirror:!1,videoConstraints:{facingMode:"environment"}}},!!((c=window==null?void 0:window.blocklet)!=null&&c.UNSPLASH_KEY)&&i.Unsplash&&{id:"Unsplash",plugin:kp,options:{companionUrl:r,companionHeaders:l,companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:B2,options:{companionUrl:r,companionHeaders:l,cropperOptions:(s==null?void 0:s.cropperOptions)||null},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Ir,options:{thumbnailType:"image/png",thumbnailWidth:"100%"},alwayUse:!0}].filter(Boolean)};function ll(t){const{id:e,plugins:i,locale:a,onAfterResponse:n,onUploadFinish:s,coreProps:o,apiPathProps:r,tusProps:l,dropTargetProps:u,pluginList:p,restrictions:c,onChange:h,initialFiles:f}=t,g=Iu(p,"id"),{uploaderUrl:y}=sl(r);let m=new xr({id:e,meta:{uploaderId:e},debug:["true",!0].includes(zi||""),locale:th[a||"en"],onBeforeFileAdded:(w,F)=>{if(Object.hasOwn(F,w.id))return!1;const E=!!mt.extension(w.type),S=mt.lookup(w.name)||"";if(!E&&S&&S!==w.type){const C=Bi(w);C&&(w.extension=C),w.type=S}return w},...o,restrictions:c}).use(eh,{chunkSize:1024*1024*10,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:y,async onBeforeRequest(w,F){var V,H;const{hashFileName:E,id:S,meta:C}=F,R=((V=m.getFile(S))==null?void 0:V.mockResponse)||null;w.getMethod()==="PATCH"&&R&&(w.send=()=>R);const A=Bi(F);w.setHeader("x-uploader-file-name",`${E}`),w.setHeader("x-uploader-file-id",`${S}`),w.setHeader("x-uploader-file-ext",`${A}`),w.setHeader("x-uploader-base-url",new URL(w.getURL()).pathname),w.setHeader("x-uploader-endpoint-url",y),w.setHeader("x-uploader-metadata",JSON.stringify(C,(I,$)=>typeof $=="string"?encodeURIComponent($):$));const z=cr.get("x-csrf-token");z&&w.setHeader("x-csrf-token",z);const L=(window==null?void 0:window.uploaderComponentId)||((H=window==null?void 0:window.blocklet)==null?void 0:H.componentId);L&&w.setHeader("x-component-did",(L||"").split("/").pop())},onAfterResponse:async(w,F)=>{const E={},S=w.getUnderlyingObject();try{S.response&&(E.data=JSON.parse(S.response))}catch{E.data={}}E.method=w.getMethod().toUpperCase(),E.url=w.getURL(),E.status=S.status,E.headers={...w._headers};const C=S.getAllResponseHeaders();C&&C.split(`\r
129
129
  `).forEach(V=>{const[H,I]=V.split(": ");H&&I&&(E.headers[H]=I)});const R=m.getFile(E.headers["x-uploader-file-id"]);if(w.getMethod()==="PATCH"&&R.mockResponse)return;if(["PATCH","POST"].includes(E.method)&&[200,500].includes(E.status)){const L=[!0,"true"].includes(E.headers["x-uploader-file-exist"]),V=hh(E.url,E.headers["x-uploader-file-name"]);E.file=R,E.uploadURL=V;const H={uploadURL:V,...E};m.setFileState(R.id,{responseResult:H}),L&&R&&(E.method==="POST"&&m.setFileState(R.id,{mockResponse:F}),m.emit("upload-success",m.getFile(R.id),{...H,body:E.data}),m.emit("postprocess-complete",m.getFile(R.id)),m.calculateTotalProgress()),E.status===200&&(await(s==null?void 0:s(E)),m.emitUploadSuccess(R,E))}n&&await(n==null?void 0:n(S));const A=m.getState().totalProgress===100,z=m.getFiles().every(L=>L.source==="DropTarget");A&&z&&m.close()},...l});const v=({fileIDs:w,id:F})=>{w.forEach(E=>{m.setFileState(E,{uploadID:F})})};m.off("upload",v),m.on("upload",v);const P=w=>{typeof h=="function"&&h(w,m.getFiles())};return m.off("file-added",P),m.on("file-added",P),m.off("file-removed-success",P),m.on("file-removed-success",P),u&&m.use(pd,{target:document.body,onDrop:w=>{var F;(F=m==null?void 0:m.open)==null||F.call(m)},...u}),i==null||i.forEach(w=>{if(w){const{plugin:F,options:E}=g[w]||{};F&&m.use(F,E)}}),fh(m),f&&(f==null?void 0:f.length)>0&&m.addFiles(f),m}const vr=N.forwardRef((t,e)=>{var L,V,H,I,$,_,b,x,k,O,D;const i={uploader:"/api/uploads",companion:"/api/companion",disableMediaKitPrefix:!1,disableMediaKitStatus:!1,...t==null?void 0:t.apiPathProps},a=N.useRef(null),n=sf({open:!1,uppy:null,availablePluginMap:{},restrictions:{}}),s=Bu(),o=X2({...t,apiPathProps:i,availablePluginMap:n.availablePluginMap,restrictions:n.restrictions,theme:s}),{plugins:r=o.map(T=>T.id),id:l="Uploader",popup:u=!1,uploadedProps:p,resourcesProps:c,onOpen:h,onClose:f,locale:g,installerProps:y}=t,m=Iu(o,"id"),v=Fm(T=>{var M;return(M=T==null?void 0:T.breakpoints)==null?void 0:M.down("md")}),P=gl([...r,...o.filter(T=>T.alwayUse).map(T=>T.id)]),{loading:w}=of(async()=>{var M,q,K,G,Q;let T=vl((M=t==null?void 0:t.coreProps)==null?void 0:M.restrictions)?{}:bl((q=t==null?void 0:t.coreProps)==null?void 0:q.restrictions);if(!i.disableMediaKitStatus&&Ni())try{await Ki.get("/api/uploader/status").then(({data:xe})=>{var we;n.availablePluginMap=xe.availablePluginMap,!i.disableMediaKitPrefix&&vl((we=t==null?void 0:t.coreProps)==null?void 0:we.restrictions)&&(T=xe.restrictions||{})})}catch{}!((K=T==null?void 0:T.allowedFileTypes)!=null&&K.length)&&(T!=null&&T.allowedFileExts)&&(T.allowedFileTypes=gl((Q=(G=(typeof(T==null?void 0:T.allowedFileExts)=="string"?T==null?void 0:T.allowedFileExts.split(","):T==null?void 0:T.allowedFileExts)||[])==null?void 0:G.map(xe=>mt.lookup((xe==null?void 0:xe.replaceAll(" ",""))||"")))==null?void 0:Q.filter(xe=>xe)),delete T.allowedFileExts),T.maxFileSize&&typeof T.maxFileSize=="string"&&(T.maxFileSize=te.parseSize(T.maxFileSize,{iec:!1})||void 0),n.restrictions=bl(T)},{refreshDeps:[JSON.stringify({apiPathProps:i,restrictionsProps:(L=t==null?void 0:t.coreProps)==null?void 0:L.restrictions})]});df("esc",T=>{n.open&&(T.stopPropagation(),T.preventDefault(),C())},{useCapture:!0}),N.useEffect(()=>{dh(i),n.uppy=ll({...t,id:l,plugins:P,apiPathProps:i,pluginList:o,restrictions:n.restrictions}),n.uppy.open=S,n.uppy.close=C,n.uppy.openPlugin=F;const T=K=>{const{onShowPanel:G}=m[K];G==null||G(e)};n.uppy.off("dashboard:show-panel",T),n.uppy.on("dashboard:show-panel",T);const M=(K,G,Q,xe)=>{var St,Xt;const we=K.map(Je=>{var hn,fn,mn;const ws={name:Je.id||((mn=(fn=(hn=Je.fileUrl)==null?void 0:hn.split("/"))==null?void 0:fn.slice(-1))==null?void 0:mn[0]),type:Je.mimetype||mt.lookup(Je.fileUrl),data:"",preview:Je.fileUrl,source:xe,isRemote:!0},_s=G.uppy.addFile(ws);return{...Je,uppyFile:G.uppy.getFile(_s)}}),Xi=`${xe.toLowerCase()}Props`;(Xt=(St=Q[Xi])==null?void 0:St.onSelectedFiles)==null||Xt.call(St,we)};[{name:"Uploaded",event:"uploaded:selected"},{name:"Resources",event:"resources:selected"}].forEach(({name:K,event:G})=>{P.includes(K)&&(n.uppy.off(G),n.uppy.on(G,Q=>M(Q,n,t,K)))})},[JSON.stringify({id:l,plugins:P,apiPathProps:i,locale:g,restrictions:n.restrictions,theme:s})]);function F(T){var M,q,K;if(T=T.replace(/\s/g,""),["MyDevice",...P].map(G=>G.toLowerCase()).includes(T.toLowerCase())){let G=`div[data-uppy-acquirer-id="${T}"] > button`;(K=(q=(M=document==null?void 0:document.getElementById(Bn))==null?void 0:M.querySelector(G))==null?void 0:q.click)==null||K.call(q)}}const E=N.useCallback(T=>{zi&&a.current&&!a.current.contains(T.target)&&console.info("debug focus",a.current,T.target)},[]);function S(T){var q,K,G,Q;n.open=!0,T&&setTimeout(()=>{F(T)},200),n.uppy.emitOpen(),h==null||h(),(K=(q=document.activeElement)==null?void 0:q.blur)==null||K.call(q);const M=n.uppy.getPlugin(Bn).el;(G=M==null?void 0:M.focus)==null||G.call(M),(Q=M==null?void 0:M.click)==null||Q.call(M),zi&&u&&(document.addEventListener("mousedown",E),document.addEventListener("touchstart",E))}function C(){var T;(T=n.uppy.getPlugin(Bn))==null||T.hideAllPanels(),n.open=!1,n.uppy.emitClose(),f==null||f(),setTimeout(()=>{n.uppy.getState().totalProgress===100&&(n.uppy.setState({files:{},currentUploads:{}}),n.uppy.calculateTotalProgress())},500),zi&&u&&(document.removeEventListener("mousedown",E),document.removeEventListener("touchstart",E))}N.useImperativeHandle(e,()=>({getUploader:()=>n.uppy,open:S,close:C}));const R=u?Zf:N.Fragment,A=u?{sx:{zIndex:99999999999,background:"rgba(0,0,0,0.5)","& > *":{display:n.open?"block":"none"},...(V=t==null?void 0:t.wrapperProps)==null?void 0:V.sx},invisible:!0,open:n.open,onClick:T=>{document.activeElement===document.body&&(T.stopPropagation(),C())},...t.wrapperProps}:{...t.wrapperProps},z=v?"42px":"40px";return Z.jsx(R,{...A,children:Z.jsxs(ff,{onClose:C,did:z2,disabled:!n.open,...y,children:[Z.jsx(em,{styles:()=>({".uppy-is-drag-over":{"&::after":{transition:"all 0.3s ease-in-out",border:"2px dashed #bbb !important",borderRadius:4,background:"rgba(234, 234, 234, 0.5)"}}})}),Z.jsxs(bo,{className:"uploader-container",ref:a,id:Fu,onClick:T=>T.stopPropagation(),sx:{position:"relative",width:v?"90vw":720,".uppy-ProviderBrowserItem-inner":{flex:1,color:"transparent","img, object":{objectFit:"contain !important"}},".uppy-Dashboard-Item-previewInnerWrap, .uppy-ProviderBrowserItem-inner":{background:"repeating-conic-gradient(#bdbdbd33 0 25%,#fff 0 50%) 50%/16px 16px !important"},".uploaded-add-item":{background:"rgba(0,0,0,0.1) !important",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out","&:hover":{background:"rgba(0,0,0,0.13)"}},".uppy-StatusBar-actions, .uppy-ProviderBrowser-footer":{justifyContent:"flex-end"},".uppy-ProviderBrowser-footer":{button:{marginRight:"0 !important","&:last-child":{display:"none"}}},".uppy-Dashboard-AddFiles-title":{whiteSpace:"normal"},".uppy-ProviderBrowser-body":{background:"#fff",height:"100%"},".uppy-ProviderBrowser-list":{height:"fit-content",maxHeight:"100%"},".uploaded, .ai-image":{width:"100%",height:"100%",display:"flex",alignItems:"center",flexDirection:"column","& > div":{width:"100%"},"& .uppy-ProviderBrowser-header":{display:"none"}},"& .uppy-Url":{width:"100% !important",display:"flex",justifyContent:"center","& input":{width:"70%"}},"& .uppy-Dashboard-browse, & .uppy-DashboardContent-addMore, & .uppy-DashboardContent-back, & .uppy-StatusBar-actionBtn--done, & .uppy-DashboardContent-save, & .uppy-StatusBar-actionBtn--upload":{color:`${(I=(H=s==null?void 0:s.palette)==null?void 0:H.primary)==null?void 0:I.main}`,transition:"all 0.3s ease-in-out","&:hover, &:focus":{color:`${(_=($=s==null?void 0:s.palette)==null?void 0:$.primary)==null?void 0:_.main}`,filter:"brightness(1.2)"}},"& .uppy-Dashboard-browse":{textDecoration:"underline !important"},"& .uppy-c-btn-primary":{backgroundColor:`${(x=(b=s==null?void 0:s.palette)==null?void 0:b.primary)==null?void 0:x.main} !important`,transition:"all 0.3s ease-in-out","&:hover, &:focus":{backgroundColor:`${(O=(k=s==null?void 0:s.palette)==null?void 0:k.primary)==null?void 0:O.main} !important`,filter:"brightness(1.2)"}}},children:[u&&Z.jsx(wm,{"aria-label":"close",onClick:C,sx:{color:"#fafafa",position:"absolute",...v?{bottom:`calc(0px - ${z} - 16px)`,left:`calc(50vw - ${z} - 8px)`}:{right:`calc(0px - ${z} - 16px)`,top:-12}},children:Z.jsx(Rm,{sx:{fontSize:z}})}),w&&Z.jsxs(bo,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:99999999999,flexDirection:"column",background:"rgba(256, 256, 256, 0.2)",backdropFilter:"blur(4px)",borderRadius:1,pointerEvents:"none"},children:[Z.jsx(l2,{size:32}),Z.jsx(V2,{variant:"body2",color:"primary",sx:{mt:1.5,fontWeight:"bold"},children:rf(th,`${g}.strings.loadingStatus`)})]}),n.uppy&&Z.jsx(td,{inline:!0,target:`#${Fu}`,id:Bn,uppy:n.uppy,plugins:P,fileManagerSelectionType:((D=n.restrictions)==null?void 0:D.maxNumberOfFiles)===1?"files":"both",proudlyDisplayPoweredByUppy:!1,showProgressDetails:!0,disableThumbnailGenerator:!0,note:"",doneButtonHandler:C,...t.dashboardProps})]},"uploader-container")]})},"uploader-wrapper")}),Y2=Object.freeze(Object.defineProperty({__proto__:null,Uploader:vr,default:vr,initUploader:ll},Symbol.toStringTag,{value:"Module"})),Cu=N.lazy(()=>Au(()=>Promise.resolve().then(()=>Y2),void 0,import.meta.url).then(t=>({default:t.Uploader}))),cl=N.createContext(null);function Fh(){const t=N.useContext(cl);if(!t)throw new Error("useUploaderContext must be used within an UploaderProvider");return t}function Q2({onChange:t,children:e,...i}){const a=Fh(),n=()=>{var o;const s=(o=a==null?void 0:a.current)==null?void 0:o.getUploader();s==null||s.open(),t&&s.onceUploadSuccess((...r)=>{t(...r)})};return Z.jsx(bo,{onClick:n,...i,children:e})}function J2({children:t,popup:e,...i}){const a=N.useRef(null),n=N.useMemo(()=>e?cf.createPortal(Z.jsx(Cu,{ref:a,popup:!0,...i},"uploader"),document.body):Z.jsx(Cu,{ref:a,popup:!1,...i},"uploader"),[a,e,i]);return Z.jsxs(cl.Provider,{value:a,children:[t,n]})}const _3=Object.freeze(Object.defineProperty({__proto__:null,CLOSE:Qn,OPEN:Yn,UPLOADER_UPLOAD_SUCCESS:hr,Uploader:vr,UploaderContext:cl,UploaderProvider:J2,UploaderTrigger:Q2,api:nl,base64ToFile:ch,blobToFile:pr,createImageUrl:en,getAIKitComponent:ph,getDownloadUrl:uh,getExt:Bi,getMediaKitComponent:Ni,getObjectURL:ur,getUploaderEndpoint:sl,getUrl:hh,initUploader:ll,initUppy:fh,isBlob:lh,isMediaKit:dr,isSvgFile:gh,mediaKitApi:Ki,mediaKitMountPoint:wt,parseStringToDot:mh,get prefixPath(){return Gt},setPrefixPath:dh,useUploaderContext:Fh},Symbol.toStringTag,{value:"Module"}));export{mm as B,em as G,wm as I,V2 as T,Zf as a,Bu as b,Dm as c,Wf as d,g3 as e,bo as f,Fl as g,ph as h,_3 as i,Iu as k,Hf as r,yi as s,qi as u};
@@ -1,4 +1,4 @@
1
- import{r as G,j as o,fA as yo,ch as Ye,fB as vo,aN as pr,aO as mr,fC as ut,M as J,av as hr,aA as Fe,l as be,d_ as bo,d3 as Wr,fD as _n,fE as xo,o as _e,fF as gr,fG as wo,aJ as Eo,cg as jo,e1 as tr,R as wt,fH as dt,eR as Re,fI as So,fJ as Nn,fK as Bn,fL as Ao,fM as Po,fN as Ln,fO as yr,fP as Co,fQ as Oo,fR as Io,fS as Ro,eS as rr,eT as vr,fT as kn,eU as To,H as Do,g as Un,cP as Hr,eF as _o,J as No,bm as Ce,aR as qn,O as Et,eG as Bo,fU as br,aw as Qe,D as Ze,B as Se,C as ot,v as xr,S as nt,U as Ke,P as F,i as nr,aX as Lo,w as ko,x as Uo,n as Ne,fe as qo,f as pt,ae as mt,V as qe,cb as Je,z as $e,fV as Fo,c as Xe,d9 as Ko,q as wr,E as je,a2 as or,W as jt,cd as $o,cW as Mo,fW as Fn,aT as Vo,fX as zo,aG as Wo,aa as Ho,cB as Go,a4 as Yo,bq as Zo,aV as Xo,Q as Qo,N as Jo}from"./index-CvoQfwdo.js";import{c as ei}from"./index-B5aAzE-y.js";import{d as St}from"./Add-CB3E_i_7.js";import{d as ti}from"./Loop-Md-TPW17.js";import{d as ri}from"./ViewList-CRm6tuSw.js";import{L as ni,S as oi,d as Kn}from"./list-header-8M5v0mEZ.js";import{D as Er,g as ii}from"./index-B422IDQn.js";import{c as Lt,U as kt,d as $n}from"./resource-dialog-Ce7XfSZ0.js";import{T as ai}from"./index-BuCRKgwB.js";import{E as Mn}from"./index-BBwK0xsH.js";import"./index-fz_DOQ-g.js";import{N as si}from"./index-DiOMxvTK.js";import"./index-CuulkVT6.js";import{W as Vn}from"./url-evaluation-CkdeW9xb.js";import{a as Le}from"./team-BsMAhTHe.js";import{u as zn}from"./blocklet-DeYEPs7W.js";import{C as Rt}from"./click-to-copy-cyfJmCk0.js";import{F as ir,S as ar}from"./Select-ZoGQlFtQ.js";import{I as sr}from"./InputLabel-BEvb6pBW.js";import{T as At}from"./TextField-DAI8Qdpe.js";import{I as cr}from"./index-gqghhYg-.js";import{d as ci}from"./DeleteOutline-CehpYKMD.js";import{u as li}from"./uniqBy-L5gdenz-.js";import{b as ui}from"./sdk-BDOUO8dj.js";import{d as fi}from"./Delete-D7NoNb87.js";import{A as di}from"./actions-ChzBM1oM.js";import{S as pi}from"./shorten-label-BLL_il_j.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;mi(G);var tt=o;function mi(e){return e&&e.__esModule?e:{default:e}}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gr(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hi(e,t,r){return(t=gi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gi(e){var t=yi(e,"string");return typeof t=="symbol"?t:t+""}function yi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Yr(Yr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var xt={},vi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Hn="%[a-f0-9]{2}",Zr=new RegExp("("+Hn+")|([^%]+?)","gi"),Xr=new RegExp("("+Hn+")+","gi");function lr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],lr(r),lr(n))}function bi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Zr)||[],r=1;r<t.length;r++)e=lr(t,r).join(""),t=e.match(Zr)||[];return e}}function xi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Xr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=bi(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Xr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),d=0;d<s.length;d++){var h=s[d];e=e.replace(new RegExp(h,"g"),t[h])}return e}var wi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return xi(e)}},Ei=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ji=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),d=0;d<n.length;d++){var h=n[d],A=e[h];(s?t.indexOf(h)!==-1:t(h,A,e))&&(r[h]=A)}return r};(function(e){const t=vi,r=wi,n=Ei,s=ji,d=c=>c==null;function h(c){switch(c.arrayFormat){case"index":return i=>(a,l)=>{const p=a.length;return l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,[E(i,c),"[",p,"]"].join("")]:[...a,[E(i,c),"[",E(p,c),"]=",E(l,c)].join("")]};case"bracket":return i=>(a,l)=>l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(l,c)].join("")];case"comma":case"separator":return i=>(a,l)=>l==null||l.length===0?a:a.length===0?[[E(i,c),"=",E(l,c)].join("")]:[[a,E(l,c)].join(c.arrayFormatSeparator)];default:return i=>(a,l)=>l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(l,c)].join("")]}}function A(c){let i;switch(c.arrayFormat){case"index":return(a,l,p)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){p[a]=l;return}p[a]===void 0&&(p[a]={}),p[a][i[1]]=l};case"bracket":return(a,l,p)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){p[a]=l;return}if(p[a]===void 0){p[a]=[l];return}p[a]=[].concat(p[a],l)};case"comma":case"separator":return(a,l,p)=>{const O=typeof l=="string"&&l.includes(c.arrayFormatSeparator),j=typeof l=="string"&&!O&&f(l,c).includes(c.arrayFormatSeparator);l=j?f(l,c):l;const L=O||j?l.split(c.arrayFormatSeparator).map($=>f($,c)):l===null?l:f(l,c);p[a]=L};default:return(a,l,p)=>{if(p[a]===void 0){p[a]=l;return}p[a]=[].concat(p[a],l)}}}function m(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function f(c,i){return i.decode?r(c):c}function P(c){return Array.isArray(c)?c.sort():typeof c=="object"?P(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function v(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function C(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=v(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function N(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function w(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),m(i.arrayFormatSeparator);const a=A(i),l=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return l;for(const p of c.split("&")){if(p==="")continue;let[O,j]=n(i.decode?p.replace(/\+/g," "):p,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:f(j,i),a(f(O,i),j,l)}for(const p of Object.keys(l)){const O=l[p];if(typeof O=="object"&&O!==null)for(const j of Object.keys(O))O[j]=N(O[j],i);else l[p]=N(O,i)}return i.sort===!1?l:(i.sort===!0?Object.keys(l).sort():Object.keys(l).sort(i.sort)).reduce((p,O)=>{const j=l[O];return j&&typeof j=="object"&&!Array.isArray(j)?p[O]=P(j):p[O]=j,p},Object.create(null))}e.extract=S,e.parse=w,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),m(i.arrayFormatSeparator);const a=j=>i.skipNull&&d(c[j])||i.skipEmptyString&&c[j]==="",l=h(i),p={};for(const j of Object.keys(c))a(j)||(p[j]=c[j]);const O=Object.keys(p);return i.sort!==!1&&O.sort(i.sort),O.map(j=>{const L=c[j];return L===void 0?"":L===null?E(j,i):Array.isArray(L)?L.reduce(l(j),[]).join("&"):E(j,i)+"="+E(L,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,l]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:w(S(c),i)},i&&i.parseFragmentIdentifier&&l?{fragmentIdentifier:f(l,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=v(c.url).split("?")[0]||"",l=e.extract(c.url),p=e.parse(l,{sort:!1}),O=Object.assign(p,c.query);let j=e.stringify(O,i);j&&(j=`?${j}`);let L=C(c.url);return c.fragmentIdentifier&&(L=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${L}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:l,query:p,fragmentIdentifier:O}=e.parseUrl(c,a);return e.stringifyUrl({url:l,query:s(p,i),fragmentIdentifier:O},a)},e.exclude=(c,i,a)=>{const l=Array.isArray(i)?p=>!i.includes(p):(p,O)=>!i(p,O);return e.pick(c,l,a)}})(xt);const ct=vo,Si={parseNumbers:!1,parseBooleans:!1},Ai={skipNull:!1,skipEmptyString:!1},Pi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:d,stringifyOptions:h}={},A=Object.assign(Object.assign({},Si),d),m=Object.assign(Object.assign({},Ai),h),E=ct.useLocation(),f=(r=ct.useHistory)===null||r===void 0?void 0:r.call(ct),P=(n=ct.useNavigate)===null||n===void 0?void 0:n.call(ct),v=yo(),C=G.useRef(typeof e=="function"?e():e||{}),S=G.useMemo(()=>xt.parse(E.search,A),[E.search]),N=G.useMemo(()=>Object.assign(Object.assign({},C.current),S),[S]);return[N,Ye(c=>{const i=typeof c=="function"?c(N):c;v(),f&&f[s]({hash:E.hash,search:xt.stringify(Object.assign(Object.assign({},S),i),m)||"?"},E.state),P&&P({hash:E.hash,search:xt.stringify(Object.assign(Object.assign({},S),i),m)||"?"},{replace:s==="replace",state:E.state})})]},Ci=Pi;var Ar={},Oi=mr;Object.defineProperty(Ar,"__esModule",{value:!0});var Gn=Ar.default=void 0,Ii=Oi(pr()),Ri=o;Gn=Ar.default=(0,Ii.default)((0,Ri.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");class Ti extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const Qr=e=>globalThis.DOMException===void 0?new Ti(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Qr("This operation was aborted."):e.reason;return t instanceof Error?t:Qr(t)};async function Di(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((d,h)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const A=[],m=[],E=new Map;let f=!1,P=!1,v=!1,C=0,S=0;const N=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),w=i=>{f=!0,P=!0,h(i)};s&&(s.aborted&&w(Jr(s)),s.addEventListener("abort",()=>{w(Jr(s))}));const c=async()=>{if(P)return;const i=await N.next(),a=S;if(S++,i.done){if(v=!0,C===0&&!P){if(!n&&m.length>0){w(new AggregateError(m));return}if(P=!0,E.size===0){d(A);return}const l=[];for(const[p,O]of A.entries())E.get(p)!==en&&l.push(O);d(l)}return}C++,(async()=>{try{const l=await i.value;if(P)return;const p=await t(l,a);p===en&&E.set(a,p),A[a]=p,C--,await c()}catch(l){if(n)w(l);else{m.push(l),C--;try{await c()}catch(p){w(p)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){w(a);break}if(v||f)break}})()})}const en=Symbol("skip");async function _i(e,t){return Di(e,r=>r(),t)}function Ni({user:e,sessionUser:t}){const r=ut(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(hr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(J,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Fe,{title:t.fullName,children:o.jsx(be,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(bo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Wr.textBase,borderColor:Wr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Fe,{title:t.email,children:o.jsx(be,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Bi={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Yn="Reserved IP",tn="ip-region-cache";async function Li(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Yn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function ki(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Yn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Ui(e){let t="",r={};try{const n=localStorage.getItem(tn);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await ki(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Li(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(tn,JSON.stringify(r))}return t}async function qi(e){return Promise.all(e.map(t=>Ui(t)))}const rn=e=>new kt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[kt.BROWSER.NAME,kt.BROWSER.VERSION]]}).getResult();function Fi({user:e,showAction:t=!0,showUser:r=!0}){const{session:n}=G.useContext(_n),s=xo(),{locale:d}=_e(),{confirmApi:h,confirmHolder:A}=gr(),m=Ye((a,l={})=>wo(Bi,a,d,"en",l)),E=Ye(async()=>{let a=(e==null?void 0:e.userSessions)||[];try{!a&&n.user&&(a=await Lt.userSession.getMyLoginSessions());const p=a==null?void 0:a.map((L,$)=>[$,L.lastLoginIp]).filter(L=>!!L[1]),O=p==null?void 0:p.map(L=>L[1]),j=await qi(O);for(let L=0;L<j.length;L++){const $=j[L],Z=p[L],M=a[Z[0]];M.ipRegion=$}}catch(p){console.warn("Failed to convert ip to region"),console.error(p)}const l=new Date().getTime();return Eo(a,p=>p.visitorId===s?-1:l-new Date(p.updatedAt).getTime())}),f=jo(E),P=ut(()=>f.data||[],[f.data]),v=ut(()=>P.reduce((a,l)=>(a[l.lastLoginIp]=l.ipRegion,a),{}),[P]),C=Ye(({visitorId:a})=>{h.open({title:m("logoutThisSession"),content:m("logoutThisSessionConfirm"),confirmButtonText:m("confirm"),cancelButtonText:m("cancel"),onConfirm:async()=>{await Lt.user.logout({visitorId:a}),f.refresh(),h.close()}})}),S=ut(()=>P.filter(l=>l.visitorId!==s),[P]),N=Ye(()=>{h.open({title:m("logoutAllSession"),content:m("logoutAllSessionConfirm"),confirmButtonText:m("confirm"),cancelButtonText:m("cancel"),onConfirm:async()=>{const a=S.map(l=>()=>Lt.user.logout({visitorId:l.visitorId}));await _i(a,{concurrency:3,stopOnError:!1}),f.refresh(),h.close()}})}),w=[];t&&w.push(o.jsx(Fe,{title:m("logoutAllTips"),children:o.jsx(tr,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:N,disabled:S.length===0,children:m("logoutAll")})},"logoutAll"));const c=ut(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),i=[{label:m("platform"),name:"platform",options:{customBodyRenderLite:a=>{var O,j;const l=P[a],p=rn(l.ua);return o.jsx(J,{children:[(O=p.os)==null?void 0:O.name,(j=p.os)==null?void 0:j.version].filter(Boolean).join("/")||m("unknown")})}}},{label:m("deviceType"),name:"deviceType",options:{customBodyRenderLite:a=>{var O,j;const l=P[a],p=rn(l.ua);return o.jsx(J,{children:[(O=p.browser)==null?void 0:O.name,(j=p.browser)==null?void 0:j.version].filter(Boolean).join("/")||m("unknown")})}}},{label:m("walletOS"),name:"walletOS",options:{customBodyRenderLite:a=>{var p;const l=P[a];return o.jsx(J,{children:((p=l.extra)==null?void 0:p.walletOS)||m("unknown")})}}},r&&{label:m("user"),name:"user",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ni,{sessionUser:l.user,user:e})})}}},{label:m("createdAt"),name:"createdAt",options:{customBodyRenderLite:a=>{const l=P[a];return l.createdAt?o.jsx(wt,{value:l.createdAt,relativeRange:3*86400*1e3,locale:d}):m("unknown")}}},{label:m("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:a=>{const l=P[a];return l.status==="expired"?m("expired"):o.jsx(wt,{value:l.updatedAt,relativeRange:3*86400*1e3,locale:d})}}},{label:m("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{children:v[l.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(be,{variant:"body2",children:v[l.lastLoginIp]}),o.jsx(be,{variant:"body2",color:"grey",children:l.lastLoginIp||m("unknown")})]}):o.jsx(be,{children:l.lastLoginIp||m("unknown")})})}}},t&&{label:m("actions"),name:"actions",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{children:o.jsx(tr,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:s===l.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>C({visitorId:l.visitorId}),children:l.status==="expired"?m("remove"):s===l.visitorId?m("currentSession"):m("logout")})})}}}].filter(Boolean);return o.jsxs(J,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[A,o.jsx(Er,{locale:d,data:P,columns:i,customButtons:w,options:c,loading:f.loading})]})}var Ut={exports:{}},qt={},nn;function Zn(){if(nn)return qt;nn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,l){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,O){return p.__proto__=O,p},s(i,a)}function d(i){var a=m();return function(){var p=E(i),O;if(a){var j=E(this).constructor;O=Reflect.construct(p,arguments,j)}else O=p.apply(this,arguments);return h(this,O)}}function h(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(i)}function A(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},E(i)}var f={},P,v;function C(i,a,l){l||(l=Error);function p(j,L,$){return typeof a=="string"?a:a(j,L,$)}var O=function(j){n($,j);var L=d($);function $(Z,M,Y){var ee;return r(this,$),ee=L.call(this,p(Z,M,Y)),ee.code=i,ee}return t($)}(l);f[i]=O}function S(i,a){if(Array.isArray(i)){var l=i.length;return i=i.map(function(p){return String(p)}),l>2?"one of ".concat(a," ").concat(i.slice(0,l-1).join(", "),", or ")+i[l-1]:l===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function N(i,a,l){return i.substr(0,a.length)===a}function w(i,a,l){return(l===void 0||l>i.length)&&(l=i.length),i.substring(l-a.length,l)===a}function c(i,a,l){return typeof l!="number"&&(l=0),l+a.length>i.length?!1:i.indexOf(a,l)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(i,a,l){P===void 0&&(P=ur()),P(typeof i=="string","'name' must be a string");var p;typeof a=="string"&&N(a,"not ")?(p="must not be",a=a.replace(/^not /,"")):p="must be";var O;if(w(i," argument"))O="The ".concat(i," ").concat(p," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";O='The "'.concat(i,'" ').concat(j," ").concat(p," ").concat(S(a,"type"))}return O+=". Received type ".concat(e(l)),O},TypeError),C("ERR_INVALID_ARG_VALUE",function(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=dt);var p=v.inspect(a);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(l,". Received ").concat(p)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(i,a,l){var p;return l&&l.constructor&&l.constructor.name?p="instance of ".concat(l.constructor.name):p="type ".concat(e(l)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(p,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];P===void 0&&(P=ur()),P(a.length>0,"At least one arg needs to be specified");var p="The ",O=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),O){case 1:p+="".concat(a[0]," argument");break;case 2:p+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:p+=a.slice(0,O-1).join(", "),p+=", and ".concat(a[O-1]," arguments");break}return"".concat(p," must be specified")},TypeError),qt.codes=f,qt}var Ft,on;function Ki(){if(on)return Ft;on=1;function e(I,R){var K=Object.keys(I);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(I);R&&(D=D.filter(function(H){return Object.getOwnPropertyDescriptor(I,H).enumerable})),K.push.apply(K,D)}return K}function t(I){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?e(Object(K),!0).forEach(function(D){r(I,D,K[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(K)):e(Object(K)).forEach(function(D){Object.defineProperty(I,D,Object.getOwnPropertyDescriptor(K,D))})}return I}function r(I,R,K){return R=h(R),R in I?Object.defineProperty(I,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):I[R]=K,I}function n(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function s(I,R){for(var K=0;K<R.length;K++){var D=R[K];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,h(D.key),D)}}function d(I,R,K){return R&&s(I.prototype,R),Object.defineProperty(I,"prototype",{writable:!1}),I}function h(I){var R=A(I,"string");return i(R)==="symbol"?R:String(R)}function A(I,R){if(i(I)!=="object"||I===null)return I;var K=I[Symbol.toPrimitive];if(K!==void 0){var D=K.call(I,R||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(I)}function m(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),R&&w(I,R)}function E(I){var R=S();return function(){var D=c(I),H;if(R){var b=c(this).constructor;H=Reflect.construct(D,arguments,b)}else H=D.apply(this,arguments);return f(this,H)}}function f(I,R){if(R&&(i(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(I)}function P(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function v(I){var R=typeof Map=="function"?new Map:void 0;return v=function(D){if(D===null||!N(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(D))return R.get(D);R.set(D,H)}function H(){return C(D,arguments,c(this).constructor)}return H.prototype=Object.create(D.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),w(H,D)},v(I)}function C(I,R,K){return S()?C=Reflect.construct.bind():C=function(H,b,g){var x=[null];x.push.apply(x,b);var B=Function.bind.apply(H,x),_=new B;return g&&w(_,g.prototype),_},C.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function w(I,R){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,H){return D.__proto__=H,D},w(I,R)}function c(I){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},c(I)}function i(I){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},i(I)}var a=dt,l=a.inspect,p=Zn(),O=p.codes.ERR_INVALID_ARG_TYPE;function j(I,R,K){return(K===void 0||K>I.length)&&(K=I.length),I.substring(K-R.length,K)===R}function L(I,R){if(R=Math.floor(R),I.length==0||R==0)return"";var K=I.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)I+=I,R--;return I+=I.substring(0,K-I.length),I}var $="",Z="",M="",Y="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function X(I){var R=Object.keys(I),K=Object.create(Object.getPrototypeOf(I));return R.forEach(function(D){K[D]=I[D]}),Object.defineProperty(K,"message",{value:I.message}),K}function de(I){return l(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(I,R,K){var D="",H="",b=0,g="",x=!1,B=de(I),_=B.split(`
1
+ import{r as G,j as o,fA as yo,ch as Ye,fB as vo,aN as pr,aO as mr,fC as ut,M as J,av as hr,aA as Fe,l as be,d_ as bo,d3 as Wr,fD as _n,fE as xo,o as _e,fF as gr,fG as wo,aJ as Eo,cg as jo,e1 as tr,R as wt,fH as dt,eR as Re,fI as So,fJ as Nn,fK as Bn,fL as Ao,fM as Po,fN as Ln,fO as yr,fP as Co,fQ as Oo,fR as Io,fS as Ro,eS as rr,eT as vr,fT as kn,eU as To,H as Do,g as Un,cP as Hr,eF as _o,J as No,bm as Ce,aR as qn,O as Et,eG as Bo,fU as br,aw as Qe,D as Ze,B as Se,C as ot,v as xr,S as nt,U as Ke,P as F,i as nr,aX as Lo,w as ko,x as Uo,n as Ne,fe as qo,f as pt,ae as mt,V as qe,cb as Je,z as $e,fV as Fo,c as Xe,d9 as Ko,q as wr,E as je,a2 as or,W as jt,cd as $o,cW as Mo,fW as Fn,aT as Vo,fX as zo,aG as Wo,aa as Ho,cB as Go,a4 as Yo,bq as Zo,aV as Xo,Q as Qo,N as Jo}from"./index-szLyLiKt.js";import{c as ei}from"./index-CvGXEvkW.js";import{d as St}from"./Add-Iqq5UL4X.js";import{d as ti}from"./Loop-nI3ml_tu.js";import{d as ri}from"./ViewList-CC4-2p7Y.js";import{L as ni,S as oi,d as Kn}from"./list-header-CXtRgeb8.js";import{D as Er,g as ii}from"./index-CXxy8kEI.js";import{c as Lt,U as kt,d as $n}from"./resource-dialog-B3-hy8cw.js";import{T as ai}from"./index-CwFt9Te9.js";import{E as Mn}from"./index-CXsdGe6B.js";import"./index-D2z1mjPq.js";import{N as si}from"./index-CABG6WnA.js";import"./index-BZpDshq_.js";import{W as Vn}from"./url-evaluation-BS1bNemt.js";import{a as Le}from"./team-C90gWPMY.js";import{u as zn}from"./blocklet-BysF7NjN.js";import{C as Rt}from"./click-to-copy-D6a3LbT7.js";import{F as ir,S as ar}from"./Select-C9prPdE8.js";import{I as sr}from"./InputLabel-BpHdIT50.js";import{T as At}from"./TextField-DmmMqMAo.js";import{I as cr}from"./index-BotJ3AX5.js";import{d as ci}from"./DeleteOutline-DfpoQfad.js";import{u as li}from"./uniqBy-DMKiy0t2.js";import{b as ui}from"./sdk-DG5Padvs.js";import{d as fi}from"./Delete-Cgqm12Xe.js";import{A as di}from"./actions-d05pHP8u.js";import{S as pi}from"./shorten-label-T_aHg8P2.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;mi(G);var tt=o;function mi(e){return e&&e.__esModule?e:{default:e}}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gr(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hi(e,t,r){return(t=gi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gi(e){var t=yi(e,"string");return typeof t=="symbol"?t:t+""}function yi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Yr(Yr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var xt={},vi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Hn="%[a-f0-9]{2}",Zr=new RegExp("("+Hn+")|([^%]+?)","gi"),Xr=new RegExp("("+Hn+")+","gi");function lr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],lr(r),lr(n))}function bi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Zr)||[],r=1;r<t.length;r++)e=lr(t,r).join(""),t=e.match(Zr)||[];return e}}function xi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Xr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=bi(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Xr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),d=0;d<s.length;d++){var h=s[d];e=e.replace(new RegExp(h,"g"),t[h])}return e}var wi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return xi(e)}},Ei=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ji=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),d=0;d<n.length;d++){var h=n[d],A=e[h];(s?t.indexOf(h)!==-1:t(h,A,e))&&(r[h]=A)}return r};(function(e){const t=vi,r=wi,n=Ei,s=ji,d=c=>c==null;function h(c){switch(c.arrayFormat){case"index":return i=>(a,l)=>{const p=a.length;return l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,[E(i,c),"[",p,"]"].join("")]:[...a,[E(i,c),"[",E(p,c),"]=",E(l,c)].join("")]};case"bracket":return i=>(a,l)=>l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(l,c)].join("")];case"comma":case"separator":return i=>(a,l)=>l==null||l.length===0?a:a.length===0?[[E(i,c),"=",E(l,c)].join("")]:[[a,E(l,c)].join(c.arrayFormatSeparator)];default:return i=>(a,l)=>l===void 0||c.skipNull&&l===null||c.skipEmptyString&&l===""?a:l===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(l,c)].join("")]}}function A(c){let i;switch(c.arrayFormat){case"index":return(a,l,p)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){p[a]=l;return}p[a]===void 0&&(p[a]={}),p[a][i[1]]=l};case"bracket":return(a,l,p)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){p[a]=l;return}if(p[a]===void 0){p[a]=[l];return}p[a]=[].concat(p[a],l)};case"comma":case"separator":return(a,l,p)=>{const O=typeof l=="string"&&l.includes(c.arrayFormatSeparator),j=typeof l=="string"&&!O&&f(l,c).includes(c.arrayFormatSeparator);l=j?f(l,c):l;const L=O||j?l.split(c.arrayFormatSeparator).map($=>f($,c)):l===null?l:f(l,c);p[a]=L};default:return(a,l,p)=>{if(p[a]===void 0){p[a]=l;return}p[a]=[].concat(p[a],l)}}}function m(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function f(c,i){return i.decode?r(c):c}function P(c){return Array.isArray(c)?c.sort():typeof c=="object"?P(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function v(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function C(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=v(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function N(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function w(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),m(i.arrayFormatSeparator);const a=A(i),l=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return l;for(const p of c.split("&")){if(p==="")continue;let[O,j]=n(i.decode?p.replace(/\+/g," "):p,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:f(j,i),a(f(O,i),j,l)}for(const p of Object.keys(l)){const O=l[p];if(typeof O=="object"&&O!==null)for(const j of Object.keys(O))O[j]=N(O[j],i);else l[p]=N(O,i)}return i.sort===!1?l:(i.sort===!0?Object.keys(l).sort():Object.keys(l).sort(i.sort)).reduce((p,O)=>{const j=l[O];return j&&typeof j=="object"&&!Array.isArray(j)?p[O]=P(j):p[O]=j,p},Object.create(null))}e.extract=S,e.parse=w,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),m(i.arrayFormatSeparator);const a=j=>i.skipNull&&d(c[j])||i.skipEmptyString&&c[j]==="",l=h(i),p={};for(const j of Object.keys(c))a(j)||(p[j]=c[j]);const O=Object.keys(p);return i.sort!==!1&&O.sort(i.sort),O.map(j=>{const L=c[j];return L===void 0?"":L===null?E(j,i):Array.isArray(L)?L.reduce(l(j),[]).join("&"):E(j,i)+"="+E(L,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,l]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:w(S(c),i)},i&&i.parseFragmentIdentifier&&l?{fragmentIdentifier:f(l,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=v(c.url).split("?")[0]||"",l=e.extract(c.url),p=e.parse(l,{sort:!1}),O=Object.assign(p,c.query);let j=e.stringify(O,i);j&&(j=`?${j}`);let L=C(c.url);return c.fragmentIdentifier&&(L=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${L}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:l,query:p,fragmentIdentifier:O}=e.parseUrl(c,a);return e.stringifyUrl({url:l,query:s(p,i),fragmentIdentifier:O},a)},e.exclude=(c,i,a)=>{const l=Array.isArray(i)?p=>!i.includes(p):(p,O)=>!i(p,O);return e.pick(c,l,a)}})(xt);const ct=vo,Si={parseNumbers:!1,parseBooleans:!1},Ai={skipNull:!1,skipEmptyString:!1},Pi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:d,stringifyOptions:h}={},A=Object.assign(Object.assign({},Si),d),m=Object.assign(Object.assign({},Ai),h),E=ct.useLocation(),f=(r=ct.useHistory)===null||r===void 0?void 0:r.call(ct),P=(n=ct.useNavigate)===null||n===void 0?void 0:n.call(ct),v=yo(),C=G.useRef(typeof e=="function"?e():e||{}),S=G.useMemo(()=>xt.parse(E.search,A),[E.search]),N=G.useMemo(()=>Object.assign(Object.assign({},C.current),S),[S]);return[N,Ye(c=>{const i=typeof c=="function"?c(N):c;v(),f&&f[s]({hash:E.hash,search:xt.stringify(Object.assign(Object.assign({},S),i),m)||"?"},E.state),P&&P({hash:E.hash,search:xt.stringify(Object.assign(Object.assign({},S),i),m)||"?"},{replace:s==="replace",state:E.state})})]},Ci=Pi;var Ar={},Oi=mr;Object.defineProperty(Ar,"__esModule",{value:!0});var Gn=Ar.default=void 0,Ii=Oi(pr()),Ri=o;Gn=Ar.default=(0,Ii.default)((0,Ri.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");class Ti extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const Qr=e=>globalThis.DOMException===void 0?new Ti(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Qr("This operation was aborted."):e.reason;return t instanceof Error?t:Qr(t)};async function Di(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((d,h)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const A=[],m=[],E=new Map;let f=!1,P=!1,v=!1,C=0,S=0;const N=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),w=i=>{f=!0,P=!0,h(i)};s&&(s.aborted&&w(Jr(s)),s.addEventListener("abort",()=>{w(Jr(s))}));const c=async()=>{if(P)return;const i=await N.next(),a=S;if(S++,i.done){if(v=!0,C===0&&!P){if(!n&&m.length>0){w(new AggregateError(m));return}if(P=!0,E.size===0){d(A);return}const l=[];for(const[p,O]of A.entries())E.get(p)!==en&&l.push(O);d(l)}return}C++,(async()=>{try{const l=await i.value;if(P)return;const p=await t(l,a);p===en&&E.set(a,p),A[a]=p,C--,await c()}catch(l){if(n)w(l);else{m.push(l),C--;try{await c()}catch(p){w(p)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){w(a);break}if(v||f)break}})()})}const en=Symbol("skip");async function _i(e,t){return Di(e,r=>r(),t)}function Ni({user:e,sessionUser:t}){const r=ut(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(hr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(J,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Fe,{title:t.fullName,children:o.jsx(be,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(bo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Wr.textBase,borderColor:Wr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Fe,{title:t.email,children:o.jsx(be,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Bi={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Yn="Reserved IP",tn="ip-region-cache";async function Li(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Yn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function ki(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Yn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Ui(e){let t="",r={};try{const n=localStorage.getItem(tn);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await ki(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Li(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(tn,JSON.stringify(r))}return t}async function qi(e){return Promise.all(e.map(t=>Ui(t)))}const rn=e=>new kt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[kt.BROWSER.NAME,kt.BROWSER.VERSION]]}).getResult();function Fi({user:e,showAction:t=!0,showUser:r=!0}){const{session:n}=G.useContext(_n),s=xo(),{locale:d}=_e(),{confirmApi:h,confirmHolder:A}=gr(),m=Ye((a,l={})=>wo(Bi,a,d,"en",l)),E=Ye(async()=>{let a=(e==null?void 0:e.userSessions)||[];try{!a&&n.user&&(a=await Lt.userSession.getMyLoginSessions());const p=a==null?void 0:a.map((L,$)=>[$,L.lastLoginIp]).filter(L=>!!L[1]),O=p==null?void 0:p.map(L=>L[1]),j=await qi(O);for(let L=0;L<j.length;L++){const $=j[L],Z=p[L],M=a[Z[0]];M.ipRegion=$}}catch(p){console.warn("Failed to convert ip to region"),console.error(p)}const l=new Date().getTime();return Eo(a,p=>p.visitorId===s?-1:l-new Date(p.updatedAt).getTime())}),f=jo(E),P=ut(()=>f.data||[],[f.data]),v=ut(()=>P.reduce((a,l)=>(a[l.lastLoginIp]=l.ipRegion,a),{}),[P]),C=Ye(({visitorId:a})=>{h.open({title:m("logoutThisSession"),content:m("logoutThisSessionConfirm"),confirmButtonText:m("confirm"),cancelButtonText:m("cancel"),onConfirm:async()=>{await Lt.user.logout({visitorId:a}),f.refresh(),h.close()}})}),S=ut(()=>P.filter(l=>l.visitorId!==s),[P]),N=Ye(()=>{h.open({title:m("logoutAllSession"),content:m("logoutAllSessionConfirm"),confirmButtonText:m("confirm"),cancelButtonText:m("cancel"),onConfirm:async()=>{const a=S.map(l=>()=>Lt.user.logout({visitorId:l.visitorId}));await _i(a,{concurrency:3,stopOnError:!1}),f.refresh(),h.close()}})}),w=[];t&&w.push(o.jsx(Fe,{title:m("logoutAllTips"),children:o.jsx(tr,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:N,disabled:S.length===0,children:m("logoutAll")})},"logoutAll"));const c=ut(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),i=[{label:m("platform"),name:"platform",options:{customBodyRenderLite:a=>{var O,j;const l=P[a],p=rn(l.ua);return o.jsx(J,{children:[(O=p.os)==null?void 0:O.name,(j=p.os)==null?void 0:j.version].filter(Boolean).join("/")||m("unknown")})}}},{label:m("deviceType"),name:"deviceType",options:{customBodyRenderLite:a=>{var O,j;const l=P[a],p=rn(l.ua);return o.jsx(J,{children:[(O=p.browser)==null?void 0:O.name,(j=p.browser)==null?void 0:j.version].filter(Boolean).join("/")||m("unknown")})}}},{label:m("walletOS"),name:"walletOS",options:{customBodyRenderLite:a=>{var p;const l=P[a];return o.jsx(J,{children:((p=l.extra)==null?void 0:p.walletOS)||m("unknown")})}}},r&&{label:m("user"),name:"user",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ni,{sessionUser:l.user,user:e})})}}},{label:m("createdAt"),name:"createdAt",options:{customBodyRenderLite:a=>{const l=P[a];return l.createdAt?o.jsx(wt,{value:l.createdAt,relativeRange:3*86400*1e3,locale:d}):m("unknown")}}},{label:m("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:a=>{const l=P[a];return l.status==="expired"?m("expired"):o.jsx(wt,{value:l.updatedAt,relativeRange:3*86400*1e3,locale:d})}}},{label:m("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{children:v[l.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(be,{variant:"body2",children:v[l.lastLoginIp]}),o.jsx(be,{variant:"body2",color:"grey",children:l.lastLoginIp||m("unknown")})]}):o.jsx(be,{children:l.lastLoginIp||m("unknown")})})}}},t&&{label:m("actions"),name:"actions",options:{customBodyRenderLite:a=>{const l=P[a];return o.jsx(J,{children:o.jsx(tr,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:s===l.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>C({visitorId:l.visitorId}),children:l.status==="expired"?m("remove"):s===l.visitorId?m("currentSession"):m("logout")})})}}}].filter(Boolean);return o.jsxs(J,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[A,o.jsx(Er,{locale:d,data:P,columns:i,customButtons:w,options:c,loading:f.loading})]})}var Ut={exports:{}},qt={},nn;function Zn(){if(nn)return qt;nn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,l){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,O){return p.__proto__=O,p},s(i,a)}function d(i){var a=m();return function(){var p=E(i),O;if(a){var j=E(this).constructor;O=Reflect.construct(p,arguments,j)}else O=p.apply(this,arguments);return h(this,O)}}function h(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(i)}function A(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},E(i)}var f={},P,v;function C(i,a,l){l||(l=Error);function p(j,L,$){return typeof a=="string"?a:a(j,L,$)}var O=function(j){n($,j);var L=d($);function $(Z,M,Y){var ee;return r(this,$),ee=L.call(this,p(Z,M,Y)),ee.code=i,ee}return t($)}(l);f[i]=O}function S(i,a){if(Array.isArray(i)){var l=i.length;return i=i.map(function(p){return String(p)}),l>2?"one of ".concat(a," ").concat(i.slice(0,l-1).join(", "),", or ")+i[l-1]:l===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function N(i,a,l){return i.substr(0,a.length)===a}function w(i,a,l){return(l===void 0||l>i.length)&&(l=i.length),i.substring(l-a.length,l)===a}function c(i,a,l){return typeof l!="number"&&(l=0),l+a.length>i.length?!1:i.indexOf(a,l)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(i,a,l){P===void 0&&(P=ur()),P(typeof i=="string","'name' must be a string");var p;typeof a=="string"&&N(a,"not ")?(p="must not be",a=a.replace(/^not /,"")):p="must be";var O;if(w(i," argument"))O="The ".concat(i," ").concat(p," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";O='The "'.concat(i,'" ').concat(j," ").concat(p," ").concat(S(a,"type"))}return O+=". Received type ".concat(e(l)),O},TypeError),C("ERR_INVALID_ARG_VALUE",function(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=dt);var p=v.inspect(a);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(l,". Received ").concat(p)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(i,a,l){var p;return l&&l.constructor&&l.constructor.name?p="instance of ".concat(l.constructor.name):p="type ".concat(e(l)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(p,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];P===void 0&&(P=ur()),P(a.length>0,"At least one arg needs to be specified");var p="The ",O=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),O){case 1:p+="".concat(a[0]," argument");break;case 2:p+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:p+=a.slice(0,O-1).join(", "),p+=", and ".concat(a[O-1]," arguments");break}return"".concat(p," must be specified")},TypeError),qt.codes=f,qt}var Ft,on;function Ki(){if(on)return Ft;on=1;function e(I,R){var K=Object.keys(I);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(I);R&&(D=D.filter(function(H){return Object.getOwnPropertyDescriptor(I,H).enumerable})),K.push.apply(K,D)}return K}function t(I){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?e(Object(K),!0).forEach(function(D){r(I,D,K[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(K)):e(Object(K)).forEach(function(D){Object.defineProperty(I,D,Object.getOwnPropertyDescriptor(K,D))})}return I}function r(I,R,K){return R=h(R),R in I?Object.defineProperty(I,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):I[R]=K,I}function n(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function s(I,R){for(var K=0;K<R.length;K++){var D=R[K];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,h(D.key),D)}}function d(I,R,K){return R&&s(I.prototype,R),Object.defineProperty(I,"prototype",{writable:!1}),I}function h(I){var R=A(I,"string");return i(R)==="symbol"?R:String(R)}function A(I,R){if(i(I)!=="object"||I===null)return I;var K=I[Symbol.toPrimitive];if(K!==void 0){var D=K.call(I,R||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(I)}function m(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),R&&w(I,R)}function E(I){var R=S();return function(){var D=c(I),H;if(R){var b=c(this).constructor;H=Reflect.construct(D,arguments,b)}else H=D.apply(this,arguments);return f(this,H)}}function f(I,R){if(R&&(i(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(I)}function P(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function v(I){var R=typeof Map=="function"?new Map:void 0;return v=function(D){if(D===null||!N(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(D))return R.get(D);R.set(D,H)}function H(){return C(D,arguments,c(this).constructor)}return H.prototype=Object.create(D.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),w(H,D)},v(I)}function C(I,R,K){return S()?C=Reflect.construct.bind():C=function(H,b,g){var x=[null];x.push.apply(x,b);var B=Function.bind.apply(H,x),_=new B;return g&&w(_,g.prototype),_},C.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function w(I,R){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,H){return D.__proto__=H,D},w(I,R)}function c(I){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},c(I)}function i(I){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},i(I)}var a=dt,l=a.inspect,p=Zn(),O=p.codes.ERR_INVALID_ARG_TYPE;function j(I,R,K){return(K===void 0||K>I.length)&&(K=I.length),I.substring(K-R.length,K)===R}function L(I,R){if(R=Math.floor(R),I.length==0||R==0)return"";var K=I.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)I+=I,R--;return I+=I.substring(0,K-I.length),I}var $="",Z="",M="",Y="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function X(I){var R=Object.keys(I),K=Object.create(Object.getPrototypeOf(I));return R.forEach(function(D){K[D]=I[D]}),Object.defineProperty(K,"message",{value:I.message}),K}function de(I){return l(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(I,R,K){var D="",H="",b=0,g="",x=!1,B=de(I),_=B.split(`
2
2
  `),U=de(R).split(`
3
3
  `),V=0,oe="";if(K==="strictEqual"&&i(I)==="object"&&i(R)==="object"&&I!==null&&R!==null&&(K="strictEqualObject"),_.length===1&&U.length===1&&_[0]!==U[0]){var ue=_[0].length+U[0].length;if(ue<=xe){if((i(I)!=="object"||I===null)&&(i(R)!=="object"||R===null)&&(I!==0||R!==0))return"".concat(ee[K],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{r as d,j as o,s as b,M as p,P as i}from"./index-CvoQfwdo.js";var l={};Object.defineProperty(l,"__esModule",{value:!0});var f=l.default=void 0;j(d);var s=o;function j(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){v(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=h(e,"string");return typeof t=="symbol"?t:t+""}function h(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c=function(t){return(0,s.jsx)("svg",a(a({},t),{},{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})}))};c.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};c.displayName="empty";f=l.default=c;const O=b(p)`
1
+ import{r as d,j as o,s as b,M as p,P as i}from"./index-szLyLiKt.js";var l={};Object.defineProperty(l,"__esModule",{value:!0});var f=l.default=void 0;j(d);var s=o;function j(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){v(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=h(e,"string");return typeof t=="symbol"?t:t+""}function h(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c=function(t){return(0,s.jsx)("svg",a(a({},t),{},{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})}))};c.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};c.displayName="empty";f=l.default=c;const O=b(p)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{j as ne,r as le,bN as Ce,dc as $i,dd as n_,bP as nn,de as Ao,df as hu,dg as a_,dh as o_,di as i_,dj as s_,dk as Ws,dl as Gt,dm as qt,dn as cs,dp as fs,dq as ci,dr as l_,ds as Ig,dt as Rg,du as u_,dv as Eg,dw as Dg,dx as c_,dy as f_,dz as d_,dA as p_,au as Ag,dB as v_,dC as h_,dD as g_,dE as y_,dF as m_,bL as Yr,dG as b_,dH as S_,dI as w_,dJ as __,dK as T_,dL as $_,dM as C_,dN as x_,dO as O_,dP as P_,dQ as I_,dR as R_,al as jg,dS as E_,dT as D_,dU as A_,a4 as wa,dV as j_,dW as k_,l as M_,dX as L_,dY as F_,dZ as N_,d_ as B_,d$ as H_,e0 as U_,e1 as W_,e2 as z_,e3 as G_,Q as q_,e4 as K_,d4 as V_,aV as Y_,e5 as X_,e6 as J_,G as Q_,e7 as Z_,e8 as eT,e9 as tT,aa as Nc,ea as rT,eb as nT,ec as aT,ed as oT,b2 as kg,ee as iT,ef as sT,eg as lT,eh as uT,O as zs,ei as cT,ej as fT,aA as Gs,ek as dT,el as pT,bR as Qa,bQ as Za,bS as eo,bU as rn,bV as to,bY as Ya,em as vT,bZ as qs,en as hT,eo as Mg,ep as gT,eq as yT,d0 as mT,c1 as Ed,er as bT,bK as ST,bM as wT,cP as rt,cK as ht,es as _T,et as TT,g as dl,aN as Ci,aO as xi,cN as Ks,cX as Lg,eu as $T,Z as CT,ev as xT,ew as Fg,ex as OT,ey as PT,ez as IT,eA as RT,P as ot,s as Bo,eB as ET,aG as Dd,b0 as DT,b as AT,F as jT,eC as Ad,a0 as kT,i as MT,C as LT}from"./index-CvoQfwdo.js";import{u as FT}from"./useThemeProps-DLZVHtlO.js";import{r as NT,a as Ng}from"./emotion-react.browser.esm-D7mngV6f.js";import{c as BT,R as HT,C as UT,V as WT,d as zT,a as GT}from"./ViewColumn-B-n8_W0D.js";import{I as Bg,g as qT,i as KT,F as VT,f as YT,a as XT,b as JT,c as QT,d as ZT,S as Hg,e as e$,s as t$}from"./Select-ZoGQlFtQ.js";import{F as r$,f as n$,g as a$,a as o$,K as i$,D as s$}from"./Delete-D7NoNb87.js";import{I as l$,g as u$,i as c$}from"./InputLabel-BEvb6pBW.js";import{T as Bc,g as f$,t as d$}from"./TextField-DAI8Qdpe.js";import{F as p$,L as v$}from"./LastPage-__GqzflZ.js";import{S as h$,d as jd}from"./Search-DVTTUfAR.js";import{E as kd}from"./index-BBwK0xsH.js";import{d as g$}from"./MoreVert-Cf6FwqrB.js";const bf="mode",Sf="color-scheme",Ug="data-color-scheme";function y$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=bf,colorSchemeStorageKey:o=Sf,attribute:l=Ug,colorSchemeNode:c="document.documentElement",nonce:d}=e||{};return ne.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
1
+ import{j as ne,r as le,bN as Ce,dc as $i,dd as n_,bP as nn,de as Ao,df as hu,dg as a_,dh as o_,di as i_,dj as s_,dk as Ws,dl as Gt,dm as qt,dn as cs,dp as fs,dq as ci,dr as l_,ds as Ig,dt as Rg,du as u_,dv as Eg,dw as Dg,dx as c_,dy as f_,dz as d_,dA as p_,au as Ag,dB as v_,dC as h_,dD as g_,dE as y_,dF as m_,bL as Yr,dG as b_,dH as S_,dI as w_,dJ as __,dK as T_,dL as $_,dM as C_,dN as x_,dO as O_,dP as P_,dQ as I_,dR as R_,al as jg,dS as E_,dT as D_,dU as A_,a4 as wa,dV as j_,dW as k_,l as M_,dX as L_,dY as F_,dZ as N_,d_ as B_,d$ as H_,e0 as U_,e1 as W_,e2 as z_,e3 as G_,Q as q_,e4 as K_,d4 as V_,aV as Y_,e5 as X_,e6 as J_,G as Q_,e7 as Z_,e8 as eT,e9 as tT,aa as Nc,ea as rT,eb as nT,ec as aT,ed as oT,b2 as kg,ee as iT,ef as sT,eg as lT,eh as uT,O as zs,ei as cT,ej as fT,aA as Gs,ek as dT,el as pT,bR as Qa,bQ as Za,bS as eo,bU as rn,bV as to,bY as Ya,em as vT,bZ as qs,en as hT,eo as Mg,ep as gT,eq as yT,d0 as mT,c1 as Ed,er as bT,bK as ST,bM as wT,cP as rt,cK as ht,es as _T,et as TT,g as dl,aN as Ci,aO as xi,cN as Ks,cX as Lg,eu as $T,Z as CT,ev as xT,ew as Fg,ex as OT,ey as PT,ez as IT,eA as RT,P as ot,s as Bo,eB as ET,aG as Dd,b0 as DT,b as AT,F as jT,eC as Ad,a0 as kT,i as MT,C as LT}from"./index-szLyLiKt.js";import{u as FT}from"./useThemeProps-e0r4gLct.js";import{r as NT,a as Ng}from"./emotion-react.browser.esm-Ce5DYL2G.js";import{c as BT,R as HT,C as UT,V as WT,d as zT,a as GT}from"./ViewColumn-avwxMG4J.js";import{I as Bg,g as qT,i as KT,F as VT,f as YT,a as XT,b as JT,c as QT,d as ZT,S as Hg,e as e$,s as t$}from"./Select-C9prPdE8.js";import{F as r$,f as n$,g as a$,a as o$,K as i$,D as s$}from"./Delete-Cgqm12Xe.js";import{I as l$,g as u$,i as c$}from"./InputLabel-BpHdIT50.js";import{T as Bc,g as f$,t as d$}from"./TextField-DmmMqMAo.js";import{F as p$,L as v$}from"./LastPage-Cr-0h2EM.js";import{S as h$,d as jd}from"./Search-DgsnShxd.js";import{E as kd}from"./index-CXsdGe6B.js";import{d as g$}from"./MoreVert-CVu4BzQC.js";const bf="mode",Sf="color-scheme",Ug="data-color-scheme";function y$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=bf,colorSchemeStorageKey:o=Sf,attribute:l=Ug,colorSchemeNode:c="document.documentElement",nonce:d}=e||{};return ne.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
2
2
  try {
3
3
  var mode = localStorage.getItem('${a}') || '${t}';
4
4
  var colorScheme = '';