luckyphoenix 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +4 -4
  2. package/alist-web/assets/{2fa-legacy.5fa60b44.js → 2fa-legacy.3350d44d.js} +1 -1
  3. package/alist-web/assets/{2fa.87b607b7.js → 2fa.0dab7189.js} +1 -1
  4. package/alist-web/assets/{About-legacy.0ff31d02.js → About-legacy.e1597551.js} +1 -1
  5. package/alist-web/assets/{About.14d416ca.js → About.11e2f3bb.js} +1 -1
  6. package/alist-web/assets/{AddOrEdit-legacy.ac9f5415.js → AddOrEdit-legacy.2a02db88.js} +1 -1
  7. package/alist-web/assets/{AddOrEdit-legacy.78842fbc.js → AddOrEdit-legacy.432f6c0e.js} +1 -1
  8. package/alist-web/assets/{AddOrEdit-legacy.102d61ae.js → AddOrEdit-legacy.6ac6f516.js} +1 -1
  9. package/alist-web/assets/{AddOrEdit.c9b47599.js → AddOrEdit.79c069f9.js} +1 -1
  10. package/alist-web/assets/{AddOrEdit.9ee0bb50.js → AddOrEdit.e641a9bd.js} +1 -1
  11. package/alist-web/assets/{AddOrEdit.971a8ba8.js → AddOrEdit.f0ec5bf9.js} +1 -1
  12. package/alist-web/assets/Common-legacy.5144e9c0.js +1 -0
  13. package/alist-web/assets/Common.6eff9060.js +1 -0
  14. package/alist-web/assets/{Copy-legacy.bb1c54a1.js → Copy-legacy.3d846482.js} +1 -1
  15. package/alist-web/assets/Copy.d1980101.js +1 -0
  16. package/alist-web/assets/DeletePopover-legacy.1906395c.js +1 -0
  17. package/alist-web/assets/{DeletePopover.610bc212.js → DeletePopover.f7887d88.js} +1 -1
  18. package/alist-web/assets/File-legacy.889dd355.js +1 -0
  19. package/alist-web/assets/File.23490613.js +1 -0
  20. package/alist-web/assets/{Folder-legacy.6de85b2c.js → Folder-legacy.a4550db5.js} +3 -3
  21. package/alist-web/assets/{Folder.744549da.js → Folder.7e9202ae.js} +2 -2
  22. package/alist-web/assets/{FolderTree-legacy.df0711f0.js → FolderTree-legacy.2cffdb64.js} +1 -1
  23. package/alist-web/assets/{FolderTree.b115623c.js → FolderTree.3d6d889d.js} +1 -1
  24. package/alist-web/assets/Grid-legacy.a63ef469.js +1 -0
  25. package/alist-web/assets/Grid.7759c684.js +1 -0
  26. package/alist-web/assets/{GridItem-legacy.41480c5c.js → GridItem-legacy.2300a556.js} +1 -1
  27. package/alist-web/assets/{GridItem.c2d8d04b.js → GridItem.5502f946.js} +1 -1
  28. package/alist-web/assets/{ImageWithError-legacy.33680aa7.js → ImageWithError-legacy.184872e5.js} +1 -1
  29. package/alist-web/assets/{ImageWithError.e84b4adb.js → ImageWithError.fbebe083.js} +1 -1
  30. package/alist-web/assets/{Images-legacy.ac934929.js → Images-legacy.47953965.js} +1 -1
  31. package/alist-web/assets/{Images.5f4d59ff.js → Images.cc1e423a.js} +1 -1
  32. package/alist-web/assets/{Layout-legacy.c23a00d4.js → Layout-legacy.bbe308ea.js} +1 -1
  33. package/alist-web/assets/{Layout.edacf8b3.js → Layout.683e33e3.js} +4 -4
  34. package/alist-web/assets/{List-legacy.b954608e.js → List-legacy.dc5a2a38.js} +1 -1
  35. package/alist-web/assets/List.249d43e3.js +1 -0
  36. package/alist-web/assets/{Messenger-legacy.ce777b2d.js → Messenger-legacy.15747cf4.js} +1 -1
  37. package/alist-web/assets/{Messenger.0a4ddaae.js → Messenger.0de50ee8.js} +1 -1
  38. package/alist-web/assets/{Metas-legacy.a8d69714.js → Metas-legacy.9a37ad69.js} +1 -1
  39. package/alist-web/assets/{Metas.ecf1dfa9.js → Metas.94282135.js} +1 -1
  40. package/alist-web/assets/{Other-legacy.9df9fca0.js → Other-legacy.1defd90b.js} +1 -1
  41. package/alist-web/assets/{Other.20617503.js → Other.c698471d.js} +1 -1
  42. package/alist-web/assets/{PackageDownload-legacy.ab740d94.js → PackageDownload-legacy.13e43bb9.js} +1 -1
  43. package/alist-web/assets/{PackageDownload.9136ed46.js → PackageDownload.89e4ecc4.js} +1 -1
  44. package/alist-web/assets/{Paginator-legacy.df584da0.js → Paginator-legacy.6f9f1dcb.js} +1 -1
  45. package/alist-web/assets/{Paginator.56ed88cb.js → Paginator.758bcfa3.js} +1 -1
  46. package/alist-web/assets/{Password-legacy.1e6250d0.js → Password-legacy.5e5cbd20.js} +1 -1
  47. package/alist-web/assets/{Password.789eac32.js → Password.500d1886.js} +1 -1
  48. package/alist-web/assets/{Profile-legacy.b2ff967c.js → Profile-legacy.ccf1ddd4.js} +1 -1
  49. package/alist-web/assets/{Profile.5ddab9f2.js → Profile.33671ffe.js} +1 -1
  50. package/alist-web/assets/ResponsiveGrid-legacy.d58d4dfe.js +1 -0
  51. package/alist-web/assets/{ResponsiveGrid.a8ef36b9.js → ResponsiveGrid.04e247e9.js} +1 -1
  52. package/alist-web/assets/{S3-legacy.62387b8e.js → S3-legacy.fb41a1b8.js} +1 -1
  53. package/alist-web/assets/{S3.d58d82f5.js → S3.135ba8ad.js} +1 -1
  54. package/alist-web/assets/{SettingItem-legacy.434fc01f.js → SettingItem-legacy.51bf5808.js} +1 -1
  55. package/alist-web/assets/{SettingItem.e3e93238.js → SettingItem.d9757149.js} +1 -1
  56. package/alist-web/assets/{Storages-legacy.c8c85437.js → Storages-legacy.6fe86e3a.js} +1 -1
  57. package/alist-web/assets/{Storages.c8aa56c5.js → Storages.22e89c36.js} +1 -1
  58. package/alist-web/assets/{Tasks-legacy.71eeb831.js → Tasks-legacy.bcf4e457.js} +1 -1
  59. package/alist-web/assets/{Tasks.a6e3b1c8.js → Tasks.f607862a.js} +1 -1
  60. package/alist-web/assets/{Upload-legacy.bfe63038.js → Upload-legacy.7dd2be21.js} +1 -1
  61. package/alist-web/assets/{Upload-legacy.02e5198e.js → Upload-legacy.cb936202.js} +1 -1
  62. package/alist-web/assets/Upload.4c54bcbf.js +1 -0
  63. package/alist-web/assets/{Upload.42f49d82.js → Upload.d35bb47b.js} +1 -1
  64. package/alist-web/assets/Users-legacy.b992a339.js +1 -0
  65. package/alist-web/assets/{Users.f66892fc.js → Users.7eb39296.js} +1 -1
  66. package/alist-web/assets/{Wether-legacy.d0956749.js → Wether-legacy.66b7b0d3.js} +1 -1
  67. package/alist-web/assets/{Wether.8a05f999.js → Wether.f17d6a97.js} +1 -1
  68. package/alist-web/assets/{aliyun_office-legacy.24261e1a.js → aliyun_office-legacy.7e1c4ff6.js} +1 -1
  69. package/alist-web/assets/{aliyun_office.1fdba9c9.js → aliyun_office.627eb2ac.js} +1 -1
  70. package/alist-web/assets/{aliyun_video-legacy.f70aedd2.js → aliyun_video-legacy.dfd303c5.js} +1 -1
  71. package/alist-web/assets/{aliyun_video.ac65f8dc.js → aliyun_video.681fb5ee.js} +1 -1
  72. package/alist-web/assets/{asciinema-legacy.12c69213.js → asciinema-legacy.554330ec.js} +1 -1
  73. package/alist-web/assets/{asciinema.40312582.js → asciinema.a6e925e9.js} +1 -1
  74. package/alist-web/assets/{audio-legacy.b7fd7635.js → audio-legacy.d6ef56f6.js} +1 -1
  75. package/alist-web/assets/{audio.c44e6fbf.js → audio.0cad5cce.js} +1 -1
  76. package/alist-web/assets/{backup-restore-legacy.5fa545c8.js → backup-restore-legacy.f4c8daf0.js} +1 -1
  77. package/alist-web/assets/{backup-restore.c236599d.js → backup-restore.db700ca0.js} +1 -1
  78. package/alist-web/assets/entry-legacy.01f22349.js +1 -0
  79. package/alist-web/assets/entry-legacy.31390e6c.js +1 -0
  80. package/alist-web/assets/entry-legacy.5119e4e8.js +1 -0
  81. package/alist-web/assets/entry-legacy.d3b909f7.js +1 -0
  82. package/alist-web/assets/entry-legacy.e017de3e.js +1 -0
  83. package/alist-web/assets/entry-legacy.eec15c4b.js +1 -0
  84. package/alist-web/assets/entry-legacy.fa23a37d.js +1 -0
  85. package/alist-web/assets/entry.2eaf5bb3.js +5 -0
  86. package/alist-web/assets/entry.371138c7.js +7 -0
  87. package/alist-web/assets/entry.5c41c532.js +5 -0
  88. package/alist-web/assets/entry.6cce3889.js +5 -0
  89. package/alist-web/assets/entry.8acdb7f9.js +9 -0
  90. package/alist-web/assets/entry.abb9e6ed.js +5 -0
  91. package/alist-web/assets/entry.e83ea613.js +6 -0
  92. package/alist-web/assets/{helper-legacy.628706d4.js → helper-legacy.646eb2d9.js} +1 -1
  93. package/alist-web/assets/{helper.b9cc6b8e.js → helper.d54883e3.js} +1 -1
  94. package/alist-web/assets/{hls-legacy.5de4cc7e.js → hls-legacy.9e0f7edb.js} +7 -7
  95. package/alist-web/assets/{hls.35474569.js → hls.1623c369.js} +1 -1
  96. package/alist-web/assets/{html-legacy.b684ae31.js → html-legacy.fa26963f.js} +1 -1
  97. package/alist-web/assets/{html.94f79f48.js → html.8b79f6ca.js} +1 -1
  98. package/alist-web/assets/{icon-legacy.d23aa70f.js → icon-legacy.2d7c0a16.js} +1 -1
  99. package/alist-web/assets/{icon.3be36f76.js → icon.94f94d81.js} +3 -3
  100. package/alist-web/assets/{image-legacy.c33664c4.js → image-legacy.236a9cca.js} +1 -1
  101. package/alist-web/assets/{image.4ca2e490.js → image.82ca8574.js} +1 -1
  102. package/alist-web/assets/{index-legacy.56429d46.js → index-legacy.0bd3a7f2.js} +1 -1
  103. package/alist-web/assets/{index-legacy.f807ff76.js → index-legacy.40b50240.js} +1 -1
  104. package/alist-web/assets/{index-legacy.8ef32e28.js → index-legacy.61172c95.js} +1 -1
  105. package/alist-web/assets/{index-legacy.1159bd68.js → index-legacy.840e3d82.js} +1 -1
  106. package/alist-web/assets/{index-legacy.b820f693.js → index-legacy.91fe7355.js} +1 -1
  107. package/alist-web/assets/{index-legacy.700115ce.js → index-legacy.a7c40fe3.js} +4 -4
  108. package/alist-web/assets/index-legacy.d72e643a.js +1 -0
  109. package/alist-web/assets/{index-legacy.20004795.js → index-legacy.efef9df2.js} +1 -1
  110. package/alist-web/assets/{index-legacy.a5798ce8.js → index-legacy.fb7fb711.js} +1 -1
  111. package/alist-web/assets/{index.6a851756.js → index.0adfc44b.js} +1 -1
  112. package/alist-web/assets/{index.7f73cfca.js → index.26f5b473.js} +1 -1
  113. package/alist-web/assets/{index.7b37ac3e.js → index.72e3f724.js} +1 -1
  114. package/alist-web/assets/{index.17befc27.js → index.7409b67a.js} +1 -1
  115. package/alist-web/assets/{index.e0a3345f.js → index.952b63b2.js} +1 -1
  116. package/alist-web/assets/{index.4e746469.js → index.afa471fc.js} +1 -1
  117. package/alist-web/assets/{index.b9404cdc.js → index.c15f7469.js} +1 -1
  118. package/alist-web/assets/{index.e86a9d96.js → index.dcae211e.js} +1 -1
  119. package/alist-web/assets/{index.f27bc3a3.js → index.fae3cea4.js} +48 -48
  120. package/alist-web/assets/{indexes-legacy.c0a7de92.js → indexes-legacy.2c89d2d8.js} +1 -1
  121. package/alist-web/assets/{indexes.a5ed9461.js → indexes.9cb6f537.js} +2 -2
  122. package/alist-web/assets/{ipa-legacy.79da7f5e.js → ipa-legacy.7a49e0e2.js} +1 -1
  123. package/alist-web/assets/{ipa.d3534733.js → ipa.97543f5f.js} +1 -1
  124. package/alist-web/assets/{markdown-legacy.06eecfab.js → markdown-legacy.164943d8.js} +1 -1
  125. package/alist-web/assets/{markdown.98083d2f.js → markdown.3a932f53.js} +1 -1
  126. package/alist-web/assets/{markdown_with_word_wrap-legacy.db40475c.js → markdown_with_word_wrap-legacy.5e032546.js} +1 -1
  127. package/alist-web/assets/{markdown_with_word_wrap.01a053ec.js → markdown_with_word_wrap.0efe2540.js} +1 -1
  128. package/alist-web/assets/offline_download-legacy.11c4744c.js +1 -0
  129. package/alist-web/assets/{offline_download.cb36ca7f.js → offline_download.940ca54b.js} +1 -1
  130. package/alist-web/assets/{plist-legacy.38fc4f6e.js → plist-legacy.c76fc720.js} +1 -1
  131. package/alist-web/assets/plist.3c9cbb1a.js +1 -0
  132. package/alist-web/assets/{polyfills-legacy.7ea5ffba.js → polyfills-legacy.5f28c7ae.js} +1 -1
  133. package/alist-web/assets/{text-editor-legacy.c08cc307.js → text-editor-legacy.6e126724.js} +1 -1
  134. package/alist-web/assets/{text-editor.b6dbae2b.js → text-editor.45600bb2.js} +3 -3
  135. package/alist-web/assets/{url-legacy.11f4f29a.js → url-legacy.e95c5b8b.js} +1 -1
  136. package/alist-web/assets/url.f7914d75.js +1 -0
  137. package/alist-web/assets/{useTitle-legacy.1ab50c72.js → useTitle-legacy.e942225f.js} +1 -1
  138. package/alist-web/assets/{useTitle.c1b8fc88.js → useTitle.630c0b7f.js} +1 -1
  139. package/alist-web/assets/{video-legacy.34f028da.js → video-legacy.5198eeb8.js} +7 -7
  140. package/alist-web/assets/{video.2736f6ce.js → video.afae2b68.js} +1 -1
  141. package/alist-web/assets/{video360-legacy.0da2ad24.js → video360-legacy.227ed7df.js} +1 -1
  142. package/alist-web/assets/{video360.5f4a14b9.js → video360.c8385eb2.js} +1 -1
  143. package/alist-web/assets/{video_box-legacy.24a54504.js → video_box-legacy.d60b6928.js} +1 -1
  144. package/alist-web/assets/{video_box.ea9d6184.js → video_box.bfb0d4a5.js} +3 -3
  145. package/alist-web/index.html +60 -74
  146. package/alist-web/static/manifest.json +1 -1
  147. package/package.json +1 -1
  148. package/alist-web/assets/Common-legacy.41405c0c.js +0 -1
  149. package/alist-web/assets/Common.0404cf82.js +0 -1
  150. package/alist-web/assets/Copy.b44f12a7.js +0 -1
  151. package/alist-web/assets/DeletePopover-legacy.0ac898a9.js +0 -1
  152. package/alist-web/assets/File-legacy.7813c6bd.js +0 -1
  153. package/alist-web/assets/File.779fcca6.js +0 -1
  154. package/alist-web/assets/Grid-legacy.0e5d85e0.js +0 -1
  155. package/alist-web/assets/Grid.100c9fa0.js +0 -1
  156. package/alist-web/assets/List.a7695a79.js +0 -1
  157. package/alist-web/assets/ResponsiveGrid-legacy.26c50421.js +0 -1
  158. package/alist-web/assets/Upload.73d9bb5f.js +0 -1
  159. package/alist-web/assets/Users-legacy.e7985152.js +0 -1
  160. package/alist-web/assets/entry-legacy.7af3675d.js +0 -1
  161. package/alist-web/assets/entry-legacy.c6e3ee6f.js +0 -1
  162. package/alist-web/assets/entry.8b118df9.js +0 -9
  163. package/alist-web/assets/entry.f7c5bc9e.js +0 -5
  164. package/alist-web/assets/index-legacy.7aba107c.js +0 -1
  165. package/alist-web/assets/offline_download-legacy.8eefa027.js +0 -1
  166. package/alist-web/assets/plist.9ceca224.js +0 -1
  167. package/alist-web/assets/url.4723617b.js +0 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ***Bing Wallpaper***
2
- **2025年07月15日 00:00:00 UTC+0800**
3
- *[永恒的光芒,英仙座流星雨和一棵古老刺果松,大盆地国家公园,内华达州,美国Wirestock Creators/Shutterstock)](https://www.bing.com/th?id=OHR.PerseidsPine_ZH-CN1081004815_UHD.jpg)*
4
- ![](https://www.bing.com/th?id=OHR.PerseidsPine_ZH-CN1081004815_UHD.jpg)
5
- ![](https://www.bing.com/th?id=OHR.PerseidsPine_ZH-CN1081004815_1080x1920.jpg)
2
+ **2025年07月16日 00:00:00 UTC+0800**
3
+ *[伊西斯女神的光辉照耀下,菲莱神庙(aka Temple of Isis), 阿斯旺, 埃及(©Ratnakorn Piyasirisorost/Getty Images)](https://www.bing.com/th?id=OHR.TemplePhilae_ZH-CN1232015188_UHD.jpg)*
4
+ ![](https://www.bing.com/th?id=OHR.TemplePhilae_ZH-CN1232015188_UHD.jpg)
5
+ ![](https://www.bing.com/th?id=OHR.TemplePhilae_ZH-CN1232015188_1080x1920.jpg)
@@ -1 +1 @@
1
- !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function e(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(r){n(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function n(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return r};var r={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(P){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=O(a,e);if(u){if(u===h)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(P){return{type:"throw",arg:P}}}r.wrap=l;var h={};function p(){}function y(){}function v(){}var d={};f(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==e&&n.call(m,a)&&(d=m);var b=v.prototype=p.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function o(i,a,u,c){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}}function O(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=v,f(b,"constructor",v),f(v,"constructor",y),y.displayName=f(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),f(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),f(b,c,"Generator"),f(b,a,(function(){return this})),f(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:S(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},r}function i(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(f){return void e(f)}u.done?r(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function u(t){i(a,n,o,u,c,"next",t)}function c(t){i(a,n,o,u,c,"throw",t)}u(void 0)}))}}function u(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.700115ce.js"],(function(t){"use strict";var r,n,i,c,f,l,s,h,p,y,v,d,g,m,b,w,x,O,L,j,E;return{setters:[function(t){r=t.b,n=t.aW,i=t.b9,c=t.a,f=t.m,l=t.h,s=t.S,h=t.a4,p=t.bP,y=t.au,v=t.az,d=t.b5,g=t.al,m=t.I,b=t.C,w=t.a8,x=t.ah,O=t.n,L=t.ba,j=t.aY,E=t.cZ}],execute:function(){t("default",(function(){var t=r().back,S=u(n((function(){return i.post("/auth/2fa/generate")})),2),_=S[0],P=S[1],k=c(),I=u(f(),2),A=I[0],G=I[1],N=function(){var r=a(o().mark((function r(){var e;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!x().otp){r.next=4;break}return O.warning(k("users.2fa_already_enabled")),t(),r.abrupt("return");case 4:return r.next=6,P();case 6:e=r.sent,L(e,G);case 8:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),T=u(f(""),2),D=T[0],F=T[1];N();var $=u(n((function(){var t;return i.post("/auth/2fa/verify",{code:D(),secret:null===(t=A())||void 0===t?void 0:t.secret})})),2),C=$[0],Y=$[1],q=function(){var r=a(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Y();case 2:n=r.sent,j(n,(function(){E(e(e({},x()),{},{otp:!0})),t()}));case 4:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return l(w,{get loading(){return _()},get children(){return l(s,{get when(){return A()},get children(){return l(h,{spacing:"$2",alignItems:"start",get children(){return[l(p,{get children(){return k("users.scan_qr")}}),l(y,{boxSize:"$xs",rounded:"$lg",get src(){var t;return null===(t=A())||void 0===t?void 0:t.qr}}),l(p,{get children(){return[v((function(){return k("users.or_manual")})),":"," ",l(d,{get color(){return g()},get children(){var t;return null===(t=A())||void 0===t?void 0:t.secret}})]}}),l(m,{maxW:"$xs",get placeholder(){return k("users.input_code")},get value(){return D()},onInput:function(t){return F(t.currentTarget.value)},onKeyDown:function(t){"Enter"===t.key&&q()}}),l(b,{get loading(){return C()},onClick:q,get children(){return k("users.verify")}})]}})}})}})}))}}}))}();
1
+ !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function e(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(r){n(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function n(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return r};var r={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(P){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=O(a,e);if(u){if(u===h)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(P){return{type:"throw",arg:P}}}r.wrap=l;var h={};function p(){}function y(){}function v(){}var d={};f(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==e&&n.call(m,a)&&(d=m);var b=v.prototype=p.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function o(i,a,u,c){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}}function O(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=v,f(b,"constructor",v),f(v,"constructor",y),y.displayName=f(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),f(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),f(b,c,"Generator"),f(b,a,(function(){return this})),f(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:S(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},r}function i(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(f){return void e(f)}u.done?r(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function u(t){i(a,n,o,u,c,"next",t)}function c(t){i(a,n,o,u,c,"throw",t)}u(void 0)}))}}function u(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.a7c40fe3.js"],(function(t){"use strict";var r,n,i,c,f,l,s,h,p,y,v,d,g,m,b,w,x,O,L,j,E;return{setters:[function(t){r=t.b,n=t.aW,i=t.b9,c=t.a,f=t.m,l=t.h,s=t.S,h=t.a4,p=t.bP,y=t.au,v=t.az,d=t.b5,g=t.al,m=t.I,b=t.C,w=t.a8,x=t.ah,O=t.n,L=t.ba,j=t.aY,E=t.d2}],execute:function(){t("default",(function(){var t=r().back,S=u(n((function(){return i.post("/auth/2fa/generate")})),2),_=S[0],P=S[1],k=c(),I=u(f(),2),A=I[0],G=I[1],N=function(){var r=a(o().mark((function r(){var e;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!x().otp){r.next=4;break}return O.warning(k("users.2fa_already_enabled")),t(),r.abrupt("return");case 4:return r.next=6,P();case 6:e=r.sent,L(e,G);case 8:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),T=u(f(""),2),D=T[0],F=T[1];N();var $=u(n((function(){var t;return i.post("/auth/2fa/verify",{code:D(),secret:null===(t=A())||void 0===t?void 0:t.secret})})),2),C=$[0],Y=$[1],q=function(){var r=a(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Y();case 2:n=r.sent,j(n,(function(){E(e(e({},x()),{},{otp:!0})),t()}));case 4:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return l(w,{get loading(){return _()},get children(){return l(s,{get when(){return A()},get children(){return l(h,{spacing:"$2",alignItems:"start",get children(){return[l(p,{get children(){return k("users.scan_qr")}}),l(y,{boxSize:"$xs",rounded:"$lg",get src(){var t;return null===(t=A())||void 0===t?void 0:t.qr}}),l(p,{get children(){return[v((function(){return k("users.or_manual")})),":"," ",l(d,{get color(){return g()},get children(){var t;return null===(t=A())||void 0===t?void 0:t.secret}})]}}),l(m,{maxW:"$xs",get placeholder(){return k("users.input_code")},get value(){return D()},onInput:function(t){return F(t.currentTarget.value)},onKeyDown:function(t){"Enter"===t.key&&q()}}),l(b,{get loading(){return C()},onClick:q,get children(){return k("users.verify")}})]}})}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as v,aW as c,b9 as u,a as w,m as i,h as t,S as x,a4 as S,bP as g,au as C,az as I,b5 as _,al as $,I as k,C as T,a8 as D,ah as d,n as F,ba as L,aY as M,cZ as R}from"./index.f27bc3a3.js";const q=()=>{const{back:n}=v(),[l,h]=c(()=>u.post("/auth/2fa/generate")),a=w(),[r,p]=i(),f=async()=>{if(d().otp){F.warning(a("users.2fa_already_enabled")),n();return}const e=await h();L(e,p)},[s,y]=i("");f();const[m,b]=c(()=>{var e;return u.post("/auth/2fa/verify",{code:s(),secret:(e=r())==null?void 0:e.secret})}),o=async()=>{const e=await b();M(e,()=>{R({...d(),otp:!0}),n()})};return t(D,{get loading(){return l()},get children(){return t(x,{get when(){return r()},get children(){return t(S,{spacing:"$2",alignItems:"start",get children(){return[t(g,{get children(){return a("users.scan_qr")}}),t(C,{boxSize:"$xs",rounded:"$lg",get src(){var e;return(e=r())==null?void 0:e.qr}}),t(g,{get children(){return[I(()=>a("users.or_manual")),":"," ",t(_,{get color(){return $()},get children(){var e;return(e=r())==null?void 0:e.secret}})]}}),t(k,{maxW:"$xs",get placeholder(){return a("users.input_code")},get value(){return s()},onInput:e=>y(e.currentTarget.value),onKeyDown:e=>{e.key==="Enter"&&o()}}),t(T,{get loading(){return m()},onClick:o,get children(){return a("users.verify")}})]}})}})}})};export{q as default};
1
+ import{b as v,aW as c,b9 as u,a as w,m as i,h as t,S as x,a4 as S,bP as g,au as C,az as I,b5 as _,al as $,I as k,C as T,a8 as D,ah as d,n as F,ba as L,aY as M,d2 as R}from"./index.fae3cea4.js";const q=()=>{const{back:n}=v(),[l,h]=c(()=>u.post("/auth/2fa/generate")),a=w(),[r,p]=i(),f=async()=>{if(d().otp){F.warning(a("users.2fa_already_enabled")),n();return}const e=await h();L(e,p)},[s,y]=i("");f();const[m,b]=c(()=>{var e;return u.post("/auth/2fa/verify",{code:s(),secret:(e=r())==null?void 0:e.secret})}),o=async()=>{const e=await b();M(e,()=>{R({...d(),otp:!0}),n()})};return t(D,{get loading(){return l()},get children(){return t(x,{get when(){return r()},get children(){return t(S,{spacing:"$2",alignItems:"start",get children(){return[t(g,{get children(){return a("users.scan_qr")}}),t(C,{boxSize:"$xs",rounded:"$lg",get src(){var e;return(e=r())==null?void 0:e.qr}}),t(g,{get children(){return[I(()=>a("users.or_manual")),":"," ",t(_,{get color(){return $()},get children(){var e;return(e=r())==null?void 0:e.secret}})]}}),t(k,{maxW:"$xs",get placeholder(){return a("users.input_code")},get value(){return s()},onInput:e=>y(e.currentTarget.value),onKeyDown:e=>{e.key==="Enter"&&o()}}),t(T,{get loading(){return m()},onClick:o,get children(){return a("users.verify")}})]}})}})}})};export{q as default};
@@ -1 +1 @@
1
- !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(k){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=L(a,e);if(u){if(u===h)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}r.wrap=l;var h={};function y(){}function p(){}function v(){}var d={};f(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==e&&o.call(m,a)&&(d=m);var w=v.prototype=y.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,u,c){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,f(w,"constructor",v),f(v,"constructor",p),p.displayName=f(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,c,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},r}function o(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(f){return void e(f)}u.done?r(c):Promise.resolve(c).then(n,o)}System.register(["./index-legacy.700115ce.js","./useTitle-legacy.1ab50c72.js"],(function(t){"use strict";var e,i,a,u,c,f;return{setters:[function(t){e=t.a,i=t.a6,a=t.h,u=t.a9,c=t.a8},function(t){f=t.b}],execute:function(){var l=function(){var t,r=(t=n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://jsd.nn.ci/gh/alist-org/alist@main/README.md");case 2:return t.next=4,t.sent.text();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function u(t){o(a,n,i,u,c,"next",t)}function c(t){o(a,n,i,u,c,"throw",t)}u(void 0)}))});return function(){return r.apply(this,arguments)}}();t("default",(function(){e(),f("manage.sidemenu.about");var t=r(i(l),1)[0];return a(c,{get loading(){return t.loading},get children(){return a(u,{get children(){return t()}})}})}))}}}))}();
1
+ !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(k){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=L(a,e);if(u){if(u===h)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}r.wrap=l;var h={};function y(){}function p(){}function v(){}var d={};f(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==e&&o.call(m,a)&&(d=m);var w=v.prototype=y.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,u,c){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,f(w,"constructor",v),f(v,"constructor",p),p.displayName=f(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,c,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},r}function o(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(f){return void e(f)}u.done?r(c):Promise.resolve(c).then(n,o)}System.register(["./index-legacy.a7c40fe3.js","./useTitle-legacy.e942225f.js"],(function(t){"use strict";var e,i,a,u,c,f;return{setters:[function(t){e=t.a,i=t.a6,a=t.h,u=t.a9,c=t.a8},function(t){f=t.b}],execute:function(){var l=function(){var t,r=(t=n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://jsd.nn.ci/gh/alist-org/alist@main/README.md");case 2:return t.next=4,t.sent.text();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function u(t){o(a,n,i,u,c,"next",t)}function c(t){o(a,n,i,u,c,"throw",t)}u(void 0)}))});return function(){return r.apply(this,arguments)}}();t("default",(function(){e(),f("manage.sidemenu.about");var t=r(i(l),1)[0];return a(c,{get loading(){return t.loading},get children(){return a(u,{get children(){return t()}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{a as t,a6 as n,h as e,a9 as r,a8 as s}from"./index.f27bc3a3.js";import{b as o}from"./useTitle.c1b8fc88.js";const i=async()=>await(await fetch("https://jsd.nn.ci/gh/alist-org/alist@main/README.md")).text(),m=()=>{t(),o("manage.sidemenu.about");const[a]=n(i);return e(s,{get loading(){return a.loading},get children(){return e(r,{get children(){return a()}})}})};export{m as default};
1
+ import{a as t,a6 as n,h as e,a9 as r,a8 as s}from"./index.fae3cea4.js";import{b as o}from"./useTitle.630c0b7f.js";const i=async()=>await(await fetch("https://jsd.nn.ci/gh/alist-org/alist@main/README.md")).text(),m=()=>{t(),o("manage.sidemenu.about");const[a]=n(i);return e(s,{get loading(){return a.loading},get children(){return e(r,{get children(){return a()}})}})};export{m as default};
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=f;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(g=m);var b=y.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y,l(b,"constructor",y),l(y,"constructor",d),d.displayName=l(y,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.700115ce.js","./FolderTree-legacy.df0711f0.js","./index-legacy.b820f693.js"],(function(t){"use strict";var r,i,c,l,f,s,h,p,d,y,g,v,m,b,w,x,_,L,S,j,E,O,k,P;return{setters:[function(t){r=t.a,i=t.b,c=t.cj,l=t.aW,f=t.b9,s=t.h,h=t.a4,p=t.bP,d=t.bA,y=t.bn,g=t.G,v=t.C,m=t.ba,b=t.n,w=t.a8,x=t.bQ,_=t.az,L=t.I,S=t.bz,j=t.T,E=t.ch,O=t.S,k=t.F},function(t){P=t.a},function(){}],execute:function(){var T=function(t){var e=r();return s(d,{w:"$full",display:"flex",flexDirection:"column",get children(){var r,n;return[s(y,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},u(r,"display","flex"),u(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){return e("metas.".concat(t.name))},a(r,n),r)),s(x,{w:"$full",get direction(){return"bool"===t.type?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[_((function(){return _((function(){return"string"===t.type}),!0)()?s(L,{get id(){return t.name},get value(){return t.value},onInput:function(e){return t.onChange(e.currentTarget.value)}}):_((function(){return"bool"===t.type}),!0)()?s(S,{get id(){return t.name},get checked(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.checked)}}):s(j,{get id(){return t.name},get value(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.value)}})})),s(d,{w:"fit-content",display:"flex",get children(){return s(E,{css:{whiteSpace:"nowrap"},get id(){return"".concat(t.name,"_sub")},onChange:function(e){return t.onSub(e.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return t.sub},get children(){return e("metas.apply_sub")}})}})]}}),s(O,{get when(){return t.help},get children(){return s(k,{get children(){return e("metas.".concat(t.name,"_help"))}})}})]}})};t("default",(function(){var t=r(),a=i(),u=a.params,x=a.back,_=u.id,L=o(c({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),2),S=L[0],j=L[1],E=o(l((function(){return f.get("/admin/meta/get?id=".concat(_))})),2),O=E[0],k=E[1],C=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k();case 2:r=t.sent,m(r,j);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();_&&C();var I=o(l((function(){return f.post("/admin/meta/".concat(_?"update":"create"),S)})),2),A=I[0],G=I[1];return s(w,{get loading(){return O()},get children(){return s(h,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[s(p,{get children(){return t("global.".concat(_?"edit":"add"))}}),s(d,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[s(y,{for:"path",display:"flex",alignItems:"center",get children(){return t("metas.path")}}),s(P,{id:"path",get value(){return S.path},onChange:function(t){return j("path",t)}})]}}),s(g,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:function(t){return s(T,{get name(){return t.name},get type(){return t.type},get value(){return S[t.name]},onChange:function(e){return j(t.name,e)},get sub(){return S[t.sub]},onSub:function(e){return j(t.sub,e)},get help(){return t.help}})}}),s(v,{get loading(){return A()},onClick:(r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G();case 2:n=e.sent,m(n,(function(){b.success(t("global.save_success")),x()}));case 4:case"end":return e.stop()}}),r)}))),function(){return r.apply(this,arguments)}),get children(){return t("global.".concat(_?"save":"add"))}})];var r}})}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=f;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(g=m);var b=y.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y,l(b,"constructor",y),l(y,"constructor",d),d.displayName=l(y,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.a7c40fe3.js","./FolderTree-legacy.2cffdb64.js","./index-legacy.91fe7355.js"],(function(t){"use strict";var r,i,c,l,f,s,h,p,d,y,g,v,m,b,w,x,_,L,S,j,E,O,k,P;return{setters:[function(t){r=t.a,i=t.b,c=t.cj,l=t.aW,f=t.b9,s=t.h,h=t.a4,p=t.bP,d=t.bA,y=t.bn,g=t.G,v=t.C,m=t.ba,b=t.n,w=t.a8,x=t.bQ,_=t.az,L=t.I,S=t.bz,j=t.T,E=t.ch,O=t.S,k=t.F},function(t){P=t.a},function(){}],execute:function(){var T=function(t){var e=r();return s(d,{w:"$full",display:"flex",flexDirection:"column",get children(){var r,n;return[s(y,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},u(r,"display","flex"),u(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){return e("metas.".concat(t.name))},a(r,n),r)),s(x,{w:"$full",get direction(){return"bool"===t.type?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[_((function(){return _((function(){return"string"===t.type}),!0)()?s(L,{get id(){return t.name},get value(){return t.value},onInput:function(e){return t.onChange(e.currentTarget.value)}}):_((function(){return"bool"===t.type}),!0)()?s(S,{get id(){return t.name},get checked(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.checked)}}):s(j,{get id(){return t.name},get value(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.value)}})})),s(d,{w:"fit-content",display:"flex",get children(){return s(E,{css:{whiteSpace:"nowrap"},get id(){return"".concat(t.name,"_sub")},onChange:function(e){return t.onSub(e.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return t.sub},get children(){return e("metas.apply_sub")}})}})]}}),s(O,{get when(){return t.help},get children(){return s(k,{get children(){return e("metas.".concat(t.name,"_help"))}})}})]}})};t("default",(function(){var t=r(),a=i(),u=a.params,x=a.back,_=u.id,L=o(c({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),2),S=L[0],j=L[1],E=o(l((function(){return f.get("/admin/meta/get?id=".concat(_))})),2),O=E[0],k=E[1],C=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k();case 2:r=t.sent,m(r,j);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();_&&C();var I=o(l((function(){return f.post("/admin/meta/".concat(_?"update":"create"),S)})),2),A=I[0],G=I[1];return s(w,{get loading(){return O()},get children(){return s(h,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[s(p,{get children(){return t("global.".concat(_?"edit":"add"))}}),s(d,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[s(y,{for:"path",display:"flex",alignItems:"center",get children(){return t("metas.path")}}),s(P,{id:"path",get value(){return S.path},onChange:function(t){return j("path",t)}})]}}),s(g,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:function(t){return s(T,{get name(){return t.name},get type(){return t.type},get value(){return S[t.name]},onChange:function(e){return j(t.name,e)},get sub(){return S[t.sub]},onSub:function(e){return j(t.sub,e)},get help(){return t.help}})}}),s(v,{get loading(){return A()},onClick:(r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G();case 2:n=e.sent,m(n,(function(){b.success(t("global.save_success")),x()}));case 4:case"end":return e.stop()}}),r)}))),function(){return r.apply(this,arguments)}),get children(){return t("global.".concat(_?"save":"add"))}})];var r}})}})}))}}}))}();
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=f;var d={};function h(){}function v(){}function g(){}var p={};l(p,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==n&&o.call(m,a)&&(p=m);var b=g.prototype=h.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==t(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(d).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=g,l(b,"constructor",g),l(g,"constructor",v),v.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.700115ce.js","./item_type-legacy.d1f1c701.js","./ResponsiveGrid-legacy.26c50421.js"],(function(t){"use strict";var n,a,u,f,s,d,h,v,g,p,y,m,b,w,x,S,O,L,_,j,E,k,C,T,P,I,N,A,G,$,F,q,B,z,J;return{setters:[function(t){n=t.a,a=t.h,u=t.bn,f=t.$,s=t.aC,d=t.a0,h=t.I,v=t.bz,g=t.T,p=t.bp,y=t.dj,m=t.S,b=t.F,w=t.bA,x=t.b,S=t.aW,O=t.b9,L=t.m,_=t.cj,j=t.k,E=t.bP,k=t.a4,C=t.dk,T=t.c_,P=t.c$,I=t.az,N=t.G,A=t.E,G=t.C,$=t.n,F=t.O,q=t.ba,B=t.a8},function(t){z=t.T},function(t){J=t.R}],execute:function(){var R=function(t){var e=n();return a(w,{w:"$full",display:"flex",flexDirection:"column",get required(){return t.required},get children(){var r,n;return[a(u,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},l(r,"display","flex"),l(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){var r;return e((null!==(r=t.full_name_path)&&void 0!==r?r:"common"===t.driver)?"storages.common.".concat(t.name):"drivers.".concat(t.driver,".").concat(t.name))},c(r,n),r)),a(f,{get fallback(){return a(s,{get children(){return e("settings.unknown_type")}})},get children(){return[a(d,{get when(){return t.type===z.String},get children(){return a(h,{get id(){return t.name},get type(){return"password"==t.name?"password":"text"},get readOnly(){return t.readonly},get value(){return t.value},get onChange(){return t.type===z.String?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.value)}:void 0}})}}),a(d,{get when(){return t.type===z.Number},get children(){return a(h,{type:"number",get id(){return t.name},get readOnly(){return t.readonly},get value(){return t.value},get onInput(){return t.type===z.Number?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,parseInt(e.currentTarget.value))}:void 0}})}}),a(d,{get when(){return t.type===z.Bool},get children(){return a(v,{get id(){return t.name},get readOnly(){return t.readonly},get defaultChecked(){return t.value},get onChange(){return t.type===z.Bool?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.checked)}:void 0}})}}),a(d,{get when(){return t.type===z.Text},get children(){return a(g,{get id(){return t.name},get readOnly(){return t.readonly},get value(){return t.value},get onChange(){return t.type===z.Text?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.value)}:void 0}})}}),a(d,{get when(){return t.type===z.Select},get children(){return a(p,{get id(){return t.name},get readOnly(){return t.readonly},get defaultValue(){return t.value},get onChange(){return t.type===z.Select?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e)}:void 0},get children(){return a(y,{get readonly(){return t.readonly},get searchable(){return t.type===z.Select&&t.searchable},get options(){return t.options.split(",").map((function(r){var n;return{key:r,label:e((null!==(n=t.options_prefix)&&void 0!==n?n:"common"===t.driver?"storages.common.".concat(t.name,"s"):"drivers.".concat(t.driver,".").concat(t.name,"s"))+".".concat(r))}}))}})}})}})]}}),a(m,{get when(){return t.help},get children(){return a(b,{get children(){return e("common"===t.driver?"storages.common.".concat(t.name,"-tips"):"drivers.".concat(t.driver,".").concat(t.name,"-tips"))}})}})]}})};function Y(t,e){switch(t){case z.Bool:return!!e&&"true"===e;case z.Number:return e?parseInt(e):0;default:return e||""}}t("default",(function(){var t=n(),u=x(),c=u.params,f=u.back,s=u.to,d=c.id,h=i(S((function(){return O.get("/admin/driver/list")}),!0),2),v=h[0],g=h[1],p=i(L({}),2),y=p[0],b=p[1],w=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:e=t.sent,q(e,b);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=i(S((function(){return O.get("/admin/storage/get?id=".concat(d))}),!0),2),M=D[0],U=D[1],V=i(S((function(){return O.get("/admin/driver/info?driver=".concat(X.driver))}),!0),2),W=V[0],H=V[1],K=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:e=t.sent,q(e,function(){var t=o(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Z(e),rt(JSON.parse(e.addition)),t.next=4,H();case 4:n=t.sent,q(n,(function(t){return b(l({},X.driver,t))}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();d?K():w();var Q=i(_({}),2),X=Q[0],Z=Q[1],tt=i(_({}),2),et=tt[0],rt=tt[1],nt=i(S((function(){return Z("addition",JSON.stringify(et)),O.post("/admin/storage/".concat(d?"update":"create"),X)})),2),ot=nt[0],it=nt[1],at=j((function(){var t,e=null===(t=y()[X.driver])||void 0===t?void 0:t.config.alert;if(console.log(e),e)return e.split("|")[0]}));return a(B,{get loading(){return d?M()||W():v()},get children(){return[a(E,{mb:"$2",get children(){return t("global.".concat(d?"edit":"add"))}}),a(k,{mb:"$2",spacing:"$2",get children(){return[a(R,{name:"driver",default:"",readonly:void 0!==d,required:!0,searchable:!0,get type(){return z.Select},get options(){return d?X.driver:Object.keys(y()).join(",")},get value(){return X.driver},full_name_path:"storages.common.driver",options_prefix:"drivers.drivers",driver:"drivers",onChange:function(t){var r,n=e(y()[t].common);try{for(n.s();!(r=n.n()).done;){var o=r.value;Z(o.name,Y(o.type,o.default))}}catch(c){n.e(c)}finally{n.f()}rt(C((function(t){for(var e in t)delete t[e]})));var i,a=e(y()[t].additional);try{for(a.s();!(i=a.n()).done;){var u=i.value;rt(u.name,Y(u.type,u.default))}}catch(c){a.e(c)}finally{a.f()}Z("driver",t)}}),a(m,{get when(){return at()},get children(){return a(T,{get status(){return at()},w:"$full",get children(){return[a(P,{}),I((function(){return t("drivers.config.".concat(X.driver,".alert"))}))]}})}})]}}),a(J,{get children(){return a(m,{get when(){return y()[X.driver]},get children(){return[a(N,{get each(){return y()[X.driver].common},children:function(t){return a(R,A(t,{driver:"common",get value(){return X[t.name]},onChange:function(e){Z(t.name,e)}}))}}),a(N,{get each(){return y()[X.driver].additional},children:function(t){return a(R,A(t,{get driver(){return X.driver},get value(){return et[t.name]},onChange:function(e){rt(t.name,e)}}))}})]}})}}),a(G,{mt:"$2",get loading(){return ot()},onClick:(n=o(r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y()[X.driver].config.need_ms&&($.info(t("manage.add_storage-tips")),window.open(F("/@manage/messenger"),"_blank")),e.next=3,it();case 3:n=e.sent,q(n,(function(){$.success(t("global.save_success")),f()}),(function(t,e){n.data.id&&s("/@manage/storages/edit/".concat(n.data.id))}));case 5:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),get children(){return t("global.".concat(d?"save":"add"))}})];var n}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=f;var d={};function h(){}function v(){}function g(){}var p={};l(p,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==n&&o.call(m,a)&&(p=m);var b=g.prototype=h.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==t(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(d).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=g,l(b,"constructor",g),l(g,"constructor",v),v.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.a7c40fe3.js","./item_type-legacy.d1f1c701.js","./ResponsiveGrid-legacy.d58d4dfe.js"],(function(t){"use strict";var n,a,u,f,s,d,h,v,g,p,y,m,b,w,x,S,O,L,_,j,E,k,C,T,P,I,N,A,G,$,F,q,B,z,J;return{setters:[function(t){n=t.a,a=t.h,u=t.bn,f=t.$,s=t.aC,d=t.a0,h=t.I,v=t.bz,g=t.T,p=t.bp,y=t.dp,m=t.S,b=t.F,w=t.bA,x=t.b,S=t.aW,O=t.b9,L=t.m,_=t.cj,j=t.k,E=t.bP,k=t.a4,C=t.dq,T=t.d3,P=t.d4,I=t.az,N=t.G,A=t.E,G=t.C,$=t.n,F=t.O,q=t.ba,B=t.a8},function(t){z=t.T},function(t){J=t.R}],execute:function(){var R=function(t){var e=n();return a(w,{w:"$full",display:"flex",flexDirection:"column",get required(){return t.required},get children(){var r,n;return[a(u,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},l(r,"display","flex"),l(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){var r;return e((null!==(r=t.full_name_path)&&void 0!==r?r:"common"===t.driver)?"storages.common.".concat(t.name):"drivers.".concat(t.driver,".").concat(t.name))},c(r,n),r)),a(f,{get fallback(){return a(s,{get children(){return e("settings.unknown_type")}})},get children(){return[a(d,{get when(){return t.type===z.String},get children(){return a(h,{get id(){return t.name},get type(){return"password"==t.name?"password":"text"},get readOnly(){return t.readonly},get value(){return t.value},get onChange(){return t.type===z.String?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.value)}:void 0}})}}),a(d,{get when(){return t.type===z.Number},get children(){return a(h,{type:"number",get id(){return t.name},get readOnly(){return t.readonly},get value(){return t.value},get onInput(){return t.type===z.Number?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,parseInt(e.currentTarget.value))}:void 0}})}}),a(d,{get when(){return t.type===z.Bool},get children(){return a(v,{get id(){return t.name},get readOnly(){return t.readonly},get defaultChecked(){return t.value},get onChange(){return t.type===z.Bool?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.checked)}:void 0}})}}),a(d,{get when(){return t.type===z.Text},get children(){return a(g,{get id(){return t.name},get readOnly(){return t.readonly},get value(){return t.value},get onChange(){return t.type===z.Text?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e.currentTarget.value)}:void 0}})}}),a(d,{get when(){return t.type===z.Select},get children(){return a(p,{get id(){return t.name},get readOnly(){return t.readonly},get defaultValue(){return t.value},get onChange(){return t.type===z.Select?function(e){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,e)}:void 0},get children(){return a(y,{get readonly(){return t.readonly},get searchable(){return t.type===z.Select&&t.searchable},get options(){return t.options.split(",").map((function(r){var n;return{key:r,label:e((null!==(n=t.options_prefix)&&void 0!==n?n:"common"===t.driver?"storages.common.".concat(t.name,"s"):"drivers.".concat(t.driver,".").concat(t.name,"s"))+".".concat(r))}}))}})}})}})]}}),a(m,{get when(){return t.help},get children(){return a(b,{get children(){return e("common"===t.driver?"storages.common.".concat(t.name,"-tips"):"drivers.".concat(t.driver,".").concat(t.name,"-tips"))}})}})]}})};function Y(t,e){switch(t){case z.Bool:return!!e&&"true"===e;case z.Number:return e?parseInt(e):0;default:return e||""}}t("default",(function(){var t=n(),u=x(),c=u.params,f=u.back,s=u.to,d=c.id,h=i(S((function(){return O.get("/admin/driver/list")}),!0),2),v=h[0],g=h[1],p=i(L({}),2),y=p[0],b=p[1],w=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:e=t.sent,q(e,b);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=i(S((function(){return O.get("/admin/storage/get?id=".concat(d))}),!0),2),M=D[0],U=D[1],V=i(S((function(){return O.get("/admin/driver/info?driver=".concat(X.driver))}),!0),2),W=V[0],H=V[1],K=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:e=t.sent,q(e,function(){var t=o(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Z(e),rt(JSON.parse(e.addition)),t.next=4,H();case 4:n=t.sent,q(n,(function(t){return b(l({},X.driver,t))}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();d?K():w();var Q=i(_({}),2),X=Q[0],Z=Q[1],tt=i(_({}),2),et=tt[0],rt=tt[1],nt=i(S((function(){return Z("addition",JSON.stringify(et)),O.post("/admin/storage/".concat(d?"update":"create"),X)})),2),ot=nt[0],it=nt[1],at=j((function(){var t,e=null===(t=y()[X.driver])||void 0===t?void 0:t.config.alert;if(console.log(e),e)return e.split("|")[0]}));return a(B,{get loading(){return d?M()||W():v()},get children(){return[a(E,{mb:"$2",get children(){return t("global.".concat(d?"edit":"add"))}}),a(k,{mb:"$2",spacing:"$2",get children(){return[a(R,{name:"driver",default:"",readonly:void 0!==d,required:!0,searchable:!0,get type(){return z.Select},get options(){return d?X.driver:Object.keys(y()).join(",")},get value(){return X.driver},full_name_path:"storages.common.driver",options_prefix:"drivers.drivers",driver:"drivers",onChange:function(t){var r,n=e(y()[t].common);try{for(n.s();!(r=n.n()).done;){var o=r.value;Z(o.name,Y(o.type,o.default))}}catch(c){n.e(c)}finally{n.f()}rt(C((function(t){for(var e in t)delete t[e]})));var i,a=e(y()[t].additional);try{for(a.s();!(i=a.n()).done;){var u=i.value;rt(u.name,Y(u.type,u.default))}}catch(c){a.e(c)}finally{a.f()}Z("driver",t)}}),a(m,{get when(){return at()},get children(){return a(T,{get status(){return at()},w:"$full",get children(){return[a(P,{}),I((function(){return t("drivers.config.".concat(X.driver,".alert"))}))]}})}})]}}),a(J,{get children(){return a(m,{get when(){return y()[X.driver]},get children(){return[a(N,{get each(){return y()[X.driver].common},children:function(t){return a(R,A(t,{driver:"common",get value(){return X[t.name]},onChange:function(e){Z(t.name,e)}}))}}),a(N,{get each(){return y()[X.driver].additional},children:function(t){return a(R,A(t,{get driver(){return X.driver},get value(){return et[t.name]},onChange:function(e){rt(t.name,e)}}))}})]}})}}),a(G,{mt:"$2",get loading(){return ot()},onClick:(n=o(r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y()[X.driver].config.need_ms&&($.info(t("manage.add_storage-tips")),window.open(F("/@manage/messenger"),"_blank")),e.next=3,it();case 3:n=e.sent,q(n,(function(){$.success(t("global.save_success")),f()}),(function(t,e){n.data.id&&s("/@manage/storages/edit/".concat(n.data.id))}));case 5:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),get children(){return t("global.".concat(d?"save":"add"))}})];var n}})}))}}}))}();
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(I){return{type:"throw",arg:I}}}r.wrap=s;var h={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.700115ce.js","./FolderTree-legacy.df0711f0.js","./index-legacy.b820f693.js"],(function(t){"use strict";var r,i,a,u,c,l,s,f,h,d,p,y,g,v,m,w,b,x,L,_,E,S;return{setters:[function(t){r=t.a,i=t.b,a=t.cj,u=t.aW,c=t.b9,l=t.h,s=t.a4,f=t.bP,h=t.S,d=t.ag,p=t.bA,y=t.bn,g=t.I,v=t.bQ,m=t.G,w=t.aG,b=t.ch,x=t.C,L=t.ba,_=t.n,E=t.a8},function(t){S=t.a},function(){}],execute:function(){var j=function(t){var e=r();return l(p,{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"$2",rounded:"$md",shadow:"$md",p:"$2",w:"fit-content",get children(){return[l(y,{mb:"0",get children(){return e("users.permissions.".concat(t.name))}}),l(b,{get checked(){return t.can},onChange:function(){return t.onChange(!t.can)}})]}})};t("default",(function(){var t=r(),k=i(),I=k.params,$=k.back,O=I.id,G=o(a({id:0,username:"",password:"",base_path:"",role:0,permission:0,disabled:!1,sso_id:""}),2),T=G[0],A=G[1],P=o(u((function(){return c.get("/admin/user/get?id=".concat(O))})),2),C=P[0],N=P[1],F=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N();case 2:r=t.sent,L(r,A);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();O&&F();var q=o(u((function(){return c.post("/admin/user/".concat(O?"update":"create"),T)})),2),D=q[0],Y=q[1];return l(E,{get loading(){return C()},get children(){return l(s,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[l(f,{get children(){return t("global.".concat(O?"edit":"add"))}}),l(h,{get when(){return!d.is_guest(T)},get children(){return[l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"username",display:"flex",alignItems:"center",get children(){return t("users.username")}}),l(g,{id:"username",get value(){return T.username},onInput:function(t){return A("username",t.currentTarget.value)}})]}}),l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"password",display:"flex",alignItems:"center",get children(){return t("users.password")}}),l(g,{id:"password",type:"password",placeholder:"********",get value(){return T.password},onInput:function(t){return A("password",t.currentTarget.value)}})]}})]}}),l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"base_path",display:"flex",alignItems:"center",get children(){return t("users.base_path")}}),l(S,{id:"base_path",get value(){return T.base_path},onChange:function(t){return A("base_path",t)},onlyFolder:!0})]}}),l(p,{w:"$full",required:!0,get children(){return[l(y,{display:"flex",alignItems:"center",get children(){return t("users.permission")}}),l(v,{w:"$full",wrap:"wrap",gap:"$2",get children(){return l(m,{each:w,children:function(t,e){return l(j,{name:t,get can(){return d.can(T,e())},onChange:function(t){A("permission",t?T.permission|=1<<e():T.permission&=~(1<<e()))}})}})}})]}}),l(p,{w:"fit-content",display:"flex",get children(){return l(b,{css:{whiteSpace:"nowrap"},id:"disabled",onChange:function(t){return A("disabled",t.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return T.disabled},get children(){return t("users.disabled")}})}}),l(x,{get loading(){return D()},onClick:(r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:n=e.sent,L(n,(function(){_.success(t("global.save_success")),$()}));case 4:case"end":return e.stop()}}),r)}))),function(){return r.apply(this,arguments)}),get children(){return t("global.".concat(O?"save":"add"))}})];var r}})}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(I){return{type:"throw",arg:I}}}r.wrap=s;var h={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.a7c40fe3.js","./FolderTree-legacy.2cffdb64.js","./index-legacy.91fe7355.js"],(function(t){"use strict";var r,i,a,u,c,l,s,f,h,d,p,y,g,v,m,w,b,x,L,_,E,S;return{setters:[function(t){r=t.a,i=t.b,a=t.cj,u=t.aW,c=t.b9,l=t.h,s=t.a4,f=t.bP,h=t.S,d=t.ag,p=t.bA,y=t.bn,g=t.I,v=t.bQ,m=t.G,w=t.aG,b=t.ch,x=t.C,L=t.ba,_=t.n,E=t.a8},function(t){S=t.a},function(){}],execute:function(){var j=function(t){var e=r();return l(p,{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"$2",rounded:"$md",shadow:"$md",p:"$2",w:"fit-content",get children(){return[l(y,{mb:"0",get children(){return e("users.permissions.".concat(t.name))}}),l(b,{get checked(){return t.can},onChange:function(){return t.onChange(!t.can)}})]}})};t("default",(function(){var t=r(),k=i(),I=k.params,$=k.back,O=I.id,G=o(a({id:0,username:"",password:"",base_path:"",role:0,permission:0,disabled:!1,sso_id:""}),2),T=G[0],A=G[1],P=o(u((function(){return c.get("/admin/user/get?id=".concat(O))})),2),C=P[0],N=P[1],F=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N();case 2:r=t.sent,L(r,A);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();O&&F();var q=o(u((function(){return c.post("/admin/user/".concat(O?"update":"create"),T)})),2),D=q[0],Y=q[1];return l(E,{get loading(){return C()},get children(){return l(s,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[l(f,{get children(){return t("global.".concat(O?"edit":"add"))}}),l(h,{get when(){return!d.is_guest(T)},get children(){return[l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"username",display:"flex",alignItems:"center",get children(){return t("users.username")}}),l(g,{id:"username",get value(){return T.username},onInput:function(t){return A("username",t.currentTarget.value)}})]}}),l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"password",display:"flex",alignItems:"center",get children(){return t("users.password")}}),l(g,{id:"password",type:"password",placeholder:"********",get value(){return T.password},onInput:function(t){return A("password",t.currentTarget.value)}})]}})]}}),l(p,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[l(y,{for:"base_path",display:"flex",alignItems:"center",get children(){return t("users.base_path")}}),l(S,{id:"base_path",get value(){return T.base_path},onChange:function(t){return A("base_path",t)},onlyFolder:!0})]}}),l(p,{w:"$full",required:!0,get children(){return[l(y,{display:"flex",alignItems:"center",get children(){return t("users.permission")}}),l(v,{w:"$full",wrap:"wrap",gap:"$2",get children(){return l(m,{each:w,children:function(t,e){return l(j,{name:t,get can(){return d.can(T,e())},onChange:function(t){A("permission",t?T.permission|=1<<e():T.permission&=~(1<<e()))}})}})}})]}}),l(p,{w:"fit-content",display:"flex",get children(){return l(b,{css:{whiteSpace:"nowrap"},id:"disabled",onChange:function(t){return A("disabled",t.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return T.disabled},get children(){return t("users.disabled")}})}}),l(x,{get loading(){return D()},onClick:(r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:n=e.sent,L(n,(function(){_.success(t("global.save_success")),$()}));case 4:case"end":return e.stop()}}),r)}))),function(){return r.apply(this,arguments)}),get children(){return t("global.".concat(O?"save":"add"))}})];var r}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{a as m,b as I,cj as k,aW as u,b9 as c,h as e,a4 as _,bP as v,S as F,ag as g,bA as a,bn as l,I as p,bQ as S,G as q,aG as D,ch as f,C as L,ba as h,n as T,a8 as U}from"./index.f27bc3a3.js";import{a as E}from"./FolderTree.b115623c.js";import"./index.6a851756.js";const P=r=>{const o=m();return e(a,{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"$2",rounded:"$md",shadow:"$md",p:"$2",w:"fit-content",get children(){return[e(l,{mb:"0",get children(){return o(`users.permissions.${r.name}`)}}),e(f,{get checked(){return r.can},onChange:()=>r.onChange(!r.can)})]}})},j=()=>{const r=m(),{params:o,back:b}=I(),{id:i}=o,[s,t]=k({id:0,username:"",password:"",base_path:"",role:0,permission:0,disabled:!1,sso_id:""}),[w,$]=u(()=>c.get(`/admin/user/get?id=${i}`));i&&(async()=>{const n=await $();h(n,t)})();const[x,y]=u(()=>c.post(`/admin/user/${i?"update":"create"}`,s));return e(U,{get loading(){return w()},get children(){return e(_,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[e(v,{get children(){return r(`global.${i?"edit":"add"}`)}}),e(F,{get when(){return!g.is_guest(s)},get children(){return[e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"username",display:"flex",alignItems:"center",get children(){return r("users.username")}}),e(p,{id:"username",get value(){return s.username},onInput:n=>t("username",n.currentTarget.value)})]}}),e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"password",display:"flex",alignItems:"center",get children(){return r("users.password")}}),e(p,{id:"password",type:"password",placeholder:"********",get value(){return s.password},onInput:n=>t("password",n.currentTarget.value)})]}})]}}),e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"base_path",display:"flex",alignItems:"center",get children(){return r("users.base_path")}}),e(E,{id:"base_path",get value(){return s.base_path},onChange:n=>t("base_path",n),onlyFolder:!0})]}}),e(a,{w:"$full",required:!0,get children(){return[e(l,{display:"flex",alignItems:"center",get children(){return r("users.permission")}}),e(S,{w:"$full",wrap:"wrap",gap:"$2",get children(){return e(q,{each:D,children:(n,d)=>e(P,{name:n,get can(){return g.can(s,d())},onChange:C=>{C?t("permission",s.permission|=1<<d()):t("permission",s.permission&=~(1<<d()))}})})}})]}}),e(a,{w:"fit-content",display:"flex",get children(){return e(f,{css:{whiteSpace:"nowrap"},id:"disabled",onChange:n=>t("disabled",n.currentTarget.checked),color:"$neutral10",fontSize:"$sm",get checked(){return s.disabled},get children(){return r("users.disabled")}})}}),e(L,{get loading(){return x()},onClick:async()=>{const n=await y();h(n,()=>{T.success(r("global.save_success")),b()})},get children(){return r(`global.${i?"save":"add"}`)}})]}})}})};export{j as default};
1
+ import{a as m,b as I,cj as k,aW as u,b9 as c,h as e,a4 as _,bP as v,S as F,ag as g,bA as a,bn as l,I as p,bQ as S,G as q,aG as D,ch as f,C as L,ba as h,n as T,a8 as U}from"./index.fae3cea4.js";import{a as E}from"./FolderTree.3d6d889d.js";import"./index.0adfc44b.js";const P=r=>{const o=m();return e(a,{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"$2",rounded:"$md",shadow:"$md",p:"$2",w:"fit-content",get children(){return[e(l,{mb:"0",get children(){return o(`users.permissions.${r.name}`)}}),e(f,{get checked(){return r.can},onChange:()=>r.onChange(!r.can)})]}})},j=()=>{const r=m(),{params:o,back:b}=I(),{id:i}=o,[s,t]=k({id:0,username:"",password:"",base_path:"",role:0,permission:0,disabled:!1,sso_id:""}),[w,$]=u(()=>c.get(`/admin/user/get?id=${i}`));i&&(async()=>{const n=await $();h(n,t)})();const[x,y]=u(()=>c.post(`/admin/user/${i?"update":"create"}`,s));return e(U,{get loading(){return w()},get children(){return e(_,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[e(v,{get children(){return r(`global.${i?"edit":"add"}`)}}),e(F,{get when(){return!g.is_guest(s)},get children(){return[e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"username",display:"flex",alignItems:"center",get children(){return r("users.username")}}),e(p,{id:"username",get value(){return s.username},onInput:n=>t("username",n.currentTarget.value)})]}}),e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"password",display:"flex",alignItems:"center",get children(){return r("users.password")}}),e(p,{id:"password",type:"password",placeholder:"********",get value(){return s.password},onInput:n=>t("password",n.currentTarget.value)})]}})]}}),e(a,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[e(l,{for:"base_path",display:"flex",alignItems:"center",get children(){return r("users.base_path")}}),e(E,{id:"base_path",get value(){return s.base_path},onChange:n=>t("base_path",n),onlyFolder:!0})]}}),e(a,{w:"$full",required:!0,get children(){return[e(l,{display:"flex",alignItems:"center",get children(){return r("users.permission")}}),e(S,{w:"$full",wrap:"wrap",gap:"$2",get children(){return e(q,{each:D,children:(n,d)=>e(P,{name:n,get can(){return g.can(s,d())},onChange:C=>{C?t("permission",s.permission|=1<<d()):t("permission",s.permission&=~(1<<d()))}})})}})]}}),e(a,{w:"fit-content",display:"flex",get children(){return e(f,{css:{whiteSpace:"nowrap"},id:"disabled",onChange:n=>t("disabled",n.currentTarget.checked),color:"$neutral10",fontSize:"$sm",get checked(){return s.disabled},get children(){return r("users.disabled")}})}}),e(L,{get loading(){return x()},onClick:async()=>{const n=await y();h(n,()=>{T.success(r("global.save_success")),b()})},get children(){return r(`global.${i?"save":"add"}`)}})]}})}})};export{j as default};
@@ -1 +1 @@
1
- import{a as A,h as t,bn as M,$ as V,aC as z,a0 as s,I as k,bz as H,T as J,bp as P,dj as W,S as $,F as K,bA as Q,b as U,aW as v,b9 as f,m as X,cj as T,k as Y,bP as Z,a4 as p,dk as ee,c_ as te,c$ as ne,az as re,G as _,E as x,C as ae,n as O,O as ie,ba as y,a8 as de}from"./index.f27bc3a3.js";import{T as d}from"./item_type.be442da4.js";import{R as ue}from"./ResponsiveGrid.a8ef36b9.js";const b=e=>{const u=A();return t(Q,{w:"$full",display:"flex",flexDirection:"column",get required(){return e.required},get children(){return[t(M,{get for(){return e.name},display:"flex",alignItems:"center",get children(){var i;return u(((i=e.full_name_path)!=null?i:e.driver==="common")?`storages.common.${e.name}`:`drivers.${e.driver}.${e.name}`)}}),t(V,{get fallback(){return t(z,{get children(){return u("settings.unknown_type")}})},get children(){return[t(s,{get when(){return e.type===d.String},get children(){return t(k,{get id(){return e.name},get type(){return e.name=="password"?"password":"text"},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===d.String?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.value)}:void 0}})}}),t(s,{get when(){return e.type===d.Number},get children(){return t(k,{type:"number",get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onInput(){return e.type===d.Number?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,parseInt(i.currentTarget.value))}:void 0}})}}),t(s,{get when(){return e.type===d.Bool},get children(){return t(H,{get id(){return e.name},get readOnly(){return e.readonly},get defaultChecked(){return e.value},get onChange(){return e.type===d.Bool?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.checked)}:void 0}})}}),t(s,{get when(){return e.type===d.Text},get children(){return t(J,{get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===d.Text?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.value)}:void 0}})}}),t(s,{get when(){return e.type===d.Select},get children(){return t(P,{get id(){return e.name},get readOnly(){return e.readonly},get defaultValue(){return e.value},get onChange(){return e.type===d.Select?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i)}:void 0},get children(){return t(W,{get readonly(){return e.readonly},get searchable(){return e.type===d.Select&&e.searchable},get options(){return e.options.split(",").map(i=>{var a;return{key:i,label:u(((a=e.options_prefix)!=null?a:e.driver==="common"?`storages.common.${e.name}s`:`drivers.${e.driver}.${e.name}s`)+`.${i}`)}})}})}})}})]}}),t($,{get when(){return e.help},get children(){return t(K,{get children(){return u(e.driver==="common"?`storages.common.${e.name}-tips`:`drivers.${e.driver}.${e.name}-tips`)}})}})]}})};function I(e,u){switch(e){case d.Bool:return u?u==="true":!1;case d.Number:return u?parseInt(u):0;default:return u||""}}const se=()=>{const e=A(),{params:u,back:i,to:a}=U(),{id:l}=u,[F,L]=v(()=>f.get("/admin/driver/list"),!0),[c,w]=X({}),R=async()=>{const n=await L();y(n,w)},[j,B]=v(()=>f.get(`/admin/storage/get?id=${l}`),!0),[N,D]=v(()=>f.get(`/admin/driver/info?driver=${g.driver}`),!0);l?(async()=>{const n=await B();y(n,async r=>{o(r),m(JSON.parse(r.addition));const h=await D();y(h,G=>w({[g.driver]:G}))})})():R();const[g,o]=T({}),[C,m]=T({}),[E,q]=v(()=>(o("addition",JSON.stringify(C)),f.post(`/admin/storage/${l?"update":"create"}`,g))),S=Y(()=>{var r;const n=(r=c()[g.driver])==null?void 0:r.config.alert;if(console.log(n),n)return n.split("|")[0]});return t(de,{get loading(){return l?j()||N():F()},get children(){return[t(Z,{mb:"$2",get children(){return e(`global.${l?"edit":"add"}`)}}),t(p,{mb:"$2",spacing:"$2",get children(){return[t(b,{name:"driver",default:"",readonly:l!==void 0,required:!0,searchable:!0,get type(){return d.Select},get options(){return l?g.driver:Object.keys(c()).join(",")},get value(){return g.driver},full_name_path:"storages.common.driver",options_prefix:"drivers.drivers",driver:"drivers",onChange:n=>{for(const r of c()[n].common)o(r.name,I(r.type,r.default));m(ee(r=>{for(const h in r)delete r[h]}));for(const r of c()[n].additional)m(r.name,I(r.type,r.default));o("driver",n)}}),t($,{get when(){return S()},get children(){return t(te,{get status(){return S()},w:"$full",get children(){return[t(ne,{}),re(()=>e(`drivers.config.${g.driver}.alert`))]}})}})]}}),t(ue,{get children(){return t($,{get when(){return c()[g.driver]},get children(){return[t(_,{get each(){return c()[g.driver].common},children:n=>t(b,x(n,{driver:"common",get value(){return g[n.name]},onChange:r=>{o(n.name,r)}}))}),t(_,{get each(){return c()[g.driver].additional},children:n=>t(b,x(n,{get driver(){return g.driver},get value(){return C[n.name]},onChange:r=>{m(n.name,r)}}))})]}})}}),t(ae,{mt:"$2",get loading(){return E()},onClick:async()=>{c()[g.driver].config.need_ms&&(O.info(e("manage.add_storage-tips")),window.open(ie("/@manage/messenger"),"_blank"));const n=await q();y(n,()=>{O.success(e("global.save_success")),i()},(r,h)=>{n.data.id&&a(`/@manage/storages/edit/${n.data.id}`)})},get children(){return e(`global.${l?"save":"add"}`)}})]}})};export{se as default};
1
+ import{a as A,h as t,bn as M,$ as V,aC as z,a0 as s,I as k,bz as H,T as J,bp as P,dp as W,S as $,F as K,bA as Q,b as U,aW as v,b9 as f,m as X,cj as T,k as Y,bP as Z,a4 as p,dq as ee,d3 as te,d4 as ne,az as re,G as x,E as O,C as ae,n as _,O as ie,ba as y,a8 as de}from"./index.fae3cea4.js";import{T as d}from"./item_type.be442da4.js";import{R as ue}from"./ResponsiveGrid.04e247e9.js";const b=e=>{const u=A();return t(Q,{w:"$full",display:"flex",flexDirection:"column",get required(){return e.required},get children(){return[t(M,{get for(){return e.name},display:"flex",alignItems:"center",get children(){var i;return u(((i=e.full_name_path)!=null?i:e.driver==="common")?`storages.common.${e.name}`:`drivers.${e.driver}.${e.name}`)}}),t(V,{get fallback(){return t(z,{get children(){return u("settings.unknown_type")}})},get children(){return[t(s,{get when(){return e.type===d.String},get children(){return t(k,{get id(){return e.name},get type(){return e.name=="password"?"password":"text"},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===d.String?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.value)}:void 0}})}}),t(s,{get when(){return e.type===d.Number},get children(){return t(k,{type:"number",get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onInput(){return e.type===d.Number?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,parseInt(i.currentTarget.value))}:void 0}})}}),t(s,{get when(){return e.type===d.Bool},get children(){return t(H,{get id(){return e.name},get readOnly(){return e.readonly},get defaultChecked(){return e.value},get onChange(){return e.type===d.Bool?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.checked)}:void 0}})}}),t(s,{get when(){return e.type===d.Text},get children(){return t(J,{get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===d.Text?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i.currentTarget.value)}:void 0}})}}),t(s,{get when(){return e.type===d.Select},get children(){return t(P,{get id(){return e.name},get readOnly(){return e.readonly},get defaultValue(){return e.value},get onChange(){return e.type===d.Select?i=>{var a;return(a=e.onChange)==null?void 0:a.call(e,i)}:void 0},get children(){return t(W,{get readonly(){return e.readonly},get searchable(){return e.type===d.Select&&e.searchable},get options(){return e.options.split(",").map(i=>{var a;return{key:i,label:u(((a=e.options_prefix)!=null?a:e.driver==="common"?`storages.common.${e.name}s`:`drivers.${e.driver}.${e.name}s`)+`.${i}`)}})}})}})}})]}}),t($,{get when(){return e.help},get children(){return t(K,{get children(){return u(e.driver==="common"?`storages.common.${e.name}-tips`:`drivers.${e.driver}.${e.name}-tips`)}})}})]}})};function I(e,u){switch(e){case d.Bool:return u?u==="true":!1;case d.Number:return u?parseInt(u):0;default:return u||""}}const se=()=>{const e=A(),{params:u,back:i,to:a}=U(),{id:l}=u,[F,L]=v(()=>f.get("/admin/driver/list"),!0),[c,w]=X({}),R=async()=>{const n=await L();y(n,w)},[B,N]=v(()=>f.get(`/admin/storage/get?id=${l}`),!0),[j,q]=v(()=>f.get(`/admin/driver/info?driver=${g.driver}`),!0);l?(async()=>{const n=await N();y(n,async r=>{o(r),m(JSON.parse(r.addition));const h=await q();y(h,G=>w({[g.driver]:G}))})})():R();const[g,o]=T({}),[C,m]=T({}),[D,E]=v(()=>(o("addition",JSON.stringify(C)),f.post(`/admin/storage/${l?"update":"create"}`,g))),S=Y(()=>{var r;const n=(r=c()[g.driver])==null?void 0:r.config.alert;if(console.log(n),n)return n.split("|")[0]});return t(de,{get loading(){return l?B()||j():F()},get children(){return[t(Z,{mb:"$2",get children(){return e(`global.${l?"edit":"add"}`)}}),t(p,{mb:"$2",spacing:"$2",get children(){return[t(b,{name:"driver",default:"",readonly:l!==void 0,required:!0,searchable:!0,get type(){return d.Select},get options(){return l?g.driver:Object.keys(c()).join(",")},get value(){return g.driver},full_name_path:"storages.common.driver",options_prefix:"drivers.drivers",driver:"drivers",onChange:n=>{for(const r of c()[n].common)o(r.name,I(r.type,r.default));m(ee(r=>{for(const h in r)delete r[h]}));for(const r of c()[n].additional)m(r.name,I(r.type,r.default));o("driver",n)}}),t($,{get when(){return S()},get children(){return t(te,{get status(){return S()},w:"$full",get children(){return[t(ne,{}),re(()=>e(`drivers.config.${g.driver}.alert`))]}})}})]}}),t(ue,{get children(){return t($,{get when(){return c()[g.driver]},get children(){return[t(x,{get each(){return c()[g.driver].common},children:n=>t(b,O(n,{driver:"common",get value(){return g[n.name]},onChange:r=>{o(n.name,r)}}))}),t(x,{get each(){return c()[g.driver].additional},children:n=>t(b,O(n,{get driver(){return g.driver},get value(){return C[n.name]},onChange:r=>{m(n.name,r)}}))})]}})}}),t(ae,{mt:"$2",get loading(){return D()},onClick:async()=>{c()[g.driver].config.need_ms&&(_.info(e("manage.add_storage-tips")),window.open(ie("/@manage/messenger"),"_blank"));const n=await E();y(n,()=>{_.success(e("global.save_success")),i()},(r,h)=>{n.data.id&&a(`/@manage/storages/edit/${n.data.id}`)})},get children(){return e(`global.${l?"save":"add"}`)}})]}})};export{se as default};
@@ -1 +1 @@
1
- import{a as m,b as x,cj as $,aW as o,b9 as g,h as t,a4 as C,bP as _,bA as d,bn as b,G as v,C as k,ba as h,n as S,a8 as F,bQ as I,az as i,I as T,bz as L,T as z,ch as E,S as M,F as A}from"./index.f27bc3a3.js";import{a as D}from"./FolderTree.b115623c.js";import"./index.6a851756.js";const H=e=>{const r=m();return t(d,{w:"$full",display:"flex",flexDirection:"column",get children(){return[t(b,{get for(){return e.name},display:"flex",alignItems:"center",get children(){return r(`metas.${e.name}`)}}),t(I,{w:"$full",get direction(){return e.type==="bool"?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[i(()=>i(()=>e.type==="string",!0)()?t(T,{get id(){return e.name},get value(){return e.value},onInput:n=>e.onChange(n.currentTarget.value)}):i(()=>e.type==="bool",!0)()?t(L,{get id(){return e.name},get checked(){return e.value},onChange:n=>e.onChange(n.currentTarget.checked)}):t(z,{get id(){return e.name},get value(){return e.value},onChange:n=>e.onChange(n.currentTarget.value)})),t(d,{w:"fit-content",display:"flex",get children(){return t(E,{css:{whiteSpace:"nowrap"},get id(){return`${e.name}_sub`},onChange:n=>e.onSub(n.currentTarget.checked),color:"$neutral10",fontSize:"$sm",get checked(){return e.sub},get children(){return r("metas.apply_sub")}})}})]}}),t(M,{get when(){return e.help},get children(){return t(A,{get children(){return r(`metas.${e.name}_help`)}})}})]}})},G=()=>{const e=m(),{params:r,back:n}=x(),{id:u}=r,[s,l]=$({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),[f,w]=o(()=>g.get(`/admin/meta/get?id=${u}`));u&&(async()=>{const a=await w();h(a,l)})();const[y,p]=o(()=>g.post(`/admin/meta/${u?"update":"create"}`,s));return t(F,{get loading(){return f()},get children(){return t(C,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[t(_,{get children(){return e(`global.${u?"edit":"add"}`)}}),t(d,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[t(b,{for:"path",display:"flex",alignItems:"center",get children(){return e("metas.path")}}),t(D,{id:"path",get value(){return s.path},onChange:a=>l("path",a)})]}}),t(v,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:a=>t(H,{get name(){return a.name},get type(){return a.type},get value(){return s[a.name]},onChange:c=>l(a.name,c),get sub(){return s[a.sub]},onSub:c=>l(a.sub,c),get help(){return a.help}})}),t(k,{get loading(){return y()},onClick:async()=>{const a=await p();h(a,()=>{S.success(e("global.save_success")),n()})},get children(){return e(`global.${u?"save":"add"}`)}})]}})}})};export{G as default};
1
+ import{a as m,b as x,cj as $,aW as o,b9 as g,h as t,a4 as C,bP as _,bA as d,bn as b,G as v,C as k,ba as h,n as S,a8 as F,bQ as I,az as i,I as T,bz as L,T as z,ch as E,S as M,F as A}from"./index.fae3cea4.js";import{a as D}from"./FolderTree.3d6d889d.js";import"./index.0adfc44b.js";const H=e=>{const r=m();return t(d,{w:"$full",display:"flex",flexDirection:"column",get children(){return[t(b,{get for(){return e.name},display:"flex",alignItems:"center",get children(){return r(`metas.${e.name}`)}}),t(I,{w:"$full",get direction(){return e.type==="bool"?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[i(()=>i(()=>e.type==="string",!0)()?t(T,{get id(){return e.name},get value(){return e.value},onInput:n=>e.onChange(n.currentTarget.value)}):i(()=>e.type==="bool",!0)()?t(L,{get id(){return e.name},get checked(){return e.value},onChange:n=>e.onChange(n.currentTarget.checked)}):t(z,{get id(){return e.name},get value(){return e.value},onChange:n=>e.onChange(n.currentTarget.value)})),t(d,{w:"fit-content",display:"flex",get children(){return t(E,{css:{whiteSpace:"nowrap"},get id(){return`${e.name}_sub`},onChange:n=>e.onSub(n.currentTarget.checked),color:"$neutral10",fontSize:"$sm",get checked(){return e.sub},get children(){return r("metas.apply_sub")}})}})]}}),t(M,{get when(){return e.help},get children(){return t(A,{get children(){return r(`metas.${e.name}_help`)}})}})]}})},G=()=>{const e=m(),{params:r,back:n}=x(),{id:u}=r,[s,l]=$({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),[f,w]=o(()=>g.get(`/admin/meta/get?id=${u}`));u&&(async()=>{const a=await w();h(a,l)})();const[y,p]=o(()=>g.post(`/admin/meta/${u?"update":"create"}`,s));return t(F,{get loading(){return f()},get children(){return t(C,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[t(_,{get children(){return e(`global.${u?"edit":"add"}`)}}),t(d,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[t(b,{for:"path",display:"flex",alignItems:"center",get children(){return e("metas.path")}}),t(D,{id:"path",get value(){return s.path},onChange:a=>l("path",a)})]}}),t(v,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:a=>t(H,{get name(){return a.name},get type(){return a.type},get value(){return s[a.name]},onChange:c=>l(a.name,c),get sub(){return s[a.sub]},onSub:c=>l(a.sub,c),get help(){return a.help}})}),t(k,{get loading(){return y()},onClick:async()=>{const a=await p();h(a,()=>{S.success(e("global.save_success")),n()})},get children(){return e(`global.${u?"save":"add"}`)}})]}})}})};export{G as default};
@@ -0,0 +1 @@
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(O){f=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=s;var h={};function p(){}function y(){}function d(){}var v={};f(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(f.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return y.prototype=d,f(w,"constructor",d),f(d,"constructor",y),y.displayName=f(d,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,f(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,u,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(f){return void r(f)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.a7c40fe3.js","./useTitle-legacy.e942225f.js","./SettingItem-legacy.51bf5808.js","./ResponsiveGrid-legacy.d58d4dfe.js","./index-legacy.efef9df2.js","./index-legacy.91fe7355.js","./index-legacy.fb7fb711.js","./item_type-legacy.d1f1c701.js"],(function(t){"use strict";var r,i,a,c,u,f,s,l,h,p,y,d,v,g,m,w,b,x;return{setters:[function(t){r=t.a,i=t.b,a=t.aW,c=t.b9,u=t.cj,f=t.c_,s=t.m,l=t.h,h=t.c$,p=t.E,y=t.ba,d=t.n,v=t.ae,g=t.C,m=t.a4},function(t){w=t.b},function(t){b=t.I},function(t){x=t.R},function(){},function(){},function(){},function(){}],execute:function(){t("default",(function(t){var L=r(),E=i().pathname;w("manage.sidemenu.".concat(E().split("/").pop()));var j=o(a((function(){return c.get("/admin/setting/list?group=".concat(t.group))})),2),S=j[0],_=j[1],k=o(u([]),2),O=k[0],G=k[1],I=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_();case 2:r=t.sent,y(r,G);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();I();var A=o(a((function(){return c.post("/admin/setting/save",f(O))})),2),N=A[0],P=A[1],T=o(s(!1),2),C=T[0],F=T[1];return l(m,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[l(x,{get children(){return l(h,{each:O,children:function(t,r){return l(b,p(t,{onChange:function(e){G((function(e){return t().key===e.key}),"value",e)},onDelete:(o=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F(!0),e.next=3,c.post("/admin/setting/delete?key=".concat(t().key));case 3:n=e.sent,F(!1),y(n,(function(){d.success(L("global.delete_success")),I()}));case 6:case"end":return e.stop()}}),r)}))),function(){return o.apply(this,arguments)})}));var o}})}}),l(v,{spacing:"$2",get children(){return[l(g,{colorScheme:"accent",onClick:I,get loading(){return S()||C()},get children(){return L("global.refresh")}}),l(g,{get loading(){return N()},onClick:(t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P();case 2:r=t.sent,y(r,(function(){return d.success(L("global.save_success"))}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return L("global.save")}})];var t}})]}})}))}}}))}();
@@ -0,0 +1 @@
1
+ import{a as v,b as $,aW as l,b9 as r,cj as C,c_ as w,m as I,h as t,c$ as R,E as _,ba as o,n as p,ae as L,C as u,a4 as T}from"./index.fae3cea4.js";import{b as x}from"./useTitle.630c0b7f.js";import{I as j}from"./SettingItem.d9757149.js";import{R as B}from"./ResponsiveGrid.04e247e9.js";import"./index.72e3f724.js";import"./index.0adfc44b.js";import"./index.afa471fc.js";import"./item_type.be442da4.js";const q=m=>{const s=v(),{pathname:d}=$();x(`manage.sidemenu.${d().split("/").pop()}`);const[h,f]=l(()=>r.get(`/admin/setting/list?group=${m.group}`)),[c,i]=C([]),a=async()=>{const e=await f();o(e,i)};a();const[S,b]=l(()=>r.post("/admin/setting/save",w(c))),[k,g]=I(!1);return t(T,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[t(B,{get children(){return t(R,{each:c,children:(e,D)=>t(j,_(e,{onChange:n=>{i(y=>e().key===y.key,"value",n)},onDelete:async()=>{g(!0);const n=await r.post(`/admin/setting/delete?key=${e().key}`);g(!1),o(n,()=>{p.success(s("global.delete_success")),a()})}}))})}}),t(L,{spacing:"$2",get children(){return[t(u,{colorScheme:"accent",onClick:a,get loading(){return h()||k()},get children(){return s("global.refresh")}}),t(u,{get loading(){return S()},onClick:async()=>{const e=await b();o(e,()=>p.success(s("global.save_success")))},get children(){return s("global.save")}})]}})]}})};export{q as default};
@@ -1 +1 @@
1
- System.register(["./index-legacy.700115ce.js","./useTitle-legacy.1ab50c72.js","./Tasks-legacy.71eeb831.js","./Paginator-legacy.df584da0.js","./index-legacy.b820f693.js"],(function(e){"use strict";var n,t,c;return{setters:[function(e){n=e.h},function(e){t=e.b},function(e){c=e.T},function(){},function(){}],execute:function(){e("default",(function(){return t("manage.sidemenu.copy"),n(c,{type:"copy",canRetry:!0})}))}}}));
1
+ System.register(["./index-legacy.a7c40fe3.js","./useTitle-legacy.e942225f.js","./Tasks-legacy.bcf4e457.js","./Paginator-legacy.6f9f1dcb.js","./index-legacy.91fe7355.js"],(function(e){"use strict";var n,t,c;return{setters:[function(e){n=e.h},function(e){t=e.b},function(e){c=e.T},function(){},function(){}],execute:function(){e("default",(function(){return t("manage.sidemenu.copy"),n(c,{type:"copy",canRetry:!0})}))}}}));
@@ -0,0 +1 @@
1
+ import{h as e}from"./index.fae3cea4.js";import{b as o}from"./useTitle.630c0b7f.js";import{T as t}from"./Tasks.f607862a.js";import"./Paginator.758bcfa3.js";import"./index.0adfc44b.js";const n=()=>(o("manage.sidemenu.copy"),e(t,{type:"copy",canRetry:!0}));export{n as default};
@@ -0,0 +1 @@
1
+ System.register(["./index-legacy.a7c40fe3.js"],(function(e){"use strict";var r,n,t,c,l,i,o,a,d,g;return{setters:[function(e){r=e.a,n=e.h,t=e.dg,c=e.C,l=e.dh,i=e.di,o=e.dj,a=e.dk,d=e.ae,g=e.dl}],execute:function(){e("D",(function(e){var u=r();return n(g,{children:function(r){var g=r.onClose;return[n(t,{as:c,colorScheme:"danger",get children(){return u("global.delete")}}),n(l,{get children(){return[n(i,{}),n(o,{get children(){return u("global.delete_confirm",{name:e.name})}}),n(a,{get children(){return n(d,{spacing:"$2",get children(){return[n(c,{onClick:g,colorScheme:"neutral",get children(){return u("global.cancel")}}),n(c,{colorScheme:"danger",get loading(){return e.loading},get onClick(){return e.onClick},get children(){return u("global.confirm")}})]}})}})]}})]}})}))}}}));
@@ -1 +1 @@
1
- import{a,h as e,db as l,C as n,dc as c,dd as d,de as g,df as i,ae as s,dg as u}from"./index.f27bc3a3.js";const m=o=>{const r=a();return e(u,{children:({onClose:t})=>[e(l,{as:n,colorScheme:"danger",get children(){return r("global.delete")}}),e(c,{get children(){return[e(d,{}),e(g,{get children(){return r("global.delete_confirm",{name:o.name})}}),e(i,{get children(){return e(s,{spacing:"$2",get children(){return[e(n,{onClick:t,colorScheme:"neutral",get children(){return r("global.cancel")}}),e(n,{colorScheme:"danger",get loading(){return o.loading},get onClick(){return o.onClick},get children(){return r("global.confirm")}})]}})}})]}})]})};export{m as D};
1
+ import{a,h as e,dg as l,C as n,dh as c,di as d,dj as g,dk as i,ae as s,dl as h}from"./index.fae3cea4.js";const m=o=>{const r=a();return e(h,{children:({onClose:t})=>[e(l,{as:n,colorScheme:"danger",get children(){return r("global.delete")}}),e(c,{get children(){return[e(d,{}),e(g,{get children(){return r("global.delete_confirm",{name:o.name})}}),e(i,{get children(){return e(s,{spacing:"$2",get children(){return[e(n,{onClick:t,colorScheme:"neutral",get children(){return r("global.cancel")}}),e(n,{colorScheme:"danger",get loading(){return o.loading},get onClick(){return o.onClick},get children(){return r("global.confirm")}})]}})}})]}})]})};export{m as D};
@@ -0,0 +1 @@
1
+ !function(){function e(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);u=!0);}catch(a){c=!0,o=a}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function r(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}System.register(["./index-legacy.a7c40fe3.js","./icon-legacy.2d7c0a16.js","./index-legacy.91fe7355.js","./Layout-legacy.bbe308ea.js"],(function(n,r){"use strict";var o,i,u,c,a,l,f,p,d,s,m,g,y,h,b,v,j,w,O,_,x,$,k,S,P,A,E,I,T,D,z,C,V,L,M,U,W,X,B,F,G,Y;return{setters:[function(e){o=e.h,i=e.au,u=e.ax,c=e.al,a=e.a1,l=e.a4,f=e.bP,p=e.b5,d=e.az,s=e.cl,m=e.cV,g=e.a,y=e.k,h=e.cW,b=e.a5,v=e.at,j=e.aj,w=e.C,O=e.ap,_=e.G,x=e.aq,$=e.cB,k=e.S,S=e.aI,P=e.ae,A=e.cE,E=e.L,I=e.cX,T=e.V,D=e.W,z=e.b,C=e.cF,V=e.cY,L=e.m,M=e.bc,U=e.Y,W=e.Z,X=e.ar},function(e){B=e.g,F=e.O},function(e){G=e.o},function(e){Y=e.T}],execute:function(){var q=n("F",(function(e){return o(l,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[o(i,{boxSize:"$20",get fallback(){return o(u,{get color(){return c()},boxSize:"$20",get as(){return B(a.obj)}})},get src(){return a.obj.thumb}}),o(l,{spacing:"$2",get children(){return[o(f,{size:"lg",css:{wordBreak:"break-all"},get children(){return a.obj.name}}),o(p,{color:"$neutral10",size:"sm",get children(){return[d((function(){return s(a.obj.size)}))," · ",d((function(){return m(a.obj.modified)}))]}})]}}),o(l,{spacing:"$2",get children(){return e.children}})]}})})),H=function(){var e=g(),n=y((function(){return h(a.obj.name)})),r=b().currentObjLink;return o(k,{get when(){return n().length},get children(){return o(v,{get children(){return[o(j,{as:w,colorScheme:"success",get rightIcon(){return o(u,{as:G})},get children(){return e("home.preview.open_with")}}),o(O,{get children(){return o(_,{get each(){return n()},children:function(e){return o(x,{as:"a",target:"_blank",get href(){return $(e.value,{raw_url:a.raw_url,name:a.obj.name,d_url:r(!0)})},get children(){return e.key}})}})}})]}})}})},R=function(e){var n=g(),r=S().copyCurrentRawLink;return o(q,{get children(){return[o(P,{spacing:"$2",get children(){return[o(w,{colorScheme:"accent",onClick:function(){return r(!0)},get children(){return n("home.toolbar.copy_link")}}),o(w,{as:"a",get href(){return a.raw_url},target:"_blank",get children(){return n("home.preview.download")}})]}}),o(k,{get when(){return e.openWith},get children(){return o(H,{})}})]}})},Z=Object.freeze(Object.defineProperty({__proto__:null,Download:R,default:R},Symbol.toStringTag,{value:"Module"})),J=function(e){var n=b().currentObjLink,r=y((function(){return $(e.scheme,{raw_url:a.raw_url,name:a.obj.name,d_url:n(!0),ts:!0})}));return o(I,{w:"$full",h:"70vh",get children(){return[o(A.iframe,{w:"$full",h:"$full",get src(){return r()}}),o(u,{pos:"absolute",right:"$2",bottom:"$10","aria-label":"Open in new tab",as:Y,onClick:function(){window.open(r(),"_blank")},cursor:"pointer",rounded:"$md",get bgColor(){return E()},p:"$1",boxSize:"$7"})]}})},K=[{name:"HTML render",exts:["html"],component:T((function(){return D((function(){return r.import("./html-legacy.fa26963f.js")}),void 0)}))},{name:"Aliyun Video Previewer",type:F.VIDEO,provider:/^Aliyundrive(Open)?$/,component:T((function(){return D((function(){return r.import("./aliyun_video-legacy.dfd303c5.js")}),void 0)}))},{name:"Markdown",type:F.TEXT,component:T((function(){return D((function(){return r.import("./markdown-legacy.164943d8.js")}),void 0)}))},{name:"Markdown with word wrap",type:F.TEXT,component:T((function(){return D((function(){return r.import("./markdown_with_word_wrap-legacy.5e032546.js")}),void 0)}))},{name:"Url Open",exts:["url"],component:T((function(){return D((function(){return r.import("./url-legacy.e95c5b8b.js")}),void 0)}))},{name:"Text Editor",type:F.TEXT,exts:["url"],component:T((function(){return D((function(){return r.import("./text-editor-legacy.6e126724.js")}),void 0)}))},{name:"Image",type:F.IMAGE,component:T((function(){return D((function(){return r.import("./image-legacy.236a9cca.js")}),void 0)}))},{name:"Video",type:F.VIDEO,component:T((function(){return D((function(){return r.import("./video-legacy.5198eeb8.js")}),void 0)}))},{name:"Audio",type:F.AUDIO,component:T((function(){return D((function(){return r.import("./audio-legacy.d6ef56f6.js")}),void 0)}))},{name:"Ipa",exts:["ipa","tipa"],component:T((function(){return D((function(){return r.import("./ipa-legacy.7a49e0e2.js")}),void 0)}))},{name:"Plist",exts:["plist"],component:T((function(){return D((function(){return r.import("./plist-legacy.c76fc720.js")}),void 0)}))},{name:"Aliyun Office Previewer",exts:["doc","docx","ppt","pptx","xls","xlsx","pdf"],provider:/^Aliyundrive(Share)?$/,component:T((function(){return D((function(){return r.import("./aliyun_office-legacy.7e1c4ff6.js")}),void 0)}))},{name:"Asciinema",exts:["cast"],component:T((function(){return D((function(){return r.import("./asciinema-legacy.554330ec.js")}),void 0)}))},{name:"Video360",type:F.VIDEO,component:T((function(){return D((function(){return r.import("./video360-legacy.227ed7df.js")}),void 0)}))}],N=function(e){var n,r=z().searchParams,t=F[null===(n=r.type)||void 0===n?void 0:n.toUpperCase()],i=[];return K.forEach((function(n){var r;n.provider&&!n.provider.test(e.provider)||(n.type===e.type||t&&n.type===t||"*"===n.exts||null!==(r=n.exts)&&void 0!==r&&r.includes(C(e.name).toLowerCase()))&&i.push({name:n.name,component:n.component})})),V(e.name).forEach((function(e){var n;i.push({name:e.key,component:(n=e.value,function(){return o(J,{scheme:n})})})})),i.push({name:"Download",component:T((function(){return D((function(){return Promise.resolve().then((function(){return Z}))}),void 0)}))}),i},Q=Object.freeze(Object.defineProperty({__proto__:null,default:function(){var n=y((function(){return N(t(t({},a.obj),{},{provider:a.provider}))})),r=e(L(n()[0]),2),i=r[0],u=r[1];return o(k,{get when(){return n().length>1},get fallback(){return o(R,{openWith:!0})},get children(){return o(l,{w:"$full",spacing:"$2",get children(){return[o(P,{w:"$full",spacing:"$2",get children(){return[o(M,{alwaysShowBorder:!0,get value(){return i().name},onChange:function(e){u(n().find((function(n){return n.name===e})))},get options(){return n().map((function(e){return{value:e.name}}))}}),o(H,{})]}}),o(U,{get fallback(){return o(W,{})},get children(){return o(X,{get component(){return i().component}})}})]}})}})}},Symbol.toStringTag,{value:"Module"}));n("a",Q)}}}))}();
@@ -0,0 +1 @@
1
+ import{h as e,au as P,ax as _,al as T,a1 as o,a4 as l,bP as x,b5 as L,az as v,cl as k,cV as A,a as f,k as d,cW as D,a5 as w,at as V,aj as $,C as m,ap as S,G as j,aq as R,cB as O,S as g,aI as C,ae as y,cE as M,L as z,cX as F,V as t,W as n,b as B,cF as W,cY as U,m as X,bc as H,Y as G,Z as Y,ar as q}from"./index.fae3cea4.js";import{g as Z,O as u}from"./icon.94f94d81.js";import{o as J}from"./index.0adfc44b.js";import{T as K}from"./Layout.683e33e3.js";const N=r=>e(l,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[e(P,{boxSize:"$20",get fallback(){return e(_,{get color(){return T()},boxSize:"$20",get as(){return Z(o.obj)}})},get src(){return o.obj.thumb}}),e(l,{spacing:"$2",get children(){return[e(x,{size:"lg",css:{wordBreak:"break-all"},get children(){return o.obj.name}}),e(L,{color:"$neutral10",size:"sm",get children(){return[v(()=>k(o.obj.size))," \xB7 ",v(()=>A(o.obj.modified))]}})]}}),e(l,{spacing:"$2",get children(){return r.children}})]}}),I=()=>{const r=f(),a=d(()=>D(o.obj.name)),{currentObjLink:i}=w();return e(g,{get when(){return a().length},get children(){return e(V,{get children(){return[e($,{as:m,colorScheme:"success",get rightIcon(){return e(_,{as:J})},get children(){return r("home.preview.open_with")}}),e(S,{get children(){return e(j,{get each(){return a()},children:s=>e(R,{as:"a",target:"_blank",get href(){return O(s.value,{raw_url:o.raw_url,name:o.obj.name,d_url:i(!0)})},get children(){return s.key}})})}})]}})}})},p=r=>{const a=f(),{copyCurrentRawLink:i}=C();return e(N,{get children(){return[e(y,{spacing:"$2",get children(){return[e(m,{colorScheme:"accent",onClick:()=>i(!0),get children(){return a("home.toolbar.copy_link")}}),e(m,{as:"a",get href(){return o.raw_url},target:"_blank",get children(){return a("home.preview.download")}})]}}),e(g,{get when(){return r.openWith},get children(){return e(I,{})}})]}})},Q=Object.freeze(Object.defineProperty({__proto__:null,Download:p,default:p},Symbol.toStringTag,{value:"Module"})),ee=r=>{const{currentObjLink:a}=w(),i=d(()=>O(r.scheme,{raw_url:o.raw_url,name:o.obj.name,d_url:a(!0),ts:!0}));return e(F,{w:"$full",h:"70vh",get children(){return[e(M.iframe,{w:"$full",h:"$full",get src(){return i()}}),e(_,{pos:"absolute",right:"$2",bottom:"$10","aria-label":"Open in new tab",as:K,onClick:()=>{window.open(i(),"_blank")},cursor:"pointer",rounded:"$md",get bgColor(){return z()},p:"$1",boxSize:"$7"})]}})},re=r=>()=>e(ee,{scheme:r}),te=[{name:"HTML render",exts:["html"],component:t(()=>n(()=>import("./html.8b79f6ca.js"),["assets/html.8b79f6ca.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css"]))},{name:"Aliyun Video Previewer",type:u.VIDEO,provider:/^Aliyundrive(Open)?$/,component:t(()=>n(()=>import("./aliyun_video.681fb5ee.js"),["assets/aliyun_video.681fb5ee.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js","assets/video_box.bfb0d4a5.js","assets/_commonjs-dynamic-modules.30ae7933.js","assets/hls.1623c369.js"]))},{name:"Markdown",type:u.TEXT,component:t(()=>n(()=>import("./markdown.3a932f53.js"),["assets/markdown.3a932f53.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css"]))},{name:"Markdown with word wrap",type:u.TEXT,component:t(()=>n(()=>import("./markdown_with_word_wrap.0efe2540.js"),["assets/markdown_with_word_wrap.0efe2540.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css"]))},{name:"Url Open",exts:["url"],component:t(()=>n(()=>import("./url.f7914d75.js"),["assets/url.f7914d75.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js"]))},{name:"Text Editor",type:u.TEXT,exts:["url"],component:t(()=>n(()=>import("./text-editor.45600bb2.js"),["assets/text-editor.45600bb2.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/index.dcae211e.js"]))},{name:"Image",type:u.IMAGE,component:t(()=>n(()=>import("./image.82ca8574.js"),["assets/image.82ca8574.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/ImageWithError.fbebe083.js"]))},{name:"Video",type:u.VIDEO,component:t(()=>n(()=>import("./video.afae2b68.js"),["assets/video.afae2b68.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js","assets/video_box.bfb0d4a5.js","assets/_commonjs-dynamic-modules.30ae7933.js","assets/hls.1623c369.js"]))},{name:"Audio",type:u.AUDIO,component:t(()=>n(()=>import("./audio.0cad5cce.js"),["assets/audio.0cad5cce.js","assets/audio.e5b5af14.css","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js"]))},{name:"Ipa",exts:["ipa","tipa"],component:t(()=>n(()=>import("./ipa.97543f5f.js"),["assets/ipa.97543f5f.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js"]))},{name:"Plist",exts:["plist"],component:t(()=>n(()=>import("./plist.3c9cbb1a.js"),["assets/plist.3c9cbb1a.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js"]))},{name:"Aliyun Office Previewer",exts:["doc","docx","ppt","pptx","xls","xlsx","pdf"],provider:/^Aliyundrive(Share)?$/,component:t(()=>n(()=>import("./aliyun_office.627eb2ac.js"),["assets/aliyun_office.627eb2ac.js","assets/index.fae3cea4.js","assets/index.c4c82a28.css"]))},{name:"Asciinema",exts:["cast"],component:t(()=>n(()=>import("./asciinema.a6e925e9.js"),["assets/asciinema.a6e925e9.js","assets/asciinema.53412307.css","assets/index.fae3cea4.js","assets/index.c4c82a28.css"]))},{name:"Video360",type:u.VIDEO,component:t(()=>n(()=>import("./video360.c8385eb2.js"),["assets/video360.c8385eb2.js","assets/video360.f0192288.css","assets/index.fae3cea4.js","assets/index.c4c82a28.css","assets/video_box.bfb0d4a5.js","assets/icon.94f94d81.js","assets/index.0adfc44b.js","assets/Layout.683e33e3.js","assets/useTitle.630c0b7f.js","assets/index.952b63b2.js","assets/FolderTree.3d6d889d.js","assets/index.afa471fc.js","assets/_commonjs-dynamic-modules.30ae7933.js"]))}],ne=r=>{var E;const{searchParams:a}=B(),i=u[(E=a.type)==null?void 0:E.toUpperCase()],s=[];return te.forEach(c=>{var b;c.provider&&!c.provider.test(r.provider)||(c.type===r.type||i&&c.type===i||c.exts==="*"||((b=c.exts)==null?void 0:b.includes(W(r.name).toLowerCase())))&&s.push({name:c.name,component:c.component})}),U(r.name).forEach(c=>{s.push({name:c.key,component:re(c.value)})}),s.push({name:"Download",component:t(()=>n(()=>Promise.resolve().then(()=>Q),void 0))}),s},oe=()=>{const r=d(()=>ne({...o.obj,provider:o.provider})),[a,i]=X(r()[0]);return e(g,{get when(){return r().length>1},get fallback(){return e(p,{openWith:!0})},get children(){return e(l,{w:"$full",spacing:"$2",get children(){return[e(y,{w:"$full",spacing:"$2",get children(){return[e(H,{alwaysShowBorder:!0,get value(){return a().name},onChange:s=>{i(r().find(h=>h.name===s))},get options(){return r().map(s=>({value:s.name}))}}),e(I,{})]}}),e(G,{get fallback(){return e(Y,{})},get children(){return e(q,{get component(){return a().component}})}})]}})}})},ue=Object.freeze(Object.defineProperty({__proto__:null,default:oe},Symbol.toStringTag,{value:"Module"}));export{N as F,ue as a};