alistgo-alist-web 3.64.0 → 3.66.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 (250) hide show
  1. package/dist/assets/{2fa-4e84c410.js → 2fa-a6ce8519.js} +1 -1
  2. package/dist/assets/{2fa-legacy.f6d2ef4d.js → 2fa-legacy.7480e711.js} +1 -1
  3. package/dist/assets/{About-190507e6.js → About-784ed148.js} +1 -1
  4. package/dist/assets/{About-legacy.b327ecf8.js → About-legacy.9710ad63.js} +1 -1
  5. package/dist/assets/{AddLabelDialog-9914fe78.js → AddLabelDialog-ca94e389.js} +1 -1
  6. package/dist/assets/{AddLabelDialog-legacy.036a9ab6.js → AddLabelDialog-legacy.897b9eaf.js} +1 -1
  7. package/dist/assets/{AddOrEdit-47e0ac05.js → AddOrEdit-2cef42b5.js} +1 -1
  8. package/dist/assets/AddOrEdit-323c7808.js +1 -0
  9. package/dist/assets/AddOrEdit-864cb8d9.js +4 -0
  10. package/dist/assets/{AddOrEdit-67238002.js → AddOrEdit-e4a83ecd.js} +1 -1
  11. package/dist/assets/AddOrEdit-legacy.14663f82.js +1 -0
  12. package/dist/assets/{AddOrEdit-legacy.3db7bb35.js → AddOrEdit-legacy.5dc5bfad.js} +1 -1
  13. package/dist/assets/{AddOrEdit-legacy.e74c5c7c.js → AddOrEdit-legacy.8258f223.js} +1 -1
  14. package/dist/assets/AddOrEdit-legacy.bd11e413.js +1 -0
  15. package/dist/assets/{Common-0e68477f.js → Common-e402b9dd.js} +1 -1
  16. package/dist/assets/{Common-legacy.c2861b24.js → Common-legacy.2153955d.js} +1 -1
  17. package/dist/assets/{Copy-279e327d.js → Copy-05523a06.js} +1 -1
  18. package/dist/assets/{Copy-legacy.fde30af5.js → Copy-legacy.bc2c2e95.js} +1 -1
  19. package/dist/assets/Decompress-351ffa27.js +1 -0
  20. package/dist/assets/{Decompress-legacy.babd980c.js → Decompress-legacy.dc56456d.js} +1 -1
  21. package/dist/assets/{DeletePopover-8805036c.js → DeletePopover-c62fd1ab.js} +1 -1
  22. package/dist/assets/{DeletePopover-legacy.c02233f5.js → DeletePopover-legacy.577b1340.js} +1 -1
  23. package/dist/assets/{EditLabelDialog-caa825c7.js → EditLabelDialog-b9e45fda.js} +1 -1
  24. package/dist/assets/{EditLabelDialog-legacy.f130f84a.js → EditLabelDialog-legacy.41535a4f.js} +1 -1
  25. package/dist/assets/{File-a608e169.js → File-bcff35a5.js} +1 -1
  26. package/dist/assets/{File-legacy.ba03acb0.js → File-legacy.19e8fef4.js} +1 -1
  27. package/dist/assets/{Folder-26f37994.js → Folder-97da4fe2.js} +2 -2
  28. package/dist/assets/{Folder-legacy.f5072a96.js → Folder-legacy.92cdf6f7.js} +2 -2
  29. package/dist/assets/FolderTree-6a14dd8b.js +1 -0
  30. package/dist/assets/{FolderTree-legacy.4bc9cb59.js → FolderTree-legacy.c67bc365.js} +1 -1
  31. package/dist/assets/{Frp-056a26c6.js → Frp-93ee9c59.js} +1 -1
  32. package/dist/assets/{Frp-legacy.f5b4d8c3.js → Frp-legacy.b6e40e1f.js} +1 -1
  33. package/dist/assets/Grid-dcbf6fd9.js +1 -0
  34. package/dist/assets/{Grid-legacy.dc4aab9b.js → Grid-legacy.ad8b10de.js} +1 -1
  35. package/dist/assets/GridItem-fa635854.js +1 -0
  36. package/dist/assets/GridItem-legacy.accda683.js +1 -0
  37. package/dist/assets/ImageWithError-b264d605.js +1 -0
  38. package/dist/assets/{ImageWithError-legacy.d1f48994.js → ImageWithError-legacy.dfc563e8.js} +1 -1
  39. package/dist/assets/{Images-83a8d60b.js → Images-9039a7b3.js} +1 -1
  40. package/dist/assets/{Images-legacy.4d33680c.js → Images-legacy.7c4152f4.js} +1 -1
  41. package/dist/assets/{Layout-897b8819.js → Layout-a6cb6653.js} +4 -4
  42. package/dist/assets/{Layout-legacy.76d8e726.js → Layout-legacy.f7b392fc.js} +1 -1
  43. package/dist/assets/List-30b5fd1c.js +9 -0
  44. package/dist/assets/List-legacy.b5f72686.js +1 -0
  45. package/dist/assets/Messenger-0560ffd9.js +1 -0
  46. package/dist/assets/{Messenger-legacy.bc15d42f.js → Messenger-legacy.faf575f4.js} +1 -1
  47. package/dist/assets/{Metas-e05f9ce1.js → Metas-e9650e65.js} +1 -1
  48. package/dist/assets/{Metas-legacy.fbb019f8.js → Metas-legacy.cfaf184d.js} +1 -1
  49. package/dist/assets/{Other-359d1308.js → Other-5baa22d7.js} +1 -1
  50. package/dist/assets/{Other-legacy.98d34500.js → Other-legacy.8ef107b5.js} +1 -1
  51. package/dist/assets/{PackageDownload-519b9a38.js → PackageDownload-222f32dc.js} +1 -1
  52. package/dist/assets/{PackageDownload-legacy.99bfadfb.js → PackageDownload-legacy.e8ef7956.js} +1 -1
  53. package/dist/assets/{Paginator-c9173645.js → Paginator-3ef3d0c6.js} +1 -1
  54. package/dist/assets/{Paginator-legacy.20830174.js → Paginator-legacy.93a6ac8d.js} +1 -1
  55. package/dist/assets/{Password-ecb0e10f.js → Password-a086e47b.js} +1 -1
  56. package/dist/assets/{Password-legacy.6428b474.js → Password-legacy.108e4c72.js} +1 -1
  57. package/dist/assets/{PermissionForm-c3eb17c8.js → PermissionForm-52d65769.js} +1 -1
  58. package/dist/assets/{PermissionForm-legacy.7c5eb6c6.js → PermissionForm-legacy.fab78da9.js} +1 -1
  59. package/dist/assets/{Profile-3ee435be.js → Profile-9a558e54.js} +1 -1
  60. package/dist/assets/{Profile-legacy.b4580d6f.js → Profile-legacy.857841b6.js} +1 -1
  61. package/dist/assets/{ResponsiveGrid-c7c746e7.js → ResponsiveGrid-d3a65619.js} +1 -1
  62. package/dist/assets/{ResponsiveGrid-legacy.f9981337.js → ResponsiveGrid-legacy.e149df0f.js} +1 -1
  63. package/dist/assets/{Role-9912dd61.js → Role-f32728ce.js} +1 -1
  64. package/dist/assets/{Role-legacy.6533ab1b.js → Role-legacy.b4f1a0df.js} +1 -1
  65. package/dist/assets/{S3-0aa994e6.js → S3-f66fd154.js} +1 -1
  66. package/dist/assets/{S3-legacy.0fefd5e0.js → S3-legacy.275576b7.js} +1 -1
  67. package/dist/assets/{S3Transition-89090584.js → S3Transition-5e893c2d.js} +1 -1
  68. package/dist/assets/{S3Transition-legacy.87d826d5.js → S3Transition-legacy.f48077d1.js} +1 -1
  69. package/dist/assets/{SettingItem-004aa8f7.js → SettingItem-b751b2c5.js} +1 -1
  70. package/dist/assets/{SettingItem-legacy.4459beb0.js → SettingItem-legacy.437c4ed5.js} +1 -1
  71. package/dist/assets/{Storages-41749b58.js → Storages-b3d15775.js} +1 -1
  72. package/dist/assets/{Storages-legacy.06dcad07.js → Storages-legacy.da167efd.js} +1 -1
  73. package/dist/assets/{StrmGenerate-a872c94f.js → StrmGenerate-1f5e044e.js} +1 -1
  74. package/dist/assets/StrmGenerate-613bc654.js +1 -0
  75. package/dist/assets/{StrmGenerate-legacy.bd455ae0.js → StrmGenerate-legacy.66ab6a37.js} +1 -1
  76. package/dist/assets/{StrmGenerate-legacy.cabca006.js → StrmGenerate-legacy.e0aee8d8.js} +1 -1
  77. package/dist/assets/{Tag-090a70de.js → Tag-b900e4c6.js} +1 -1
  78. package/dist/assets/{Tag-legacy.4d08ea51.js → Tag-legacy.3048c842.js} +1 -1
  79. package/dist/assets/{Task-305456a7.js → Task-9716a5eb.js} +1 -1
  80. package/dist/assets/{Task-legacy.bef00b05.js → Task-legacy.e8fd93f7.js} +1 -1
  81. package/dist/assets/{Tasks-bcb27730.js → Tasks-9e93bf9b.js} +1 -1
  82. package/dist/assets/{Tasks-legacy.e4e4be39.js → Tasks-legacy.a73b03b3.js} +1 -1
  83. package/dist/assets/{Upload-f8f5df20.js → Upload-767afc13.js} +2 -2
  84. package/dist/assets/Upload-a0c974b6.js +1 -0
  85. package/dist/assets/{Upload-legacy.ea24de65.js → Upload-legacy.28cb8802.js} +1 -1
  86. package/dist/assets/{Upload-legacy.3167d140.js → Upload-legacy.eacf9c33.js} +2 -2
  87. package/dist/assets/{Users-00f028b6.js → Users-c4a9f913.js} +1 -1
  88. package/dist/assets/{Users-legacy.6adffa4b.js → Users-legacy.50916fef.js} +1 -1
  89. package/dist/assets/{Wether-2ad383a0.js → Wether-bc06124c.js} +1 -1
  90. package/dist/assets/{Wether-legacy.c0dbd869.js → Wether-legacy.a6bc8158.js} +1 -1
  91. package/dist/assets/{aliyun_office-70f9e774.js → aliyun_office-610f22d7.js} +1 -1
  92. package/dist/assets/{aliyun_office-legacy.01ab1f19.js → aliyun_office-legacy.ef26bd27.js} +1 -1
  93. package/dist/assets/{aliyun_video-8ecd5833.js → aliyun_video-68f3d193.js} +1 -1
  94. package/dist/assets/{aliyun_video-legacy.b463b3a2.js → aliyun_video-legacy.ec914351.js} +1 -1
  95. package/dist/assets/archive-348294b2.js +1 -0
  96. package/dist/assets/{archive-legacy.665b85a4.js → archive-legacy.b9e13d88.js} +1 -1
  97. package/dist/assets/{asciinema-63cb7e53.js → asciinema-3b9733e6.js} +1 -1
  98. package/dist/assets/{asciinema-legacy.4d730bad.js → asciinema-legacy.aeae44af.js} +1 -1
  99. package/dist/assets/{audio-99be5f4b.js → audio-23a04fcd.js} +1 -1
  100. package/dist/assets/{audio-legacy.cb5be320.js → audio-legacy.d38df8ed.js} +1 -1
  101. package/dist/assets/{backup-restore-87d007a6.js → backup-restore-639abd09.js} +1 -1
  102. package/dist/assets/{backup-restore-legacy.fca2a0a0.js → backup-restore-legacy.ffd8b565.js} +1 -1
  103. package/dist/assets/{doubao-edc7ea0c.js → doubao-40508ffd.js} +1 -1
  104. package/dist/assets/{doubao-legacy.1a73dcb5.js → doubao-legacy.ce9cdb4f.js} +1 -1
  105. package/dist/assets/{download-fe955410.js → download-c9ff976d.js} +1 -1
  106. package/dist/assets/{download-legacy.40f6adf0.js → download-legacy.013d5238.js} +1 -1
  107. package/dist/assets/{entry-dbda7502.js → entry-14e46a93.js} +4 -4
  108. package/dist/assets/{entry-53f2edcc.js → entry-1e7e0599.js} +4 -4
  109. package/dist/assets/{entry-47b2abb1.js → entry-4441e5ed.js} +4 -4
  110. package/dist/assets/{entry-8a764c5e.js → entry-70a8fd74.js} +4 -4
  111. package/dist/assets/{entry-7bf2f5c5.js → entry-855658cf.js} +4 -4
  112. package/dist/assets/entry-97d71196.js +8 -0
  113. package/dist/assets/{entry-ad0c322e.js → entry-987123a7.js} +4 -4
  114. package/dist/assets/entry-a8ef5d45.js +9 -0
  115. package/dist/assets/{entry-8e81cbee.js → entry-f27b34ac.js} +4 -4
  116. package/dist/assets/{entry-65f35baf.js → entry-fc3998f4.js} +4 -4
  117. package/dist/assets/entry-legacy.12388c41.js +1 -0
  118. package/dist/assets/entry-legacy.4bdadaaa.js +1 -0
  119. package/dist/assets/entry-legacy.67113a29.js +1 -0
  120. package/dist/assets/entry-legacy.b4cedc5d.js +1 -0
  121. package/dist/assets/entry-legacy.c8c5f659.js +1 -0
  122. package/dist/assets/entry-legacy.ce30aaba.js +1 -0
  123. package/dist/assets/entry-legacy.df59e06f.js +1 -0
  124. package/dist/assets/entry-legacy.e068c401.js +1 -0
  125. package/dist/assets/entry-legacy.f58fb0fb.js +1 -0
  126. package/dist/assets/entry-legacy.ff673f64.js +1 -0
  127. package/dist/assets/{helper-e7a18c7f.js → helper-204a2c78.js} +1 -1
  128. package/dist/assets/{helper-cfffcdeb.js → helper-980c04cb.js} +1 -1
  129. package/dist/assets/{helper-legacy.ecf72a12.js → helper-legacy.23a625cc.js} +1 -1
  130. package/dist/assets/{helper-legacy.f3369b5d.js → helper-legacy.9192e2ff.js} +1 -1
  131. package/dist/assets/{hls-86ec98bf.js → hls-3f2505c2.js} +1 -1
  132. package/dist/assets/{hls-legacy.7eb02010.js → hls-legacy.b60e4abe.js} +1 -1
  133. package/dist/assets/{html-f0c8404b.js → html-e6e3eaa9.js} +1 -1
  134. package/dist/assets/{html-legacy.6b46728d.js → html-legacy.f513f074.js} +1 -1
  135. package/dist/assets/{image-aee483b3.js → image-48225136.js} +1 -1
  136. package/dist/assets/{image-legacy.293578fc.js → image-legacy.d6824f24.js} +1 -1
  137. package/dist/assets/index-082de197.js +1 -0
  138. package/dist/assets/{index-b0560a31.js → index-12c59944.js} +37 -37
  139. package/dist/assets/{index-b8456ee7.js → index-22787204.js} +1 -1
  140. package/dist/assets/index-3049f6a6.js +1 -0
  141. package/dist/assets/index-32945316.js +4 -0
  142. package/dist/assets/{index-e2343554.js → index-411bfb29.js} +1 -1
  143. package/dist/assets/index-74ad17be.js +1 -0
  144. package/dist/assets/{index-bfb42663.js → index-7f2d39ac.js} +1 -1
  145. package/dist/assets/index-84fc78e3.js +1 -0
  146. package/dist/assets/{index-1c7df6bb.js → index-866dbfe0.js} +1 -1
  147. package/dist/assets/{index-63d411f6.js → index-96300ca1.js} +1 -1
  148. package/dist/assets/{index-3409ca0b.js → index-c0d66a13.js} +1 -1
  149. package/dist/assets/{index-d2ee9913.js → index-e86810ff.js} +2 -2
  150. package/dist/assets/index-ea3dac9b.js +1 -0
  151. package/dist/assets/{index-legacy.eb264a4b.js → index-legacy.0bd9a919.js} +1 -1
  152. package/dist/assets/{index-legacy.d888bbd6.js → index-legacy.2a1317b6.js} +1 -1
  153. package/dist/assets/{index-legacy.77dc574f.js → index-legacy.3b74deb2.js} +1 -1
  154. package/dist/assets/{index-legacy.510e67dc.js → index-legacy.589fef21.js} +1 -1
  155. package/dist/assets/{index-legacy.766df57d.js → index-legacy.5b17a767.js} +1 -1
  156. package/dist/assets/{index-legacy.7d5d9c7c.js → index-legacy.8bb2e679.js} +1 -1
  157. package/dist/assets/{index-legacy.04ddeb6e.js → index-legacy.9cb6b809.js} +1 -1
  158. package/dist/assets/index-legacy.9f848378.js +1 -0
  159. package/dist/assets/index-legacy.a0bc9786.js +1 -0
  160. package/dist/assets/{index-legacy.93f532c8.js → index-legacy.c1526c7a.js} +1 -1
  161. package/dist/assets/{index-legacy.e544ccf2.js → index-legacy.cabc0115.js} +1 -1
  162. package/dist/assets/{index-legacy.cdce98e1.js → index-legacy.f08d6e76.js} +3 -3
  163. package/dist/assets/index-legacy.f58d0110.js +1 -0
  164. package/dist/assets/{index-legacy.e65fdd44.js → index-legacy.faaad55b.js} +1 -1
  165. package/dist/assets/{indexes-d17840a6.js → indexes-ff70bb55.js} +2 -2
  166. package/dist/assets/{indexes-legacy.4a5b688a.js → indexes-legacy.71dabf90.js} +1 -1
  167. package/dist/assets/info-a3b0123a.js +1 -0
  168. package/dist/assets/{info-legacy.a104f6ee.js → info-legacy.6bc0fc27.js} +1 -1
  169. package/dist/assets/{ipa-adf70a53.js → ipa-f67c10c0.js} +1 -1
  170. package/dist/assets/{ipa-legacy.b0527f0c.js → ipa-legacy.8f4e9bc5.js} +1 -1
  171. package/dist/assets/{lark-1a7cae41.js → lark-8f8b5c20.js} +1 -1
  172. package/dist/assets/{lark-legacy.05b566b8.js → lark-legacy.fd930faf.js} +1 -1
  173. package/dist/assets/{lark_tools-fb000845.js → lark_tools-844638d0.js} +1 -1
  174. package/dist/assets/{lark_tools-legacy.6fedd7ea.js → lark_tools-legacy.9d638acc.js} +1 -1
  175. package/dist/assets/{layout-28afe0f0.js → layout-9167b163.js} +1 -1
  176. package/dist/assets/{layout-legacy.e0cfb4c0.js → layout-legacy.199151b4.js} +1 -1
  177. package/dist/assets/{management-01a86f43.js → management-34fb56b5.js} +1 -1
  178. package/dist/assets/{management-legacy.77a4015b.js → management-legacy.0d49e310.js} +1 -1
  179. package/dist/assets/{markdown-5ea99b9a.js → markdown-2ccf0159.js} +1 -1
  180. package/dist/assets/{markdown-legacy.ff36c111.js → markdown-legacy.06e4607f.js} +1 -1
  181. package/dist/assets/{markdown_with_word_wrap-a0b244a5.js → markdown_with_word_wrap-32d6b4ac.js} +1 -1
  182. package/dist/assets/{markdown_with_word_wrap-legacy.a6da7d19.js → markdown_with_word_wrap-legacy.1be55d86.js} +1 -1
  183. package/dist/assets/{mySession-084533dd.js → mySession-d4cf7cd7.js} +1 -1
  184. package/dist/assets/{mySession-legacy.2f5e1d14.js → mySession-legacy.1bcf26b3.js} +1 -1
  185. package/dist/assets/offline_download-8e72d56b.js +1 -0
  186. package/dist/assets/{offline_download-legacy.fe7fa221.js → offline_download-legacy.7cf61888.js} +1 -1
  187. package/dist/assets/open-with-9e0de645.js +1 -0
  188. package/dist/assets/open-with-legacy.e51ee8ad.js +1 -0
  189. package/dist/assets/{plist-90c2d892.js → plist-d38bf73e.js} +1 -1
  190. package/dist/assets/{plist-legacy.3de6335c.js → plist-legacy.f8284677.js} +1 -1
  191. package/dist/assets/{polyfills-legacy.03573a32.js → polyfills-legacy.bfccebe0.js} +1 -1
  192. package/dist/assets/{shares-63cf54ab.js → shares-26647360.js} +1 -1
  193. package/dist/assets/{shares-legacy.63ed175b.js → shares-legacy.b95e9341.js} +1 -1
  194. package/dist/assets/{solid-contextmenu-905ecc32.js → solid-contextmenu-b426b8e6.js} +1 -1
  195. package/dist/assets/{solid-contextmenu-legacy.b73c8617.js → solid-contextmenu-legacy.a069fb05.js} +1 -1
  196. package/dist/assets/{text-editor-4451aa37.js → text-editor-36b58d25.js} +2 -2
  197. package/dist/assets/{text-editor-legacy.1d233d02.js → text-editor-legacy.d4529c97.js} +1 -1
  198. package/dist/assets/{url-755a9cce.js → url-eabfa8c4.js} +1 -1
  199. package/dist/assets/{url-legacy.a69a518d.js → url-legacy.6b04f79a.js} +1 -1
  200. package/dist/assets/{useTitle-838069b0.js → useTitle-4d2813bb.js} +1 -1
  201. package/dist/assets/{useTitle-legacy.b3b2613b.js → useTitle-legacy.558eeb1b.js} +1 -1
  202. package/dist/assets/{video-08e3c2a6.js → video-d3bd6564.js} +1 -1
  203. package/dist/assets/{video-legacy.a9ff6ce2.js → video-legacy.c596282e.js} +1 -1
  204. package/dist/assets/{video360-fc95901a.js → video360-649f051d.js} +1 -1
  205. package/dist/assets/{video360-legacy.e051fc87.js → video360-legacy.15112b9c.js} +1 -1
  206. package/dist/assets/{video_box-de39a6c5.js → video_box-4529bc38.js} +1 -1
  207. package/dist/assets/{video_box-legacy.86e3adf4.js → video_box-legacy.271ea28d.js} +1 -1
  208. package/dist/index.html +3 -3
  209. package/package.json +1 -1
  210. package/dist/assets/AddOrEdit-79a98c71.js +0 -1
  211. package/dist/assets/AddOrEdit-83e5bdd3.js +0 -4
  212. package/dist/assets/AddOrEdit-legacy.4c3acaab.js +0 -1
  213. package/dist/assets/AddOrEdit-legacy.cd047027.js +0 -1
  214. package/dist/assets/Decompress-43856ece.js +0 -1
  215. package/dist/assets/FolderTree-89544a6b.js +0 -1
  216. package/dist/assets/Grid-37629e6d.js +0 -1
  217. package/dist/assets/GridItem-be9067db.js +0 -1
  218. package/dist/assets/GridItem-legacy.76a1e630.js +0 -1
  219. package/dist/assets/ImageWithError-ad444cc4.js +0 -1
  220. package/dist/assets/List-e85a0b2a.js +0 -9
  221. package/dist/assets/List-legacy.401536e5.js +0 -1
  222. package/dist/assets/Messenger-68d3a6f9.js +0 -1
  223. package/dist/assets/StrmGenerate-59595312.js +0 -1
  224. package/dist/assets/Upload-dea525de.js +0 -1
  225. package/dist/assets/archive-734c2ae5.js +0 -1
  226. package/dist/assets/entry-76e6ff37.js +0 -8
  227. package/dist/assets/entry-cd479580.js +0 -9
  228. package/dist/assets/entry-legacy.113b27f4.js +0 -1
  229. package/dist/assets/entry-legacy.12fb7042.js +0 -1
  230. package/dist/assets/entry-legacy.205b85a6.js +0 -1
  231. package/dist/assets/entry-legacy.84c5b84d.js +0 -1
  232. package/dist/assets/entry-legacy.99944f7e.js +0 -1
  233. package/dist/assets/entry-legacy.a1e4c725.js +0 -1
  234. package/dist/assets/entry-legacy.ccf750f1.js +0 -1
  235. package/dist/assets/entry-legacy.d79bc047.js +0 -1
  236. package/dist/assets/entry-legacy.e342d8cc.js +0 -1
  237. package/dist/assets/entry-legacy.e6d5043a.js +0 -1
  238. package/dist/assets/index-1da4255f.js +0 -1
  239. package/dist/assets/index-1eca9bf7.js +0 -1
  240. package/dist/assets/index-286258af.js +0 -1
  241. package/dist/assets/index-425600b4.js +0 -4
  242. package/dist/assets/index-653e8df2.js +0 -1
  243. package/dist/assets/index-9f389c06.js +0 -1
  244. package/dist/assets/index-legacy.5f2e7154.js +0 -1
  245. package/dist/assets/index-legacy.a2e25f9b.js +0 -1
  246. package/dist/assets/index-legacy.e932630e.js +0 -1
  247. package/dist/assets/info-a9253ca6.js +0 -1
  248. package/dist/assets/offline_download-ed30f8c1.js +0 -1
  249. package/dist/assets/open-with-79c445c3.js +0 -1
  250. package/dist/assets/open-with-legacy.a62babc1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e0 as Br,dp as W,dq as ur}from"./index-b0560a31.js";import{c as dr}from"./_commonjs-dynamic-modules-302442b1.js";var jx={exports:{}},F0={exports:{}};const hr={},Cr=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),lr=Br(Cr);var hx;function I(){return hx||(hx=1,function(R,T){(function(C,n){R.exports=n()})(W,function(){var C=C||function(n,p){var D;if(typeof window<"u"&&window.crypto&&(D=window.crypto),typeof self<"u"&&self.crypto&&(D=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(D=globalThis.crypto),!D&&typeof window<"u"&&window.msCrypto&&(D=window.msCrypto),!D&&typeof W<"u"&&W.crypto&&(D=W.crypto),!D&&typeof dr=="function")try{D=lr}catch{}var H=function(){if(D){if(typeof D.getRandomValues=="function")try{return D.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof D.randomBytes=="function")try{return D.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},B=Object.create||function(){function t(){}return function(a){var i;return t.prototype=a,i=new t,t.prototype=null,i}}(),d={},x=d.lib={},e=x.Base=function(){return{extend:function(t){var a=B(this);return t&&a.mixIn(t),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var a in t)t.hasOwnProperty(a)&&(this[a]=t[a]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=x.WordArray=e.extend({init:function(t,a){t=this.words=t||[],a!=p?this.sigBytes=a:this.sigBytes=t.length*4},toString:function(t){return(t||s).stringify(this)},concat:function(t){var a=this.words,i=t.words,E=this.sigBytes,l=t.sigBytes;if(this.clamp(),E%4)for(var A=0;A<l;A++){var _=i[A>>>2]>>>24-A%4*8&255;a[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S<l;S+=4)a[E+S>>>2]=i[S>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=n.ceil(a/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var a=[],i=0;i<t;i+=4)a.push(H());return new u.init(a,t)}}),r=d.enc={},s=r.Hex={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l<i;l++){var A=a[l>>>2]>>>24-l%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E<a;E+=2)i[E>>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new u.init(i,a/2)}},o=r.Latin1={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l<i;l++){var A=a[l>>>2]>>>24-l%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E<a;E++)i[E>>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new u.init(i,a)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var a,i=this._data,E=i.words,l=i.sigBytes,A=this.blockSize,_=A*4,S=l/_;t?S=n.ceil(S):S=n.max((S|0)-this._minBufferSize,0);var v=S*A,F=n.min(v*4,l);if(v){for(var g=0;g<v;g+=A)this._doProcessBlock(E,g);a=E.splice(0,v),i.sigBytes-=F}return new u.init(a,F)},clone:function(){var t=e.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});x.Hasher=f.extend({cfg:e.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var a=this._doFinalize();return a},blockSize:16,_createHelper:function(t){return function(a,i){return new t.init(i).finalize(a)}},_createHmacHelper:function(t){return function(a,i){return new h.HMAC.init(t,i).finalize(a)}}});var h=d.algo={};return d}(Math);return C})}(F0)),F0.exports}var D0={exports:{}},Cx;function l0(){return Cx||(Cx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.Base,B=D.WordArray,d=p.x64={};d.Word=H.extend({init:function(x,e){this.high=x,this.low=e}}),d.WordArray=H.extend({init:function(x,e){x=this.words=x||[],e!=n?this.sigBytes=e:this.sigBytes=x.length*8},toX32:function(){for(var x=this.words,e=x.length,u=[],r=0;r<e;r++){var s=x[r];u.push(s.high),u.push(s.low)}return B.create(u,this.sigBytes)},clone:function(){for(var x=H.clone.call(this),e=x.words=this.words.slice(0),u=e.length,r=0;r<u;r++)e[r]=e[r].clone();return x}})}(),C})}(D0)),D0.exports}var p0={exports:{}},lx;function Er(){return lx||(lx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){if(typeof ArrayBuffer=="function"){var n=C,p=n.lib,D=p.WordArray,H=D.init,B=D.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var x=d.byteLength,e=[],u=0;u<x;u++)e[u>>>2]|=d[u]<<24-u%4*8;H.call(this,e,x)}else H.apply(this,arguments)};B.prototype=D}}(),C.lib.WordArray})}(p0)),p0.exports}var _0={exports:{}},Ex;function Ar(){return Ex||(Ex=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Utf16=H.Utf16BE={stringify:function(d){for(var x=d.words,e=d.sigBytes,u=[],r=0;r<e;r+=2){var s=x[r>>>2]>>>16-r%4*8&65535;u.push(String.fromCharCode(s))}return u.join("")},parse:function(d){for(var x=d.length,e=[],u=0;u<x;u++)e[u>>>1]|=d.charCodeAt(u)<<16-u%2*16;return D.create(e,x*2)}},H.Utf16LE={stringify:function(d){for(var x=d.words,e=d.sigBytes,u=[],r=0;r<e;r+=2){var s=B(x[r>>>2]>>>16-r%4*8&65535);u.push(String.fromCharCode(s))}return u.join("")},parse:function(d){for(var x=d.length,e=[],u=0;u<x;u++)e[u>>>1]|=B(d.charCodeAt(u)<<16-u%2*16);return D.create(e,x*2)}};function B(d){return d<<8&4278255360|d>>>8&16711935}}(),C.enc.Utf16})}(_0)),_0.exports}var b0={exports:{}},Ax;function e0(){return Ax||(Ax=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Base64={stringify:function(d){var x=d.words,e=d.sigBytes,u=this._map;d.clamp();for(var r=[],s=0;s<e;s+=3)for(var o=x[s>>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,h=o<<16|c<<8|f,t=0;t<4&&s+t*.75<e;t++)r.push(u.charAt(h>>>6*(3-t)&63));var a=u.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(d){var x=d.length,e=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var r=0;r<e.length;r++)u[e.charCodeAt(r)]=r}var s=e.charAt(64);if(s){var o=d.indexOf(s);o!==-1&&(x=o)}return B(d,x,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function B(d,x,e){for(var u=[],r=0,s=0;s<x;s++)if(s%4){var o=e[d.charCodeAt(s-1)]<<s%4*2,c=e[d.charCodeAt(s)]>>>6-s%4*2,f=o|c;u[r>>>2]|=f<<24-r%4*8,r++}return D.create(u,r)}}(),C.enc.Base64})}(b0)),b0.exports}var g0={exports:{}},Fx;function Fr(){return Fx||(Fx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Base64url={stringify:function(d,x){x===void 0&&(x=!0);var e=d.words,u=d.sigBytes,r=x?this._safe_map:this._map;d.clamp();for(var s=[],o=0;o<u;o+=3)for(var c=e[o>>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,h=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|h,a=0;a<4&&o+a*.75<u;a++)s.push(r.charAt(t>>>6*(3-a)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(d,x){x===void 0&&(x=!0);var e=d.length,u=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<u.length;s++)r[u.charCodeAt(s)]=s}var o=u.charAt(64);if(o){var c=d.indexOf(o);c!==-1&&(e=c)}return B(d,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function B(d,x,e){for(var u=[],r=0,s=0;s<x;s++)if(s%4){var o=e[d.charCodeAt(s-1)]<<s%4*2,c=e[d.charCodeAt(s)]>>>6-s%4*2,f=o|c;u[r>>>2]|=f<<24-r%4*8,r++}return D.create(u,r)}}(),C.enc.Base64url})}(g0)),g0.exports}var y0={exports:{}},Dx;function t0(){return Dx||(Dx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=n.abs(n.sin(c+1))*4294967296|0})();var e=d.MD5=B.extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var h=0;h<16;h++){var t=f+h,a=c[t];c[t]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}var i=this._hash.words,E=c[f+0],l=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],v=c[f+5],F=c[f+6],g=c[f+7],y=c[f+8],z=c[f+9],q=c[f+10],P=c[f+11],U=c[f+12],N=c[f+13],O=c[f+14],X=c[f+15],b=i[0],w=i[1],m=i[2],k=i[3];b=u(b,w,m,k,E,7,x[0]),k=u(k,b,w,m,l,12,x[1]),m=u(m,k,b,w,A,17,x[2]),w=u(w,m,k,b,_,22,x[3]),b=u(b,w,m,k,S,7,x[4]),k=u(k,b,w,m,v,12,x[5]),m=u(m,k,b,w,F,17,x[6]),w=u(w,m,k,b,g,22,x[7]),b=u(b,w,m,k,y,7,x[8]),k=u(k,b,w,m,z,12,x[9]),m=u(m,k,b,w,q,17,x[10]),w=u(w,m,k,b,P,22,x[11]),b=u(b,w,m,k,U,7,x[12]),k=u(k,b,w,m,N,12,x[13]),m=u(m,k,b,w,O,17,x[14]),w=u(w,m,k,b,X,22,x[15]),b=r(b,w,m,k,l,5,x[16]),k=r(k,b,w,m,F,9,x[17]),m=r(m,k,b,w,P,14,x[18]),w=r(w,m,k,b,E,20,x[19]),b=r(b,w,m,k,v,5,x[20]),k=r(k,b,w,m,q,9,x[21]),m=r(m,k,b,w,X,14,x[22]),w=r(w,m,k,b,S,20,x[23]),b=r(b,w,m,k,z,5,x[24]),k=r(k,b,w,m,O,9,x[25]),m=r(m,k,b,w,_,14,x[26]),w=r(w,m,k,b,y,20,x[27]),b=r(b,w,m,k,N,5,x[28]),k=r(k,b,w,m,A,9,x[29]),m=r(m,k,b,w,g,14,x[30]),w=r(w,m,k,b,U,20,x[31]),b=s(b,w,m,k,v,4,x[32]),k=s(k,b,w,m,y,11,x[33]),m=s(m,k,b,w,P,16,x[34]),w=s(w,m,k,b,O,23,x[35]),b=s(b,w,m,k,l,4,x[36]),k=s(k,b,w,m,S,11,x[37]),m=s(m,k,b,w,g,16,x[38]),w=s(w,m,k,b,q,23,x[39]),b=s(b,w,m,k,N,4,x[40]),k=s(k,b,w,m,E,11,x[41]),m=s(m,k,b,w,_,16,x[42]),w=s(w,m,k,b,F,23,x[43]),b=s(b,w,m,k,z,4,x[44]),k=s(k,b,w,m,U,11,x[45]),m=s(m,k,b,w,X,16,x[46]),w=s(w,m,k,b,A,23,x[47]),b=o(b,w,m,k,E,6,x[48]),k=o(k,b,w,m,g,10,x[49]),m=o(m,k,b,w,O,15,x[50]),w=o(w,m,k,b,v,21,x[51]),b=o(b,w,m,k,U,6,x[52]),k=o(k,b,w,m,_,10,x[53]),m=o(m,k,b,w,q,15,x[54]),w=o(w,m,k,b,l,21,x[55]),b=o(b,w,m,k,y,6,x[56]),k=o(k,b,w,m,X,10,x[57]),m=o(m,k,b,w,F,15,x[58]),w=o(w,m,k,b,N,21,x[59]),b=o(b,w,m,k,S,6,x[60]),k=o(k,b,w,m,P,10,x[61]),m=o(m,k,b,w,A,15,x[62]),w=o(w,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+w|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var a=n.floor(h/4294967296),i=h;f[(t+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,l=E.words,A=0;A<4;A++){var _=l[A];l[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=B.clone.call(this);return c._hash=this._hash.clone(),c}});function u(c,f,h,t,a,i,E){var l=c+(f&h|~f&t)+a+E;return(l<<i|l>>>32-i)+f}function r(c,f,h,t,a,i,E){var l=c+(f&t|h&~t)+a+E;return(l<<i|l>>>32-i)+f}function s(c,f,h,t,a,i,E){var l=c+(f^h^t)+a+E;return(l<<i|l>>>32-i)+f}function o(c,f,h,t,a,i,E){var l=c+(h^(f|~t))+a+E;return(l<<i|l>>>32-i)+f}p.MD5=B._createHelper(e),p.HmacMD5=B._createHmacHelper(e)}(Math),C.MD5})}(y0)),y0.exports}var k0={exports:{}},px;function Mx(){return px||(px=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=p.Hasher,B=n.algo,d=[],x=B.SHA1=H.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,u){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],h=r[4],t=0;t<80;t++){if(t<16)d[t]=e[u+t]|0;else{var a=d[t-3]^d[t-8]^d[t-14]^d[t-16];d[t]=a<<1|a>>>31}var i=(s<<5|s>>>27)+h+d[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,h=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+h|0},_doFinalize:function(){var e=this._data,u=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return u[s>>>5]|=128<<24-s%32,u[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),u[(s+64>>>9<<4)+15]=r,e.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var e=H.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA1=H._createHelper(x),n.HmacSHA1=H._createHmacHelper(x)}(),C.SHA1})}(k0)),k0.exports}var H0={exports:{}},_x;function rx(){return _x||(_x=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.algo,x=[],e=[];(function(){function s(h){for(var t=n.sqrt(h),a=2;a<=t;a++)if(!(h%a))return!1;return!0}function o(h){return(h-(h|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(n.pow(c,1/2))),e[f]=o(n.pow(c,1/3)),f++),c++})();var u=[],r=d.SHA256=B.extend({_doReset:function(){this._hash=new H.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],h=c[1],t=c[2],a=c[3],i=c[4],E=c[5],l=c[6],A=c[7],_=0;_<64;_++){if(_<16)u[_]=s[o+_]|0;else{var S=u[_-15],v=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=u[_-2],g=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;u[_]=v+u[_-7]+g+u[_-16]}var y=i&E^~i&l,z=f&h^f&t^h&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),P=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),U=A+P+y+e[_]+u[_],N=q+z;A=l,l=E,E=i,i=a+U|0,a=t,t=h,h=f,f=U+N|0}c[0]=c[0]+f|0,c[1]=c[1]+h|0,c[2]=c[2]+t|0,c[3]=c[3]+a|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+l|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=n.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=B.clone.call(this);return s._hash=this._hash.clone(),s}});p.SHA256=B._createHelper(r),p.HmacSHA256=B._createHmacHelper(r)}(Math),C.SHA256})}(H0)),H0.exports}var w0={exports:{}},bx;function Dr(){return bx||(bx=1,function(R,T){(function(C,n,p){R.exports=n(I(),rx())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.algo,B=H.SHA256,d=H.SHA224=B.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=B._doFinalize.call(this);return x.sigBytes-=4,x}});n.SHA224=B._createHelper(d),n.HmacSHA224=B._createHmacHelper(d)}(),C.SHA224})}(w0)),w0.exports}var m0={exports:{}},gx;function Vx(){return gx||(gx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0())})(W,function(C){return function(){var n=C,p=n.lib,D=p.Hasher,H=n.x64,B=H.Word,d=H.WordArray,x=n.algo;function e(){return B.create.apply(B,arguments)}var u=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=D.extend({_doReset:function(){this._hash=new d.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,h=f[0],t=f[1],a=f[2],i=f[3],E=f[4],l=f[5],A=f[6],_=f[7],S=h.high,v=h.low,F=t.high,g=t.low,y=a.high,z=a.low,q=i.high,P=i.low,U=E.high,N=E.low,O=l.high,X=l.low,b=A.high,w=A.low,m=_.high,k=_.low,G=S,K=v,$=F,L=g,i0=y,a0=z,E0=q,f0=P,M=U,Q=N,d0=O,s0=X,h0=b,c0=w,A0=m,v0=k,V=0;V<80;V++){var j,J,C0=r[V];if(V<16)J=C0.high=o[c+V*2]|0,j=C0.low=o[c+V*2+1]|0;else{var tx=r[V-15],n0=tx.high,B0=tx.low,Jx=(n0>>>1|B0<<31)^(n0>>>8|B0<<24)^n0>>>7,ax=(B0>>>1|n0<<31)^(B0>>>8|n0<<24)^(B0>>>7|n0<<25),nx=r[V-2],o0=nx.high,u0=nx.low,xr=(o0>>>19|u0<<13)^(o0<<3|u0>>>29)^o0>>>6,ox=(u0>>>19|o0<<13)^(u0<<3|o0>>>29)^(u0>>>6|o0<<26),ix=r[V-7],rr=ix.high,er=ix.low,fx=r[V-16],tr=fx.high,sx=fx.low;j=ax+er,J=Jx+rr+(j>>>0<ax>>>0?1:0),j=j+ox,J=J+xr+(j>>>0<ox>>>0?1:0),j=j+sx,J=J+tr+(j>>>0<sx>>>0?1:0),C0.high=J,C0.low=j}var ar=M&d0^~M&h0,cx=Q&s0^~Q&c0,nr=G&$^G&i0^$&i0,or=K&L^K&a0^L&a0,ir=(G>>>28|K<<4)^(G<<30|K>>>2)^(G<<25|K>>>7),vx=(K>>>28|G<<4)^(K<<30|G>>>2)^(K<<25|G>>>7),fr=(M>>>14|Q<<18)^(M>>>18|Q<<14)^(M<<23|Q>>>9),sr=(Q>>>14|M<<18)^(Q>>>18|M<<14)^(Q<<23|M>>>9),Bx=u[V],cr=Bx.high,ux=Bx.low,Y=v0+sr,x0=A0+fr+(Y>>>0<v0>>>0?1:0),Y=Y+cx,x0=x0+ar+(Y>>>0<cx>>>0?1:0),Y=Y+ux,x0=x0+cr+(Y>>>0<ux>>>0?1:0),Y=Y+j,x0=x0+J+(Y>>>0<j>>>0?1:0),dx=vx+or,vr=ir+nr+(dx>>>0<vx>>>0?1:0);A0=h0,v0=c0,h0=d0,c0=s0,d0=M,s0=Q,Q=f0+Y|0,M=E0+x0+(Q>>>0<f0>>>0?1:0)|0,E0=i0,f0=a0,i0=$,a0=L,$=G,L=K,K=Y+dx|0,G=x0+vr+(K>>>0<Y>>>0?1:0)|0}v=h.low=v+K,h.high=S+G+(v>>>0<K>>>0?1:0),g=t.low=g+L,t.high=F+$+(g>>>0<L>>>0?1:0),z=a.low=z+a0,a.high=y+i0+(z>>>0<a0>>>0?1:0),P=i.low=P+f0,i.high=q+E0+(P>>>0<f0>>>0?1:0),N=E.low=N+Q,E.high=U+M+(N>>>0<Q>>>0?1:0),X=l.low=X+s0,l.high=O+d0+(X>>>0<s0>>>0?1:0),w=A.low=w+c0,A.high=b+h0+(w>>>0<c0>>>0?1:0),k=_.low=k+v0,_.high=m+A0+(k>>>0<v0>>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,h=o.sigBytes*8;c[h>>>5]|=128<<24-h%32,c[(h+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(h+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=D.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});n.SHA512=D._createHelper(s),n.HmacSHA512=D._createHmacHelper(s)}(),C.SHA512})}(m0)),m0.exports}var S0={exports:{}},yx;function pr(){return yx||(yx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0(),Vx())})(W,function(C){return function(){var n=C,p=n.x64,D=p.Word,H=p.WordArray,B=n.algo,d=B.SHA512,x=B.SHA384=d.extend({_doReset:function(){this._hash=new H.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var e=d._doFinalize.call(this);return e.sigBytes-=16,e}});n.SHA384=d._createHelper(x),n.HmacSHA384=d._createHmacHelper(x)}(),C.SHA384})}(S0)),S0.exports}var R0={exports:{}},kx;function _r(){return kx||(kx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.x64,x=d.Word,e=p.algo,u=[],r=[],s=[];(function(){for(var f=1,h=0,t=0;t<24;t++){u[f+5*h]=(t+1)*(t+2)/2%64;var a=h%5,i=(2*f+3*h)%5;f=a,h=i}for(var f=0;f<5;f++)for(var h=0;h<5;h++)r[f+5*h]=h+(2*f+3*h)%5*5;for(var E=1,l=0;l<24;l++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var v=(1<<S)-1;v<32?_^=1<<v:A^=1<<v-32}E&128?E=E<<1^113:E<<=1}s[l]=x.create(A,_)}})();var o=[];(function(){for(var f=0;f<25;f++)o[f]=x.create()})();var c=e.SHA3=B.extend({cfg:B.cfg.extend({outputLength:512}),_doReset:function(){for(var f=this._state=[],h=0;h<25;h++)f[h]=new x.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(f,h){for(var t=this._state,a=this.blockSize/2,i=0;i<a;i++){var E=f[h+2*i],l=f[h+2*i+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;var A=t[i];A.high^=l,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var v=0,F=0,g=0;g<5;g++){var A=t[S+5*g];v^=A.high,F^=A.low}var y=o[S];y.high=v,y.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],P=q.high,U=q.low,v=z.high^(P<<1|U>>>31),F=z.low^(U<<1|P>>>31),g=0;g<5;g++){var A=t[S+5*g];A.high^=v,A.low^=F}for(var N=1;N<25;N++){var v,F,A=t[N],O=A.high,X=A.low,b=u[N];b<32?(v=O<<b|X>>>32-b,F=X<<b|O>>>32-b):(v=X<<b-32|O>>>64-b,F=O<<b-32|X>>>64-b);var w=o[r[N]];w.high=v,w.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var g=0;g<5;g++){var N=S+5*g,A=t[N],G=o[N],K=o[(S+1)%5+5*g],$=o[(S+2)%5+5*g];A.high=G.high^~K.high&$.high,A.low=G.low^~K.low&$.low}var A=t[0],L=s[_];A.high^=L.high,A.low^=L.low}},_doFinalize:function(){var f=this._data,h=f.words;this._nDataBytes*8;var t=f.sigBytes*8,a=this.blockSize*32;h[t>>>5]|=1<<24-t%32,h[(n.ceil((t+1)/a)*a>>>5)-1]|=128,f.sigBytes=h.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,l=E/8,A=[],_=0;_<l;_++){var S=i[_],v=S.high,F=S.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(v)}return new H.init(A,E)},clone:function(){for(var f=B.clone.call(this),h=f._state=this._state.slice(0),t=0;t<25;t++)h[t]=h[t].clone();return f}});p.SHA3=B._createHelper(c),p.HmacSHA3=B._createHmacHelper(c)}(Math),C.SHA3})}(R0)),R0.exports}var z0={exports:{}},Hx;function br(){return Hx||(Hx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){/** @preserve
1
+ import{e0 as Br,dq as W,dr as ur}from"./index-12c59944.js";import{c as dr}from"./_commonjs-dynamic-modules-302442b1.js";var jx={exports:{}},F0={exports:{}};const hr={},Cr=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),lr=Br(Cr);var hx;function I(){return hx||(hx=1,function(R,T){(function(C,n){R.exports=n()})(W,function(){var C=C||function(n,p){var D;if(typeof window<"u"&&window.crypto&&(D=window.crypto),typeof self<"u"&&self.crypto&&(D=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(D=globalThis.crypto),!D&&typeof window<"u"&&window.msCrypto&&(D=window.msCrypto),!D&&typeof W<"u"&&W.crypto&&(D=W.crypto),!D&&typeof dr=="function")try{D=lr}catch{}var H=function(){if(D){if(typeof D.getRandomValues=="function")try{return D.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof D.randomBytes=="function")try{return D.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},B=Object.create||function(){function t(){}return function(a){var i;return t.prototype=a,i=new t,t.prototype=null,i}}(),d={},x=d.lib={},e=x.Base=function(){return{extend:function(t){var a=B(this);return t&&a.mixIn(t),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var a in t)t.hasOwnProperty(a)&&(this[a]=t[a]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=x.WordArray=e.extend({init:function(t,a){t=this.words=t||[],a!=p?this.sigBytes=a:this.sigBytes=t.length*4},toString:function(t){return(t||s).stringify(this)},concat:function(t){var a=this.words,i=t.words,E=this.sigBytes,l=t.sigBytes;if(this.clamp(),E%4)for(var A=0;A<l;A++){var _=i[A>>>2]>>>24-A%4*8&255;a[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S<l;S+=4)a[E+S>>>2]=i[S>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=n.ceil(a/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var a=[],i=0;i<t;i+=4)a.push(H());return new u.init(a,t)}}),r=d.enc={},s=r.Hex={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l<i;l++){var A=a[l>>>2]>>>24-l%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E<a;E+=2)i[E>>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new u.init(i,a/2)}},o=r.Latin1={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l<i;l++){var A=a[l>>>2]>>>24-l%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E<a;E++)i[E>>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new u.init(i,a)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var a,i=this._data,E=i.words,l=i.sigBytes,A=this.blockSize,_=A*4,S=l/_;t?S=n.ceil(S):S=n.max((S|0)-this._minBufferSize,0);var v=S*A,F=n.min(v*4,l);if(v){for(var g=0;g<v;g+=A)this._doProcessBlock(E,g);a=E.splice(0,v),i.sigBytes-=F}return new u.init(a,F)},clone:function(){var t=e.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});x.Hasher=f.extend({cfg:e.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var a=this._doFinalize();return a},blockSize:16,_createHelper:function(t){return function(a,i){return new t.init(i).finalize(a)}},_createHmacHelper:function(t){return function(a,i){return new h.HMAC.init(t,i).finalize(a)}}});var h=d.algo={};return d}(Math);return C})}(F0)),F0.exports}var D0={exports:{}},Cx;function l0(){return Cx||(Cx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.Base,B=D.WordArray,d=p.x64={};d.Word=H.extend({init:function(x,e){this.high=x,this.low=e}}),d.WordArray=H.extend({init:function(x,e){x=this.words=x||[],e!=n?this.sigBytes=e:this.sigBytes=x.length*8},toX32:function(){for(var x=this.words,e=x.length,u=[],r=0;r<e;r++){var s=x[r];u.push(s.high),u.push(s.low)}return B.create(u,this.sigBytes)},clone:function(){for(var x=H.clone.call(this),e=x.words=this.words.slice(0),u=e.length,r=0;r<u;r++)e[r]=e[r].clone();return x}})}(),C})}(D0)),D0.exports}var p0={exports:{}},lx;function Er(){return lx||(lx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){if(typeof ArrayBuffer=="function"){var n=C,p=n.lib,D=p.WordArray,H=D.init,B=D.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var x=d.byteLength,e=[],u=0;u<x;u++)e[u>>>2]|=d[u]<<24-u%4*8;H.call(this,e,x)}else H.apply(this,arguments)};B.prototype=D}}(),C.lib.WordArray})}(p0)),p0.exports}var _0={exports:{}},Ex;function Ar(){return Ex||(Ex=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Utf16=H.Utf16BE={stringify:function(d){for(var x=d.words,e=d.sigBytes,u=[],r=0;r<e;r+=2){var s=x[r>>>2]>>>16-r%4*8&65535;u.push(String.fromCharCode(s))}return u.join("")},parse:function(d){for(var x=d.length,e=[],u=0;u<x;u++)e[u>>>1]|=d.charCodeAt(u)<<16-u%2*16;return D.create(e,x*2)}},H.Utf16LE={stringify:function(d){for(var x=d.words,e=d.sigBytes,u=[],r=0;r<e;r+=2){var s=B(x[r>>>2]>>>16-r%4*8&65535);u.push(String.fromCharCode(s))}return u.join("")},parse:function(d){for(var x=d.length,e=[],u=0;u<x;u++)e[u>>>1]|=B(d.charCodeAt(u)<<16-u%2*16);return D.create(e,x*2)}};function B(d){return d<<8&4278255360|d>>>8&16711935}}(),C.enc.Utf16})}(_0)),_0.exports}var b0={exports:{}},Ax;function e0(){return Ax||(Ax=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Base64={stringify:function(d){var x=d.words,e=d.sigBytes,u=this._map;d.clamp();for(var r=[],s=0;s<e;s+=3)for(var o=x[s>>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,h=o<<16|c<<8|f,t=0;t<4&&s+t*.75<e;t++)r.push(u.charAt(h>>>6*(3-t)&63));var a=u.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(d){var x=d.length,e=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var r=0;r<e.length;r++)u[e.charCodeAt(r)]=r}var s=e.charAt(64);if(s){var o=d.indexOf(s);o!==-1&&(x=o)}return B(d,x,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function B(d,x,e){for(var u=[],r=0,s=0;s<x;s++)if(s%4){var o=e[d.charCodeAt(s-1)]<<s%4*2,c=e[d.charCodeAt(s)]>>>6-s%4*2,f=o|c;u[r>>>2]|=f<<24-r%4*8,r++}return D.create(u,r)}}(),C.enc.Base64})}(b0)),b0.exports}var g0={exports:{}},Fx;function Fr(){return Fx||(Fx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.enc;H.Base64url={stringify:function(d,x){x===void 0&&(x=!0);var e=d.words,u=d.sigBytes,r=x?this._safe_map:this._map;d.clamp();for(var s=[],o=0;o<u;o+=3)for(var c=e[o>>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,h=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|h,a=0;a<4&&o+a*.75<u;a++)s.push(r.charAt(t>>>6*(3-a)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(d,x){x===void 0&&(x=!0);var e=d.length,u=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<u.length;s++)r[u.charCodeAt(s)]=s}var o=u.charAt(64);if(o){var c=d.indexOf(o);c!==-1&&(e=c)}return B(d,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function B(d,x,e){for(var u=[],r=0,s=0;s<x;s++)if(s%4){var o=e[d.charCodeAt(s-1)]<<s%4*2,c=e[d.charCodeAt(s)]>>>6-s%4*2,f=o|c;u[r>>>2]|=f<<24-r%4*8,r++}return D.create(u,r)}}(),C.enc.Base64url})}(g0)),g0.exports}var y0={exports:{}},Dx;function t0(){return Dx||(Dx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=n.abs(n.sin(c+1))*4294967296|0})();var e=d.MD5=B.extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var h=0;h<16;h++){var t=f+h,a=c[t];c[t]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}var i=this._hash.words,E=c[f+0],l=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],v=c[f+5],F=c[f+6],g=c[f+7],y=c[f+8],z=c[f+9],q=c[f+10],P=c[f+11],U=c[f+12],N=c[f+13],O=c[f+14],X=c[f+15],b=i[0],w=i[1],m=i[2],k=i[3];b=u(b,w,m,k,E,7,x[0]),k=u(k,b,w,m,l,12,x[1]),m=u(m,k,b,w,A,17,x[2]),w=u(w,m,k,b,_,22,x[3]),b=u(b,w,m,k,S,7,x[4]),k=u(k,b,w,m,v,12,x[5]),m=u(m,k,b,w,F,17,x[6]),w=u(w,m,k,b,g,22,x[7]),b=u(b,w,m,k,y,7,x[8]),k=u(k,b,w,m,z,12,x[9]),m=u(m,k,b,w,q,17,x[10]),w=u(w,m,k,b,P,22,x[11]),b=u(b,w,m,k,U,7,x[12]),k=u(k,b,w,m,N,12,x[13]),m=u(m,k,b,w,O,17,x[14]),w=u(w,m,k,b,X,22,x[15]),b=r(b,w,m,k,l,5,x[16]),k=r(k,b,w,m,F,9,x[17]),m=r(m,k,b,w,P,14,x[18]),w=r(w,m,k,b,E,20,x[19]),b=r(b,w,m,k,v,5,x[20]),k=r(k,b,w,m,q,9,x[21]),m=r(m,k,b,w,X,14,x[22]),w=r(w,m,k,b,S,20,x[23]),b=r(b,w,m,k,z,5,x[24]),k=r(k,b,w,m,O,9,x[25]),m=r(m,k,b,w,_,14,x[26]),w=r(w,m,k,b,y,20,x[27]),b=r(b,w,m,k,N,5,x[28]),k=r(k,b,w,m,A,9,x[29]),m=r(m,k,b,w,g,14,x[30]),w=r(w,m,k,b,U,20,x[31]),b=s(b,w,m,k,v,4,x[32]),k=s(k,b,w,m,y,11,x[33]),m=s(m,k,b,w,P,16,x[34]),w=s(w,m,k,b,O,23,x[35]),b=s(b,w,m,k,l,4,x[36]),k=s(k,b,w,m,S,11,x[37]),m=s(m,k,b,w,g,16,x[38]),w=s(w,m,k,b,q,23,x[39]),b=s(b,w,m,k,N,4,x[40]),k=s(k,b,w,m,E,11,x[41]),m=s(m,k,b,w,_,16,x[42]),w=s(w,m,k,b,F,23,x[43]),b=s(b,w,m,k,z,4,x[44]),k=s(k,b,w,m,U,11,x[45]),m=s(m,k,b,w,X,16,x[46]),w=s(w,m,k,b,A,23,x[47]),b=o(b,w,m,k,E,6,x[48]),k=o(k,b,w,m,g,10,x[49]),m=o(m,k,b,w,O,15,x[50]),w=o(w,m,k,b,v,21,x[51]),b=o(b,w,m,k,U,6,x[52]),k=o(k,b,w,m,_,10,x[53]),m=o(m,k,b,w,q,15,x[54]),w=o(w,m,k,b,l,21,x[55]),b=o(b,w,m,k,y,6,x[56]),k=o(k,b,w,m,X,10,x[57]),m=o(m,k,b,w,F,15,x[58]),w=o(w,m,k,b,N,21,x[59]),b=o(b,w,m,k,S,6,x[60]),k=o(k,b,w,m,P,10,x[61]),m=o(m,k,b,w,A,15,x[62]),w=o(w,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+w|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var a=n.floor(h/4294967296),i=h;f[(t+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,l=E.words,A=0;A<4;A++){var _=l[A];l[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=B.clone.call(this);return c._hash=this._hash.clone(),c}});function u(c,f,h,t,a,i,E){var l=c+(f&h|~f&t)+a+E;return(l<<i|l>>>32-i)+f}function r(c,f,h,t,a,i,E){var l=c+(f&t|h&~t)+a+E;return(l<<i|l>>>32-i)+f}function s(c,f,h,t,a,i,E){var l=c+(f^h^t)+a+E;return(l<<i|l>>>32-i)+f}function o(c,f,h,t,a,i,E){var l=c+(h^(f|~t))+a+E;return(l<<i|l>>>32-i)+f}p.MD5=B._createHelper(e),p.HmacMD5=B._createHmacHelper(e)}(Math),C.MD5})}(y0)),y0.exports}var k0={exports:{}},px;function Mx(){return px||(px=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=p.Hasher,B=n.algo,d=[],x=B.SHA1=H.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,u){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],h=r[4],t=0;t<80;t++){if(t<16)d[t]=e[u+t]|0;else{var a=d[t-3]^d[t-8]^d[t-14]^d[t-16];d[t]=a<<1|a>>>31}var i=(s<<5|s>>>27)+h+d[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,h=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+h|0},_doFinalize:function(){var e=this._data,u=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return u[s>>>5]|=128<<24-s%32,u[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),u[(s+64>>>9<<4)+15]=r,e.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var e=H.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA1=H._createHelper(x),n.HmacSHA1=H._createHmacHelper(x)}(),C.SHA1})}(k0)),k0.exports}var H0={exports:{}},_x;function rx(){return _x||(_x=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.algo,x=[],e=[];(function(){function s(h){for(var t=n.sqrt(h),a=2;a<=t;a++)if(!(h%a))return!1;return!0}function o(h){return(h-(h|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(n.pow(c,1/2))),e[f]=o(n.pow(c,1/3)),f++),c++})();var u=[],r=d.SHA256=B.extend({_doReset:function(){this._hash=new H.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],h=c[1],t=c[2],a=c[3],i=c[4],E=c[5],l=c[6],A=c[7],_=0;_<64;_++){if(_<16)u[_]=s[o+_]|0;else{var S=u[_-15],v=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=u[_-2],g=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;u[_]=v+u[_-7]+g+u[_-16]}var y=i&E^~i&l,z=f&h^f&t^h&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),P=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),U=A+P+y+e[_]+u[_],N=q+z;A=l,l=E,E=i,i=a+U|0,a=t,t=h,h=f,f=U+N|0}c[0]=c[0]+f|0,c[1]=c[1]+h|0,c[2]=c[2]+t|0,c[3]=c[3]+a|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+l|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=n.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=B.clone.call(this);return s._hash=this._hash.clone(),s}});p.SHA256=B._createHelper(r),p.HmacSHA256=B._createHmacHelper(r)}(Math),C.SHA256})}(H0)),H0.exports}var w0={exports:{}},bx;function Dr(){return bx||(bx=1,function(R,T){(function(C,n,p){R.exports=n(I(),rx())})(W,function(C){return function(){var n=C,p=n.lib,D=p.WordArray,H=n.algo,B=H.SHA256,d=H.SHA224=B.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=B._doFinalize.call(this);return x.sigBytes-=4,x}});n.SHA224=B._createHelper(d),n.HmacSHA224=B._createHmacHelper(d)}(),C.SHA224})}(w0)),w0.exports}var m0={exports:{}},gx;function Vx(){return gx||(gx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0())})(W,function(C){return function(){var n=C,p=n.lib,D=p.Hasher,H=n.x64,B=H.Word,d=H.WordArray,x=n.algo;function e(){return B.create.apply(B,arguments)}var u=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=D.extend({_doReset:function(){this._hash=new d.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,h=f[0],t=f[1],a=f[2],i=f[3],E=f[4],l=f[5],A=f[6],_=f[7],S=h.high,v=h.low,F=t.high,g=t.low,y=a.high,z=a.low,q=i.high,P=i.low,U=E.high,N=E.low,O=l.high,X=l.low,b=A.high,w=A.low,m=_.high,k=_.low,G=S,K=v,$=F,L=g,i0=y,a0=z,E0=q,f0=P,M=U,Q=N,d0=O,s0=X,h0=b,c0=w,A0=m,v0=k,V=0;V<80;V++){var j,J,C0=r[V];if(V<16)J=C0.high=o[c+V*2]|0,j=C0.low=o[c+V*2+1]|0;else{var tx=r[V-15],n0=tx.high,B0=tx.low,Jx=(n0>>>1|B0<<31)^(n0>>>8|B0<<24)^n0>>>7,ax=(B0>>>1|n0<<31)^(B0>>>8|n0<<24)^(B0>>>7|n0<<25),nx=r[V-2],o0=nx.high,u0=nx.low,xr=(o0>>>19|u0<<13)^(o0<<3|u0>>>29)^o0>>>6,ox=(u0>>>19|o0<<13)^(u0<<3|o0>>>29)^(u0>>>6|o0<<26),ix=r[V-7],rr=ix.high,er=ix.low,fx=r[V-16],tr=fx.high,sx=fx.low;j=ax+er,J=Jx+rr+(j>>>0<ax>>>0?1:0),j=j+ox,J=J+xr+(j>>>0<ox>>>0?1:0),j=j+sx,J=J+tr+(j>>>0<sx>>>0?1:0),C0.high=J,C0.low=j}var ar=M&d0^~M&h0,cx=Q&s0^~Q&c0,nr=G&$^G&i0^$&i0,or=K&L^K&a0^L&a0,ir=(G>>>28|K<<4)^(G<<30|K>>>2)^(G<<25|K>>>7),vx=(K>>>28|G<<4)^(K<<30|G>>>2)^(K<<25|G>>>7),fr=(M>>>14|Q<<18)^(M>>>18|Q<<14)^(M<<23|Q>>>9),sr=(Q>>>14|M<<18)^(Q>>>18|M<<14)^(Q<<23|M>>>9),Bx=u[V],cr=Bx.high,ux=Bx.low,Y=v0+sr,x0=A0+fr+(Y>>>0<v0>>>0?1:0),Y=Y+cx,x0=x0+ar+(Y>>>0<cx>>>0?1:0),Y=Y+ux,x0=x0+cr+(Y>>>0<ux>>>0?1:0),Y=Y+j,x0=x0+J+(Y>>>0<j>>>0?1:0),dx=vx+or,vr=ir+nr+(dx>>>0<vx>>>0?1:0);A0=h0,v0=c0,h0=d0,c0=s0,d0=M,s0=Q,Q=f0+Y|0,M=E0+x0+(Q>>>0<f0>>>0?1:0)|0,E0=i0,f0=a0,i0=$,a0=L,$=G,L=K,K=Y+dx|0,G=x0+vr+(K>>>0<Y>>>0?1:0)|0}v=h.low=v+K,h.high=S+G+(v>>>0<K>>>0?1:0),g=t.low=g+L,t.high=F+$+(g>>>0<L>>>0?1:0),z=a.low=z+a0,a.high=y+i0+(z>>>0<a0>>>0?1:0),P=i.low=P+f0,i.high=q+E0+(P>>>0<f0>>>0?1:0),N=E.low=N+Q,E.high=U+M+(N>>>0<Q>>>0?1:0),X=l.low=X+s0,l.high=O+d0+(X>>>0<s0>>>0?1:0),w=A.low=w+c0,A.high=b+h0+(w>>>0<c0>>>0?1:0),k=_.low=k+v0,_.high=m+A0+(k>>>0<v0>>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,h=o.sigBytes*8;c[h>>>5]|=128<<24-h%32,c[(h+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(h+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=D.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});n.SHA512=D._createHelper(s),n.HmacSHA512=D._createHmacHelper(s)}(),C.SHA512})}(m0)),m0.exports}var S0={exports:{}},yx;function pr(){return yx||(yx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0(),Vx())})(W,function(C){return function(){var n=C,p=n.x64,D=p.Word,H=p.WordArray,B=n.algo,d=B.SHA512,x=B.SHA384=d.extend({_doReset:function(){this._hash=new H.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var e=d._doFinalize.call(this);return e.sigBytes-=16,e}});n.SHA384=d._createHelper(x),n.HmacSHA384=d._createHmacHelper(x)}(),C.SHA384})}(S0)),S0.exports}var R0={exports:{}},kx;function _r(){return kx||(kx=1,function(R,T){(function(C,n,p){R.exports=n(I(),l0())})(W,function(C){return function(n){var p=C,D=p.lib,H=D.WordArray,B=D.Hasher,d=p.x64,x=d.Word,e=p.algo,u=[],r=[],s=[];(function(){for(var f=1,h=0,t=0;t<24;t++){u[f+5*h]=(t+1)*(t+2)/2%64;var a=h%5,i=(2*f+3*h)%5;f=a,h=i}for(var f=0;f<5;f++)for(var h=0;h<5;h++)r[f+5*h]=h+(2*f+3*h)%5*5;for(var E=1,l=0;l<24;l++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var v=(1<<S)-1;v<32?_^=1<<v:A^=1<<v-32}E&128?E=E<<1^113:E<<=1}s[l]=x.create(A,_)}})();var o=[];(function(){for(var f=0;f<25;f++)o[f]=x.create()})();var c=e.SHA3=B.extend({cfg:B.cfg.extend({outputLength:512}),_doReset:function(){for(var f=this._state=[],h=0;h<25;h++)f[h]=new x.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(f,h){for(var t=this._state,a=this.blockSize/2,i=0;i<a;i++){var E=f[h+2*i],l=f[h+2*i+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;var A=t[i];A.high^=l,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var v=0,F=0,g=0;g<5;g++){var A=t[S+5*g];v^=A.high,F^=A.low}var y=o[S];y.high=v,y.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],P=q.high,U=q.low,v=z.high^(P<<1|U>>>31),F=z.low^(U<<1|P>>>31),g=0;g<5;g++){var A=t[S+5*g];A.high^=v,A.low^=F}for(var N=1;N<25;N++){var v,F,A=t[N],O=A.high,X=A.low,b=u[N];b<32?(v=O<<b|X>>>32-b,F=X<<b|O>>>32-b):(v=X<<b-32|O>>>64-b,F=O<<b-32|X>>>64-b);var w=o[r[N]];w.high=v,w.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var g=0;g<5;g++){var N=S+5*g,A=t[N],G=o[N],K=o[(S+1)%5+5*g],$=o[(S+2)%5+5*g];A.high=G.high^~K.high&$.high,A.low=G.low^~K.low&$.low}var A=t[0],L=s[_];A.high^=L.high,A.low^=L.low}},_doFinalize:function(){var f=this._data,h=f.words;this._nDataBytes*8;var t=f.sigBytes*8,a=this.blockSize*32;h[t>>>5]|=1<<24-t%32,h[(n.ceil((t+1)/a)*a>>>5)-1]|=128,f.sigBytes=h.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,l=E/8,A=[],_=0;_<l;_++){var S=i[_],v=S.high,F=S.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(v)}return new H.init(A,E)},clone:function(){for(var f=B.clone.call(this),h=f._state=this._state.slice(0),t=0;t<25;t++)h[t]=h[t].clone();return f}});p.SHA3=B._createHelper(c),p.HmacSHA3=B._createHmacHelper(c)}(Math),C.SHA3})}(R0)),R0.exports}var z0={exports:{}},Hx;function br(){return Hx||(Hx=1,function(R,T){(function(C,n){R.exports=n(I())})(W,function(C){/** @preserve
2
2
  (c) 2012 by Cédric Mesnil. All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -0,0 +1 @@
1
+ import{y as n,a5 as r,ac as t,a7 as a,ab as i,aG as l,ax as h,aK as o}from"./index-12c59944.js";const c=e=>n(i,r(e,{get href(){return t(e.encode?a(e.href):e.href)}})),d=e=>n(h,r(e,{get href(){return l(()=>!!e.cancelBase,!0)()?e.href:t(e.href)}}));function k(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><rect width="18" height="4" x="3" y="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8M10 12h4"/>'},e)}function u(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'},e)}function M(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'},e)}function v(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M9 11l3 3 8-8"/><path d="M20 12v6a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h9"/>'},e)}function p(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><rect width="12" height="12" x="8" y="8" rx="2"/><path d="M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2"/>'},e)}function f(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 15H4a1 1 0 01-1-1V6a1 1 0 011-1h6"/><rect width="8" height="16" x="13" y="4" rx="1"/><path d="M7 19h3M17 8v.01"/><circle cx="17" cy="16" r="1"/><path d="M9 15v4"/>'},e)}function w(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M11 7H6a2 2 0 00-2 2v9a2 2 0 002 2h9a2 2 0 002-2v-5M10 14L20 4M15 4h5v5"/>'},e)}function x(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M14 3v4a1 1 0 001 1h4"/><path d="M17 21H7a2 2 0 01-2-2V5a2 2 0 012-2h7l5 5v11a2 2 0 01-2 2zM9 15h6"/><path d="M12.5 17.5L15 15l-2.5-2.5"/>'},e)}function H(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M14 3v4a1 1 0 001 1h4"/><path d="M11.5 21H7a2 2 0 01-2-2V5a2 2 0 012-2h7l5 5v5m-5 6h7m-3-3l3 3-3 3"/>'},e)}function m(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5 0 005 0l4-4a3.5 3.5 0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5 0 00-5 0l-4 4a3.5 3.5 0 005 5l.5-.5"/>'},e)}function B(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M8 9l4-4 4 4M16 15l-4 4-4-4"/>'},e)}function b(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 4l2 1 2-1m-2-2v6.5l3 1.72M17.928 6.268l.134 2.232 1.866 1.232M20.66 7l-5.629 3.25.01 3.458M19.928 14.268L18.062 15.5l-.134 2.232M20.66 17l-5.629-3.25-2.99 1.738M14 20l-2-1-2 1m2 2v-6.5l-3-1.72M6.072 17.732L5.938 15.5l-1.866-1.232M3.34 17l5.629-3.25-.01-3.458M4.072 9.732L5.938 8.5l.134-2.232M3.34 7l5.629 3.25 2.99-1.738"/>'},e)}function C(e){return o({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="4"/><path d="M3 12h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7"/>'},e)}export{d as A,c as L,p as T,x as a,k as b,b as c,C as d,m as e,H as f,v as g,f as h,B as i,M as j,u as k,w as l};
@@ -0,0 +1,4 @@
1
+ import{co as Me,a5 as be,bR as _e,bS as M,aA as $e,ai as Y,y as e,aG as w,ac as ve,S as s,av as J,aV as T,af as v,d as Ce,cp as B,cq as R,x as xe,aE as A,bq as x,c3 as Te,cr as je,cs as Oe,ct as Ve,cu as Ke,b as We,B as Z,C as _,cv as Ue,ba as E,r as ce,cw as He,Y as P,aw as L,aB as ge,bX as S,bW as ue,N as I,a0 as de,ar as D,R as z,bz as pe,bA as he,cx as fe,cy as qe,cz as Je,cA as Ze,ci as Xe,cB as Ye,cC as Qe,aJ as et,cD as tt,a3 as we,cE as rt,n as $,cF as X}from"./index-12c59944.js";import{a as nt}from"./useTitle-4d2813bb.js";import{s as ot,g as st,a as lt}from"./webauthn-json.browser-ponyfill-f2f06d6e.js";const it="https://github.com/alist-org/alist";function at(a){return Me(`${a}-${it}`)}const ct=$e('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="896" width="967.8852157128662"><defs><path id="path-2" opacity="1" fill-rule="evenodd" d="M896,448 C1142.6325445712241,465.5747656464056 695.2579309733121,896 448,896 C200.74206902668806,896 5.684341886080802e-14,695.2579309733121 0,448.0000000000001 C0,200.74206902668806 200.74206902668791,5.684341886080802e-14 447.99999999999994,0 C695.2579309733121,0 475,418 896,448Z"></path><linearGradient id="linearGradient-3" x1="0.5" y1="0" x2="0.5" y2="1"><stop offset="0" stop-opacity="1"></stop><stop offset="1" stop-opacity="1"></stop></linearGradient></defs><g opacity="1"><use xlink:href="#path-2" fill="url(#linearGradient-3)" fill-opacity="1"></use></g></svg>'),gt=a=>{const t=be({startColor:"#28aff0",endColor:"#120fc4"},a);return(()=>{const m=ct.cloneNode(!0),d=m.firstChild,l=d.firstChild,g=l.nextSibling,i=g.firstChild,c=i.nextSibling;return _e(n=>{const p=t.startColor,h=t.endColor;return p!==n._v$&&M(i,"stop-color",n._v$=p),h!==n._v$2&&M(c,"stop-color",n._v$2=h),n},{_v$:void 0,_v$2:void 0}),m})()},ut=$e('<svg height="1337" width="1337"><defs><path id="path-1" opacity="1" fill-rule="evenodd" d="M1337,668.5 C1337,1037.455193874239 1037.455193874239,1337 668.5,1337 C523.6725684305388,1337 337,1236 370.50000000000006,1094 C434.03835568300906,824.6732385973953 6.906089672974592e-14,892.6277623047779 0,668.5000000000001 C0,299.5448061257611 299.5448061257609,1.1368683772161603e-13 668.4999999999999,0 C1037.455193874239,0 1337,299.544806125761 1337,668.5Z"></path><linearGradient id="linearGradient-2" x1="0.79" y1="0.62" x2="0.21" y2="0.86"><stop offset="0" stop-opacity="1"></stop><stop offset="1" stop-opacity="1"></stop></linearGradient></defs><g opacity="1"><use xlink:href="#path-1" fill="url(#linearGradient-2)" fill-opacity="1"></use></g></svg>'),dt=a=>{const t=be({startColor:"#28aff0",endColor:"#120fc4"},a);return(()=>{const m=ut.cloneNode(!0),d=m.firstChild,l=d.firstChild,g=l.nextSibling,i=g.firstChild,c=i.nextSibling;return _e(n=>{const p=t.startColor,h=t.endColor;return p!==n._v$&&M(i,"stop-color",n._v$=p),h!==n._v$2&&M(c,"stop-color",n._v$2=h),n},{_v$:void 0,_v$2:void 0}),m})()},pt=a=>{const t=Y("#a9c6ff","#062b74");return e(J,{get bgColor(){return w(()=>!!a.useNewVersion,!0)()?void 0:t()},get style(){return w(()=>!!a.useNewVersion,!0)()?{"background-image":`url(${ve("/images/new_bg.png")})`,"background-size":"cover","background-position":"center"}:void 0},pos:"fixed",top:"0",left:"0",overflow:"hidden",zIndex:"-1",w:"100vw",h:"100vh",get children(){return e(s,{get when(){return!a.useNewVersion},get children(){return[e(J,{pos:"absolute",right:{"@initial":"-100px","@sm":"-300px"},top:{"@initial":"-1170px","@sm":"-900px"},get children(){return e(dt,{})}}),e(J,{pos:"absolute",left:{"@initial":"-100px","@sm":"-200px"},bottom:{"@initial":"-760px","@sm":"-400px"},get children(){return e(gt,{})}})]}})}})},me=()=>{const a=T("sso_login_enabled"),t=v("sso_login_platform"),m=T("sso_compatibility_mode"),{searchParams:d,to:l}=Ce(),g=d.token;g!=null&&g!=""&&(B(g),l(d.redirect||R||"/",!0));function i(c){const n=c.data;n.token&&(B(n.token),l(d.redirect||R||"/",!0))}if(window.addEventListener("message",i),xe(()=>{window.removeEventListener("message",i)}),a){const c=()=>{const p=x.getUri()+"/auth/sso?method=sso_get_token";if(m){window.location.href=p;return}window.open(p,"authPopup","width=500,height=600")};let n;switch(t){case"Github":n=Ke;break;case"Microsoft":n=Ve;break;case"Google":n=Oe;break;case"Dingtalk":n=je;break;default:n=Te}return e(A,{cursor:"pointer",boxSize:"$8",as:n,p:"$0_5",onclick:c})}},bt=()=>{const a=async()=>{const r=await x.get("/me",{headers:{Authorization:""}});tt(r,()=>{B(),U(W.redirect||R||"/",!0)})},t=We(),m=Z(()=>`${t("login.login_to")} ${v("site_title")}`);nt(m);const d=Y("white","$neutral1"),[l,g]=_(localStorage.getItem("username")||""),[i,c]=_(localStorage.getItem("password")||""),[n,p]=_(!1),[h,j]=_(""),[F,ye]=_(!1),[G,ke]=Ue("remember-pwd","false"),[O,Q]=_(!1),[u,ee]=_(!1),V=()=>{if(!u())g(""),c("");else{const r=localStorage.getItem("username")||"",o=localStorage.getItem("password")||"";g(r),c(o)}ee(!u())},[ht,Se]=E(()=>x.get("/public/settings")),Ie=async()=>{const r=await Se();we(r,o=>{rt(o)})},K=Z(()=>v("use_newui")==="true"),te=Z(()=>v("allow_register")==="true");ce(()=>{Ie()});const[re,Fe]=E(async()=>O()?x.post("/auth/login/ldap",{username:l(),password:i(),otp_code:h()}):x.post("/auth/login/hash",{username:l(),password:at(i()),otp_code:h()})),[ne,Ee]=E(async()=>He({username:l(),password:i()})),[,Le]=E((r,o,b,q)=>x.post("/authn/webauthn_finish_login?username="+b,JSON.stringify(o),{headers:{session:r},signal:q})),[,De]=E((r,o)=>x.get("/authn/webauthn_begin_login?username="+r,{signal:o})),{searchParams:W,to:U}=Ce(),ze=async()=>PublicKeyCredential&&"isConditionalMediationAvailable"in PublicKeyCredential?await PublicKeyCredential.isConditionalMediationAvailable():!1,H=T("webauthn_login_enabled"),oe=async()=>{ye(!F())};let f=null;const se=async r=>{if(!ot()){r||$.error(t("users.webauthn_not_supported"));return}if(r&&!await ze())return;f==null||f.abort();const o=new AbortController;f=o;const b=r?"":l();!r&&G()==="true"?localStorage.setItem("username",l()):localStorage.removeItem("username");const q=await De(b,o.signal);we(q,async ae=>{try{const C=st(ae.options);C.signal=o.signal,r&&(C.mediation="conditional");const Ne=await lt(C),Pe=await Le(ae.session,Ne,b,o.signal);X(Pe,k=>{$.success(t("login.success")),B(k.token),k.device_key?(localStorage.setItem("device_key",k.device_key),console.log("=== Login Debug (Hash) ==="),console.log("Saved device_key:",k.device_key),console.log("Full response data:",k),console.log("========================")):(console.log("=== Login Debug (Hash) ==="),console.log("No device_key in response"),console.log("Full response data:",k),console.log("========================")),U(W.redirect||R||"/",!0)})}catch(C){C instanceof Error&&C.name!="AbortError"&&$.error(C.message)}})},le=()=>f==null?void 0:f.abort();ce(()=>{H&&(window.addEventListener("beforeunload",le),se(!0))}),xe(()=>{f==null||f.abort(),window.removeEventListener("beforeunload",le)});const y=async()=>{if(u()){const r=await Ee();X(r,o=>{$.success(t("login.register_success")),ee(!1),c("")},(o,b)=>{b===403?$.error(t("login.register_disabled")):$.error(o)})}else if(F())await se();else{G()==="true"?(localStorage.setItem("username",l()),localStorage.setItem("password",i())):(localStorage.removeItem("username"),localStorage.removeItem("password"));const r=await Fe();X(r,o=>{$.success(t("login.success")),B(o.token),o.device_key?(localStorage.setItem("device_key",o.device_key),console.log("=== Login Debug ==="),console.log("Saved device_key:",o.device_key),console.log("Full response data:",o),console.log("==================")):(console.log("=== Login Debug ==="),console.log("No device_key in response"),console.log("Full response data:",o),console.log("==================")),U(W.redirect||R||"/",!0)},(o,b)=>{!N()&&b===402?Ae(!0):$.error(o)})}},[N,Ae]=_(!1),ie=T("ldap_login_enabled"),Be=v("ldap_login_tips");ie&&Q(!0);const Re=()=>t("login.password_login"),Ge=()=>v("logo").split(`
2
+ `)[0];return e(et,{zIndex:"1",w:"$full",h:"100vh",get children(){return[e(P,{spacing:"$6",alignItems:"center",get children(){return[e(s,{get when(){return K()},get children(){return e(L,{alignItems:"center",spacing:"$2",get children(){return e(ge,{w:"151px",h:"auto",get src(){return w(()=>v("logo").split(`
3
+ `)[0]==="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg",!0)()?ve("/images/new_icon.png"):v("logo").split(`
4
+ `)[0]},alt:"AList Logo"})}})}}),e(s,{get when(){return K()},get fallback(){return e(P,{get bgColor(){return d()},rounded:"$xl",p:"24px",w:{"@initial":"90%","@sm":"364px"},spacing:"$4",get children(){return[e(S,{alignItems:"center",justifyContent:"space-around",get children(){return[e(ge,{mr:"$2",boxSize:"$12",get src(){return Ge()}}),e(ue,{color:"$info9",fontSize:"$2xl",get children(){return w(()=>!!u(),!0)()?t("login.register"):Re()}})]}}),e(s,{get when(){return!N()},get fallback(){return e(I,{id:"totp",name:"otp",get placeholder(){return t("login.otp-tips")},get value(){return h()},onInput:r=>j(r.currentTarget.value),onKeyDown:r=>{r.key==="Enter"&&y()}})},get children(){return[e(I,{name:"username",get placeholder(){return t("login.username-tips")},get value(){return l()},onInput:r=>g(r.currentTarget.value)}),e(s,{get when(){return!F()},get children(){return e(I,{name:"password",get placeholder(){return t("login.password-tips")},type:"password",get value(){return i()},onInput:r=>c(r.currentTarget.value),onKeyDown:r=>{r.key==="Enter"&&y()}})}}),e(S,{px:"$1",w:"$full",fontSize:"$sm",color:"$neutral10",justifyContent:"space-between",alignItems:"center",get children(){return[e(de,{get checked(){return G()==="true"},onChange:()=>ke(G()==="true"?"false":"true"),get children(){return t("login.remember")}}),e(s,{get when(){return!u()},get children(){return e(D,{as:"a",target:"_blank",get href(){return t("login.forget_url")},get children(){return t("login.forget")}})}}),e(s,{get when(){return u()},get children(){return e(D,{as:"a",onClick:V,cursor:"pointer",_hover:{textDecoration:"underline",color:"#2B5CD9"},color:"#3573FF",get children(){return t("login.go_login")}})}})]}})]}}),e(L,{w:"$full",spacing:"$2",get children(){return[e(s,{get when(){return!F()},get children(){return e(z,{colorScheme:"primary",w:"$full",onClick:()=>{N()?j(""):(g(""),c(""))},get children(){return t("login.clear")}})}}),e(z,{w:"$full",get loading(){return re()||ne()},onClick:y,get children(){return w(()=>!!u(),!0)()?t("login.register"):t("login.login")}})]}}),e(s,{when:ie,get children(){return e(de,{w:"$full",get checked(){return O()===!0},onChange:()=>Q(!O()),children:Be})}}),e(z,{w:"$full",colorScheme:"accent",onClick:a,get children(){return t("login.use_guest")}}),e(s,{get when(){return w(()=>!u(),!0)()&&te()},get children(){return e(z,{w:"$full",get bgColor(){return Y("#FFE9FB","#491D42")()},color:"#ED73D7",onClick:V,_hover:{backgroundColor:"rgba(237, 115, 215, 0.25)"},get children(){return t("login.register")}})}}),e(S,{mt:"$2",justifyContent:"space-evenly",alignItems:"center",color:"$neutral10",w:"$full",get children(){return[e(pe,{}),e(he,{}),e(me,{}),e(s,{when:H,get children(){return e(A,{cursor:"pointer",boxSize:"$8",as:fe,p:"$0_5",onclick:oe})}})]}})]}})},get children(){return e(P,{get bgColor(){return d()},rounded:"$xl",p:"24px",w:{"@initial":"90%","@sm":"420px"},spacing:"$4",get children(){return[e(S,{alignItems:"center",justifyContent:"center",get children(){return e(ue,{color:"#3573FF",fontSize:"18px",get children(){return w(()=>!!u(),!0)()?t("login.register"):t("login.password_login")}})}}),e(qe,{borderColor:"#E9E9E9"}),e(s,{get when(){return!N()},get fallback(){return e(I,{id:"totp",name:"otp",get placeholder(){return t("login.otp-tips")},get value(){return h()},onInput:r=>j(r.currentTarget.value),onKeyDown:r=>{r.key==="Enter"&&y()}})},get children(){return[e(L,{w:"$full",border:"1px solid",borderColor:"$neutral6",borderRadius:"12px",px:"$3",spacing:"$2",alignItems:"center",_focusWithin:{borderColor:"$primary6",boxShadow:"0 0 0 1px $colors$primary6"},get children(){return[e(A,{as:Je,color:"$neutral8",boxSize:"$5"}),e(I,{name:"username",get placeholder(){return t("login.username-tips")},get value(){return l()},onInput:r=>g(r.currentTarget.value),border:"none",backgroundColor:"transparent",_focus:{border:"none",boxShadow:"none",backgroundColor:"transparent"},_hover:{border:"none",boxShadow:"none",backgroundColor:"transparent"},flex:1})]}}),e(s,{get when(){return!F()},get children(){return e(L,{w:"$full",border:"1px solid",borderColor:"$neutral6",borderRadius:"12px",px:"$3",spacing:"$2",alignItems:"center",_focusWithin:{borderColor:"$primary6",boxShadow:"0 0 0 1px $colors$primary6"},get children(){return[e(A,{as:Ze,color:"$neutral8",boxSize:"$5"}),e(I,{name:"password",get placeholder(){return t("login.password-tips")},get type(){return n()?"text":"password"},get value(){return i()},onInput:r=>c(r.currentTarget.value),onKeyDown:r=>{r.key==="Enter"&&y()},border:"none",backgroundColor:"transparent",_focus:{border:"none",boxShadow:"none",backgroundColor:"transparent"},_hover:{border:"none",boxShadow:"none",backgroundColor:"transparent"},flex:1}),e(Xe,{size:"md",variant:"ghost",get icon(){return w(()=>!!n(),!0)()?e(Ye,{}):e(Qe,{})},onClick:()=>p(!n()),color:"$neutral8",get"aria-label"(){return n()?"隐藏密码":"显示密码"},_hover:{backgroundColor:"$neutral3"}})]}})}}),e(s,{get when(){return!u()},get children(){return e(S,{px:"$1",w:"$full",fontSize:"$sm",color:"$neutral10",justifyContent:"flex-end",alignItems:"center",get children(){return e(D,{as:"a",target:"_blank",get href(){return t("login.forget_url")},get children(){return t("login.forget")}})}})}})]}}),e(P,{w:"$full",spacing:"$4",get children(){return[e(z,{w:"$full",get loading(){return re()||ne()},onClick:y,bgColor:"#3573FF",color:"white",_hover:{backgroundColor:"#2B5CD9"},_active:{backgroundColor:"#1E40AF"},h:"45px",fontSize:"16px",fontWeight:"bold",borderRadius:"12px",mt:"$2",get children(){return w(()=>!!u(),!0)()?t("login.register"):t("login.login")}}),e(L,{w:"$full",justifyContent:"space-between",alignItems:"center",get children(){return[e(s,{get when(){return te()},get children(){return e(D,{color:"#3573FF",fontSize:"14px",cursor:"pointer",onClick:V,_hover:{textDecoration:"underline",color:"#2B5CD9"},get children(){return w(()=>!!u(),!0)()?t("login.go_login"):t("login.register")}})}}),e(D,{as:"a",onClick:a,color:"#3573FF",fontSize:"14px",cursor:"pointer",_hover:{textDecoration:"underline",color:"#2B5CD9"},get children(){return t("login.use_guest")}})]}})]}}),e(S,{mt:"$2",justifyContent:"space-evenly",alignItems:"center",color:"$neutral10",w:"$full",get children(){return[e(pe,{}),e(he,{}),e(me,{}),e(s,{when:H,get children(){return e(A,{cursor:"pointer",boxSize:"$8",as:fe,p:"$0_5",onclick:oe})}})]}})]}})}})]}}),e(pt,{get useNewVersion(){return K()}})]}})};export{bt as default};
@@ -1 +1 @@
1
- import{aK as n}from"./index-b0560a31.js";function h(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 12h-2V5H4v13.385L5.763 17H12v2H6.455L2 22.5V4a1 1 0 011-1h18a1 1 0 011 1v8zm-7.855 7.071a4.004 4.004 0 010-2.142l-.975-.563 1-1.732.976.563A3.996 3.996 0 0117 14.126V13h2v1.126a3.99 3.99 0 011.854 1.071l.976-.563 1 1.732-.975.563a4.004 4.004 0 010 2.142l.975.563-1 1.732-.976-.563c-.501.51-1.14.887-1.854 1.071V23h-2v-1.126a3.996 3.996 0 01-1.854-1.071l-.976.563-1-1.732.975-.563zM18 20a2 2 0 100-4 2 2 0 000 4z"/>'},a)}function t(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M16 2l5 5v14.008a.993.993 0 01-.993.992H3.993A1 1 0 013 21.008V2.992C3 2.444 3.445 2 3.993 2H16zm-3 10h3l-4-4-4 4h3v4h2v-4z"/>'},a)}function e(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12.414 5H21a1 1 0 011 1v14a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h7.414l2 2zM13 13h3l-4-4-4 4h3v4h2v-4z"/>'},a)}function i(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.463 4.433A9.961 9.961 0 0112 2c5.523 0 10 4.477 10 10 0 2.136-.67 4.116-1.81 5.74L17 12h3A8 8 0 006.46 6.228l-.997-1.795zm13.074 15.134A9.961 9.961 0 0112 22C6.477 22 2 17.523 2 12c0-2.136.67-4.116 1.81-5.74L7 12H4a8 8 0 0013.54 5.772l.997 1.795z"/>'},a)}export{i as R,h as a,e as b,t as c};
1
+ import{aK as n}from"./index-12c59944.js";function h(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 12h-2V5H4v13.385L5.763 17H12v2H6.455L2 22.5V4a1 1 0 011-1h18a1 1 0 011 1v8zm-7.855 7.071a4.004 4.004 0 010-2.142l-.975-.563 1-1.732.976.563A3.996 3.996 0 0117 14.126V13h2v1.126a3.99 3.99 0 011.854 1.071l.976-.563 1 1.732-.975.563a4.004 4.004 0 010 2.142l.975.563-1 1.732-.976-.563c-.501.51-1.14.887-1.854 1.071V23h-2v-1.126a3.996 3.996 0 01-1.854-1.071l-.976.563-1-1.732.975-.563zM18 20a2 2 0 100-4 2 2 0 000 4z"/>'},a)}function t(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M16 2l5 5v14.008a.993.993 0 01-.993.992H3.993A1 1 0 013 21.008V2.992C3 2.444 3.445 2 3.993 2H16zm-3 10h3l-4-4-4 4h3v4h2v-4z"/>'},a)}function e(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12.414 5H21a1 1 0 011 1v14a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h7.414l2 2zM13 13h3l-4-4-4 4h3v4h2v-4z"/>'},a)}function i(a){return n({a:{viewBox:"0 0 24 24"},c:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.463 4.433A9.961 9.961 0 0112 2c5.523 0 10 4.477 10 10 0 2.136-.67 4.116-1.81 5.74L17 12h3A8 8 0 006.46 6.228l-.997-1.795zm13.074 15.134A9.961 9.961 0 0112 22C6.477 22 2 17.523 2 12c0-2.136.67-4.116 1.81-5.74L7 12H4a8 8 0 0013.54 5.772l.997 1.795z"/>'},a)}export{i as R,h as a,e as b,t as c};
@@ -0,0 +1 @@
1
+ import{C as b,bq as I,dE as te,af as S,dF as G,dG as C,dH as we,cD as ne,cE as be,cV as $,B as re,b as P,y as n,bD as ye,bE as ve,bF as ke,bG as _e,bH as Se,bI as Ce,bJ as Ee,a6 as j,bK as xe,bL as $e,bM as Oe,S as O,aw as v,N as D,R as h,Y as _,aE as U,bN as Te,ar as J,dv as V,bW as Ie,U as M,M as R,J as A,X as z,K as L,L as N,Q as F,Z as H,$ as X,a0 as Me,n as Re}from"./index-12c59944.js";import{b as Ae}from"./useTitle-4d2813bb.js";import{a as ze}from"./index-082de197.js";import{G as Le}from"./index-84fc78e3.js";import{j as Ne,k as Fe}from"./index-3049f6a6.js";import"./index-7f2d39ac.js";import"./index-96300ca1.js";import"./index-411bfb29.js";const q=e=>{if(!e)return{};try{const t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return{}}},Y=(e,t)=>{if(e.startsWith("/"))try{return we(e).test(t)}catch{return!1}return e.split(",").map(r=>r.trim().toLowerCase()).includes(t)},je=e=>{if(e===void 0)return null;switch(e){case $.VIDEO:return"video_types";case $.AUDIO:return"audio_types";case $.IMAGE:return"image_types";case $.TEXT:return"text_types";default:return null}},[De,Pe]=b({}),Ke=async()=>{const e=await I.get(`/admin/setting/list?group=${Le.PREVIEW}`);te(e,t=>{const r={};t.filter(i=>i.key.endsWith("_types")).forEach(i=>r[i.key]=i.value),Pe(r),ae(i=>i+1)})},Be=(e,t)=>{const r=je(e);return r?(De()[r]??S(r)).split(",").map(i=>i.trim().toLowerCase()).filter(Boolean).includes(t):!1},We=(e,t)=>{if(e.exts){if(e.exts==="*")return!0;if(typeof e.exts=="function")return e.exts(`x.${t}`);if(e.exts.map(r=>r.toLowerCase()).includes(t))return!0}return Be(e.type,t)},se=(e,t)=>{const r=e.toLowerCase(),i=new Set((t==null?void 0:t.disabled)??[]),o=(t==null?void 0:t.order)??[],s=new Map;o.forEach((l,d)=>s.set(l,d));const c=[];ze().forEach((l,d)=>{var f;if(!We(l,r))return;const m=`builtin:${l.key}`;c.push({row:{id:m,source:"builtin",name:l.name,builtinKey:l.key,provider:(f=l.provider)==null?void 0:f.source,enabled:!i.has(m)},defaultRank:d})});const g=q(S("iframe_previews"));let y=0;for(const l of Object.keys(g))if(Y(l,r))for(const{key:d,value:m}of G(g[l])){const f=`iframe:${d}`;c.push({row:{id:f,source:"iframe",name:d,url:m,enabled:!i.has(f)},defaultRank:1e3+y++})}const p=q(S("external_previews"));let k=0;for(const l of Object.keys(p))if(Y(l,r))for(const{key:d,value:m}of G(p[l])){const f=`external:${d}`;c.push({row:{id:f,source:"external",name:d,url:m,enabled:!i.has(f)},defaultRank:2e3+k++})}return c.sort((l,d)=>{const m=s.has(l.row.id)?s.get(l.row.id):Number.MAX_SAFE_INTEGER,f=s.has(d.row.id)?s.get(d.row.id):Number.MAX_SAFE_INTEGER;return m!==f?m-f:l.defaultRank-d.defaultRank}),c.map(l=>l.row)},[ie,ae]=b(0),oe=async()=>{const e=await I.get("/public/settings");te(e,t=>{be(t),ae(r=>r+1)})},Ge=e=>{const t={};return e.order&&e.order.length&&(t.order=e.order),e.disabled&&e.disabled.length&&(t.disabled=e.disabled),Object.keys(t).length?t:void 0},le=async e=>{const t=JSON.stringify(e);await new Promise((r,i)=>{I.post("/admin/setting/save",[{key:"preview_settings",value:t,type:"text",group:3}]).then(o=>{ne(o,()=>{oe().then(r,i)},s=>i(new Error(s)))},i)})},ce=(e,t,r)=>{const i=t.toLowerCase(),o=r({...e[i]??{}}),s=Ge(o);s?e[i]=s:delete e[i]},E=async(e,t)=>{const r={...C()};ce(r,e,t),await le(r)},Ue=(e,t,r)=>E(e,i=>{const o=new Set(i.disabled??[]);return r?o.delete(t):o.add(t),{...i,disabled:Array.from(o)}}),ue=e=>se(e,void 0).map(t=>t.id),de=(e,t)=>r=>({...r,disabled:t?[]:ue(e)}),Q=(e,t)=>E(e,de(e,t)),Je=async(e,t)=>{const r={...C()};new Set([...e.map(o=>o.toLowerCase()),...Object.keys(r)]).forEach(o=>{ce(r,o,de(o,t))}),await le(r)},Z=(e,t,r)=>E(e,i=>{const o=ue(e),s=i.order&&i.order.length?[...i.order]:[...o];for(const p of o)s.includes(p)||s.push(p);const c=s.indexOf(t);if(c===-1)return i;const g=c+r;if(g<0||g>=s.length)return i;[s[c],s[g]]=[s[g],s[c]];const y=s.length===o.length&&s.every((p,k)=>p===o[k]);return{...i,order:y?[]:s}}),K=async e=>{const t=JSON.stringify(e),r=await I.post("/admin/setting/save",[{key:"iframe_previews",value:t,type:"text",group:3}]);await new Promise((i,o)=>{ne(r,()=>{oe().then(i,o)},s=>o(new Error(s)))})},B=()=>{try{const e=S("iframe_previews");return e?JSON.parse(e):{}}catch{return{}}},T=(e,t)=>{for(const r of Object.keys(e)){if(r===t||r.startsWith("/"))continue;const i=r.split(",").map(c=>c.trim().toLowerCase()).filter(Boolean);if(!i.includes(t))continue;const o=i.filter(c=>c!==t),s=e[r];delete e[r],o.length&&(e[o.join(",")]={...s}),e[t]={...e[t]??{},...s}}},Ve=async(e,t,r,i)=>{const o=B();T(o,e);const s=o[e]??{};i&&i!==t&&delete s[i],s[t]=r,o[e]=s,await K(o)},He=async(e,t)=>{const r=B();T(r,e),r[e]&&(delete r[e][t],Object.keys(r[e]).length===0&&delete r[e]),await K(r),await E(e,i=>{const o=`iframe:${t}`;return{order:(i.order??[]).filter(s=>s!==o),disabled:(i.disabled??[]).filter(s=>s!==o)}})},Xe=async(e,t)=>{if(t.length===0)return;const r=B();T(r,e);const i=r[e]??{};for(const s of t)s!==e&&(T(r,s),r[s]={...r[s]??{},...i});await K(r);const o=C()[e];if(o)for(const s of t)s!==e&&await E(s,()=>({order:o.order?[...o.order]:void 0,disabled:o.disabled?[...o.disabled]:void 0}))},qe=["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","md","html","json","log","srt","ass","lrc","vtt","jpg","jpeg","png","gif","webp","svg","mp3","flac","wav","mp4","mkv","webm","mov","epub","zip","rar","7z","ipa","plist"],ee=e=>{if(!e)return[];try{const t=JSON.parse(e);if(!t||typeof t!="object")return[];const r=[];for(const i of Object.keys(t))i.startsWith("/")||i.split(",").forEach(o=>{const s=o.trim().toLowerCase();s&&r.push(s)});return r}catch{return[]}},ge=e=>re(()=>{const t=new Set(qe);return ee(S("iframe_previews")).forEach(r=>t.add(r)),ee(S("external_previews")).forEach(r=>t.add(r)),ie(),Object.keys(C()).forEach(r=>t.add(r)),e().forEach(r=>t.add(r.toLowerCase())),Array.from(t).sort()}),Ye=e=>{const t=P(),r=ge(e.extraKeys),[i,o]=b(!1),[s,c]=b("");return n(v,{spacing:"$2",w:"$full",get children(){return[n(ye,{get value(){return e.value},get onChange(){return e.onChange},get children(){return[n(ve,{w:"$48",get children(){return[n(ke,{get children(){return t("global.choose")}}),n(_e,{}),n(Se,{})]}}),n(Ce,{get children(){return n(Ee,{get children(){return n(j,{get each(){return r()},children:g=>n(xe,{value:g,get children(){return[n($e,{children:g}),n(Oe,{})]}})})}})}})]}}),n(O,{get when(){return!i()},get fallback(){return n(v,{spacing:"$1",get children(){return[n(D,{size:"sm",w:"$32",placeholder:"ext",get value(){return s()},onInput:g=>c(g.currentTarget.value)}),n(h,{size:"sm",onClick:()=>{const g=s().trim().replace(/^\./,"").toLowerCase();g&&e.onAdd(g),o(!1),c("")},get children(){return t("global.ok")}}),n(h,{size:"sm",variant:"ghost",onClick:()=>o(!1),get children(){return t("global.cancel")}})]}})},get children(){return n(h,{size:"sm",onClick:()=>o(!0),get children(){return t("preview_settings.add_extension")}})}})]}})},Qe=(e,t)=>e.source==="builtin"&&e.builtinKey?t(`preview_settings.builtin.${e.builtinKey}`,void 0,e.name):e.name,Ze=e=>{const t=P();return n(v,{w:"$full",spacing:"$3",p:"$3",rounded:"$md",bg:"$neutral2",alignItems:"start",get children(){return[n(_,{spacing:"$1",get children(){return[n(h,{size:"xs",variant:"ghost",get disabled(){return e.isFirst},get onClick(){return e.onMoveUp},"aria-label":"move up",get children(){return n(U,{as:Ne})}}),n(h,{size:"xs",variant:"ghost",get disabled(){return e.isLast},get onClick(){return e.onMoveDown},"aria-label":"move down",get children(){return n(U,{as:Fe})}})]}}),n(Te,{get checked(){return e.row.enabled},onChange:r=>e.onToggle(r.currentTarget.checked)}),n(_,{alignItems:"start",spacing:"$1",flex:"1",get children(){return[n(v,{spacing:"$2",get children(){return[n(J,{fontWeight:"$medium",get children(){return Qe(e.row,t)}}),n(V,{size:"sm",get children(){return t(`preview_settings.source.${e.row.source}`)}}),n(O,{get when(){return e.row.provider},get children(){return n(V,{size:"sm",colorScheme:"info",get children(){return e.row.provider}})}})]}}),n(O,{get when(){return e.row.url},get children(){return n(J,{size:"sm",color:"$neutral11",wordBreak:"break-all",get children(){return e.row.url}})}}),n(O,{get when(){return e.row.source==="iframe"},get children(){return n(v,{spacing:"$2",mt:"$1",get children(){return[n(h,{size:"xs",get onClick(){return e.onEdit},get children(){return t("global.edit")}}),n(h,{size:"xs",colorScheme:"danger",variant:"outline",get onClick(){return e.onDelete},get children(){return t("global.delete")}})]}})}})]}})]}})},lt=()=>{const e=P();Ae("manage.sidemenu.preview-settings");const[t,r]=b("pdf"),[i,o]=b([]),[s,c]=b(null),[g,y]=b(!1),[p,k]=b(new Set),[l,d]=b(null),m=ge(i),f=a=>{const u=new Set(p());u.has(a)?u.delete(a):u.add(a),k(u)},W=re(()=>(ie(),se(t(),C()[t()]))),w=a=>Re.error(a instanceof Error?a.message:String(a));Ke().catch(w);const he=()=>c({name:"",url:""}),fe=(a,u)=>c({name:a,url:u??"",originalName:a}),me=async()=>{const a=s();if(!a)return;const u=a.name.trim(),x=a.url.trim();if(!(!u||!x))try{await Ve(t(),u,x,a.originalName),c(null)}catch(pe){w(pe)}};return n(_,{w:"$full",alignItems:"stretch",spacing:"$4",get children(){return[n(Ie,{size:"lg",get children(){return e("manage.sidemenu.preview-settings")}}),n(v,{w:"$full",spacing:"$2",alignItems:"center",get children(){return[n(Ye,{get value(){return t()},onChange:r,extraKeys:i,onAdd:a=>{i().includes(a)||o([...i(),a]),r(a)}}),n(h,{size:"sm",variant:"outline",onClick:()=>{k(new Set),y(!0)},get children(){return e("preview_settings.copy_to_extensions")}}),n(h,{size:"sm",variant:"outline",colorScheme:"danger",onClick:()=>d("disable"),get children(){return e("preview_settings.disable_all")}}),n(h,{size:"sm",variant:"outline",onClick:()=>d("enable"),get children(){return e("preview_settings.enable_all")}})]}}),n(_,{w:"$full",alignItems:"stretch",spacing:"$2",get children(){return n(j,{get each(){return W()},children:(a,u)=>n(Ze,{row:a,onToggle:x=>Ue(t(),a.id,x).catch(w),onMoveUp:()=>Z(t(),a.id,-1).catch(w),onMoveDown:()=>Z(t(),a.id,1).catch(w),onEdit:()=>fe(a.name,a.url),onDelete:()=>He(t(),a.name).catch(w),get isFirst(){return u()===0},get isLast(){return u()===W().length-1}})})}}),n(v,{spacing:"$2",get children(){return[n(h,{size:"sm",onClick:he,get children(){return e("preview_settings.add_iframe")}}),n(h,{size:"sm",variant:"outline",onClick:()=>Q(t(),!1).catch(w),get children(){return e("preview_settings.disable_current")}}),n(h,{size:"sm",variant:"outline",onClick:()=>Q(t(),!0).catch(w),get children(){return e("preview_settings.enable_current")}})]}}),n(M,{get opened(){return!!l()},onClose:()=>d(null),get children(){return[n(R,{}),n(A,{get children(){return[n(z,{}),n(L,{get children(){return e(l()==="disable"?"preview_settings.disable_all":"preview_settings.enable_all")}}),n(N,{get children(){return e(l()==="disable"?"preview_settings.disable_all_confirm":"preview_settings.enable_all_confirm")}}),n(F,{get children(){return n(h,{get colorScheme(){return l()==="disable"?"danger":"primary"},onClick:async()=>{const a=l();if(a)try{await Je(m(),a==="enable"),d(null)}catch(u){w(u)}},get children(){return e("global.ok")}})}})]}})]}}),n(M,{get opened(){return!!s()},onClose:()=>c(null),get children(){return[n(R,{}),n(A,{get children(){return[n(z,{}),n(L,{get children(){return e("preview_settings.add_iframe")}}),n(N,{get children(){return n(_,{alignItems:"stretch",spacing:"$3",get children(){return[n(H,{get children(){return[n(X,{children:"Name"}),n(D,{get value(){var a;return((a=s())==null?void 0:a.name)??""},onInput:a=>{const u=s();u&&c({...u,name:a.currentTarget.value})}})]}}),n(H,{get children(){return[n(X,{children:"URL"}),n(D,{get value(){var a;return((a=s())==null?void 0:a.url)??""},onInput:a=>{const u=s();u&&c({...u,url:a.currentTarget.value})}})]}})]}})}}),n(F,{get children(){return n(h,{onClick:me,get children(){return e("global.save")}})}})]}})]}}),n(M,{get opened(){return g()},onClose:()=>y(!1),get children(){return[n(R,{}),n(A,{get children(){return[n(z,{}),n(L,{get children(){return e("preview_settings.copy_to_extensions")}}),n(N,{get children(){return n(_,{alignItems:"start",spacing:"$1",maxH:"50vh",overflowY:"auto",get children(){return n(j,{get each(){return m().filter(a=>a!==t())},children:a=>n(Me,{get checked(){return p().has(a)},onChange:()=>f(a),children:a})})}})}}),n(F,{get children(){return n(h,{onClick:async()=>{const a=Array.from(p());if(a.length===0){y(!1);return}try{await Xe(t(),a),y(!1)}catch(u){w(u)}},get children(){return e("global.ok")}})}})]}})]}})]}})};export{lt as default};
@@ -1 +1 @@
1
- import{aK as e}from"./index-b0560a31.js";function c(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 3c-4.963 0-9 4.038-9 9s4.037 9 9 9 9-4.038 9-9-4.037-9-9-9zm0 16c-3.859 0-7-3.14-7-7s3.141-7 7-7 7 3.14 7 7-3.141 7-7 7zm.707-7l2.646-2.646a.502.502 0 000-.707.502.502 0 00-.707 0L12 11.293 9.354 8.646a.5.5 0 00-.707.707L11.293 12l-2.646 2.646a.5.5 0 00.707.708L12 12.707l2.646 2.646a.5.5 0 10.708-.706L12.707 12z"/>'},a)}function n(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 4c-4.419 0-8 3.582-8 8s3.581 8 8 8 8-3.582 8-8-3.581-8-8-8zm3.707 10.293a.999.999 0 11-1.414 1.414L12 13.414l-2.293 2.293a.997.997 0 01-1.414 0 .999.999 0 010-1.414L10.586 12 8.293 9.707a.999.999 0 111.414-1.414L12 10.586l2.293-2.293a.999.999 0 111.414 1.414L13.414 12l2.293 2.293z"/>'},a)}function s(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M19 17H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2z"/>'},a)}function t(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M21.171 15.398l-5.912-9.854C14.483 4.251 13.296 3.511 12 3.511s-2.483.74-3.259 2.031l-5.912 9.856c-.786 1.309-.872 2.705-.235 3.83C3.23 20.354 4.472 21 6 21h12c1.528 0 2.77-.646 3.406-1.771.637-1.125.551-2.521-.235-3.831zM12 17.549c-.854 0-1.55-.695-1.55-1.549 0-.855.695-1.551 1.55-1.551s1.55.696 1.55 1.551c0 .854-.696 1.549-1.55 1.549zm1.633-7.424c-.011.031-1.401 3.468-1.401 3.468-.038.094-.13.156-.231.156s-.193-.062-.231-.156l-1.391-3.438a1.776 1.776 0 01-.129-.655c0-.965.785-1.75 1.75-1.75a1.752 1.752 0 011.633 2.375z"/>'},a)}export{c as T,s as a,n as b,t as c};
1
+ import{aK as e}from"./index-12c59944.js";function c(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 3c-4.963 0-9 4.038-9 9s4.037 9 9 9 9-4.038 9-9-4.037-9-9-9zm0 16c-3.859 0-7-3.14-7-7s3.141-7 7-7 7 3.14 7 7-3.141 7-7 7zm.707-7l2.646-2.646a.502.502 0 000-.707.502.502 0 00-.707 0L12 11.293 9.354 8.646a.5.5 0 00-.707.707L11.293 12l-2.646 2.646a.5.5 0 00.707.708L12 12.707l2.646 2.646a.5.5 0 10.708-.706L12.707 12z"/>'},a)}function n(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 4c-4.419 0-8 3.582-8 8s3.581 8 8 8 8-3.582 8-8-3.581-8-8-8zm3.707 10.293a.999.999 0 11-1.414 1.414L12 13.414l-2.293 2.293a.997.997 0 01-1.414 0 .999.999 0 010-1.414L10.586 12 8.293 9.707a.999.999 0 111.414-1.414L12 10.586l2.293-2.293a.999.999 0 111.414 1.414L13.414 12l2.293 2.293z"/>'},a)}function s(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M19 17H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2z"/>'},a)}function t(a){return e({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M21.171 15.398l-5.912-9.854C14.483 4.251 13.296 3.511 12 3.511s-2.483.74-3.259 2.031l-5.912 9.856c-.786 1.309-.872 2.705-.235 3.83C3.23 20.354 4.472 21 6 21h12c1.528 0 2.77-.646 3.406-1.771.637-1.125.551-2.521-.235-3.831zM12 17.549c-.854 0-1.55-.695-1.55-1.549 0-.855.695-1.551 1.55-1.551s1.55.696 1.55 1.551c0 .854-.696 1.549-1.55 1.549zm1.633-7.424c-.011.031-1.401 3.468-1.401 3.468-.038.094-.13.156-.231.156s-.193-.062-.231-.156l-1.391-3.438a1.776 1.776 0 01-.129-.655c0-.965.785-1.75 1.75-1.75a1.752 1.752 0 011.633 2.375z"/>'},a)}export{c as T,s as a,n as b,t as c};
@@ -0,0 +1 @@
1
+ import{y as t,a6 as y,Y as U,B as k,ay as p,az as f,am as $,al as z,d as L,b as h,ab as Y,ac as A,aa as B,aw as g,S as v,aG as I,aE as R,bW as E,C as H,bX as D,av as d,aK as j,ag as n,ah as o,bY as q,bZ as r,b_ as X,b$ as J,c0 as K,c1 as O,c2 as Z,c3 as w,c4 as C,bR as Q,bS as G,c5 as ee,c6 as S,c7 as te,c8 as ne,b5 as oe,c9 as re,ca as ie,cb as ae,cc as se,cd as ce,aF as le,ce as me,cf as ue,cg as ge,ch as de,aA as _e,aW as he,ba as Ee,bq as pe,ai as x,ci as V,cj as fe,bB as Ae,bt as ve,bu as Ie,bv as Re,bw as Le,bx as De,aJ as T,bz as M,bA as N,a3 as Te,ck as be,n as Pe,cl as $e,cm as Oe,cn as we}from"./index-12c59944.js";import{b as Ce,a as Se}from"./useTitle-4d2813bb.js";import{a as Ve}from"./index-7f2d39ac.js";import{e as ye,f as ke,g as Be}from"./index-96300ca1.js";import{A as xe,f as Me,b as Ne,h as Fe,e as We}from"./index-3049f6a6.js";import{a as Ue}from"./index-411bfb29.js";var c=(e=>(e[e.SINGLE=0]="SINGLE",e[e.SITE=1]="SITE",e[e.STYLE=2]="STYLE",e[e.PREVIEW=3]="PREVIEW",e[e.GLOBAL=4]="GLOBAL",e[e.ARIA2=5]="ARIA2",e[e.INDEX=6]="INDEX",e[e.SSO=7]="SSO",e[e.LDAP=8]="LDAP",e[e.S3=9]="S3",e[e.FTP=10]="FTP",e[e.TRAFFIC=11]="TRAFFIC",e[e.FRP=12]="FRP",e))(c||{}),ze=(e=>(e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.READONLY=2]="READONLY",e[e.DEPRECATED=3]="DEPRECATED",e))(ze||{});const Ye=e=>{const i=k(()=>!(e.role!==void 0&&!p.hasAccess(f(),e.role)||e.children&&!e.children.some(s=>s.role!==void 0?p.hasAccess(f(),s.role):!0)));return t(z,{get fallback(){return t(He,e)},get children(){return[t($,{get when(){return!i()},children:null}),t($,{get when(){return e.children},get children(){return t(je,e)}})]}})},He=e=>{const{pathname:i}=L(),a=h(),s=()=>i()===e.to;return t(xe,{get cancelBase(){return e.to.startsWith("http")},display:"flex",as:Y,get href(){return e.to},onClick:m=>{var _;if(F(),e.refresh){(_=m.stopPropagation)==null||_.call(m);let u=e.to;u.startsWith("http")||(u=A(u)),window.open(u,"_self")}},w:"$full",alignItems:"center",get _hover(){return{bgColor:s()?"$info4":B(),textDecoration:"none"}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get bgColor(){return s()?"$info4":""},get color(){return s()?"$info11":""},get external(){return e.external},get children(){return t(g,{spacing:"$2",get children(){return[t(v,{get when(){return e.icon},get children(){return I(()=>typeof e.icon=="function",!0)()?e.icon({active:s()}):t(R,{get as(){return e.icon}})}}),t(E,{get children(){return a(e.title)}})]}})}})},je=e=>{const{pathname:i}=L(),[a,s]=H(i().includes(e.to)),m=h(),_=k(()=>e.children?e.children.some(u=>u.role!==void 0?p.hasAccess(f(),u.role):!0):!1);return t(d,{w:"$full",get children(){return[t(D,{justifyContent:"space-between",onClick:()=>{s(!a())},w:"$full",alignItems:"center",get _hover(){return{bgColor:B()}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get children(){return[t(g,{spacing:"$2",get children(){return[t(v,{get when(){return e.icon},get children(){return I(()=>typeof e.icon=="function",!0)()?e.icon({active:!1}):t(R,{get as(){return e.icon}})}}),t(E,{get children(){return m(e.title)}})]}}),t(R,{as:ye,get transform(){return a()?"rotate(90deg)":"none"},transition:"transform 0.2s"})]}}),t(v,{get when(){return I(()=>!!a(),!0)()&&_()},get children(){return t(d,{pl:"$2",get children(){return t(b,{get items(){return e.children}})}})}})]}})},b=e=>t(U,{p:"$2",w:"$full",color:"$neutral11",spacing:"$1",get children(){return t(y,{get each(){return e.items},children:i=>t(Ye,i)})}});function qe(e){return j({a:{viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 015.25 7H4v4a1 1 0 001 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0114.25 16h-3.5A1.75 1.75 0 019 14.25v-.75H5A2.5 2.5 0 012.5 11V7h-.75A1.75 1.75 0 010 5.25v-3.5zm1.75-.25a.25.25 0 00-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 00.25-.25v-3.5a.25.25 0 00-.25-.25h-3.5zm9 9a.25.25 0 00-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 00.25-.25v-3.5a.25.25 0 00-.25-.25h-3.5z"/>'},e)}const Xe=_e('<img alt="search">'),l=n(()=>o(()=>import("./Common-e402b9dd.js"),["assets/Common-e402b9dd.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/SettingItem-b751b2c5.js","assets/item_type-32dc6fdf.js","assets/index-7f2d39ac.js","assets/ResponsiveGrid-d3a65619.js","assets/index-96300ca1.js","assets/index-3049f6a6.js","assets/index-411bfb29.js"])),P=[{title:"manage.sidemenu.profile",icon:q,to:"/@manage",role:r.GUEST,component:n(()=>o(()=>import("./Profile-9a558e54.js"),["assets/Profile-9a558e54.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/index-3049f6a6.js","assets/webauthn-json.browser-ponyfill-f2f06d6e.js"]))},{title:"manage.sidemenu.settings",icon:X,to:"/@manage/settings",role:r.ADMIN,children:[{title:"manage.sidemenu.site",icon:J,to:"/@manage/settings/site",component:()=>t(l,{get group(){return c.SITE}})},{title:"manage.sidemenu.style",icon:K,to:"/@manage/settings/style",component:()=>t(l,{get group(){return c.STYLE}})},{title:"manage.sidemenu.preview",icon:O,to:"/@manage/settings/preview",component:()=>t(l,{get group(){return c.PREVIEW}})},{title:"manage.sidemenu.preview-settings",icon:O,to:"/@manage/settings/preview-settings",component:n(()=>o(()=>import("./index-74ad17be.js"),["assets/index-74ad17be.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/index-082de197.js","assets/index-3049f6a6.js","assets/index-7f2d39ac.js","assets/index-96300ca1.js","assets/index-411bfb29.js"]))},{title:"manage.sidemenu.global",icon:Z,to:"/@manage/settings/global",component:()=>t(l,{get group(){return c.GLOBAL}})},{title:"manage.sidemenu.sso",icon:w,to:"/@manage/settings/sso",component:()=>t(l,{get group(){return c.SSO}})},{title:"manage.sidemenu.ldap",icon:w,to:"/@manage/settings/ldap",component:()=>t(l,{get group(){return c.LDAP}})},{title:"manage.sidemenu.s3",icon:C,to:"/@manage/settings/s3",component:n(()=>o(()=>import("./S3-f66fd154.js"),["assets/S3-f66fd154.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/SettingItem-b751b2c5.js","assets/item_type-32dc6fdf.js","assets/index-7f2d39ac.js","assets/ResponsiveGrid-d3a65619.js","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js","assets/index-22787204.js","assets/_commonjs-dynamic-modules-302442b1.js","assets/index-3049f6a6.js","assets/index-411bfb29.js"]))},{title:"manage.sidemenu.tag",icon:e=>(()=>{const i=Xe.cloneNode(!0);return Q(a=>{const s=e.active?A("/images/tag-active.png"):A("/images/tag-gray.png"),m={width:"1.1em",height:"1.1em",...e.style||{}};return s!==a._v$&&G(i,"src",a._v$=s),a._v$2=ee(i,m,a._v$2),a},{_v$:void 0,_v$2:void 0}),i})(),to:"/@manage/settings/tag",component:n(()=>o(()=>import("./Tag-b900e4c6.js"),["assets/Tag-b900e4c6.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/color-a58de010.js","assets/DeletePopover-c62fd1ab.js","assets/AddLabelDialog-ca94e389.js"]))},{title:"manage.sidemenu.ftp",icon:S,to:"/@manage/settings/ftp",component:()=>t(l,{get group(){return c.FTP}})},{title:"manage.sidemenu.frp",icon:S,to:"/@manage/settings/frp",component:n(()=>o(()=>import("./Frp-93ee9c59.js"),["assets/Frp-93ee9c59.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/ResponsiveGrid-d3a65619.js","assets/SettingItem-b751b2c5.js","assets/item_type-32dc6fdf.js","assets/index-7f2d39ac.js","assets/index-96300ca1.js","assets/index-3049f6a6.js","assets/index-411bfb29.js"]))},{title:"manage.sidemenu.traffic",icon:te,to:"/@manage/settings/traffic",component:()=>t(l,{get group(){return c.TRAFFIC}})},{title:"manage.sidemenu.other",icon:ne,to:"/@manage/settings/other",component:n(()=>o(()=>import("./Other-5baa22d7.js"),["assets/Other-5baa22d7.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js","assets/useTitle-4d2813bb.js","assets/SettingItem-b751b2c5.js","assets/item_type-32dc6fdf.js","assets/index-7f2d39ac.js","assets/index-3049f6a6.js","assets/index-411bfb29.js"]))}]},{title:"manage.sidemenu.tasks",icon:qe,to:"/@manage/tasks",role:r.GENERAL,children:[{title:"manage.sidemenu.offline_download",icon:oe,to:"/@manage/tasks/offline_download",role:r.GENERAL,component:n(()=>o(()=>import("./offline_download-8e72d56b.js"),["assets/offline_download-8e72d56b.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js","assets/helper-980c04cb.js"]))},{title:"manage.sidemenu.upload",icon:re,to:"/@manage/tasks/upload",role:r.GENERAL,component:n(()=>o(()=>import("./Upload-a0c974b6.js"),["assets/Upload-a0c974b6.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js","assets/helper-980c04cb.js"]))},{title:"manage.sidemenu.copy",icon:ie,to:"/@manage/tasks/copy",role:r.GENERAL,component:n(()=>o(()=>import("./Copy-05523a06.js"),["assets/Copy-05523a06.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js","assets/helper-980c04cb.js"]))},{title:"manage.sidemenu.strm_generate",icon:Me,to:"/@manage/tasks/strm_generate",role:r.ADMIN,component:n(()=>o(()=>import("./StrmGenerate-613bc654.js"),["assets/StrmGenerate-613bc654.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js"]))},{title:"manage.sidemenu.decompress",icon:Ne,to:"/@manage/tasks/decompress",role:r.GENERAL,component:n(()=>o(()=>import("./Decompress-351ffa27.js"),["assets/Decompress-351ffa27.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js","assets/helper-980c04cb.js"]))},{title:"manage.sidemenu.s3_transition",icon:C,to:"/@manage/tasks/s3_transition",role:r.GENERAL,component:n(()=>o(()=>import("./S3Transition-5e893c2d.js"),["assets/S3Transition-5e893c2d.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/storage-class-1ac53f89.js","assets/useTitle-4d2813bb.js","assets/Tasks-9e93bf9b.js","assets/Paginator-3ef3d0c6.js","assets/index-3049f6a6.js","assets/Task-9716a5eb.js"]))}]},{title:"manage.sidemenu.role",icon:e=>t(ae,{get style(){return{width:"18px",height:"18px",...e.style||{}}}}),to:"/@manage/permissions/role",role:r.ADMIN,component:n(()=>o(()=>import("./Role-f32728ce.js"),["assets/Role-f32728ce.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/DeletePopover-c62fd1ab.js"]))},{title:"manage.sidemenu.users",icon:se,to:"/@manage/users",role:r.ADMIN,component:n(()=>o(()=>import("./Users-c4a9f913.js"),["assets/Users-c4a9f913.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/DeletePopover-c62fd1ab.js","assets/Wether-bc06124c.js"]))},{title:"manage.sidemenu.session",icon:e=>t(ke,{get style(){return{width:"18px",height:"18px",...e.style||{}}}}),to:"/@manage/session",role:r.GENERAL,children:[{title:"manage.sidemenu.my_session",icon:e=>t(Fe,{get style(){return{width:"19px",height:"19px",...e.style||{}}}}),to:"/@manage/session/my_session",role:r.GENERAL,component:n(()=>o(()=>import("./mySession-d4cf7cd7.js"),["assets/mySession-d4cf7cd7.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/ua-parser-5a8f43f2.js","assets/DeletePopover-c62fd1ab.js"]))},{title:"manage.sidemenu.session_management",role:r.ADMIN,icon:e=>t(Ue,{get style(){return{width:"18px",height:"18px",...e.style||{}}}}),to:"/@manage/session/management",component:n(()=>o(()=>import("./management-34fb56b5.js"),["assets/management-34fb56b5.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/DeletePopover-c62fd1ab.js","assets/ua-parser-5a8f43f2.js"]))}]},{title:"manage.sidemenu.shares",icon:We,to:"/@manage/shares",role:r.GENERAL,component:n(()=>o(()=>import("./shares-26647360.js"),["assets/shares-26647360.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/DeletePopover-c62fd1ab.js","assets/useTitle-4d2813bb.js"]))},{title:"manage.sidemenu.storages",icon:Be,to:"/@manage/storages",role:r.ADMIN,component:n(()=>o(()=>import("./Storages-b3d15775.js"),["assets/Storages-b3d15775.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/DeletePopover-c62fd1ab.js","assets/StrmGenerate-1f5e044e.js"]))},{title:"manage.sidemenu.metas",icon:ce,to:"/@manage/metas",role:r.ADMIN,component:n(()=>o(()=>import("./Metas-e9650e65.js"),["assets/Metas-e9650e65.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/DeletePopover-c62fd1ab.js","assets/Wether-bc06124c.js"]))},{title:"manage.sidemenu.indexes",icon:le,to:"/@manage/indexes",role:r.ADMIN,component:n(()=>o(()=>import("./indexes-ff70bb55.js"),["assets/indexes-ff70bb55.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/Common-e402b9dd.js","assets/useTitle-4d2813bb.js","assets/SettingItem-b751b2c5.js","assets/item_type-32dc6fdf.js","assets/index-7f2d39ac.js","assets/ResponsiveGrid-d3a65619.js","assets/index-96300ca1.js","assets/index-3049f6a6.js","assets/index-411bfb29.js"]))},{title:"manage.sidemenu.backup-restore",to:"/@manage/backup-restore",icon:me,role:r.ADMIN,component:n(()=>o(()=>import("./backup-restore-639abd09.js"),["assets/backup-restore-639abd09.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js","assets/index-22787204.js","assets/_commonjs-dynamic-modules-302442b1.js"]))},{title:"manage.sidemenu.about",icon:ue,to:"/@manage/about",role:r.GUEST,component:n(()=>o(()=>import("./About-784ed148.js"),["assets/About-784ed148.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/useTitle-4d2813bb.js"]))},{title:"manage.sidemenu.docs",icon:ge,to:"https://alist.nn.ci",role:r.GUEST,external:!0},{title:"manage.sidemenu.home",icon:de,to:"/",role:r.GUEST,refresh:!0}],{isOpen:Je,onOpen:Ke,onClose:F}=he(),[Ze,Qe]=Ee(()=>pe.get("/auth/logout")),Ge=()=>{const e=h(),{to:i}=L(),a=async()=>{Te(await Qe(),()=>{be(),Pe.success(e("manage.logout_success")),i(`/@login?redirect=${encodeURIComponent(location.pathname)}`)})};return t(d,{as:"header",position:"sticky",top:"0",left:"0",right:"0",zIndex:"$sticky",height:"64px",flexShrink:0,shadow:"$md",p:"$4",get bgColor(){return x("$background","$neutral2")()},get children(){return[t(D,{alignItems:"center",justifyContent:"space-between",h:"$full",get children(){return[t(g,{spacing:"$2",get children(){return[t(V,{"aria-label":"menu",get icon(){return t(Ve,{})},display:{"@sm":"none"},onClick:Ke,size:"sm"}),t(E,{fontSize:"$xl",color:"$info9",cursor:"pointer",onClick:()=>{i("/@manage")},get children(){return e("manage.title")}})]}}),t(g,{spacing:"$1",get children(){return t(V,{"aria-label":"logout",get icon(){return t(fe,{})},get loading(){return Ze()},onClick:a,size:"sm"})}})]}}),t(Ae,{get opened(){return Je()},placement:"left",onClose:F,get children(){return[t(ve,{}),t(Ie,{get children(){return[t(Re,{}),t(Le,{color:"$info9",get children(){return e("manage.title")}}),t(De,{get children(){return[t(b,{items:P}),t(T,{get children(){return t(g,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[t(M,{}),t(N,{})]}})}})]}})]}})]}})]}})},et=[{to:"/storages/add",component:n(()=>o(()=>import("./AddOrEdit-864cb8d9.js"),["assets/AddOrEdit-864cb8d9.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/item_type-32dc6fdf.js","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js","assets/ResponsiveGrid-d3a65619.js"]))},{to:"/storages/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-864cb8d9.js"),["assets/AddOrEdit-864cb8d9.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/item_type-32dc6fdf.js","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js","assets/ResponsiveGrid-d3a65619.js"]))},{to:"/users/add",component:n(()=>o(()=>import("./AddOrEdit-323c7808.js"),["assets/AddOrEdit-323c7808.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))},{to:"/users/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-323c7808.js"),["assets/AddOrEdit-323c7808.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))},{to:"/metas/add",component:n(()=>o(()=>import("./AddOrEdit-2cef42b5.js"),["assets/AddOrEdit-2cef42b5.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js"]))},{to:"/metas/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-2cef42b5.js"),["assets/AddOrEdit-2cef42b5.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/FolderTree-6a14dd8b.js","assets/index-96300ca1.js"]))},{to:"/permissions/add",component:n(()=>o(()=>import("./AddOrEdit-e4a83ecd.js"),["assets/AddOrEdit-e4a83ecd.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/index-96300ca1.js"]))},{to:"/permissions/config/edit/:id",component:n(()=>o(()=>import("./PermissionForm-52d65769.js"),["assets/PermissionForm-52d65769.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))},{to:"/permissions/config/add",component:n(()=>o(()=>import("./PermissionForm-52d65769.js"),["assets/PermissionForm-52d65769.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))},{to:"/permissions/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-e4a83ecd.js"),["assets/AddOrEdit-e4a83ecd.js","assets/index-12c59944.js","assets/index-b206f97b.css","assets/index-96300ca1.js"]))},{to:"/2fa",component:n(()=>o(()=>import("./2fa-a6ce8519.js"),["assets/2fa-a6ce8519.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))},{to:"/messenger",component:n(()=>o(()=>import("./Messenger-0560ffd9.js"),["assets/Messenger-0560ffd9.js","assets/index-12c59944.js","assets/index-b206f97b.css"]))}],tt=e=>(Ce(e.title),t(T,{h:"$full",get children(){return t(E,{get children(){return e.title}})}})),W=(e,i=[])=>(e.forEach(a=>{a.children?W(a.children,i):i.push({to:$e(a.to,"/@manage"),component:a.component||(()=>t(tt,{get title(){return a.title},get to(){return a.to||"empty"}}))})}),i),nt=W(P).concat(et),ot=()=>{const e=h();return Se(()=>e("manage.title")),t(d,{css:{"--hope-colors-background":"var(--hope-colors-loContrast)"},bgColor:"$background",w:"$full",get children(){return[t(Ge,{}),t(D,{w:"$full",h:"calc(100vh - 64px)",get children(){return[t(d,{display:{"@initial":"none","@sm":"block"},w:"$56",h:"$full",shadow:"$md",get bgColor(){return x("$background","$neutral2")()},overflowY:"auto",get children(){return[t(b,{items:P}),t(T,{get children(){return t(g,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[t(M,{}),t(N,{})]}})}})]}}),t(d,{w:{"@initial":"$full","@sm":"calc(100% - 14rem)"},p:"$4",overflowY:"auto",get children(){return t(Oe,{get children(){return t(y,{each:nt,children:i=>t(we,{get path(){return i.to},get component(){return i.component}})})}})}})]}})]}})},mt=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));export{ze as F,c as G,mt as i};
@@ -1,4 +1,4 @@
1
- import{f as d,m as g,t as q,s as D,p as b}from"./index-b0560a31.js";const v={tokenize:P,concrete:!0},C={tokenize:I,partial:!0};function P(t,u,l){const i=this,n=i.events[i.events.length-1],m=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let o=0;return c;function c(e){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),r(e)}function r(e){return e===36?(t.consume(e),o++,r):o<2?l(e):(t.exit("mathFlowFenceSequence"),d(t,h,"whitespace")(e))}function h(e){return e===null||g(e)?F(e):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),s(e))}function s(e){return e===null||g(e)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),F(e)):e===36?l(e):(t.consume(e),s)}function F(e){return t.exit("mathFlowFence"),i.interrupt?u(e):t.attempt(C,p,M)(e)}function p(e){return t.attempt({tokenize:z,partial:!0},M,x)(e)}function x(e){return(m?d(t,w,"linePrefix",m+1):w)(e)}function w(e){return e===null?M(e):g(e)?t.attempt(C,p,M)(e):(t.enter("mathFlowValue"),a(e))}function a(e){return e===null||g(e)?(t.exit("mathFlowValue"),w(e)):(t.consume(e),a)}function M(e){return t.exit("mathFlow"),u(e)}function z(e,S,y){let T=0;return d(e,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function $(f){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),k(f)}function k(f){return f===36?(T++,e.consume(f),k):T<o?y(f):(e.exit("mathFlowFenceSequence"),d(e,E,"whitespace")(f))}function E(f){return f===null||g(f)?(e.exit("mathFlowFence"),S(f)):y(f)}}}function I(t,u,l){const i=this;return n;function n(o){return o===null?u(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),m)}function m(o){return i.parser.lazy[i.now().line]?l(o):u(o)}}function N(t){let l=(t||{}).singleDollarTextMath;return l==null&&(l=!0),{tokenize:i,resolve:O,previous:L};function i(n,m,o){let c=0,r,h;return s;function s(a){return n.enter("mathText"),n.enter("mathTextSequence"),F(a)}function F(a){return a===36?(n.consume(a),c++,F):c<2&&!l?o(a):(n.exit("mathTextSequence"),p(a))}function p(a){return a===null?o(a):a===36?(h=n.enter("mathTextSequence"),r=0,w(a)):a===32?(n.enter("space"),n.consume(a),n.exit("space"),p):g(a)?(n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),p):(n.enter("mathTextData"),x(a))}function x(a){return a===null||a===32||a===36||g(a)?(n.exit("mathTextData"),p(a)):(n.consume(a),x)}function w(a){return a===36?(n.consume(a),r++,w):r===c?(n.exit("mathTextSequence"),n.exit("mathText"),m(a)):(h.type="mathTextData",x(a))}}}function O(t){let u=t.length-4,l=3,i,n;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[u][1].type==="lineEnding"||t[u][1].type==="space")){for(i=l;++i<u;)if(t[i][1].type==="mathTextData"){t[u][1].type="mathTextPadding",t[l][1].type="mathTextPadding",l+=2,u-=2;break}}for(i=l-1,u++;++i<=u;)n===void 0?i!==u&&t[i][1].type!=="lineEnding"&&(n=i):(i===u||t[i][1].type==="lineEnding")&&(t[n][1].type="mathTextData",i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),u-=i-n-2,i=n+2),n=void 0);return t}function L(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function _(t){return{flow:{36:v},text:{36:N(t)}}}function A(t,u){const l=String(t);let i=l.indexOf(u),n=i,m=0,o=0;if(typeof u!="string"||u.length!==1)throw new Error("Expected character");for(;i!==-1;)i===n?++m>o&&(o=m):m=1,n=i+1,i=l.indexOf(u,n);return o}function B(){return{enter:{mathFlow:t,mathFlowFenceMeta:u,mathText:m},exit:{mathFlow:n,mathFlowFence:i,mathFlowFenceMeta:l,mathFlowValue:c,mathText:o,mathTextData:c}};function t(r){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},r)}function u(){this.buffer()}function l(){const r=this.resume(),h=this.stack[this.stack.length-1];h.meta=r}function i(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function n(r){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s=this.exit(r);s.value=h,s.data.hChildren[0].value=h,this.setData("mathFlowInside")}function m(r){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},r),this.buffer()}function o(r){const h=this.resume(),s=this.exit(r);s.value=h,s.data.hChildren[0].value=h}function c(r){this.config.enter.data.call(this,r),this.config.exit.data.call(this,r)}}function V(t){let u=(t||{}).singleDollarTextMath;return u==null&&(u=!0),i.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
1
+ import{f as d,m as g,t as q,s as D,p as b}from"./index-12c59944.js";const v={tokenize:P,concrete:!0},C={tokenize:I,partial:!0};function P(t,u,l){const i=this,n=i.events[i.events.length-1],m=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let o=0;return c;function c(e){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),r(e)}function r(e){return e===36?(t.consume(e),o++,r):o<2?l(e):(t.exit("mathFlowFenceSequence"),d(t,h,"whitespace")(e))}function h(e){return e===null||g(e)?F(e):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),s(e))}function s(e){return e===null||g(e)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),F(e)):e===36?l(e):(t.consume(e),s)}function F(e){return t.exit("mathFlowFence"),i.interrupt?u(e):t.attempt(C,p,M)(e)}function p(e){return t.attempt({tokenize:z,partial:!0},M,x)(e)}function x(e){return(m?d(t,w,"linePrefix",m+1):w)(e)}function w(e){return e===null?M(e):g(e)?t.attempt(C,p,M)(e):(t.enter("mathFlowValue"),a(e))}function a(e){return e===null||g(e)?(t.exit("mathFlowValue"),w(e)):(t.consume(e),a)}function M(e){return t.exit("mathFlow"),u(e)}function z(e,S,y){let T=0;return d(e,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function $(f){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),k(f)}function k(f){return f===36?(T++,e.consume(f),k):T<o?y(f):(e.exit("mathFlowFenceSequence"),d(e,E,"whitespace")(f))}function E(f){return f===null||g(f)?(e.exit("mathFlowFence"),S(f)):y(f)}}}function I(t,u,l){const i=this;return n;function n(o){return o===null?u(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),m)}function m(o){return i.parser.lazy[i.now().line]?l(o):u(o)}}function N(t){let l=(t||{}).singleDollarTextMath;return l==null&&(l=!0),{tokenize:i,resolve:O,previous:L};function i(n,m,o){let c=0,r,h;return s;function s(a){return n.enter("mathText"),n.enter("mathTextSequence"),F(a)}function F(a){return a===36?(n.consume(a),c++,F):c<2&&!l?o(a):(n.exit("mathTextSequence"),p(a))}function p(a){return a===null?o(a):a===36?(h=n.enter("mathTextSequence"),r=0,w(a)):a===32?(n.enter("space"),n.consume(a),n.exit("space"),p):g(a)?(n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),p):(n.enter("mathTextData"),x(a))}function x(a){return a===null||a===32||a===36||g(a)?(n.exit("mathTextData"),p(a)):(n.consume(a),x)}function w(a){return a===36?(n.consume(a),r++,w):r===c?(n.exit("mathTextSequence"),n.exit("mathText"),m(a)):(h.type="mathTextData",x(a))}}}function O(t){let u=t.length-4,l=3,i,n;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[u][1].type==="lineEnding"||t[u][1].type==="space")){for(i=l;++i<u;)if(t[i][1].type==="mathTextData"){t[u][1].type="mathTextPadding",t[l][1].type="mathTextPadding",l+=2,u-=2;break}}for(i=l-1,u++;++i<=u;)n===void 0?i!==u&&t[i][1].type!=="lineEnding"&&(n=i):(i===u||t[i][1].type==="lineEnding")&&(t[n][1].type="mathTextData",i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),u-=i-n-2,i=n+2),n=void 0);return t}function L(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function _(t){return{flow:{36:v},text:{36:N(t)}}}function A(t,u){const l=String(t);let i=l.indexOf(u),n=i,m=0,o=0;if(typeof u!="string"||u.length!==1)throw new Error("Expected character");for(;i!==-1;)i===n?++m>o&&(o=m):m=1,n=i+1,i=l.indexOf(u,n);return o}function B(){return{enter:{mathFlow:t,mathFlowFenceMeta:u,mathText:m},exit:{mathFlow:n,mathFlowFence:i,mathFlowFenceMeta:l,mathFlowValue:c,mathText:o,mathTextData:c}};function t(r){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},r)}function u(){this.buffer()}function l(){const r=this.resume(),h=this.stack[this.stack.length-1];h.meta=r}function i(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function n(r){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s=this.exit(r);s.value=h,s.data.hChildren[0].value=h,this.setData("mathFlowInside")}function m(r){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},r),this.buffer()}function o(r){const h=this.resume(),s=this.exit(r);s.value=h,s.data.hChildren[0].value=h}function c(r){this.config.enter.data.call(this,r),this.config.exit.data.call(this,r)}}function V(t){let u=(t||{}).singleDollarTextMath;return u==null&&(u=!0),i.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
2
2
  `,inConstruct:"mathFlowMeta"},{character:"$",after:u?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:l,inlineMath:i}};function l(m,o,c,r){const h=m.value||"",s=q(r),F="$".repeat(Math.max(A(h,"$")+1,2)),p=c.enter("mathFlow");let x=s.move(F);if(m.meta){const w=c.enter("mathFlowMeta");x+=s.move(D(c,m.meta,{before:x,after:`
3
3
  `,encode:["$"],...s.current()})),w()}return x+=s.move(`
4
4
  `),h&&(x+=s.move(h+`
@@ -1 +1 @@
1
- import{aK as e}from"./index-b0560a31.js";function l(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M5 2c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3.586L12 21.414 15.414 18H19c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2H5zm14 14h-4.414L12 18.586 9.414 16H5V4h14v12z"/><path d="M7 7h10v2H7zm0 4h7v2H7z"/>'},a)}function h(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"/><path d="M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"/>'},a)}function r(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-1 4v2h-5V7h5zm-5 4h5v2h-5v-2zM4 19V5h7v14H4z"/>'},a)}function o(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0021 11h-1V8c0-1.103-.897-2-2-2h-6.655L8.789 4H4c-1.103 0-2 .897-2 2v13h.007a1 1 0 00.158.551zM18 8v3H6c-.4 0-.762.238-.919.606L4 14.129V8h14z"/>'},a)}function n(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M5.536 21.886a1.004 1.004 0 001.033-.064l13-9a1 1 0 000-1.644l-13-9A1 1 0 005 3v18a1 1 0 00.536.886z"/>'},a)}function c(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M5 9V7h2v2H5zM9 9h10V7H9v2zM5 15v2h2v-2H5zM19 17H9v-2h10v2z"/><path fill="currentColor" fill-rule="evenodd" d="M1 6a3 3 0 013-3h16a3 3 0 013 3v12a3 3 0 01-3 3H4a3 3 0 01-3-3V6zm3-1h16a1 1 0 011 1v5H3V6a1 1 0 011-1zm-1 8v5a1 1 0 001 1h16a1 1 0 001-1v-5H3z" clip-rule="evenodd"/>'},a)}function i(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M10 18v-2H8v-2h2v-2h2v2h2v2h-2v2h-2z"/><path fill="currentColor" fill-rule="evenodd" d="M6 2a3 3 0 00-3 3v14a3 3 0 003 3h12a3 3 0 003-3V9a7 7 0 00-7-7H6zm0 2h7v5h6v10a1 1 0 01-1 1H6a1 1 0 01-1-1V5a1 1 0 011-1zm9 .1A5.009 5.009 0 0118.584 7H15V4.1z" clip-rule="evenodd"/>'},a)}function t(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M11 14.5v2h2v-2h2v-2h-2v-2h-2v2H9v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1.5a2 2 0 00-2 2v1c0 .057.002.113.007.168A3.001 3.001 0 000 7.5v12a3 3 0 003 3h18a3 3 0 003-3v-12a3 3 0 00-3-3h-9.126A4.002 4.002 0 008 1.5H4zm5.732 3A2 2 0 008 3.5H4v1h5.732zM3 6.5a1 1 0 00-1 1v12a1 1 0 001 1h18a1 1 0 001-1v-12a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'},a)}function d(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M7 14a2 2 0 100-4 2 2 0 000 4zM14 12a2 2 0 11-4 0 2 2 0 014 0zM17 14a2 2 0 100-4 2 2 0 000 4z"/><path fill="currentColor" fill-rule="evenodd" d="M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12zm-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z" clip-rule="evenodd"/>'},a)}function u(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" fill-rule="evenodd" d="M10 4H8v2H5a3 3 0 00-3 3v6a3 3 0 003 3h3v2h2V4zM8 8v8H5a1 1 0 01-1-1V9a1 1 0 011-1h3z" clip-rule="evenodd"/><path fill="currentColor" d="M19 16h-7v2h7a3 3 0 003-3V9a3 3 0 00-3-3h-7v2h7a1 1 0 011 1v6a1 1 0 01-1 1z"/>'},a)}export{h as B,u as C,t as a,i as b,d as c,r as d,n as e,l as f,c as g,o as h};
1
+ import{aK as e}from"./index-12c59944.js";function l(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M5 2c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3.586L12 21.414 15.414 18H19c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2H5zm14 14h-4.414L12 18.586 9.414 16H5V4h14v12z"/><path d="M7 7h10v2H7zm0 4h7v2H7z"/>'},a)}function h(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"/><path d="M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"/>'},a)}function r(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-1 4v2h-5V7h5zm-5 4h5v2h-5v-2zM4 19V5h7v14H4z"/>'},a)}function o(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0021 11h-1V8c0-1.103-.897-2-2-2h-6.655L8.789 4H4c-1.103 0-2 .897-2 2v13h.007a1 1 0 00.158.551zM18 8v3H6c-.4 0-.762.238-.919.606L4 14.129V8h14z"/>'},a)}function n(a){return e({a:{viewBox:"0 0 24 24"},c:'<path d="M5.536 21.886a1.004 1.004 0 001.033-.064l13-9a1 1 0 000-1.644l-13-9A1 1 0 005 3v18a1 1 0 00.536.886z"/>'},a)}function c(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M5 9V7h2v2H5zM9 9h10V7H9v2zM5 15v2h2v-2H5zM19 17H9v-2h10v2z"/><path fill="currentColor" fill-rule="evenodd" d="M1 6a3 3 0 013-3h16a3 3 0 013 3v12a3 3 0 01-3 3H4a3 3 0 01-3-3V6zm3-1h16a1 1 0 011 1v5H3V6a1 1 0 011-1zm-1 8v5a1 1 0 001 1h16a1 1 0 001-1v-5H3z" clip-rule="evenodd"/>'},a)}function i(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M10 18v-2H8v-2h2v-2h2v2h2v2h-2v2h-2z"/><path fill="currentColor" fill-rule="evenodd" d="M6 2a3 3 0 00-3 3v14a3 3 0 003 3h12a3 3 0 003-3V9a7 7 0 00-7-7H6zm0 2h7v5h6v10a1 1 0 01-1 1H6a1 1 0 01-1-1V5a1 1 0 011-1zm9 .1A5.009 5.009 0 0118.584 7H15V4.1z" clip-rule="evenodd"/>'},a)}function t(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M11 14.5v2h2v-2h2v-2h-2v-2h-2v2H9v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1.5a2 2 0 00-2 2v1c0 .057.002.113.007.168A3.001 3.001 0 000 7.5v12a3 3 0 003 3h18a3 3 0 003-3v-12a3 3 0 00-3-3h-9.126A4.002 4.002 0 008 1.5H4zm5.732 3A2 2 0 008 3.5H4v1h5.732zM3 6.5a1 1 0 00-1 1v12a1 1 0 001 1h18a1 1 0 001-1v-12a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'},a)}function d(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M7 14a2 2 0 100-4 2 2 0 000 4zM14 12a2 2 0 11-4 0 2 2 0 014 0zM17 14a2 2 0 100-4 2 2 0 000 4z"/><path fill="currentColor" fill-rule="evenodd" d="M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12zm-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z" clip-rule="evenodd"/>'},a)}function u(a){return e({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" fill-rule="evenodd" d="M10 4H8v2H5a3 3 0 00-3 3v6a3 3 0 003 3h3v2h2V4zM8 8v8H5a1 1 0 01-1-1V9a1 1 0 011-1h3z" clip-rule="evenodd"/><path fill="currentColor" d="M19 16h-7v2h7a3 3 0 003-3V9a3 3 0 00-3-3h-7v2h7a1 1 0 011 1v6a1 1 0 01-1 1z"/>'},a)}export{h as B,u as C,t as a,i as b,d as c,r as d,n as e,l as f,c as g,o as h};
@@ -1,4 +1,4 @@
1
- import{c as qa,w as Ye,a as Ea,h as Ra,v as Ia}from"./index-b0560a31.js";class u0{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new u0(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class x0{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new x0(t,u0.range(this,e))}}class M{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var h=o.lexer.input;n=o.start,s=o.end,n===h.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var m=h.slice(n,s).replace(/[^]/g,"$&̲"),p;n>15?p="…"+h.slice(n-15,n):p=h.slice(0,n);var g;s+15<h.length?g=h.slice(s,s+15)+"…":g=h.slice(s),a+=p+m+g}var b=new Error(a);return b.name="ParseError",b.__proto__=M.prototype,b.position=n,n!=null&&s!=null&&(b.length=s-n),b.rawMessage=e,b}}M.prototype.__proto__=Error.prototype;var Oa=function(e,t){return e.indexOf(t)!==-1},Fa=function(e,t){return e===void 0?t:e},Ha=/([A-Z])/g,La=function(e){return e.replace(Ha,"-$1").toLowerCase()},Pa={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Va=/[&><"']/g;function Ga(r){return String(r).replace(Va,e=>Pa[e])}var Tr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},Ua=function(e){var t=Tr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Ya=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},$a=function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return t!=null?t[1]:"_relative"},R={contains:Oa,deflt:Fa,escape:Ga,hyphenate:La,getBaseElem:Tr,isCharacterBox:Ua,protocolFromUrl:$a},Te={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function Xa(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class pt{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Te)if(Te.hasOwnProperty(t)){var a=Te[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:Xa(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=R.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class O0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return b0[Wa[this.id]]}sub(){return b0[ja[this.id]]}fracNum(){return b0[Za[this.id]]}fracDen(){return b0[Ka[this.id]]}cramp(){return b0[Ja[this.id]]}text(){return b0[Qa[this.id]]}isTight(){return this.size>=2}}var vt=0,De=1,ee=2,T0=3,oe=4,d0=5,te=6,a0=7,b0=[new O0(vt,0,!1),new O0(De,0,!0),new O0(ee,1,!1),new O0(T0,1,!0),new O0(oe,2,!1),new O0(d0,2,!0),new O0(te,3,!1),new O0(a0,3,!0)],Wa=[oe,d0,oe,d0,te,a0,te,a0],ja=[d0,d0,d0,d0,a0,a0,a0,a0],Za=[ee,T0,oe,d0,te,a0,te,a0],Ka=[T0,T0,d0,d0,a0,a0,a0,a0],Ja=[De,De,T0,T0,d0,d0,a0,a0],Qa=[vt,De,ee,T0,ee,T0,ee,T0],q={DISPLAY:b0[vt],TEXT:b0[ee],SCRIPT:b0[oe],SCRIPTSCRIPT:b0[te]},it=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function _a(r){for(var e=0;e<it.length;e++)for(var t=it[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Be=[];it.forEach(r=>r.blocks.forEach(e=>Be.push(...e)));function Br(r){for(var e=0;e<Be.length;e+=2)if(r>=Be[e]&&r<=Be[e+1])return!0;return!1}var _0=80,e1=function(e,t){return"M95,"+(622+e+t)+`
1
+ import{c as qa,w as Ye,a as Ea,h as Ra,v as Ia}from"./index-12c59944.js";class u0{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new u0(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class x0{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new x0(t,u0.range(this,e))}}class M{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var h=o.lexer.input;n=o.start,s=o.end,n===h.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var m=h.slice(n,s).replace(/[^]/g,"$&̲"),p;n>15?p="…"+h.slice(n-15,n):p=h.slice(0,n);var g;s+15<h.length?g=h.slice(s,s+15)+"…":g=h.slice(s),a+=p+m+g}var b=new Error(a);return b.name="ParseError",b.__proto__=M.prototype,b.position=n,n!=null&&s!=null&&(b.length=s-n),b.rawMessage=e,b}}M.prototype.__proto__=Error.prototype;var Oa=function(e,t){return e.indexOf(t)!==-1},Fa=function(e,t){return e===void 0?t:e},Ha=/([A-Z])/g,La=function(e){return e.replace(Ha,"-$1").toLowerCase()},Pa={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Va=/[&><"']/g;function Ga(r){return String(r).replace(Va,e=>Pa[e])}var Tr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},Ua=function(e){var t=Tr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Ya=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},$a=function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return t!=null?t[1]:"_relative"},R={contains:Oa,deflt:Fa,escape:Ga,hyphenate:La,getBaseElem:Tr,isCharacterBox:Ua,protocolFromUrl:$a},Te={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function Xa(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class pt{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Te)if(Te.hasOwnProperty(t)){var a=Te[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:Xa(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=R.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class O0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return b0[Wa[this.id]]}sub(){return b0[ja[this.id]]}fracNum(){return b0[Za[this.id]]}fracDen(){return b0[Ka[this.id]]}cramp(){return b0[Ja[this.id]]}text(){return b0[Qa[this.id]]}isTight(){return this.size>=2}}var vt=0,De=1,ee=2,T0=3,oe=4,d0=5,te=6,a0=7,b0=[new O0(vt,0,!1),new O0(De,0,!0),new O0(ee,1,!1),new O0(T0,1,!0),new O0(oe,2,!1),new O0(d0,2,!0),new O0(te,3,!1),new O0(a0,3,!0)],Wa=[oe,d0,oe,d0,te,a0,te,a0],ja=[d0,d0,d0,d0,a0,a0,a0,a0],Za=[ee,T0,oe,d0,te,a0,te,a0],Ka=[T0,T0,d0,d0,a0,a0,a0,a0],Ja=[De,De,T0,T0,d0,d0,a0,a0],Qa=[vt,De,ee,T0,ee,T0,ee,T0],q={DISPLAY:b0[vt],TEXT:b0[ee],SCRIPT:b0[oe],SCRIPTSCRIPT:b0[te]},it=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function _a(r){for(var e=0;e<it.length;e++)for(var t=it[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Be=[];it.forEach(r=>r.blocks.forEach(e=>Be.push(...e)));function Br(r){for(var e=0;e<Be.length;e+=2)if(r>=Be[e]&&r<=Be[e+1])return!0;return!1}var _0=80,e1=function(e,t){return"M95,"+(622+e+t)+`
2
2
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3
3
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
4
4
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -1,2 +1,2 @@
1
- import{b as Se,cF as Je,cG as Ve,d as Ze,C as L,B as S,cH as we,an as p,I as W,x as pe,z as qe,aD as Xe,y as r,ap as _,Y as I,ar as re,S as u,aw as T,cI as R,aG as q,cJ as X,cK as Q,cL as Y,ak as K,ai as _e,af as Qe,ac as te,aB as Ye,aJ as er,a6 as rr,a8 as tr,a9 as nr,aa as ar,ad as sr,ae as or,bD as lr,bE as ir,R as be,av as cr,bI as ur,bJ as gr,bK as dr,bL as hr,al as je,am as C,ao as mr,l as fr,cM as wr,cN as de,cO as U,cP as pr,a3 as A,cQ as br,cR as Ie,cS as Sr,a7 as Be,cT as _r,cU as x,E as vr,W as Te,cV as he,bs as Pr,aj as $r,cW as yr,cX as kr}from"./index-b0560a31.js";import{L as Lr,i as Cr}from"./index-653e8df2.js";import{l as xr,Z as Ir,T as Tr,R as Er,A as Or,F as jr}from"./lightgallery-bundle-aafbce76.js";import{a as Br}from"./useTitle-838069b0.js";import{P as Fr}from"./Paginator-c9173645.js";import{c as Nr,R as Ee,C as Fe,L as Rr}from"./layout-28afe0f0.js";import Ar from"./Grid-37629e6d.js";import Dr from"./Images-83a8d60b.js";import{L as Mr}from"./List-e85a0b2a.js";import{O as Ur}from"./open-with-79c445c3.js";import{g as Wr}from"./index-1da4255f.js";import Kr from"./Password-ecb0e10f.js";import"./GridItem-be9067db.js";import"./solid-contextmenu-905ecc32.js";import"./storage-class-1ac53f89.js";import"./ImageWithError-ad444cc4.js";import"./helper-e7a18c7f.js";import"./color-a58de010.js";const zr=new Set(["mp4","m4v","mov","webm","mkv","avi","flv","m3u8"]),Gr=new Set(["mp3","flac","wav","ogg","m4a","aac","opus"]),Hr=new Set(["jpg","jpeg","png","gif","bmp","webp","svg","avif","heic","heif"]),Jr=new Set(["txt","md","markdown","json","js","jsx","ts","tsx","css","scss","less","html","htm","xml","yaml","yml","toml","ini","conf","log","csv","srt","ass","vtt","lrc","url"]),ve=t=>`share-token-cache:${t}`,ne=t=>`share-token:${t}`,Vr=24*60*60*1e3,Zr=t=>{const n=ve(t);try{const o=localStorage.getItem(n);if(o){const l=JSON.parse(o);if(l.token&&(!l.expires_at||l.expires_at>Date.now()))return l.token;localStorage.removeItem(n)}}catch{localStorage.removeItem(n)}const a=sessionStorage.getItem(ne(t))||"";return a?(Ne(t,a),sessionStorage.removeItem(ne(t)),a):""},Ne=(t,n)=>{n&&(localStorage.setItem(ve(t),JSON.stringify({token:n,expires_at:Date.now()+Vr})),sessionStorage.removeItem(ne(t)))},Oe=t=>{localStorage.removeItem(ve(t)),sessionStorage.removeItem(ne(t))},qr=t=>{const a=(t?decodeURIComponent(t):"").split("/").filter(Boolean),o=a[0]||"",l=a.length>1?`/${a.slice(1).join("/")}`:"/";return{shareId:o,path:l.replace(/\/{2,}/g,"/")}},Xr=t=>{if(t.type!==x.UNKNOWN)return t.type;const n=kr(t.name).toLowerCase();return zr.has(n)?x.VIDEO:Gr.has(n)?x.AUDIO:Hr.has(n)?x.IMAGE:Jr.has(n)?x.TEXT:x.UNKNOWN},D=t=>({...t,type:Xr(t),selected:!1}),Qr=t=>{const n=t.split("/").filter(Boolean);return n.length<=1?"/":`/${n.slice(0,-1).join("/")}`},me=(t,n,a=!0)=>{const o=n==="/"?"":Be(n,a);return te(`/s/${t}${o}`)},Re=(t,n,a,o,l=!0)=>{const m=a==="/"?"":Be(a,l),h=new URLSearchParams;n&&h.set("auth",n),o==="preview"&&h.set("type","preview");const $=te(`/sd/${t}${m}`),O=h.toString();return O?`${$}?${O}`:$},fe=(t,n,a,o=!0)=>a.preview_url?a.preview_url:Re(t,n,a.path||"/","preview",o),ee=(t,n,a,o=!0)=>a.download_url?a.download_url:a.preview_url?a.preview_url:Re(t,n,a.path||"/","direct",o),M=()=>{U.set({obj:{},raw_url:"",related:[],objs:[],total:0,readme:"",header:"",provider:"",write:!1,state:_.Initial,err:""})},Yr=t=>{const n=Qe("logo").split(`
2
- `),a=n[0]==="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"?te("/images/new_icon.png"):n[0],o=_e(a,n[n.length-1]==="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"?te("/images/new_icon.png"):n[n.length-1]||a);return r(er,{bgColor:"$background",class:"header",w:"$full",get children(){return r(Fe,{get children(){return r(T,{px:"calc(2% + 0.5rem)",py:"$2",w:"$full",justifyContent:"space-between",get children(){return[r(Lr,{href:"/",get children(){return r(T,{h:"44px",get children(){return r(Ye,{get src(){return o()},h:"$full",w:"auto"})}})}}),r(u,{get when(){return t.showLayout},get children(){return r(Rr,{})}})]}})}})}})},et=t=>{const n=S(()=>{const a=t.path.split("/").filter(Boolean),o=[{label:t.rootLabel,path:"/"}];let l="";for(const m of a)l+=`/${m}`,o.push({label:m,path:l});return o});return r(or,{background:"$background",class:"nav",w:"$full",get children(){return r(rr,{get each(){return n()},children:(a,o)=>{const l=()=>o()===n().length-1;return r(tr,{class:"nav-item",get children(){return[r(nr,{class:"nav-link",css:{wordBreak:"break-all"},color:"unset",get _hover(){return{bgColor:ar(),color:"unset"}},_active:{transform:"scale(.95)",transition:"0.1s"},get cursor(){return l()?"default":"pointer"},p:"$1",rounded:"$lg",get currentPage(){return l()},onClick:()=>{l()||t.onNavigate(a.path)},get children(){return a.label}}),r(u,{get when(){return!l()},get children(){return r(sr,{class:"nav-separator"})}})]}})}})}})},rt=t=>{const{rawLink:n}=_r(),a=S(()=>p.objs.filter(h=>h.type===x.IMAGE));let o;const l=()=>{o=xr(document.createElement("div"),{addClass:"lightgallery-container",dynamic:!0,thumbnail:!0,plugins:[Ir,Tr,Er,Or,jr],dynamicEl:a().map(h=>{const $=n(h,!0);return{src:$,thumb:h.thumb===""?$:h.thumb,subHtml:`<h4>${h.name}</h4>`}})})},m=h=>{t.allowPreview&&(o||l(),o==null||o.openGallery(a().findIndex($=>$.name===h)))};return W(vr(a,()=>{o==null||o.destroy(),o=void 0})),W(()=>{t.allowPreview&&(Te.on("gallery",m),pe(()=>{Te.off("gallery",m)}))}),pe(()=>{o==null||o.destroy()}),r(je,{get children(){return[r(C,{get when(){return!t.allowPreview||he()==="list"},get children(){return r(Mr,{})}}),r(C,{get when(){return he()==="grid"},get children(){return r(Ar,{})}}),r(C,{get when(){return he()==="image"},get children(){return r(Dr,{get images(){return a()}})}})]}})},tt=()=>{const t=Se(),n=S(()=>Wr({...p.obj,provider:p.provider})),[a,o]=L(void 0);return W(()=>{const l=n(),m=a();if(!l.length){o(void 0);return}(!m||!l.find(h=>h.name===m.name))&&o(l[0])}),r(u,{get when(){return n().length},get fallback(){return r(re,{color:"$neutral11",get children(){return t("share.no_inline_preview",void 0,"Inline preview is not available for this file type.")}})},get children(){return r(I,{w:"$full",spacing:"$2",get children(){return[r(u,{get when(){return n().length>1},get children(){return r(T,{w:"$full",spacing:"$2",get children(){return[r(Pr,{alwaysShowBorder:!0,get value(){var l,m,h;return((l=a())==null?void 0:l.name)||((h=(m=n())==null?void 0:m[0])==null?void 0:h.name)||""},onChange:l=>{o(n().find(m=>m.name===l))},get options(){return n().map(l=>({value:l.name,label:l.i18nKey?t(l.i18nKey):l.name}))}}),r(Ur,{})]}})}}),r(u,{get when(){return a()},get fallback(){return r(K,{})},get children(){return r($r,{get fallback(){return r(K,{})},get children(){return r(yr,{get component(){return a().component}})}})}})]}})}})},nt=t=>{const n=Se(),a=t.item.preview_url,o=t.item.download_url;return r(I,{alignItems:"start",spacing:"$3",get children(){return[r(T,{spacing:"$2",wrap:"wrap",get children(){return[r(u,{when:a,get children(){return r(be,{as:"a",href:a,target:"_blank",get children(){return n("share.open",void 0,"Open")}})}}),r(u,{when:o,get children(){return r(be,{colorScheme:"accent",as:"a",href:o,target:"_blank",get children(){return n("share.download",void 0,"Download")}})}})]}}),r(re,{color:"$neutral11",get children(){return n("share.preview_disabled",void 0,"Preview is disabled for this share.")}})]}})},at=t=>{const n=[50,100,200,300,500].filter(a=>a<=we);return r(T,{spacing:"$2",flexWrap:"wrap",justifyContent:"center",get children(){return[r(T,{spacing:"$1",get children(){return r(lr,{size:"sm",get value(){return t.currentPerPage},onChange:a=>{t.onPerPageChange(Number(a))},get children(){return[r(ir,{as:be,size:"sm",variant:"subtle",minW:"$20",get children(){return[r(cr,{get children(){return t.currentPerPage}}),r(Cr,{})]}}),r(ur,{minW:"$20",get children(){return r(gr,{get children(){return n.map(a=>r(dr,{value:a,get children(){return r(hr,{children:a})}}))}})}})]}})}}),r(u,{get when(){return`${t.currentPage}-${t.currentPerPage}-${t.total}`},keyed:!0,children:()=>r(Fr,{get total(){return t.total},get defaultCurrent(){return t.currentPage},get defaultPageSize(){return t.currentPerPage},get onChange(){return t.onPageChange}})})]}})},st=t=>{const n=_e("white","$neutral3");return r(I,{class:"obj-box",w:"$full",rounded:"$xl",get bgColor(){return n()},p:"$2",shadow:"$lg",spacing:"$2",get children(){return r(je,{get children(){return[r(C,{get when(){return t.nodeError},get children(){return r(mr,{get msg(){return t.nodeError},disableColor:!0})}}),r(C,{get when(){return t.nodeLoading},get children(){return r(K,{})}}),r(C,{get when(){return[_.FetchingObj,_.FetchingObjs].includes(p.state)},get children(){return r(K,{})}}),r(C,{get when(){return p.state===_.Folder},get children(){return r(rt,{get allowPreview(){return t.allowPreview}})}}),r(C,{get when(){return p.state===_.File&&t.allowPreview},get children(){return r(tt,{})}}),r(C,{get when(){return p.state===_.File},get children(){return r(nt,{get item(){return p.obj}})}})]}})}})},yt=()=>{const t=Se(),n=Je(),a=Ve(),{searchParams:o,setSearchParams:l}=Ze(),[m,h]=L(""),[$,O]=L(!1),[ae,y]=L(!1),[Pe,k]=L(!1),[z,$e]=L(""),[Ae,ye]=L(null),[c,j]=L(null),[De,G]=L(""),ke=S(()=>qr(n.share_path)),P=S(()=>ke().shareId),H=S(()=>ke().path),se=S(()=>De()),J=fr(),oe=S(()=>{if(J.type==="all")return 1;const e=parseInt(o.page,10);return Number.isFinite(e)&&e>0?e:1}),V=S(()=>{if(J.type==="all")return-1;const e=parseInt(o.per_page,10);if(Number.isFinite(e)&&e>0)return Math.min(we,e);const s=J.size||wr;return Math.min(we,Math.max(1,s))});S(()=>p.obj);const B=S(()=>{var e;return!!((e=c())!=null&&e.consumed_at)});let Le="",F=0;Br(()=>{var e;return((e=c())==null?void 0:e.name)||"Share"}),W(()=>{const e=P();if(!e){de(null);return}const s=se();de({getLinkByObj:(i,g,v)=>g==="preview"?me(e,i.path||"/",v):g==="proxy"?fe(e,s,i,v):ee(e,s,i,v),rawLink:(i,g)=>ee(e,s,i,g),proxyLink:(i,g)=>fe(e,s,i,g),previewPage:(i,g)=>me(e,i.path||"/",g),currentObjLink:i=>ee(e,s,p.obj,i)})}),pe(()=>{de(null)});const le=()=>{$e(""),ye(null)},Z=(e,s)=>{$e(e),ye(s??null)},Ce=()=>{j(e=>e&&e.access_limit>0?{...e,access_count:Math.min(e.access_count+1,e.access_limit),remaining_accesses:Math.max(0,e.access_limit-Math.min(e.access_count+1,e.access_limit)),consumed_at:e.access_count+1>=e.access_limit?e.consumed_at||new Date().toISOString():e.consumed_at}:e)},Me=()=>{j(null),h(""),le(),M()},ie=e=>{Oe(e),G(""),j(s=>s&&{...s,authed:!1}),M()},Ue=(e,s)=>{const i=D(e.item),g=s.content.map(D);U.set({obj:i,raw_url:"",related:[],objs:g,total:s.total,readme:"",header:"",provider:e.provider,write:!1,state:_.Folder,err:""})},We=(e,s,i,g,v)=>{const d=D(i.item),E=g.length?g:[d];U.set({obj:d,raw_url:v?fe(e,s,d):ee(e,s,d),related:[],objs:E,total:E.length,readme:"",header:"",provider:i.provider,write:!1,state:_.File,err:""})},Ke=async(e,s,i,g,v,d)=>{if(!v.is_dir)return[d];const E=Qr(i);let b=[d],N=!1;const f=await Ie({share_id:s,path:E,token:g||void 0,page:1,per_page:200});return e!==F?null:(A(f,w=>{b=w.content.map(D)},(w,ue)=>{ue===401&&(N=!0)},!1,!1),N?(ie(s),null):(b.find(w=>w.path===d.path)||(b=[d,...b]),b))},ce=async(e=P(),s=H(),i=se())=>{if(!e)return null;const g=++F;y(!0),k(!0),le(),U.setState(_.FetchingObj);const v=await pr(e,i||void 0);if(g!==F)return null;let d=null;if(A(v,f=>{d=f,j(f)},(f,w)=>{j(null),M(),Z(f,w)},!1,!1),!d)return y(!1),k(!1),null;if(!d.authed)return i&&(Oe(e),G("")),M(),y(!1),k(!1),d;const E=await br({share_id:e,path:s,token:i||void 0});if(g!==F)return d;let b=null,N=!1;if(A(E,f=>{b=f},(f,w)=>{if(w===401){N=!0;return}M(),Z(f,w)},!1,!1),N)return ie(e),y(!1),k(!1),null;if(!b)return y(!1),k(!1),d;if(b.item.is_dir){U.setState(_.FetchingObjs);let f=null,w=!1;const ue=await Ie({share_id:e,path:s,token:i||void 0,page:oe(),per_page:V()});if(g!==F)return d;if(A(ue,ge=>{f=ge},(ge,xe)=>{if(xe===401){w=!0;return}Z(ge,xe)},!1,!1),w)return ie(e),y(!1),k(!1),null;if(!f)return y(!1),k(!1),d;Ue(b,f),d.access_limit>0&&Ce()}else{const f=D(b.item),w=await Ke(g,e,s,i,d,f);if(w===null)return y(!1),k(!1),null;We(e,i,b,w,d.allow_preview),d.access_limit>0&&d.allow_preview&&Ce()}return y(!1),k(!1),d};W(()=>{const e=P(),s=H();if(oe(),V(),!!e){if(Le!==e){Le=e,Me();const i=Zr(e);G(i),ce(e,s,i);return}ce(e,s,qe(()=>se()))}});const ze=async()=>{if(!P()||$()||!m().trim())return;O(!0),le();const e=await Sr(P(),m());let s="",i=!1;A(e,g=>{i=!0,s=g.token||""},(g,v)=>Z(g,v),!1,!1),i&&(Ne(P(),s),G(s),h(""),await ce(P(),H(),s)),O(!1)},Ge=e=>{a(me(P(),e))},He=S(()=>Nr(Xe(),{alpha:.15}));return[r(Yr,{get showLayout(){var e,s;return!!((e=c())!=null&&e.authed&&((s=c())!=null&&s.allow_preview)&&p.state===_.Folder)}}),r(Fe,{get children(){return r(I,{class:"body",mt:"$1",py:"$2",px:"2%",minH:"80vh",w:"$full",gap:"$4",get children(){return[r(I,{w:"$full",p:"$4",rounded:"$xl",get bgColor(){return He()},alignItems:"start",spacing:"$3",get children(){return[r(I,{alignItems:"start",spacing:"$1",get children(){return[r(re,{fontSize:"$3xl",fontWeight:"$bold",get children(){var e;return((e=c())==null?void 0:e.name)||t("share.title",void 0,"Share")}}),r(re,{color:"$neutral11",get children(){return P()}})]}}),r(u,{get when(){return c()},get children(){return r(T,{spacing:"$2",wrap:"wrap",get children(){return[r(u,{get when(){var e;return(e=c())==null?void 0:e.has_password},get children(){return r(R,{colorScheme:"info",get children(){return t("share.password_required",void 0,"Password")}})}}),r(u,{get when(){var e;return(e=c())==null?void 0:e.burn_after_read},get children(){return r(R,{get colorScheme(){return B()?"danger":"warning"},get children(){return t("share.burn_after_read",void 0,"Burn after read")}})}}),r(u,{get when(){var e;return!!((e=c())!=null&&e.access_limit&&c().access_limit>1)},get children(){return r(R,{get colorScheme(){return B()?"danger":"warning"},get children(){var e,s;return t("share.access_limit_badge",{count:(e=c())==null?void 0:e.access_limit},`${(s=c())==null?void 0:s.access_limit} accesses`)}})}}),r(u,{get when(){var e;return!((e=c())!=null&&e.allow_preview)},get children(){return r(R,{colorScheme:"danger",get children(){return t("share.preview_disabled",void 0,"Preview off")}})}}),r(u,{get when(){var e;return!((e=c())!=null&&e.allow_download)},get children(){return r(R,{colorScheme:"danger",get children(){return t("share.download_disabled",void 0,"Download off")}})}})]}})}}),r(u,{get when(){return q(()=>{var e;return((e=c())==null?void 0:e.access_limit)===1},!0)()&&!B()},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Q,{}),r(Y,{get children(){return t("share.burn_after_read_warning",void 0,"This share will be disabled after the first successful read. Loading a directory or previewing a file may consume it.")}})]}})}}),r(u,{get when(){var e;return!!((e=c())!=null&&e.access_limit&&c().access_limit>1&&!B())},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Q,{}),r(Y,{get children(){var e,s;return t("share.access_limit_warning",{count:(e=c())==null?void 0:e.access_limit},`This share will be disabled after ${(s=c())==null?void 0:s.access_limit} successful accesses. Loading a directory or previewing a file may consume it.`)}})]}})}}),r(u,{get when(){return B()},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Q,{}),r(Y,{get children(){return r(u,{get when(){var e;return((e=c())==null?void 0:e.access_limit)===1},get fallback(){return t("share.access_limit_consumed_notice",void 0,"This share has reached its access limit. Refreshing or opening more items may no longer work.")},get children(){return t("share.consumed_notice",void 0,"This burn-after-read share has already been consumed. Refreshing or opening more items may no longer work.")}})}})]}})}}),r(u,{get when(){return z()},get children(){return r(X,{get status(){return Ae()===410?"warning":"danger"},w:"$full",get children(){return[r(Q,{}),r(Y,{get children(){return z()}})]}})}})]}}),r(u,{get when(){return q(()=>!!ae(),!0)()&&!c()},get children(){return r(K,{})}}),r(u,{get when(){var e;return q(()=>{var s;return!!((s=c())!=null&&s.has_password)},!0)()&&!((e=c())!=null&&e.authed)},get children(){return r(I,{w:"$full",rounded:"$xl",get bgColor(){return _e("white","$neutral3")()},shadow:"$lg",get children(){return r(Kr,{get title(){return t("share.password_prompt",void 0,"This share is protected by a password.")},password:m,setPassword:h,enterCallback:()=>{ze()}})}})}}),r(u,{get when(){var e,s;return q(()=>!!c(),!0)()&&(!((e=c())!=null&&e.has_password)||((s=c())==null?void 0:s.authed))},get children(){return[r(et,{get rootLabel(){var e;return((e=c())==null?void 0:e.name)||P()},get path(){return H()},onNavigate:Ge}),r(u,{get when(){var e;return(e=c())==null?void 0:e.allow_preview},get children(){return r(Ee,{files:["header.md","top.md","index.md"],fromMeta:"header"})}}),r(st,{get nodeLoading(){return Pe()||ae()},get nodeError(){return z()},get allowPreview(){var e;return!!((e=c())!=null&&e.allow_preview)}}),r(u,{get when(){return p.state===_.Folder&&!Pe()&&!ae()&&!z()&&J.type!=="all"},get children(){return r(at,{get currentPage(){return oe()},get currentPerPage(){return V()},get total(){return p.total},onPageChange:e=>{l({page:e,per_page:V()})},onPerPageChange:e=>{l({page:1,per_page:e})}})}}),r(u,{get when(){var e;return(e=c())==null?void 0:e.allow_preview},get children(){return r(Ee,{files:["readme.md","footer.md","bottom.md"],fromMeta:"readme"})}})]}})]}})}})]};export{yt as default};
1
+ import{b as Se,cG as Je,cH as Ve,d as Ze,C as L,B as S,cI as we,an as p,I as W,x as pe,z as qe,aD as Xe,y as r,ap as _,Y as I,ar as re,S as u,aw as T,cJ as R,aG as q,cK as X,cL as Y,cM as Q,ak as K,ai as _e,af as Ye,ac as te,aB as Qe,aJ as er,a6 as rr,a8 as tr,a9 as nr,aa as ar,ad as sr,ae as or,bD as lr,bE as ir,R as be,av as cr,bI as ur,bJ as gr,bK as dr,bL as hr,al as je,am as C,ao as mr,l as fr,cN as wr,cO as de,cP as U,cQ as pr,a3 as A,cR as br,cS as Ie,cT as Sr,a7 as Be,cU as _r,cV as x,E as vr,W as Te,cW as he,bs as Pr,aj as $r,cX as yr,cY as kr}from"./index-12c59944.js";import{L as Lr,i as Cr}from"./index-3049f6a6.js";import{l as xr,Z as Ir,T as Tr,R as Er,A as Or,F as jr}from"./lightgallery-bundle-aafbce76.js";import{a as Br}from"./useTitle-4d2813bb.js";import{P as Fr}from"./Paginator-3ef3d0c6.js";import{c as Nr,R as Ee,C as Fe,L as Rr}from"./layout-9167b163.js";import Ar from"./Grid-dcbf6fd9.js";import Dr from"./Images-9039a7b3.js";import{L as Mr}from"./List-30b5fd1c.js";import{O as Ur}from"./open-with-9e0de645.js";import{g as Wr}from"./index-082de197.js";import Kr from"./Password-a086e47b.js";import"./GridItem-fa635854.js";import"./solid-contextmenu-b426b8e6.js";import"./storage-class-1ac53f89.js";import"./ImageWithError-b264d605.js";import"./helper-204a2c78.js";import"./color-a58de010.js";const zr=new Set(["mp4","m4v","mov","webm","mkv","avi","flv","m3u8"]),Gr=new Set(["mp3","flac","wav","ogg","m4a","aac","opus"]),Hr=new Set(["jpg","jpeg","png","gif","bmp","webp","svg","avif","heic","heif"]),Jr=new Set(["txt","md","markdown","json","js","jsx","ts","tsx","css","scss","less","html","htm","xml","yaml","yml","toml","ini","conf","log","csv","srt","ass","vtt","lrc","url"]),ve=t=>`share-token-cache:${t}`,ne=t=>`share-token:${t}`,Vr=24*60*60*1e3,Zr=t=>{const n=ve(t);try{const o=localStorage.getItem(n);if(o){const l=JSON.parse(o);if(l.token&&(!l.expires_at||l.expires_at>Date.now()))return l.token;localStorage.removeItem(n)}}catch{localStorage.removeItem(n)}const a=sessionStorage.getItem(ne(t))||"";return a?(Ne(t,a),sessionStorage.removeItem(ne(t)),a):""},Ne=(t,n)=>{n&&(localStorage.setItem(ve(t),JSON.stringify({token:n,expires_at:Date.now()+Vr})),sessionStorage.removeItem(ne(t)))},Oe=t=>{localStorage.removeItem(ve(t)),sessionStorage.removeItem(ne(t))},qr=t=>{const a=(t?decodeURIComponent(t):"").split("/").filter(Boolean),o=a[0]||"",l=a.length>1?`/${a.slice(1).join("/")}`:"/";return{shareId:o,path:l.replace(/\/{2,}/g,"/")}},Xr=t=>{if(t.type!==x.UNKNOWN)return t.type;const n=kr(t.name).toLowerCase();return zr.has(n)?x.VIDEO:Gr.has(n)?x.AUDIO:Hr.has(n)?x.IMAGE:Jr.has(n)?x.TEXT:x.UNKNOWN},D=t=>({...t,type:Xr(t),selected:!1}),Yr=t=>{const n=t.split("/").filter(Boolean);return n.length<=1?"/":`/${n.slice(0,-1).join("/")}`},me=(t,n,a=!0)=>{const o=n==="/"?"":Be(n,a);return te(`/s/${t}${o}`)},Re=(t,n,a,o,l=!0)=>{const m=a==="/"?"":Be(a,l),h=new URLSearchParams;n&&h.set("auth",n),o==="preview"&&h.set("type","preview");const $=te(`/sd/${t}${m}`),O=h.toString();return O?`${$}?${O}`:$},fe=(t,n,a,o=!0)=>a.preview_url?a.preview_url:Re(t,n,a.path||"/","preview",o),ee=(t,n,a,o=!0)=>a.download_url?a.download_url:a.preview_url?a.preview_url:Re(t,n,a.path||"/","direct",o),M=()=>{U.set({obj:{},raw_url:"",related:[],objs:[],total:0,readme:"",header:"",provider:"",write:!1,state:_.Initial,err:""})},Qr=t=>{const n=Ye("logo").split(`
2
+ `),a=n[0]==="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"?te("/images/new_icon.png"):n[0],o=_e(a,n[n.length-1]==="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"?te("/images/new_icon.png"):n[n.length-1]||a);return r(er,{bgColor:"$background",class:"header",w:"$full",get children(){return r(Fe,{get children(){return r(T,{px:"calc(2% + 0.5rem)",py:"$2",w:"$full",justifyContent:"space-between",get children(){return[r(Lr,{href:"/",get children(){return r(T,{h:"44px",get children(){return r(Qe,{get src(){return o()},h:"$full",w:"auto"})}})}}),r(u,{get when(){return t.showLayout},get children(){return r(Rr,{})}})]}})}})}})},et=t=>{const n=S(()=>{const a=t.path.split("/").filter(Boolean),o=[{label:t.rootLabel,path:"/"}];let l="";for(const m of a)l+=`/${m}`,o.push({label:m,path:l});return o});return r(or,{background:"$background",class:"nav",w:"$full",get children(){return r(rr,{get each(){return n()},children:(a,o)=>{const l=()=>o()===n().length-1;return r(tr,{class:"nav-item",get children(){return[r(nr,{class:"nav-link",css:{wordBreak:"break-all"},color:"unset",get _hover(){return{bgColor:ar(),color:"unset"}},_active:{transform:"scale(.95)",transition:"0.1s"},get cursor(){return l()?"default":"pointer"},p:"$1",rounded:"$lg",get currentPage(){return l()},onClick:()=>{l()||t.onNavigate(a.path)},get children(){return a.label}}),r(u,{get when(){return!l()},get children(){return r(sr,{class:"nav-separator"})}})]}})}})}})},rt=t=>{const{rawLink:n}=_r(),a=S(()=>p.objs.filter(h=>h.type===x.IMAGE));let o;const l=()=>{o=xr(document.createElement("div"),{addClass:"lightgallery-container",dynamic:!0,thumbnail:!0,plugins:[Ir,Tr,Er,Or,jr],dynamicEl:a().map(h=>{const $=n(h,!0);return{src:$,thumb:h.thumb===""?$:h.thumb,subHtml:`<h4>${h.name}</h4>`}})})},m=h=>{t.allowPreview&&(o||l(),o==null||o.openGallery(a().findIndex($=>$.name===h)))};return W(vr(a,()=>{o==null||o.destroy(),o=void 0})),W(()=>{t.allowPreview&&(Te.on("gallery",m),pe(()=>{Te.off("gallery",m)}))}),pe(()=>{o==null||o.destroy()}),r(je,{get children(){return[r(C,{get when(){return!t.allowPreview||he()==="list"},get children(){return r(Mr,{})}}),r(C,{get when(){return he()==="grid"},get children(){return r(Ar,{})}}),r(C,{get when(){return he()==="image"},get children(){return r(Dr,{get images(){return a()}})}})]}})},tt=()=>{const t=Se(),n=S(()=>Wr({...p.obj,provider:p.provider})),[a,o]=L(void 0);return W(()=>{const l=n(),m=a();if(!l.length){o(void 0);return}(!m||!l.find(h=>h.name===m.name))&&o(l[0])}),r(u,{get when(){return n().length},get fallback(){return r(re,{color:"$neutral11",get children(){return t("share.no_inline_preview",void 0,"Inline preview is not available for this file type.")}})},get children(){return r(I,{w:"$full",spacing:"$2",get children(){return[r(u,{get when(){return n().length>1},get children(){return r(T,{w:"$full",spacing:"$2",get children(){return[r(Pr,{alwaysShowBorder:!0,get value(){var l,m,h;return((l=a())==null?void 0:l.name)||((h=(m=n())==null?void 0:m[0])==null?void 0:h.name)||""},onChange:l=>{o(n().find(m=>m.name===l))},get options(){return n().map(l=>({value:l.name,label:l.i18nKey?t(l.i18nKey):l.name}))}}),r(Ur,{})]}})}}),r(u,{get when(){return a()},get fallback(){return r(K,{})},get children(){return r($r,{get fallback(){return r(K,{})},get children(){return r(yr,{get component(){return a().component}})}})}})]}})}})},nt=t=>{const n=Se(),a=t.item.preview_url,o=t.item.download_url;return r(I,{alignItems:"start",spacing:"$3",get children(){return[r(T,{spacing:"$2",wrap:"wrap",get children(){return[r(u,{when:a,get children(){return r(be,{as:"a",href:a,target:"_blank",get children(){return n("share.open",void 0,"Open")}})}}),r(u,{when:o,get children(){return r(be,{colorScheme:"accent",as:"a",href:o,target:"_blank",get children(){return n("share.download",void 0,"Download")}})}})]}}),r(re,{color:"$neutral11",get children(){return n("share.preview_disabled",void 0,"Preview is disabled for this share.")}})]}})},at=t=>{const n=[50,100,200,300,500].filter(a=>a<=we);return r(T,{spacing:"$2",flexWrap:"wrap",justifyContent:"center",get children(){return[r(T,{spacing:"$1",get children(){return r(lr,{size:"sm",get value(){return t.currentPerPage},onChange:a=>{t.onPerPageChange(Number(a))},get children(){return[r(ir,{as:be,size:"sm",variant:"subtle",minW:"$20",get children(){return[r(cr,{get children(){return t.currentPerPage}}),r(Cr,{})]}}),r(ur,{minW:"$20",get children(){return r(gr,{get children(){return n.map(a=>r(dr,{value:a,get children(){return r(hr,{children:a})}}))}})}})]}})}}),r(u,{get when(){return`${t.currentPage}-${t.currentPerPage}-${t.total}`},keyed:!0,children:()=>r(Fr,{get total(){return t.total},get defaultCurrent(){return t.currentPage},get defaultPageSize(){return t.currentPerPage},get onChange(){return t.onPageChange}})})]}})},st=t=>{const n=_e("white","$neutral3");return r(I,{class:"obj-box",w:"$full",rounded:"$xl",get bgColor(){return n()},p:"$2",shadow:"$lg",spacing:"$2",get children(){return r(je,{get children(){return[r(C,{get when(){return t.nodeError},get children(){return r(mr,{get msg(){return t.nodeError},disableColor:!0})}}),r(C,{get when(){return t.nodeLoading},get children(){return r(K,{})}}),r(C,{get when(){return[_.FetchingObj,_.FetchingObjs].includes(p.state)},get children(){return r(K,{})}}),r(C,{get when(){return p.state===_.Folder},get children(){return r(rt,{get allowPreview(){return t.allowPreview}})}}),r(C,{get when(){return p.state===_.File&&t.allowPreview},get children(){return r(tt,{})}}),r(C,{get when(){return p.state===_.File},get children(){return r(nt,{get item(){return p.obj}})}})]}})}})},yt=()=>{const t=Se(),n=Je(),a=Ve(),{searchParams:o,setSearchParams:l}=Ze(),[m,h]=L(""),[$,O]=L(!1),[ae,y]=L(!1),[Pe,k]=L(!1),[z,$e]=L(""),[Ae,ye]=L(null),[c,j]=L(null),[De,G]=L(""),ke=S(()=>qr(n.share_path)),P=S(()=>ke().shareId),H=S(()=>ke().path),se=S(()=>De()),J=fr(),oe=S(()=>{if(J.type==="all")return 1;const e=parseInt(o.page,10);return Number.isFinite(e)&&e>0?e:1}),V=S(()=>{if(J.type==="all")return-1;const e=parseInt(o.per_page,10);if(Number.isFinite(e)&&e>0)return Math.min(we,e);const s=J.size||wr;return Math.min(we,Math.max(1,s))});S(()=>p.obj);const B=S(()=>{var e;return!!((e=c())!=null&&e.consumed_at)});let Le="",F=0;Br(()=>{var e;return((e=c())==null?void 0:e.name)||"Share"}),W(()=>{const e=P();if(!e){de(null);return}const s=se();de({getLinkByObj:(i,g,v)=>g==="preview"?me(e,i.path||"/",v):g==="proxy"?fe(e,s,i,v):ee(e,s,i,v),rawLink:(i,g)=>ee(e,s,i,g),proxyLink:(i,g)=>fe(e,s,i,g),previewPage:(i,g)=>me(e,i.path||"/",g),currentObjLink:i=>ee(e,s,p.obj,i)})}),pe(()=>{de(null)});const le=()=>{$e(""),ye(null)},Z=(e,s)=>{$e(e),ye(s??null)},Ce=()=>{j(e=>e&&e.access_limit>0?{...e,access_count:Math.min(e.access_count+1,e.access_limit),remaining_accesses:Math.max(0,e.access_limit-Math.min(e.access_count+1,e.access_limit)),consumed_at:e.access_count+1>=e.access_limit?e.consumed_at||new Date().toISOString():e.consumed_at}:e)},Me=()=>{j(null),h(""),le(),M()},ie=e=>{Oe(e),G(""),j(s=>s&&{...s,authed:!1}),M()},Ue=(e,s)=>{const i=D(e.item),g=s.content.map(D);U.set({obj:i,raw_url:"",related:[],objs:g,total:s.total,readme:"",header:"",provider:e.provider,write:!1,state:_.Folder,err:""})},We=(e,s,i,g,v)=>{const d=D(i.item),E=g.length?g:[d];U.set({obj:d,raw_url:v?fe(e,s,d):ee(e,s,d),related:[],objs:E,total:E.length,readme:"",header:"",provider:i.provider,write:!1,state:_.File,err:""})},Ke=async(e,s,i,g,v,d)=>{if(!v.is_dir)return[d];const E=Yr(i);let b=[d],N=!1;const f=await Ie({share_id:s,path:E,token:g||void 0,page:1,per_page:200});return e!==F?null:(A(f,w=>{b=w.content.map(D)},(w,ue)=>{ue===401&&(N=!0)},!1,!1),N?(ie(s),null):(b.find(w=>w.path===d.path)||(b=[d,...b]),b))},ce=async(e=P(),s=H(),i=se())=>{if(!e)return null;const g=++F;y(!0),k(!0),le(),U.setState(_.FetchingObj);const v=await pr(e,i||void 0);if(g!==F)return null;let d=null;if(A(v,f=>{d=f,j(f)},(f,w)=>{j(null),M(),Z(f,w)},!1,!1),!d)return y(!1),k(!1),null;if(!d.authed)return i&&(Oe(e),G("")),M(),y(!1),k(!1),d;const E=await br({share_id:e,path:s,token:i||void 0});if(g!==F)return d;let b=null,N=!1;if(A(E,f=>{b=f},(f,w)=>{if(w===401){N=!0;return}M(),Z(f,w)},!1,!1),N)return ie(e),y(!1),k(!1),null;if(!b)return y(!1),k(!1),d;if(b.item.is_dir){U.setState(_.FetchingObjs);let f=null,w=!1;const ue=await Ie({share_id:e,path:s,token:i||void 0,page:oe(),per_page:V()});if(g!==F)return d;if(A(ue,ge=>{f=ge},(ge,xe)=>{if(xe===401){w=!0;return}Z(ge,xe)},!1,!1),w)return ie(e),y(!1),k(!1),null;if(!f)return y(!1),k(!1),d;Ue(b,f),d.access_limit>0&&Ce()}else{const f=D(b.item),w=await Ke(g,e,s,i,d,f);if(w===null)return y(!1),k(!1),null;We(e,i,b,w,d.allow_preview),d.access_limit>0&&d.allow_preview&&Ce()}return y(!1),k(!1),d};W(()=>{const e=P(),s=H();if(oe(),V(),!!e){if(Le!==e){Le=e,Me();const i=Zr(e);G(i),ce(e,s,i);return}ce(e,s,qe(()=>se()))}});const ze=async()=>{if(!P()||$()||!m().trim())return;O(!0),le();const e=await Sr(P(),m());let s="",i=!1;A(e,g=>{i=!0,s=g.token||""},(g,v)=>Z(g,v),!1,!1),i&&(Ne(P(),s),G(s),h(""),await ce(P(),H(),s)),O(!1)},Ge=e=>{a(me(P(),e))},He=S(()=>Nr(Xe(),{alpha:.15}));return[r(Qr,{get showLayout(){var e,s;return!!((e=c())!=null&&e.authed&&((s=c())!=null&&s.allow_preview)&&p.state===_.Folder)}}),r(Fe,{get children(){return r(I,{class:"body",mt:"$1",py:"$2",px:"2%",minH:"80vh",w:"$full",gap:"$4",get children(){return[r(I,{w:"$full",p:"$4",rounded:"$xl",get bgColor(){return He()},alignItems:"start",spacing:"$3",get children(){return[r(I,{alignItems:"start",spacing:"$1",get children(){return[r(re,{fontSize:"$3xl",fontWeight:"$bold",get children(){var e;return((e=c())==null?void 0:e.name)||t("share.title",void 0,"Share")}}),r(re,{color:"$neutral11",get children(){return P()}})]}}),r(u,{get when(){return c()},get children(){return r(T,{spacing:"$2",wrap:"wrap",get children(){return[r(u,{get when(){var e;return(e=c())==null?void 0:e.has_password},get children(){return r(R,{colorScheme:"info",get children(){return t("share.password_required",void 0,"Password")}})}}),r(u,{get when(){var e;return(e=c())==null?void 0:e.burn_after_read},get children(){return r(R,{get colorScheme(){return B()?"danger":"warning"},get children(){return t("share.burn_after_read",void 0,"Burn after read")}})}}),r(u,{get when(){var e;return!!((e=c())!=null&&e.access_limit&&c().access_limit>1)},get children(){return r(R,{get colorScheme(){return B()?"danger":"warning"},get children(){var e,s;return t("share.access_limit_badge",{count:(e=c())==null?void 0:e.access_limit},`${(s=c())==null?void 0:s.access_limit} accesses`)}})}}),r(u,{get when(){var e;return!((e=c())!=null&&e.allow_preview)},get children(){return r(R,{colorScheme:"danger",get children(){return t("share.preview_disabled",void 0,"Preview off")}})}}),r(u,{get when(){var e;return!((e=c())!=null&&e.allow_download)},get children(){return r(R,{colorScheme:"danger",get children(){return t("share.download_disabled",void 0,"Download off")}})}})]}})}}),r(u,{get when(){return q(()=>{var e;return((e=c())==null?void 0:e.access_limit)===1},!0)()&&!B()},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Y,{}),r(Q,{get children(){return t("share.burn_after_read_warning",void 0,"This share will be disabled after the first successful read. Loading a directory or previewing a file may consume it.")}})]}})}}),r(u,{get when(){var e;return!!((e=c())!=null&&e.access_limit&&c().access_limit>1&&!B())},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Y,{}),r(Q,{get children(){var e,s;return t("share.access_limit_warning",{count:(e=c())==null?void 0:e.access_limit},`This share will be disabled after ${(s=c())==null?void 0:s.access_limit} successful accesses. Loading a directory or previewing a file may consume it.`)}})]}})}}),r(u,{get when(){return B()},get children(){return r(X,{status:"warning",w:"$full",get children(){return[r(Y,{}),r(Q,{get children(){return r(u,{get when(){var e;return((e=c())==null?void 0:e.access_limit)===1},get fallback(){return t("share.access_limit_consumed_notice",void 0,"This share has reached its access limit. Refreshing or opening more items may no longer work.")},get children(){return t("share.consumed_notice",void 0,"This burn-after-read share has already been consumed. Refreshing or opening more items may no longer work.")}})}})]}})}}),r(u,{get when(){return z()},get children(){return r(X,{get status(){return Ae()===410?"warning":"danger"},w:"$full",get children(){return[r(Y,{}),r(Q,{get children(){return z()}})]}})}})]}}),r(u,{get when(){return q(()=>!!ae(),!0)()&&!c()},get children(){return r(K,{})}}),r(u,{get when(){var e;return q(()=>{var s;return!!((s=c())!=null&&s.has_password)},!0)()&&!((e=c())!=null&&e.authed)},get children(){return r(I,{w:"$full",rounded:"$xl",get bgColor(){return _e("white","$neutral3")()},shadow:"$lg",get children(){return r(Kr,{get title(){return t("share.password_prompt",void 0,"This share is protected by a password.")},password:m,setPassword:h,enterCallback:()=>{ze()}})}})}}),r(u,{get when(){var e,s;return q(()=>!!c(),!0)()&&(!((e=c())!=null&&e.has_password)||((s=c())==null?void 0:s.authed))},get children(){return[r(et,{get rootLabel(){var e;return((e=c())==null?void 0:e.name)||P()},get path(){return H()},onNavigate:Ge}),r(u,{get when(){var e;return(e=c())==null?void 0:e.allow_preview},get children(){return r(Ee,{files:["header.md","top.md","index.md"],fromMeta:"header"})}}),r(st,{get nodeLoading(){return Pe()||ae()},get nodeError(){return z()},get allowPreview(){var e;return!!((e=c())!=null&&e.allow_preview)}}),r(u,{get when(){return p.state===_.Folder&&!Pe()&&!ae()&&!z()&&J.type!=="all"},get children(){return r(at,{get currentPage(){return oe()},get currentPerPage(){return V()},get total(){return p.total},onPageChange:e=>{l({page:e,per_page:V()})},onPerPageChange:e=>{l({page:1,per_page:e})}})}}),r(u,{get when(){var e;return(e=c())==null?void 0:e.allow_preview},get children(){return r(Ee,{files:["readme.md","footer.md","bottom.md"],fromMeta:"readme"})}})]}})]}})}})]};export{yt as default};
@@ -0,0 +1 @@
1
+ import{y as t,av as r,Y as e}from"./index-12c59944.js";import o from"./Upload-767afc13.js";import"./index-411bfb29.js";import"./Task-9716a5eb.js";const p=()=>t(e,{justifyContent:"center",h:"100vh",get children(){return t(r,{w:"$md",get children(){return t(o,{})}})}});export{p as default};