alistgo-alist-web 3.64.0 → 3.65.0

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 (247) hide show
  1. package/dist/assets/{2fa-4e84c410.js → 2fa-ed5fd3f5.js} +1 -1
  2. package/dist/assets/{2fa-legacy.f6d2ef4d.js → 2fa-legacy.ac2273d3.js} +1 -1
  3. package/dist/assets/{About-190507e6.js → About-07b39c36.js} +1 -1
  4. package/dist/assets/{About-legacy.b327ecf8.js → About-legacy.f45be2db.js} +1 -1
  5. package/dist/assets/{AddLabelDialog-9914fe78.js → AddLabelDialog-1d6357b9.js} +1 -1
  6. package/dist/assets/{AddLabelDialog-legacy.036a9ab6.js → AddLabelDialog-legacy.dd6c914a.js} +1 -1
  7. package/dist/assets/AddOrEdit-07c7f3da.js +1 -0
  8. package/dist/assets/AddOrEdit-8e0d8742.js +4 -0
  9. package/dist/assets/{AddOrEdit-67238002.js → AddOrEdit-a3103973.js} +1 -1
  10. package/dist/assets/{AddOrEdit-47e0ac05.js → AddOrEdit-dc4e0032.js} +1 -1
  11. package/dist/assets/{AddOrEdit-legacy.e74c5c7c.js → AddOrEdit-legacy.284f0a57.js} +1 -1
  12. package/dist/assets/AddOrEdit-legacy.4bcd7dc8.js +1 -0
  13. package/dist/assets/AddOrEdit-legacy.9c182801.js +1 -0
  14. package/dist/assets/{AddOrEdit-legacy.3db7bb35.js → AddOrEdit-legacy.afba0798.js} +1 -1
  15. package/dist/assets/{Common-0e68477f.js → Common-8516cca9.js} +1 -1
  16. package/dist/assets/{Common-legacy.c2861b24.js → Common-legacy.c5ae8b86.js} +1 -1
  17. package/dist/assets/{Copy-279e327d.js → Copy-4a811523.js} +1 -1
  18. package/dist/assets/{Copy-legacy.fde30af5.js → Copy-legacy.8d10f1fe.js} +1 -1
  19. package/dist/assets/Decompress-ca56760c.js +1 -0
  20. package/dist/assets/{Decompress-legacy.babd980c.js → Decompress-legacy.9f3f38d7.js} +1 -1
  21. package/dist/assets/{DeletePopover-8805036c.js → DeletePopover-b8a9a633.js} +1 -1
  22. package/dist/assets/{DeletePopover-legacy.c02233f5.js → DeletePopover-legacy.ca04a0ab.js} +1 -1
  23. package/dist/assets/{EditLabelDialog-caa825c7.js → EditLabelDialog-a98f4188.js} +1 -1
  24. package/dist/assets/{EditLabelDialog-legacy.f130f84a.js → EditLabelDialog-legacy.1621d4fa.js} +1 -1
  25. package/dist/assets/{File-a608e169.js → File-0abcb7cc.js} +1 -1
  26. package/dist/assets/{File-legacy.ba03acb0.js → File-legacy.9c7c661c.js} +1 -1
  27. package/dist/assets/{Folder-26f37994.js → Folder-41ab63d0.js} +2 -2
  28. package/dist/assets/{Folder-legacy.f5072a96.js → Folder-legacy.d3dd609c.js} +2 -2
  29. package/dist/assets/FolderTree-fee990c3.js +1 -0
  30. package/dist/assets/{FolderTree-legacy.4bc9cb59.js → FolderTree-legacy.5beed504.js} +1 -1
  31. package/dist/assets/{Frp-056a26c6.js → Frp-fdb81713.js} +1 -1
  32. package/dist/assets/{Frp-legacy.f5b4d8c3.js → Frp-legacy.3bd5da35.js} +1 -1
  33. package/dist/assets/Grid-96af823b.js +1 -0
  34. package/dist/assets/{Grid-legacy.dc4aab9b.js → Grid-legacy.8196af70.js} +1 -1
  35. package/dist/assets/GridItem-8f0a4e78.js +1 -0
  36. package/dist/assets/GridItem-legacy.53e5db4f.js +1 -0
  37. package/dist/assets/ImageWithError-7a9cb94e.js +1 -0
  38. package/dist/assets/{ImageWithError-legacy.d1f48994.js → ImageWithError-legacy.7897ddfe.js} +1 -1
  39. package/dist/assets/{Images-83a8d60b.js → Images-5b45ded6.js} +1 -1
  40. package/dist/assets/{Images-legacy.4d33680c.js → Images-legacy.7c25071b.js} +1 -1
  41. package/dist/assets/{Layout-897b8819.js → Layout-03b40a95.js} +4 -4
  42. package/dist/assets/{Layout-legacy.76d8e726.js → Layout-legacy.b774c154.js} +1 -1
  43. package/dist/assets/List-2219e301.js +9 -0
  44. package/dist/assets/List-legacy.b78e0937.js +1 -0
  45. package/dist/assets/Messenger-3b98cd80.js +1 -0
  46. package/dist/assets/{Messenger-legacy.bc15d42f.js → Messenger-legacy.ac452c08.js} +1 -1
  47. package/dist/assets/{Metas-e05f9ce1.js → Metas-8334d2a7.js} +1 -1
  48. package/dist/assets/{Metas-legacy.fbb019f8.js → Metas-legacy.bf01cbbc.js} +1 -1
  49. package/dist/assets/{Other-359d1308.js → Other-8a75824a.js} +1 -1
  50. package/dist/assets/{Other-legacy.98d34500.js → Other-legacy.a375dca6.js} +1 -1
  51. package/dist/assets/{PackageDownload-519b9a38.js → PackageDownload-1d343eca.js} +1 -1
  52. package/dist/assets/{PackageDownload-legacy.99bfadfb.js → PackageDownload-legacy.0718c7cf.js} +1 -1
  53. package/dist/assets/{Paginator-c9173645.js → Paginator-33b3808f.js} +1 -1
  54. package/dist/assets/{Paginator-legacy.20830174.js → Paginator-legacy.0bcc0a06.js} +1 -1
  55. package/dist/assets/{Password-ecb0e10f.js → Password-1e03b2a1.js} +1 -1
  56. package/dist/assets/{Password-legacy.6428b474.js → Password-legacy.38bae4cb.js} +1 -1
  57. package/dist/assets/{PermissionForm-c3eb17c8.js → PermissionForm-d8ce57a2.js} +1 -1
  58. package/dist/assets/{PermissionForm-legacy.7c5eb6c6.js → PermissionForm-legacy.9b4348f3.js} +1 -1
  59. package/dist/assets/{Profile-3ee435be.js → Profile-a5f67165.js} +1 -1
  60. package/dist/assets/{Profile-legacy.b4580d6f.js → Profile-legacy.ddceb40f.js} +1 -1
  61. package/dist/assets/{ResponsiveGrid-c7c746e7.js → ResponsiveGrid-9a165c0d.js} +1 -1
  62. package/dist/assets/{ResponsiveGrid-legacy.f9981337.js → ResponsiveGrid-legacy.92d430a0.js} +1 -1
  63. package/dist/assets/{Role-9912dd61.js → Role-237e29ce.js} +1 -1
  64. package/dist/assets/{Role-legacy.6533ab1b.js → Role-legacy.937d458b.js} +1 -1
  65. package/dist/assets/{S3-0aa994e6.js → S3-061d6236.js} +1 -1
  66. package/dist/assets/{S3-legacy.0fefd5e0.js → S3-legacy.8823249a.js} +1 -1
  67. package/dist/assets/{S3Transition-89090584.js → S3Transition-beb9f092.js} +1 -1
  68. package/dist/assets/{S3Transition-legacy.87d826d5.js → S3Transition-legacy.a9014759.js} +1 -1
  69. package/dist/assets/{SettingItem-004aa8f7.js → SettingItem-1101a924.js} +1 -1
  70. package/dist/assets/{SettingItem-legacy.4459beb0.js → SettingItem-legacy.2e0a1b78.js} +1 -1
  71. package/dist/assets/{Storages-41749b58.js → Storages-d34a1526.js} +1 -1
  72. package/dist/assets/{Storages-legacy.06dcad07.js → Storages-legacy.b1cd5702.js} +1 -1
  73. package/dist/assets/{StrmGenerate-a872c94f.js → StrmGenerate-79e9aee1.js} +1 -1
  74. package/dist/assets/StrmGenerate-7bb10c94.js +1 -0
  75. package/dist/assets/{StrmGenerate-legacy.cabca006.js → StrmGenerate-legacy.21cae5f7.js} +1 -1
  76. package/dist/assets/{StrmGenerate-legacy.bd455ae0.js → StrmGenerate-legacy.ab5aecec.js} +1 -1
  77. package/dist/assets/{Tag-090a70de.js → Tag-ec0bc77d.js} +1 -1
  78. package/dist/assets/{Tag-legacy.4d08ea51.js → Tag-legacy.091c6c0b.js} +1 -1
  79. package/dist/assets/{Task-305456a7.js → Task-ee12c6df.js} +1 -1
  80. package/dist/assets/{Task-legacy.bef00b05.js → Task-legacy.993c84aa.js} +1 -1
  81. package/dist/assets/{Tasks-bcb27730.js → Tasks-da5c9e10.js} +1 -1
  82. package/dist/assets/{Tasks-legacy.e4e4be39.js → Tasks-legacy.24f9634a.js} +1 -1
  83. package/dist/assets/Upload-0bd3bbaf.js +1 -0
  84. package/dist/assets/{Upload-f8f5df20.js → Upload-a30ea457.js} +1 -1
  85. package/dist/assets/{Upload-legacy.ea24de65.js → Upload-legacy.8e3f8f5b.js} +1 -1
  86. package/dist/assets/{Upload-legacy.3167d140.js → Upload-legacy.9c750547.js} +1 -1
  87. package/dist/assets/{Users-00f028b6.js → Users-8072ac4d.js} +1 -1
  88. package/dist/assets/{Users-legacy.6adffa4b.js → Users-legacy.f5b75f2a.js} +1 -1
  89. package/dist/assets/{Wether-2ad383a0.js → Wether-2d1fe638.js} +1 -1
  90. package/dist/assets/{Wether-legacy.c0dbd869.js → Wether-legacy.98561794.js} +1 -1
  91. package/dist/assets/{aliyun_office-70f9e774.js → aliyun_office-ebee9588.js} +1 -1
  92. package/dist/assets/{aliyun_office-legacy.01ab1f19.js → aliyun_office-legacy.b06a1a45.js} +1 -1
  93. package/dist/assets/{aliyun_video-8ecd5833.js → aliyun_video-b7361903.js} +1 -1
  94. package/dist/assets/{aliyun_video-legacy.b463b3a2.js → aliyun_video-legacy.6d4ff360.js} +1 -1
  95. package/dist/assets/archive-918eb782.js +1 -0
  96. package/dist/assets/{archive-legacy.665b85a4.js → archive-legacy.66cc28d1.js} +1 -1
  97. package/dist/assets/{asciinema-63cb7e53.js → asciinema-c7a38e55.js} +1 -1
  98. package/dist/assets/{asciinema-legacy.4d730bad.js → asciinema-legacy.f5ef7418.js} +1 -1
  99. package/dist/assets/{audio-99be5f4b.js → audio-767031b9.js} +1 -1
  100. package/dist/assets/{audio-legacy.cb5be320.js → audio-legacy.a1601447.js} +1 -1
  101. package/dist/assets/{backup-restore-87d007a6.js → backup-restore-1e664d39.js} +1 -1
  102. package/dist/assets/{backup-restore-legacy.fca2a0a0.js → backup-restore-legacy.3454be27.js} +1 -1
  103. package/dist/assets/{doubao-edc7ea0c.js → doubao-dbccef6f.js} +1 -1
  104. package/dist/assets/{doubao-legacy.1a73dcb5.js → doubao-legacy.54e97f26.js} +1 -1
  105. package/dist/assets/{download-fe955410.js → download-85777c30.js} +1 -1
  106. package/dist/assets/{download-legacy.40f6adf0.js → download-legacy.0a88d596.js} +1 -1
  107. package/dist/assets/{entry-dbda7502.js → entry-0c2f5c59.js} +4 -4
  108. package/dist/assets/{entry-47b2abb1.js → entry-1cb4692b.js} +4 -4
  109. package/dist/assets/{entry-cd479580.js → entry-293f8889.js} +4 -4
  110. package/dist/assets/{entry-65f35baf.js → entry-2b7d7a8d.js} +3 -3
  111. package/dist/assets/{entry-8a764c5e.js → entry-54719adb.js} +3 -3
  112. package/dist/assets/{entry-76e6ff37.js → entry-6a475220.js} +4 -4
  113. package/dist/assets/{entry-8e81cbee.js → entry-922e5ac4.js} +3 -3
  114. package/dist/assets/{entry-53f2edcc.js → entry-bb2bec47.js} +4 -4
  115. package/dist/assets/{entry-7bf2f5c5.js → entry-c0e113da.js} +3 -3
  116. package/dist/assets/{entry-ad0c322e.js → entry-d9ec77d7.js} +4 -4
  117. package/dist/assets/entry-legacy.3077b509.js +1 -0
  118. package/dist/assets/entry-legacy.30e420ec.js +1 -0
  119. package/dist/assets/entry-legacy.33fb2aeb.js +1 -0
  120. package/dist/assets/entry-legacy.5477e86d.js +1 -0
  121. package/dist/assets/entry-legacy.70163a35.js +1 -0
  122. package/dist/assets/entry-legacy.8ef24743.js +1 -0
  123. package/dist/assets/entry-legacy.da9a301f.js +1 -0
  124. package/dist/assets/entry-legacy.e8c74358.js +1 -0
  125. package/dist/assets/entry-legacy.eb9090b0.js +1 -0
  126. package/dist/assets/entry-legacy.ed0cc5a4.js +1 -0
  127. package/dist/assets/{helper-e7a18c7f.js → helper-89addd3d.js} +1 -1
  128. package/dist/assets/{helper-cfffcdeb.js → helper-ab5aae32.js} +1 -1
  129. package/dist/assets/{helper-legacy.f3369b5d.js → helper-legacy.41207839.js} +1 -1
  130. package/dist/assets/{helper-legacy.ecf72a12.js → helper-legacy.4304690b.js} +1 -1
  131. package/dist/assets/{hls-86ec98bf.js → hls-490669be.js} +1 -1
  132. package/dist/assets/{hls-legacy.7eb02010.js → hls-legacy.0cd3dbde.js} +1 -1
  133. package/dist/assets/{html-f0c8404b.js → html-ae28dd97.js} +1 -1
  134. package/dist/assets/{html-legacy.6b46728d.js → html-legacy.1ee9a3dd.js} +1 -1
  135. package/dist/assets/{image-aee483b3.js → image-ce762fda.js} +1 -1
  136. package/dist/assets/{image-legacy.293578fc.js → image-legacy.ebb99722.js} +1 -1
  137. package/dist/assets/{index-d2ee9913.js → index-0b95f278.js} +2 -2
  138. package/dist/assets/index-0c3482f7.js +1 -0
  139. package/dist/assets/{index-1c7df6bb.js → index-12a11fa4.js} +1 -1
  140. package/dist/assets/{index-3409ca0b.js → index-1f021dd2.js} +1 -1
  141. package/dist/assets/index-25c8c203.js +1 -0
  142. package/dist/assets/index-5b80a56f.js +1 -0
  143. package/dist/assets/{index-e2343554.js → index-6e2f0655.js} +1 -1
  144. package/dist/assets/{index-b0560a31.js → index-6e98aa26.js} +37 -37
  145. package/dist/assets/index-94a67054.js +4 -0
  146. package/dist/assets/{index-bfb42663.js → index-9f85fd4a.js} +1 -1
  147. package/dist/assets/index-aa5a83eb.js +1 -0
  148. package/dist/assets/{index-b8456ee7.js → index-cdc3b5ff.js} +1 -1
  149. package/dist/assets/index-d0610ae0.js +1 -0
  150. package/dist/assets/{index-63d411f6.js → index-d8ea6769.js} +1 -1
  151. package/dist/assets/{index-legacy.cdce98e1.js → index-legacy.0569de56.js} +3 -3
  152. package/dist/assets/index-legacy.35059afc.js +1 -0
  153. package/dist/assets/{index-legacy.77dc574f.js → index-legacy.4902336b.js} +1 -1
  154. package/dist/assets/{index-legacy.eb264a4b.js → index-legacy.50848259.js} +1 -1
  155. package/dist/assets/index-legacy.63ab569f.js +1 -0
  156. package/dist/assets/{index-legacy.510e67dc.js → index-legacy.7d1fb0aa.js} +1 -1
  157. package/dist/assets/{index-legacy.d888bbd6.js → index-legacy.7efaa5f5.js} +1 -1
  158. package/dist/assets/index-legacy.82ee4b37.js +1 -0
  159. package/dist/assets/{index-legacy.93f532c8.js → index-legacy.aadeb0a6.js} +1 -1
  160. package/dist/assets/{index-legacy.04ddeb6e.js → index-legacy.c084734b.js} +1 -1
  161. package/dist/assets/{index-legacy.e65fdd44.js → index-legacy.d8a05658.js} +1 -1
  162. package/dist/assets/{index-legacy.7d5d9c7c.js → index-legacy.e99049a5.js} +1 -1
  163. package/dist/assets/{index-legacy.e544ccf2.js → index-legacy.f38f262a.js} +1 -1
  164. package/dist/assets/{index-legacy.766df57d.js → index-legacy.fdc1b267.js} +1 -1
  165. package/dist/assets/{indexes-d17840a6.js → indexes-9e849b24.js} +2 -2
  166. package/dist/assets/{indexes-legacy.4a5b688a.js → indexes-legacy.09a65722.js} +1 -1
  167. package/dist/assets/info-57ab995f.js +1 -0
  168. package/dist/assets/{info-legacy.a104f6ee.js → info-legacy.6f573e67.js} +1 -1
  169. package/dist/assets/{ipa-adf70a53.js → ipa-1c627d9e.js} +1 -1
  170. package/dist/assets/{ipa-legacy.b0527f0c.js → ipa-legacy.466226b4.js} +1 -1
  171. package/dist/assets/{lark-1a7cae41.js → lark-9c1d307c.js} +1 -1
  172. package/dist/assets/{lark-legacy.05b566b8.js → lark-legacy.7226f6e3.js} +1 -1
  173. package/dist/assets/{lark_tools-fb000845.js → lark_tools-8c437ef0.js} +1 -1
  174. package/dist/assets/{lark_tools-legacy.6fedd7ea.js → lark_tools-legacy.90fd3d64.js} +1 -1
  175. package/dist/assets/{layout-28afe0f0.js → layout-8c3e88b6.js} +1 -1
  176. package/dist/assets/{layout-legacy.e0cfb4c0.js → layout-legacy.4f5f3870.js} +1 -1
  177. package/dist/assets/{management-01a86f43.js → management-4c1a6b51.js} +1 -1
  178. package/dist/assets/{management-legacy.77a4015b.js → management-legacy.84e5760a.js} +1 -1
  179. package/dist/assets/{markdown-5ea99b9a.js → markdown-3ab05481.js} +1 -1
  180. package/dist/assets/{markdown-legacy.ff36c111.js → markdown-legacy.0df6ed9c.js} +1 -1
  181. package/dist/assets/{markdown_with_word_wrap-a0b244a5.js → markdown_with_word_wrap-b392805e.js} +1 -1
  182. package/dist/assets/{markdown_with_word_wrap-legacy.a6da7d19.js → markdown_with_word_wrap-legacy.e68f3d4b.js} +1 -1
  183. package/dist/assets/{mySession-084533dd.js → mySession-7bcb5a9b.js} +1 -1
  184. package/dist/assets/{mySession-legacy.2f5e1d14.js → mySession-legacy.dadbd1a4.js} +1 -1
  185. package/dist/assets/offline_download-bcb94b4e.js +1 -0
  186. package/dist/assets/{offline_download-legacy.fe7fa221.js → offline_download-legacy.aa9a79f5.js} +1 -1
  187. package/dist/assets/open-with-d9208620.js +1 -0
  188. package/dist/assets/open-with-legacy.e3bd9fea.js +1 -0
  189. package/dist/assets/{plist-90c2d892.js → plist-a6756c80.js} +1 -1
  190. package/dist/assets/{plist-legacy.3de6335c.js → plist-legacy.e1cd044b.js} +1 -1
  191. package/dist/assets/{shares-63cf54ab.js → shares-51c029e6.js} +1 -1
  192. package/dist/assets/{shares-legacy.63ed175b.js → shares-legacy.bf13fa75.js} +1 -1
  193. package/dist/assets/{solid-contextmenu-905ecc32.js → solid-contextmenu-c30dd1d1.js} +1 -1
  194. package/dist/assets/{solid-contextmenu-legacy.b73c8617.js → solid-contextmenu-legacy.1761700f.js} +1 -1
  195. package/dist/assets/{text-editor-4451aa37.js → text-editor-fb3ed4e7.js} +2 -2
  196. package/dist/assets/{text-editor-legacy.1d233d02.js → text-editor-legacy.456eba2d.js} +1 -1
  197. package/dist/assets/{url-755a9cce.js → url-16016714.js} +1 -1
  198. package/dist/assets/{url-legacy.a69a518d.js → url-legacy.f4fd9db0.js} +1 -1
  199. package/dist/assets/{useTitle-838069b0.js → useTitle-f9295ffa.js} +1 -1
  200. package/dist/assets/{useTitle-legacy.b3b2613b.js → useTitle-legacy.4c438d1f.js} +1 -1
  201. package/dist/assets/{video-08e3c2a6.js → video-a0ebea7a.js} +1 -1
  202. package/dist/assets/{video-legacy.a9ff6ce2.js → video-legacy.5b7f41a6.js} +1 -1
  203. package/dist/assets/{video360-fc95901a.js → video360-df3b70b3.js} +1 -1
  204. package/dist/assets/{video360-legacy.e051fc87.js → video360-legacy.267eb864.js} +1 -1
  205. package/dist/assets/{video_box-de39a6c5.js → video_box-3ddaba1b.js} +1 -1
  206. package/dist/assets/{video_box-legacy.86e3adf4.js → video_box-legacy.a54c8061.js} +1 -1
  207. package/dist/index.html +2 -2
  208. package/package.json +1 -1
  209. package/dist/assets/AddOrEdit-79a98c71.js +0 -1
  210. package/dist/assets/AddOrEdit-83e5bdd3.js +0 -4
  211. package/dist/assets/AddOrEdit-legacy.4c3acaab.js +0 -1
  212. package/dist/assets/AddOrEdit-legacy.cd047027.js +0 -1
  213. package/dist/assets/Decompress-43856ece.js +0 -1
  214. package/dist/assets/FolderTree-89544a6b.js +0 -1
  215. package/dist/assets/Grid-37629e6d.js +0 -1
  216. package/dist/assets/GridItem-be9067db.js +0 -1
  217. package/dist/assets/GridItem-legacy.76a1e630.js +0 -1
  218. package/dist/assets/ImageWithError-ad444cc4.js +0 -1
  219. package/dist/assets/List-e85a0b2a.js +0 -9
  220. package/dist/assets/List-legacy.401536e5.js +0 -1
  221. package/dist/assets/Messenger-68d3a6f9.js +0 -1
  222. package/dist/assets/StrmGenerate-59595312.js +0 -1
  223. package/dist/assets/Upload-dea525de.js +0 -1
  224. package/dist/assets/archive-734c2ae5.js +0 -1
  225. package/dist/assets/entry-legacy.113b27f4.js +0 -1
  226. package/dist/assets/entry-legacy.12fb7042.js +0 -1
  227. package/dist/assets/entry-legacy.205b85a6.js +0 -1
  228. package/dist/assets/entry-legacy.84c5b84d.js +0 -1
  229. package/dist/assets/entry-legacy.99944f7e.js +0 -1
  230. package/dist/assets/entry-legacy.a1e4c725.js +0 -1
  231. package/dist/assets/entry-legacy.ccf750f1.js +0 -1
  232. package/dist/assets/entry-legacy.d79bc047.js +0 -1
  233. package/dist/assets/entry-legacy.e342d8cc.js +0 -1
  234. package/dist/assets/entry-legacy.e6d5043a.js +0 -1
  235. package/dist/assets/index-1da4255f.js +0 -1
  236. package/dist/assets/index-1eca9bf7.js +0 -1
  237. package/dist/assets/index-286258af.js +0 -1
  238. package/dist/assets/index-425600b4.js +0 -4
  239. package/dist/assets/index-653e8df2.js +0 -1
  240. package/dist/assets/index-9f389c06.js +0 -1
  241. package/dist/assets/index-legacy.5f2e7154.js +0 -1
  242. package/dist/assets/index-legacy.a2e25f9b.js +0 -1
  243. package/dist/assets/index-legacy.e932630e.js +0 -1
  244. package/dist/assets/info-a9253ca6.js +0 -1
  245. package/dist/assets/offline_download-ed30f8c1.js +0 -1
  246. package/dist/assets/open-with-79c445c3.js +0 -1
  247. package/dist/assets/open-with-legacy.a62babc1.js +0 -1
@@ -1 +1 @@
1
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.cdce98e1.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.V,c=e.C,s=e.B,f=e.x,d=e.ba,h=e.bq,p=e._,v=e.I,m=e.an,g=e.y,y=e.Y,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cJ,E=e.dB,j=e.cL,$=e.R,O=e.a3,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],T=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},C=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),A=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],B=U[1],R=o(c("pdf"),2),F=R[0],q=R[1],D=o(c(""),2),J=D[0],Y=D[1],W=o(c(""),2),M=W[0],V=W[1],H=o(c("idle"),2),K=H[0],Q=H[1],X=o(c(""),2),Z=X[0],ee=X[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===F()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(J()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=C();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(M()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:M(),format:null!==(t=u.format)&&void 0!==t?t:F(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:J(),status:null!==(n=u.status)&&void 0!==n?n:K(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=C();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(V(s.ticket),q(s.format),Y(null!==(o=s.sub_id)&&void 0!==o?o:""),Q(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(Q("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:F(),sub_id:J()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:M()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),B(""),V(""),ee(""),ne(""),ae(""),Q("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),Y(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&B(e.sub_resource_error),me(r,n,e)}),(function(e){B(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===F()}))&&q(r[0].value),se()?!J()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&Y(fe()[0].id):Y("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(M()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(Q(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return Q("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||J()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,V(""),ee(""),ne(""),ae(""),Q("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;V(t.ticket),Q("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:J(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(T(m.obj.name),".").concat(F())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return F()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:F(),label:F().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return J()},onChange:function(e){return Y(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===K()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===K()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==K()},get children(){return g(S,{get status(){return k((function(){return"failed"===K()}),!0)()?"danger":"success"===K()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===K()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===K()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return A(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
1
+ !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.0569de56.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.V,c=e.C,s=e.B,f=e.x,d=e.ba,h=e.bq,p=e._,v=e.I,m=e.an,g=e.y,y=e.Y,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cK,E=e.dC,j=e.cM,$=e.R,O=e.a3,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],C=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},T=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),A=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],R=U[1],B=o(c("pdf"),2),F=B[0],q=B[1],D=o(c(""),2),Y=D[0],J=D[1],M=o(c(""),2),W=M[0],K=M[1],V=o(c("idle"),2),H=V[0],Q=V[1],X=o(c(""),2),Z=X[0],ee=X[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===F()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(Y()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=T();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(W()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:W(),format:null!==(t=u.format)&&void 0!==t?t:F(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:Y(),status:null!==(n=u.status)&&void 0!==n?n:H(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=T();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(K(s.ticket),q(s.format),J(null!==(o=s.sub_id)&&void 0!==o?o:""),Q(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(Q("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:F(),sub_id:Y()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:W()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),R(""),K(""),ee(""),ne(""),ae(""),Q("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),J(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&R(e.sub_resource_error),me(r,n,e)}),(function(e){R(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===F()}))&&q(r[0].value),se()?!Y()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&J(fe()[0].id):J("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(W()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(Q(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return Q("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||Y()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,K(""),ee(""),ne(""),ae(""),Q("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;K(t.ticket),Q("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:Y(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(C(m.obj.name),".").concat(F())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return F()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:F(),label:F().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return Y()},onChange:function(e){return J(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===H()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===H()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==H()},get children(){return g(S,{get status(){return k((function(){return"failed"===H()}),!0)()?"danger":"success"===H()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===H()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===H()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===H()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return A(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===H()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{ai as k,cT as I,d as T,B as _,E as j,ap as f,an as u,aY as H,y as r,aG as z,aV as D,av as p,cY as G,bV as N,S as U,cZ as V,af as Y,am as w,c_ as q,al as S,b as O,aR as W,ci as Z,aD as b,cV as F,c$ as v,d0 as L,d1 as E,aS as J,a6 as K,aT as P,cW as Q,d2 as X,aU as ee}from"./index-b0560a31.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();T();const s=_(j(()=>u.state,()=>{if(![f.FetchingMore,f.Folder,f.File].includes(u.state))return"";if([f.FetchingMore,f.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(A=>A.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),$=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await V(a)),m},[x]=H(s,$);return r(U,{get when(){return z(()=>!!D("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(G,{get loading(){return x.loading},get children(){return r(N,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=Y("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(q,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},d="^\\s*",h="\\s*$",i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",c="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${d}rgb\\s*\\(${i},${i},${i}\\)${h}`),re=new RegExp(`${d}rgba\\s*\\(${i},${i},${i},${i}\\)${h}`),ne=new RegExp(`${d}#${c}${c}${c}${h}`),ae=new RegExp(`${d}#${g}${g}${g}${h}`),oe=new RegExp(`${d}#${c}${c}${c}${c}${h}`),se=new RegExp(`${d}#${g}${g}${g}${g}${h}`);function n(t){return parseInt(t,16)}function B(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return B(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,$,x=1]=Array.isArray(t)?t:B(t);return e.alpha?M(l,s,$,e.alpha):M(l,s,$,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ie={list:v,grid:L,image:E},de=()=>{const t=O();return r(ee,{get children(){return[r(W,{as:Z,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(E,{})}})]}})}}),r(J,{get children(){return r(K,{get each(){return Object.entries(ie)},children:e=>r(P,{get icon(){return r(Q,{get component(){return e[1]}})},onSelect:()=>{X(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,de as L,ge as R,R as c};
1
+ import{ai as k,cU as I,d as _,B as j,E as T,ap as f,an as u,aY as H,y as r,aG as U,aV as z,av as p,cZ as D,bV as G,S as N,c_ as q,af as O,am as w,c$ as V,al as S,b as W,aR as X,ci as Y,aD as b,cW as F,d0 as v,d1 as L,d2 as E,aS as Z,a6 as J,aT as K,cX as P,d3 as Q,aU as ee}from"./index-6e98aa26.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();_();const s=j(T(()=>u.state,()=>{if(![f.FetchingMore,f.Folder,f.File].includes(u.state))return"";if([f.FetchingMore,f.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(A=>A.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),$=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await q(a)),m},[x]=H(s,$);return r(N,{get when(){return U(()=>!!z("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(D,{get loading(){return x.loading},get children(){return r(G,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=O("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(V,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},d="^\\s*",h="\\s*$",i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",c="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${d}rgb\\s*\\(${i},${i},${i}\\)${h}`),re=new RegExp(`${d}rgba\\s*\\(${i},${i},${i},${i}\\)${h}`),ne=new RegExp(`${d}#${c}${c}${c}${h}`),ae=new RegExp(`${d}#${g}${g}${g}${h}`),oe=new RegExp(`${d}#${c}${c}${c}${c}${h}`),se=new RegExp(`${d}#${g}${g}${g}${g}${h}`);function n(t){return parseInt(t,16)}function B(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return B(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,$,x=1]=Array.isArray(t)?t:B(t);return e.alpha?M(l,s,$,e.alpha):M(l,s,$,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ie={list:v,grid:L,image:E},de=()=>{const t=W();return r(ee,{get children(){return[r(X,{as:Y,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(E,{})}})]}})}}),r(Z,{get children(){return r(J,{get each(){return Object.entries(ie)},children:e=>r(K,{get icon(){return r(P,{get component(){return e[1]}})},onSelect:()=>{Q(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,de as L,ge as R,R as c};
@@ -1 +1 @@
1
- !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),s},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),F(e),s}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;F(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},r}function o(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}System.register(["./index-legacy.cdce98e1.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,T;return{setters:[function(t){i=t.ai,a=t.cT,c=t.d,u=t.B,l=t.E,f=t.ap,h=t.an,s=t.aY,d=t.y,p=t.aG,y=t.aV,g=t.av,v=t.cY,m=t.bV,w=t.S,b=t.cZ,x=t.af,L=t.am,E=t.c_,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cV,A=t.c$,C=t.d0,N=t.d1,G=t.aS,M=t.a6,I=t.aT,P=t.cW,R=t.d2,T=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:X});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},$="^\\s*",Y="\\s*$",V="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",U="([0-9A-Fa-f])",q="([0-9A-Fa-f]{2})",z=new RegExp("".concat($,"rgb\\s*\\(").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),B=new RegExp("".concat($,"rgba\\s*\\(").concat(V,",").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),D=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(Y)),W=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(Y)),Z=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(U).concat(Y)),H=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(q).concat(Y));function J(t){return parseInt(t,16)}function K(t){try{var r;if(r=W.exec(t))return[J(r[1]),J(r[2]),J(r[3]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=B.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=D.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),1];if(r=H.exec(t))return[J(r[1]),J(r[2]),J(r[3]),tt(J(r[4])/255)];if(r=Z.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),tt(J(r[4]+r[4])/255)];if(t in e)return K(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function Q(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function X(t,e){var n=r(Array.isArray(t)?t:K(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?Q(o,i,a,e.alpha):Q(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d(T,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return X(O(),{alpha:.15})},get _hover(){return{bgColor:X(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();
1
+ !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),s},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),F(e),s}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;F(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},r}function o(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}System.register(["./index-legacy.0569de56.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,$;return{setters:[function(t){i=t.ai,a=t.cU,c=t.d,u=t.B,l=t.E,f=t.ap,h=t.an,s=t.aY,d=t.y,p=t.aG,y=t.aV,g=t.av,v=t.cZ,m=t.bV,w=t.S,b=t.c_,x=t.af,L=t.am,E=t.c$,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cW,A=t.d0,C=t.d1,N=t.d2,G=t.aS,M=t.a6,I=t.aT,P=t.cX,R=t.d3,$=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:Q});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},T="^\\s*",U="\\s*$",Y="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",V="([0-9A-Fa-f])",q="([0-9A-Fa-f]{2})",z=new RegExp("".concat(T,"rgb\\s*\\(").concat(Y,",").concat(Y,",").concat(Y,"\\)").concat(U)),B=new RegExp("".concat(T,"rgba\\s*\\(").concat(Y,",").concat(Y,",").concat(Y,",").concat(Y,"\\)").concat(U)),D=new RegExp("".concat(T,"#").concat(V).concat(V).concat(V).concat(U)),W=new RegExp("".concat(T,"#").concat(q).concat(q).concat(q).concat(U)),X=new RegExp("".concat(T,"#").concat(V).concat(V).concat(V).concat(V).concat(U)),Z=new RegExp("".concat(T,"#").concat(q).concat(q).concat(q).concat(q).concat(U));function H(t){return parseInt(t,16)}function J(t){try{var r;if(r=W.exec(t))return[H(r[1]),H(r[2]),H(r[3]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=B.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=D.exec(t))return[H(r[1]+r[1]),H(r[2]+r[2]),H(r[3]+r[3]),1];if(r=Z.exec(t))return[H(r[1]),H(r[2]),H(r[3]),tt(H(r[4])/255)];if(r=X.exec(t))return[H(r[1]+r[1]),H(r[2]+r[2]),H(r[3]+r[3]),tt(H(r[4]+r[4])/255)];if(t in e)return J(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function K(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function Q(t,e){var n=r(Array.isArray(t)?t:J(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?K(o,i,a,e.alpha):K(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d($,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return Q(O(),{alpha:.15})},get _hover(){return{bgColor:Q(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as O,d as L,C as a,r as M,y as n,aw as _,R as f,aG as o,av as m,dM as U,dN as A,dO as p,a6 as l,dP as B,dQ as E,dR as H,Y as I,n as s,ck as N,eu as P,a3 as u,ev as j,ew as z}from"./index-b0560a31.js";import{D as F}from"./DeletePopover-8805036c.js";import{g as v}from"./ua-parser-5a8f43f2.js";const W=()=>{const r=O(),{to:S}=L(),[w,C]=a([]),[$,g]=a(!1),[d,c]=a(null),[k,h]=a(null),[D,y]=a(!1),T=async e=>{h(e);try{const t=await z(e);u(t,()=>{s.success(r("session.kick_out_success")),i()},K=>{s.error(K||r("session.kick_out_failed"))})}catch{s.error(r("session.kick_out_failed"))}finally{h(null)}},b=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},x=async e=>{b(e)?(s.error(r("session.kick_out_current_session")),N(),S(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await T(e.session_id)},i=async()=>{g(!0),c(null);try{const e=await P();u(e,t=>{C(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};M(()=>{i()});const R=async()=>{y(!0);try{const e=await j();u(e,()=>{s.success(r("session.clean_success")),i()},t=>{s.error(t||r("session.clean_failed"))})}catch{s.error(r("session.clean_failed"))}finally{y(!1)}};return n(I,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(_,{spacing:"$2",get children(){return[n(f,{colorScheme:"accent",get loading(){return $()},onClick:i,get children(){return r("global.refresh")}}),n(f,{colorScheme:"danger",get loading(){return D()},onClick:R,get children(){return r("session.clean")}})]}}),o(()=>o(()=>!!d(),!0)()&&n(m,{color:"red.500",fontSize:"sm",get children(){return d()}})),n(m,{w:"$full",overflowX:"auto",get children(){return n(U,{highlightOnHover:!0,dense:!0,get children(){return[n(A,{get children(){return n(p,{get children(){return n(l,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:e=>n(B,{get textAlign(){return e.align},get children(){return o(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(E,{get children(){return n(l,{get each(){return w()},children:e=>n(p,{get children(){return n(l,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?v(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:n(_,{spacing:"$2",justifyContent:"center",get children(){return n(F,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?v(e.ua):"-"})`},get loading(){return k()===e.session_id},get disabled(){return k()!==null},onClick:()=>x(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(H,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{W as default};
1
+ import{b as O,d as L,C as a,r as M,y as n,aw as _,R as f,aG as o,av as m,dM as U,dN as A,dO as p,a6 as l,dP as B,dQ as E,dR as H,Y as I,n as s,ck as N,eu as P,a3 as u,ev as j,ew as z}from"./index-6e98aa26.js";import{D as F}from"./DeletePopover-b8a9a633.js";import{g as v}from"./ua-parser-5a8f43f2.js";const W=()=>{const r=O(),{to:S}=L(),[w,C]=a([]),[$,g]=a(!1),[d,c]=a(null),[k,h]=a(null),[D,y]=a(!1),T=async e=>{h(e);try{const t=await z(e);u(t,()=>{s.success(r("session.kick_out_success")),i()},K=>{s.error(K||r("session.kick_out_failed"))})}catch{s.error(r("session.kick_out_failed"))}finally{h(null)}},b=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},x=async e=>{b(e)?(s.error(r("session.kick_out_current_session")),N(),S(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await T(e.session_id)},i=async()=>{g(!0),c(null);try{const e=await P();u(e,t=>{C(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};M(()=>{i()});const R=async()=>{y(!0);try{const e=await j();u(e,()=>{s.success(r("session.clean_success")),i()},t=>{s.error(t||r("session.clean_failed"))})}catch{s.error(r("session.clean_failed"))}finally{y(!1)}};return n(I,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(_,{spacing:"$2",get children(){return[n(f,{colorScheme:"accent",get loading(){return $()},onClick:i,get children(){return r("global.refresh")}}),n(f,{colorScheme:"danger",get loading(){return D()},onClick:R,get children(){return r("session.clean")}})]}}),o(()=>o(()=>!!d(),!0)()&&n(m,{color:"red.500",fontSize:"sm",get children(){return d()}})),n(m,{w:"$full",overflowX:"auto",get children(){return n(U,{highlightOnHover:!0,dense:!0,get children(){return[n(A,{get children(){return n(p,{get children(){return n(l,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:e=>n(B,{get textAlign(){return e.align},get children(){return o(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(E,{get children(){return n(l,{get each(){return w()},children:e=>n(p,{get children(){return n(l,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?v(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:n(_,{spacing:"$2",justifyContent:"center",get children(){return n(F,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?v(e.ua):"-"})`},get loading(){return k()===e.session_id},get disabled(){return k()!==null},onClick:()=>x(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(H,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{W as default};
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.cdce98e1.js","./DeletePopover-legacy.c02233f5.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.C,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.aG,p=t.av,d=t.dM,y=t.dN,g=t.dO,v=t.a6,m=t.dP,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.eu,E=t.a3,S=t.ev,j=t.ew},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,G=o(a([]),2),P=G[0],I=G[1],N=o(a(!1),2),C=N[0],T=N[1],$=o(a(null),2),F=$[0],D=$[1],R=o(a(null),2),U=R[0],Y=R[1],M=o(a(!1),2),z=M[0],H=M[1],K=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),q()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),Q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},X=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,K(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),q=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){I(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,T(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){q()}));var B=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),q()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,H(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return C()},onClick:q,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:B,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!F()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return F()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return P()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return U()===e.session_id},get disabled(){return null!==U()},onClick:function(){return X(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.0569de56.js","./DeletePopover-legacy.ca04a0ab.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.C,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.aG,p=t.av,d=t.dM,y=t.dN,g=t.dO,v=t.a6,m=t.dP,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.eu,E=t.a3,S=t.ev,j=t.ew},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,G=o(a([]),2),P=G[0],I=G[1],N=o(a(!1),2),C=N[0],T=N[1],$=o(a(null),2),F=$[0],D=$[1],R=o(a(null),2),U=R[0],Y=R[1],M=o(a(!1),2),z=M[0],H=M[1],K=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),q()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),Q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},X=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,K(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),q=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){I(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,T(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){q()}));var B=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),q()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,H(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return C()},onClick:q,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:B,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!F()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return F()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return P()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return U()===e.session_id},get disabled(){return null!==U()},onClick:function(){return X(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{eN as r,y as n,bV as o,cX as a,an as c,cY as s}from"./index-b0560a31.js";const u=()=>{const[e]=r();return n(s,{get loading(){return e.loading},get children(){return n(o,{get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return a(c.obj.name)},toc:!0})}})};export{u as default};
1
+ import{eN as r,y as n,bV as o,cY as a,an as c,cZ as s}from"./index-6e98aa26.js";const u=()=>{const[e]=r();return n(s,{get loading(){return e.loading},get children(){return n(o,{get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return a(c.obj.name)},toc:!0})}})};export{u as default};
@@ -1 +1 @@
1
- !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.cdce98e1.js"],(function(r,n){"use strict";var e,o,u,i,a,l;return{setters:[function(t){e=t.eN,o=t.y,u=t.bV,i=t.cX,a=t.an,l=t.cY}],execute:function(){r("default",(function(){var r=t(e(),1)[0];return o(l,{get loading(){return r.loading},get children(){return o(u,{get children(){var t;return null===(t=r())||void 0===t?void 0:t.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
1
+ !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.0569de56.js"],(function(r,n){"use strict";var e,o,u,i,a,l;return{setters:[function(t){e=t.eN,o=t.y,u=t.bV,i=t.cY,a=t.an,l=t.cZ}],execute:function(){r("default",(function(){var r=t(e(),1)[0];return o(l,{get loading(){return r.loading},get children(){return o(u,{get children(){var t;return null===(t=r())||void 0===t?void 0:t.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
@@ -1 +1 @@
1
- import{eN as n,y as r,bV as a,cX as o,an as c,cY as s}from"./index-b0560a31.js";const u=()=>{const[e]=n();return r(s,{get loading(){return e.loading},get children(){return r(a,{class:"word-wrap",get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(c.obj.name)},toc:!0})}})};export{u as default};
1
+ import{eN as n,y as r,bV as a,cY as o,an as c,cZ as s}from"./index-6e98aa26.js";const u=()=>{const[e]=n();return r(s,{get loading(){return e.loading},get children(){return r(a,{class:"word-wrap",get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(c.obj.name)},toc:!0})}})};export{u as default};
@@ -1 +1 @@
1
- !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.cdce98e1.js"],(function(t,n){"use strict";var e,o,u,i,a,l;return{setters:[function(r){e=r.eN,o=r.y,u=r.bV,i=r.cX,a=r.an,l=r.cY}],execute:function(){t("default",(function(){var t=r(e(),1)[0];return o(l,{get loading(){return t.loading},get children(){return o(u,{class:"word-wrap",get children(){var r;return null===(r=t())||void 0===r?void 0:r.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
1
+ !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.0569de56.js"],(function(t,n){"use strict";var e,o,u,i,a,l;return{setters:[function(r){e=r.eN,o=r.y,u=r.bV,i=r.cY,a=r.an,l=r.cZ}],execute:function(){t("default",(function(){var t=r(e(),1)[0];return o(l,{get loading(){return t.loading},get children(){return o(u,{class:"word-wrap",get children(){var r;return null===(r=t())||void 0===r?void 0:r.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
@@ -1 +1 @@
1
- import{C as a,b as D,d as b,r as M,y as n,aw as h,R as x,av as R,dM as K,dN as O,dO as y,a6 as u,dP as E,aG as U,dQ as A,dR as B,Y as H,n as s,ck as I,es as L,a3 as _,et as N,cp as f}from"./index-b0560a31.js";import{g as p}from"./ua-parser-5a8f43f2.js";import{D as P}from"./DeletePopover-8805036c.js";const V=()=>{const[v,m]=a([]),[S,g]=a(!1),[j,c]=a(null),[d,k]=a(null),r=D(),{to:o}=b(),$=async e=>{k(e);try{const t=await N(e);_(t,()=>{s.success(r("session.kick_out_success")),l()},(i,T)=>{if(i!=null&&i.includes("session inactive")||T===403){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(i||r("session.kick_out_failed"))})}catch(t){const i=t instanceof Error?t.message:String(t);if(i.includes("session inactive")||i.includes("401")){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(r("session.kick_out_failed"))}finally{k(null)}},w=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},C=async e=>{w(e)?(s.error(r("session.kick_out_current_session")),I(),o(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await $(e.session_id)},l=async()=>{g(!0),c(null);try{const e=await L();_(e,t=>{m(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};return M(()=>{l()}),n(H,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(h,{spacing:"$2",get children(){return n(x,{colorScheme:"accent",get loading(){return S()},onClick:l,get children(){return r("global.refresh")}})}}),n(R,{w:"$full",overflowX:"auto",get children(){return n(K,{highlightOnHover:!0,dense:!0,get children(){return[n(O,{get children(){return n(y,{get children(){return n(u,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:e=>n(E,{get textAlign(){return e.align},get children(){return U(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(A,{get children(){return n(u,{get each(){return v()},children:e=>n(y,{get children(){return n(u,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?p(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"operations",align:"center",content:n(h,{spacing:"$2",justifyContent:"center",get children(){return n(P,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?p(e.ua):"-"})`},get loading(){return d()===e.session_id},get disabled(){return d()!==null},onClick:()=>C(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(B,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{V as default};
1
+ import{C as a,b as D,d as b,r as M,y as n,aw as h,R as x,av as R,dM as K,dN as O,dO as y,a6 as u,dP as E,aG as U,dQ as A,dR as B,Y as H,n as s,ck as I,es as L,a3 as _,et as N,cp as f}from"./index-6e98aa26.js";import{g as p}from"./ua-parser-5a8f43f2.js";import{D as P}from"./DeletePopover-b8a9a633.js";const V=()=>{const[v,m]=a([]),[S,g]=a(!1),[j,c]=a(null),[d,k]=a(null),r=D(),{to:o}=b(),$=async e=>{k(e);try{const t=await N(e);_(t,()=>{s.success(r("session.kick_out_success")),l()},(i,T)=>{if(i!=null&&i.includes("session inactive")||T===403){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(i||r("session.kick_out_failed"))})}catch(t){const i=t instanceof Error?t.message:String(t);if(i.includes("session inactive")||i.includes("401")){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(r("session.kick_out_failed"))}finally{k(null)}},w=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},C=async e=>{w(e)?(s.error(r("session.kick_out_current_session")),I(),o(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await $(e.session_id)},l=async()=>{g(!0),c(null);try{const e=await L();_(e,t=>{m(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};return M(()=>{l()}),n(H,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(h,{spacing:"$2",get children(){return n(x,{colorScheme:"accent",get loading(){return S()},onClick:l,get children(){return r("global.refresh")}})}}),n(R,{w:"$full",overflowX:"auto",get children(){return n(K,{highlightOnHover:!0,dense:!0,get children(){return[n(O,{get children(){return n(y,{get children(){return n(u,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:e=>n(E,{get textAlign(){return e.align},get children(){return U(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(A,{get children(){return n(u,{get each(){return v()},children:e=>n(y,{get children(){return n(u,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?p(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"operations",align:"center",content:n(h,{spacing:"$2",justifyContent:"center",get children(){return n(P,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?p(e.ua):"-"})`},get loading(){return d()===e.session_id},get disabled(){return d()!==null},onClick:()=>C(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(B,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{V as default};
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=b(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.cdce98e1.js","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.c02233f5.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.C,c=t.b,a=t.d,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.av,p=t.dM,d=t.dN,y=t.dO,g=t.a6,v=t.dP,m=t.aG,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.es,E=t.a3,S=t.et,j=t.cp},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],G=t[1],P=o(i(!1),2),I=P[0],N=P[1],T=o(i(null),2),C=(T[0],T[1]),$=o(i(null),2),F=$[0],D=$[1],R=c(),U=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){b.success(R("session.kick_out_success")),K()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return b.error(R("session.kick_out_current_session")),j(),void U("/@login");b.error(t||R("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return b.error(R("session.kick_out_current_session")),j(),U("/@login"),t.abrupt("return");case 16:b.error(R("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),M=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},H=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!M(r)){t.next=7;break}b.error(R("session.kick_out_current_session")),x(),U("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),K=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),C(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){G(t||[])}),(function(t){C(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),C(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){K()})),s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return I()},onClick:K,get children(){return R("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?R("global.operations"):R("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?R("session.active"):R("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return F()===t.session_id},get disabled(){return null!==F()},onClick:function(){return H(t)},get buttonText(){return R("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=b(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.0569de56.js","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.ca04a0ab.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.C,c=t.b,a=t.d,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.av,p=t.dM,d=t.dN,y=t.dO,g=t.a6,v=t.dP,m=t.aG,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.es,E=t.a3,S=t.et,j=t.cp},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],G=t[1],P=o(i(!1),2),I=P[0],N=P[1],T=o(i(null),2),C=(T[0],T[1]),$=o(i(null),2),F=$[0],D=$[1],R=c(),U=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){b.success(R("session.kick_out_success")),K()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return b.error(R("session.kick_out_current_session")),j(),void U("/@login");b.error(t||R("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return b.error(R("session.kick_out_current_session")),j(),U("/@login"),t.abrupt("return");case 16:b.error(R("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),M=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},H=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!M(r)){t.next=7;break}b.error(R("session.kick_out_current_session")),x(),U("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),K=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),C(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){G(t||[])}),(function(t){C(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),C(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){K()})),s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return I()},onClick:K,get children(){return R("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?R("global.operations"):R("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?R("session.active"):R("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return F()===t.session_id},get disabled(){return null!==F()},onClick:function(){return H(t)},get buttonText(){return R("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
@@ -0,0 +1 @@
1
+ import{y as e,Y as n}from"./index-6e98aa26.js";import{b as r}from"./useTitle-f9295ffa.js";import{T as a}from"./Tasks-da5c9e10.js";import{g as t,a as o}from"./helper-ab5aae32.js";import"./Paginator-33b3808f.js";import"./index-aa5a83eb.js";import"./Task-ee12c6df.js";const g=()=>(r("manage.sidemenu.offline_download"),e(n,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[e(a,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return t()}}),e(a,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return o()}})]}}));export{g as default};
@@ -1 +1 @@
1
- System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./Tasks-legacy.e4e4be39.js","./helper-legacy.ecf72a12.js","./Paginator-legacy.20830174.js","./index-legacy.a2e25f9b.js","./Task-legacy.bef00b05.js"],(function(e,n){"use strict";var t,a,l,r,s,u;return{setters:[function(e){t=e.y,a=e.Y},function(e){l=e.b},function(e){r=e.T},function(e){s=e.g,u=e.a},null,null,null],execute:function(){e("default",(function(){return l("manage.sidemenu.offline_download"),t(a,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(r,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return s()}}),t(r,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return u()}})]}})}))}}}));
1
+ System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./Tasks-legacy.24f9634a.js","./helper-legacy.4304690b.js","./Paginator-legacy.0bcc0a06.js","./index-legacy.35059afc.js","./Task-legacy.993c84aa.js"],(function(e,n){"use strict";var t,a,l,r,s,u;return{setters:[function(e){t=e.y,a=e.Y},function(e){l=e.b},function(e){r=e.T},function(e){s=e.g,u=e.a},null,null,null],execute:function(){e("default",(function(){return l("manage.sidemenu.offline_download"),t(a,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(r,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return s()}}),t(r,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return u()}})]}})}))}}}));
@@ -0,0 +1 @@
1
+ import{b as o,B as u,eb as c,an as r,cU as g,y as e,aU as h,aR as i,R as l,aE as m,ec as d,aS as w,a6 as b,aT as p,dm as S,S as M}from"./index-6e98aa26.js";const j=()=>{const a=o(),n=u(()=>c(r.obj.name)),{currentObjLink:s}=g();return e(M,{get when(){return n().length},get children(){return e(h,{get children(){return[e(i,{as:l,colorScheme:"success",get rightIcon(){return e(m,{as:d})},get children(){return a("home.preview.open_with")}}),e(w,{get children(){return e(b,{get each(){return n()},children:t=>e(p,{as:"a",target:"_blank",get href(){return S(t.value,{raw_url:r.raw_url,name:r.obj.name,d_url:s(!0)})},get children(){return t.key}})})}})]}})}})};export{j as O};
@@ -0,0 +1 @@
1
+ System.register(["./index-legacy.0569de56.js"],(function(e,r){"use strict";var n,t,u,c,a,i,g,h,l,o,s,d,f,m,b,w;return{setters:[function(e){n=e.b,t=e.B,u=e.eb,c=e.an,a=e.cU,i=e.y,g=e.aU,h=e.aR,l=e.R,o=e.aE,s=e.ec,d=e.aS,f=e.a6,m=e.aT,b=e.dm,w=e.S}],execute:function(){e("O",(function(){var e=n(),r=t((function(){return u(c.obj.name)})),_=a().currentObjLink;return i(w,{get when(){return r().length},get children(){return i(g,{get children(){return[i(h,{as:l,colorScheme:"success",get rightIcon(){return i(o,{as:s})},get children(){return e("home.preview.open_with")}}),i(d,{get children(){return i(f,{get each(){return r()},children:function(e){return i(m,{as:"a",target:"_blank",get href(){return b(e.value,{raw_url:c.raw_url,name:c.obj.name,d_url:_(!0)})},get children(){return e.key}})}})}})]}})}})}))}}}));
@@ -1 +1 @@
1
- import{b as a,C as s,y as t,R as i,an as o}from"./index-b0560a31.js";import{F as l}from"./info-a9253ca6.js";import"./storage-class-1ac53f89.js";const f=()=>{const e=a(),[n,r]=s(!1);return t(l,{get children(){return t(i,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+o.raw_url},onClick:()=>{r(!0)},get children(){return e(`home.preview.${n()?"installing":"install"}`)}})}})};export{f as default};
1
+ import{b as a,C as s,y as t,R as i,an as o}from"./index-6e98aa26.js";import{F as l}from"./info-57ab995f.js";import"./storage-class-1ac53f89.js";const f=()=>{const e=a(),[n,r]=s(!1);return t(l,{get children(){return t(i,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+o.raw_url},onClick:()=>{r(!0)},get children(){return e(`home.preview.${n()?"installing":"install"}`)}})}})};export{f as default};
@@ -1 +1 @@
1
- !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,o=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(o.push(e.value),!t||o.length!==t);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return o}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.cdce98e1.js","./info-legacy.a104f6ee.js","./storage-class-legacy.7f6d9768.js"],(function(t,n){"use strict";var e,i,o,u,a,l;return{setters:[function(r){e=r.b,i=r.C,o=r.y,u=r.R,a=r.an},function(r){l=r.F},null],execute:function(){t("default",(function(){var t=e(),n=r(i(!1),2),c=n[0],f=n[1];return o(l,{get children(){return o(u,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+a.raw_url},onClick:function(){f(!0)},get children(){return t("home.preview.".concat(c()?"installing":"install"))}})}})}))}}}))}();
1
+ !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,o=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(o.push(e.value),!t||o.length!==t);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return o}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.0569de56.js","./info-legacy.6f573e67.js","./storage-class-legacy.7f6d9768.js"],(function(t,n){"use strict";var e,i,o,u,a,l;return{setters:[function(r){e=r.b,i=r.C,o=r.y,u=r.R,a=r.an},function(r){l=r.F},null],execute:function(){t("default",(function(){var t=e(),n=r(i(!1),2),c=n[0],f=n[1];return o(l,{get children(){return o(u,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+a.raw_url},onClick:function(){f(!0)},get children(){return t("home.preview.".concat(c()?"installing":"install"))}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as ce,aW as ue,C as t,r as oe,y as e,aw as _,R as i,av as he,dM as ge,dN as pe,dO as G,dP as l,dQ as we,a6 as fe,dR as c,S as s,cI as u,Y as m,ar as f,aG as a,dS as O,ex as _e,n as o,U as me,M as ve,J as be,X as Se,K as xe,L as ye,Z as h,$ as g,N as p,O as v,a0 as J,Q as ke,ey as $e,a3 as b,ez as Ce,eA as Te,eB as Ee,a1 as Ae,eC as Le}from"./index-b0560a31.js";import{D as Ie}from"./DeletePopover-8805036c.js";import{b as De}from"./useTitle-838069b0.js";const Ne=()=>{const n=ce();De("manage.sidemenu.shares");const{isOpen:K,onOpen:W,onClose:Y}=ue(),[Z,j]=t([]),[ee,B]=t(!1),[re,N]=t(null),[ne,P]=t(null),[te,S]=t(!1),[z,F]=t(null),[H,x]=t(""),[U,y]=t(""),[V,k]=t(""),[q,$]=t(""),[R,C]=t("0"),[T,E]=t(!0),[A,L]=t(!0),w=async()=>{B(!0);const r=await $e();b(r,d=>{j(d.content)}),B(!1)},ae=async r=>{N(r);const d=await Ce(r);b(d,async()=>{o.success(n("global.delete_success")),await w()}),N(null)},se=async r=>{P(r);const d=await Te(r);b(d,async()=>{o.success(n("share.disabled",void 0,"Disabled")),await w()}),P(null)},I=()=>{Y(),F(null),x(""),y(""),k(""),$(""),C("0"),E(!0),L(!0),S(!1)},de=r=>{F(r),x(r.share_id),y(r.name),k(""),$(Ee(r.expires_at)),C(String(r.access_limit||0)),E(r.allow_preview),L(r.allow_download),W()},ie=async()=>{const r=z();if(!r)return;const d=H().trim();if(!d){o.error(n("share.invalid_link",void 0,"Link cannot be empty"));return}const D=Number.parseInt(R(),10);if(Number.isNaN(D)||D<0){o.error(n("share.invalid_access_limit",void 0,"Access limit must be 0 or greater"));return}const M=q().trim(),X=M?Ae(M):"";if(M&&!X){o.error(n("share.invalid_expire",void 0,"Expire time format is invalid"));return}S(!0);const le=await Le({share_id:r.share_id,new_share_id:d,name:U(),password:V().trim()||void 0,expire_at:X,access_limit:D,allow_preview:T(),allow_download:A()});b(le,async()=>{o.success(n("global.save_success",void 0,"Saved")),I(),await w()}),S(!1)},Q=r=>!!(r.expires_at&&new Date(r.expires_at).getTime()<=Date.now());return oe(()=>{w()}),e(m,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(_,{spacing:"$2",get children(){return e(i,{colorScheme:"accent",get loading(){return ee()},onClick:w,get children(){return n("global.refresh")}})}}),e(he,{w:"$full",overflowX:"auto",get children(){return e(ge,{highlightOnHover:!0,dense:!0,get children(){return[e(pe,{get children(){return e(G,{get children(){return[e(l,{get children(){return n("global.name")}}),e(l,{get children(){return n("share.link",void 0,"Link")}}),e(l,{get children(){return n("share.target",void 0,"Target")}}),e(l,{get children(){return n("share.mode",void 0,"Mode")}}),e(l,{get children(){return n("share.expire",void 0,"Expire")}}),e(l,{get children(){return n("share.stats",void 0,"Stats")}}),e(l,{get children(){return n("global.operations")}})]}})}}),e(we,{get children(){return e(fe,{get each(){return Z()},children:r=>e(G,{get children(){return[e(c,{get children(){return r.name}}),e(c,{get children(){return r.share_id}}),e(c,{get children(){return r.root_path}}),e(c,{get children(){return e(_,{spacing:"$1_5",wrap:"wrap",get children(){return[e(s,{get when(){return r.has_password},get children(){return e(u,{colorScheme:"info",get children(){return n("share.password_required",void 0,"Password")}})}}),e(s,{get when(){return r.burn_after_read},get children(){return e(u,{colorScheme:"warning",get children(){return n("share.burn_after_read",void 0,"Burn after read")}})}}),e(s,{get when(){return r.access_limit>1},get children(){return e(u,{colorScheme:"warning",get children(){return n("share.access_limit_badge",{count:r.access_limit},`${r.access_limit} accesses`)}})}}),e(s,{get when(){return!r.allow_preview},get children(){return e(u,{colorScheme:"danger",get children(){return n("share.preview_disabled",void 0,"Preview off")}})}}),e(s,{get when(){return!r.allow_download},get children(){return e(u,{colorScheme:"danger",get children(){return n("share.download_disabled",void 0,"Download off")}})}}),e(s,{get when(){return r.allow_preview&&r.allow_download&&!r.has_password&&r.access_limit===0},get children(){return e(u,{colorScheme:"success",get children(){return n("share.standard",void 0,"Standard")}})}})]}})}}),e(c,{get children(){return e(m,{alignItems:"start",spacing:"$1",get children(){return[e(f,{get children(){return a(()=>!!r.expires_at,!0)()?O(r.expires_at):n("share.never",void 0,"Never")}}),e(s,{get when(){return r.access_limit>0},get children(){return e(f,{fontSize:"$xs",color:"$neutral11",get children(){return[a(()=>n("share.access",void 0,"Access")),":"," ",a(()=>r.access_count),"/",a(()=>r.access_limit),e(s,{get when(){return r.remaining_accesses>0},get children(){return[" · ",a(()=>n("share.remaining_accesses",{count:r.remaining_accesses},`${r.remaining_accesses} left`))]}})]}})}}),e(s,{get when(){return r.consumed_at},get children(){return e(f,{fontSize:"$xs",color:"$danger9",get children(){return[a(()=>n("share.consumed",void 0,"Consumed")),":"," ",a(()=>O(r.consumed_at))]}})}})]}})}}),e(c,{get children(){return e(m,{alignItems:"start",spacing:"$1",get children(){return[e(f,{get children(){return`${r.view_count} / ${r.download_count}`}}),e(_,{spacing:"$1_5",wrap:"wrap",get children(){return e(u,{get colorScheme(){return a(()=>!!r.consumed_at,!0)()?"danger":Q(r)?"warning":r.enabled?"success":"warning"},get children(){return a(()=>!!r.consumed_at,!0)()?n("share.consumed",void 0,"Consumed"):a(()=>!!Q(r),!0)()?n("share.expired",void 0,"Expired"):a(()=>!!r.enabled,!0)()?n("share.active",void 0,"Active"):n("share.disabled",void 0,"Disabled")}})}}),e(s,{get when(){return r.last_access_at},get children(){return e(f,{fontSize:"$xs",color:"$neutral11",get children(){return[a(()=>n("share.last_access",void 0,"Last access")),":"," ",a(()=>O(r.last_access_at))]}})}})]}})}}),e(c,{get children(){return e(_,{spacing:"$2",wrap:"wrap",get children(){return[e(i,{size:"sm",onClick:()=>{_e(r.url),o.success(n("global.copied"))},get children(){return n("share.copy",void 0,"Copy")}}),e(i,{size:"sm",as:"a",get href(){return r.url},target:"_blank",get children(){return n("share.open",void 0,"Open")}}),e(i,{size:"sm",onClick:()=>de(r),get children(){return n("global.edit",void 0,"Edit")}}),e(i,{size:"sm",colorScheme:"warning",get loading(){return ne()===r.share_id},get disabled(){return!r.enabled||!!r.consumed_at},onClick:()=>se(r.share_id),get children(){return n("share.invalidate",void 0,"Invalidate")}}),e(Ie,{get name(){return r.name},get loading(){return re()===r.share_id},onClick:()=>ae(r.share_id)})]}})}})]}})})}})]}})}}),e(me,{get opened(){return K()},onClose:I,get children(){return[e(ve,{}),e(be,{get children(){return[e(Se,{}),e(xe,{get children(){return n("global.edit",void 0,"Edit")}}),e(ye,{get children(){return e(m,{spacing:"$3",alignItems:"stretch",get children(){return[e(h,{get children(){return[e(g,{get children(){return n("share.target",void 0,"Target")}}),e(p,{get value(){var r;return((r=z())==null?void 0:r.root_path)||""},disabled:!0})]}}),e(h,{required:!0,get children(){return[e(g,{get children(){return n("share.link",void 0,"Link")}}),e(p,{get value(){return H()},maxLength:32,onInput:r=>x(r.currentTarget.value)}),e(v,{get children(){return n("share.link_hint",void 0,"Use letters, numbers, underscore or hyphen only.")}})]}}),e(h,{required:!0,get children(){return[e(g,{get children(){return n("share.name",void 0,"Share name")}}),e(p,{get value(){return U()},maxLength:128,onInput:r=>y(r.currentTarget.value)})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.password",void 0,"Password")}}),e(p,{type:"password",get value(){return V()},get placeholder(){return n("share.password_placeholder",void 0,"Optional access password")},onInput:r=>k(r.currentTarget.value)}),e(v,{get children(){return n("share.password_keep_hint",void 0,"Leave empty to keep the current password.")}})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.access_limit",void 0,"Access limit")}}),e(p,{type:"number",min:"0",get value(){return R()},onInput:r=>C(r.currentTarget.value)}),e(v,{get children(){return n("share.access_limit_hint",void 0,"Use 0 for unlimited, 1 for burn after read.")}})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.expire",void 0,"Expire")}}),e(p,{type:"datetime-local",step:"1",get value(){return q()},onInput:r=>$(r.currentTarget.value)}),e(v,{get children(){return n("share.expire_hint",void 0,"Leave empty for never expire.")}})]}}),e(J,{get checked(){return T()},onChange:()=>E(!T()),get children(){return n("share.allow_preview",void 0,"Allow preview")}}),e(J,{get checked(){return A()},onChange:()=>L(!A()),get children(){return n("share.allow_download",void 0,"Allow download")}})]}})}}),e(ke,{gap:"$2",get children(){return[e(i,{onClick:I,get children(){return n("global.cancel")}}),e(i,{colorScheme:"accent",get loading(){return te()},onClick:ie,get children(){return n("global.save",void 0,"Save")}})]}})]}})]}})]}})};export{Ne as default};
1
+ import{b as ce,aW as ue,C as t,r as oe,y as e,aw as _,R as i,av as he,dM as ge,dN as pe,dO as X,dP as l,dQ as we,a6 as fe,dR as c,S as s,cJ as u,Y as m,ar as f,aG as a,dS as O,ex as _e,n as o,U as me,M as ve,J as be,X as Se,K as xe,L as ye,Z as h,$ as g,N as p,O as v,a0 as G,Q as ke,ey as $e,a3 as b,ez as Ce,eA as Te,eB as Ee,a1 as Ae,eC as Le}from"./index-6e98aa26.js";import{D as Ie}from"./DeletePopover-b8a9a633.js";import{b as De}from"./useTitle-f9295ffa.js";const Ne=()=>{const n=ce();De("manage.sidemenu.shares");const{isOpen:K,onOpen:W,onClose:Y}=ue(),[Z,j]=t([]),[ee,B]=t(!1),[re,N]=t(null),[ne,P]=t(null),[te,S]=t(!1),[z,F]=t(null),[H,x]=t(""),[U,y]=t(""),[V,k]=t(""),[q,$]=t(""),[R,C]=t("0"),[T,E]=t(!0),[A,L]=t(!0),w=async()=>{B(!0);const r=await $e();b(r,d=>{j(d.content)}),B(!1)},ae=async r=>{N(r);const d=await Ce(r);b(d,async()=>{o.success(n("global.delete_success")),await w()}),N(null)},se=async r=>{P(r);const d=await Te(r);b(d,async()=>{o.success(n("share.disabled",void 0,"Disabled")),await w()}),P(null)},I=()=>{Y(),F(null),x(""),y(""),k(""),$(""),C("0"),E(!0),L(!0),S(!1)},de=r=>{F(r),x(r.share_id),y(r.name),k(""),$(Ee(r.expires_at)),C(String(r.access_limit||0)),E(r.allow_preview),L(r.allow_download),W()},ie=async()=>{const r=z();if(!r)return;const d=H().trim();if(!d){o.error(n("share.invalid_link",void 0,"Link cannot be empty"));return}const D=Number.parseInt(R(),10);if(Number.isNaN(D)||D<0){o.error(n("share.invalid_access_limit",void 0,"Access limit must be 0 or greater"));return}const M=q().trim(),Q=M?Ae(M):"";if(M&&!Q){o.error(n("share.invalid_expire",void 0,"Expire time format is invalid"));return}S(!0);const le=await Le({share_id:r.share_id,new_share_id:d,name:U(),password:V().trim()||void 0,expire_at:Q,access_limit:D,allow_preview:T(),allow_download:A()});b(le,async()=>{o.success(n("global.save_success",void 0,"Saved")),I(),await w()}),S(!1)},J=r=>!!(r.expires_at&&new Date(r.expires_at).getTime()<=Date.now());return oe(()=>{w()}),e(m,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(_,{spacing:"$2",get children(){return e(i,{colorScheme:"accent",get loading(){return ee()},onClick:w,get children(){return n("global.refresh")}})}}),e(he,{w:"$full",overflowX:"auto",get children(){return e(ge,{highlightOnHover:!0,dense:!0,get children(){return[e(pe,{get children(){return e(X,{get children(){return[e(l,{get children(){return n("global.name")}}),e(l,{get children(){return n("share.link",void 0,"Link")}}),e(l,{get children(){return n("share.target",void 0,"Target")}}),e(l,{get children(){return n("share.mode",void 0,"Mode")}}),e(l,{get children(){return n("share.expire",void 0,"Expire")}}),e(l,{get children(){return n("share.stats",void 0,"Stats")}}),e(l,{get children(){return n("global.operations")}})]}})}}),e(we,{get children(){return e(fe,{get each(){return Z()},children:r=>e(X,{get children(){return[e(c,{get children(){return r.name}}),e(c,{get children(){return r.share_id}}),e(c,{get children(){return r.root_path}}),e(c,{get children(){return e(_,{spacing:"$1_5",wrap:"wrap",get children(){return[e(s,{get when(){return r.has_password},get children(){return e(u,{colorScheme:"info",get children(){return n("share.password_required",void 0,"Password")}})}}),e(s,{get when(){return r.burn_after_read},get children(){return e(u,{colorScheme:"warning",get children(){return n("share.burn_after_read",void 0,"Burn after read")}})}}),e(s,{get when(){return r.access_limit>1},get children(){return e(u,{colorScheme:"warning",get children(){return n("share.access_limit_badge",{count:r.access_limit},`${r.access_limit} accesses`)}})}}),e(s,{get when(){return!r.allow_preview},get children(){return e(u,{colorScheme:"danger",get children(){return n("share.preview_disabled",void 0,"Preview off")}})}}),e(s,{get when(){return!r.allow_download},get children(){return e(u,{colorScheme:"danger",get children(){return n("share.download_disabled",void 0,"Download off")}})}}),e(s,{get when(){return r.allow_preview&&r.allow_download&&!r.has_password&&r.access_limit===0},get children(){return e(u,{colorScheme:"success",get children(){return n("share.standard",void 0,"Standard")}})}})]}})}}),e(c,{get children(){return e(m,{alignItems:"start",spacing:"$1",get children(){return[e(f,{get children(){return a(()=>!!r.expires_at,!0)()?O(r.expires_at):n("share.never",void 0,"Never")}}),e(s,{get when(){return r.access_limit>0},get children(){return e(f,{fontSize:"$xs",color:"$neutral11",get children(){return[a(()=>n("share.access",void 0,"Access")),":"," ",a(()=>r.access_count),"/",a(()=>r.access_limit),e(s,{get when(){return r.remaining_accesses>0},get children(){return[" · ",a(()=>n("share.remaining_accesses",{count:r.remaining_accesses},`${r.remaining_accesses} left`))]}})]}})}}),e(s,{get when(){return r.consumed_at},get children(){return e(f,{fontSize:"$xs",color:"$danger9",get children(){return[a(()=>n("share.consumed",void 0,"Consumed")),":"," ",a(()=>O(r.consumed_at))]}})}})]}})}}),e(c,{get children(){return e(m,{alignItems:"start",spacing:"$1",get children(){return[e(f,{get children(){return`${r.view_count} / ${r.download_count}`}}),e(_,{spacing:"$1_5",wrap:"wrap",get children(){return e(u,{get colorScheme(){return a(()=>!!r.consumed_at,!0)()?"danger":J(r)?"warning":r.enabled?"success":"warning"},get children(){return a(()=>!!r.consumed_at,!0)()?n("share.consumed",void 0,"Consumed"):a(()=>!!J(r),!0)()?n("share.expired",void 0,"Expired"):a(()=>!!r.enabled,!0)()?n("share.active",void 0,"Active"):n("share.disabled",void 0,"Disabled")}})}}),e(s,{get when(){return r.last_access_at},get children(){return e(f,{fontSize:"$xs",color:"$neutral11",get children(){return[a(()=>n("share.last_access",void 0,"Last access")),":"," ",a(()=>O(r.last_access_at))]}})}})]}})}}),e(c,{get children(){return e(_,{spacing:"$2",wrap:"wrap",get children(){return[e(i,{size:"sm",onClick:()=>{_e(r.url),o.success(n("global.copied"))},get children(){return n("share.copy",void 0,"Copy")}}),e(i,{size:"sm",as:"a",get href(){return r.url},target:"_blank",get children(){return n("share.open",void 0,"Open")}}),e(i,{size:"sm",onClick:()=>de(r),get children(){return n("global.edit",void 0,"Edit")}}),e(i,{size:"sm",colorScheme:"warning",get loading(){return ne()===r.share_id},get disabled(){return!r.enabled||!!r.consumed_at},onClick:()=>se(r.share_id),get children(){return n("share.invalidate",void 0,"Invalidate")}}),e(Ie,{get name(){return r.name},get loading(){return re()===r.share_id},onClick:()=>ae(r.share_id)})]}})}})]}})})}})]}})}}),e(me,{get opened(){return K()},onClose:I,get children(){return[e(ve,{}),e(be,{get children(){return[e(Se,{}),e(xe,{get children(){return n("global.edit",void 0,"Edit")}}),e(ye,{get children(){return e(m,{spacing:"$3",alignItems:"stretch",get children(){return[e(h,{get children(){return[e(g,{get children(){return n("share.target",void 0,"Target")}}),e(p,{get value(){var r;return((r=z())==null?void 0:r.root_path)||""},disabled:!0})]}}),e(h,{required:!0,get children(){return[e(g,{get children(){return n("share.link",void 0,"Link")}}),e(p,{get value(){return H()},maxLength:32,onInput:r=>x(r.currentTarget.value)}),e(v,{get children(){return n("share.link_hint",void 0,"Use letters, numbers, underscore or hyphen only.")}})]}}),e(h,{required:!0,get children(){return[e(g,{get children(){return n("share.name",void 0,"Share name")}}),e(p,{get value(){return U()},maxLength:128,onInput:r=>y(r.currentTarget.value)})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.password",void 0,"Password")}}),e(p,{type:"password",get value(){return V()},get placeholder(){return n("share.password_placeholder",void 0,"Optional access password")},onInput:r=>k(r.currentTarget.value)}),e(v,{get children(){return n("share.password_keep_hint",void 0,"Leave empty to keep the current password.")}})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.access_limit",void 0,"Access limit")}}),e(p,{type:"number",min:"0",get value(){return R()},onInput:r=>C(r.currentTarget.value)}),e(v,{get children(){return n("share.access_limit_hint",void 0,"Use 0 for unlimited, 1 for burn after read.")}})]}}),e(h,{get children(){return[e(g,{get children(){return n("share.expire",void 0,"Expire")}}),e(p,{type:"datetime-local",step:"1",get value(){return q()},onInput:r=>$(r.currentTarget.value)}),e(v,{get children(){return n("share.expire_hint",void 0,"Leave empty for never expire.")}})]}}),e(G,{get checked(){return T()},onChange:()=>E(!T()),get children(){return n("share.allow_preview",void 0,"Allow preview")}}),e(G,{get checked(){return A()},onChange:()=>L(!A()),get children(){return n("share.allow_download",void 0,"Allow download")}})]}})}}),e(ke,{gap:"$2",get children(){return[e(i,{onClick:I,get children(){return n("global.cancel")}}),e(i,{colorScheme:"accent",get loading(){return te()},onClick:ie,get children(){return n("global.save",void 0,"Save")}})]}})]}})]}})]}})};export{Ne as default};