luckyphoenix 1.0.7 → 1.0.8

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 (168) hide show
  1. package/alist-web/assets/{2fa-legacy.3350d44d.js → 2fa-legacy.5fa60b44.js} +1 -1
  2. package/alist-web/assets/{2fa.0dab7189.js → 2fa.87b607b7.js} +1 -1
  3. package/alist-web/assets/{About-legacy.e1597551.js → About-legacy.0ff31d02.js} +1 -1
  4. package/alist-web/assets/{About.11e2f3bb.js → About.14d416ca.js} +1 -1
  5. package/alist-web/assets/{AddOrEdit-legacy.6ac6f516.js → AddOrEdit-legacy.102d61ae.js} +1 -1
  6. package/alist-web/assets/{AddOrEdit-legacy.432f6c0e.js → AddOrEdit-legacy.78842fbc.js} +1 -1
  7. package/alist-web/assets/{AddOrEdit-legacy.2a02db88.js → AddOrEdit-legacy.ac9f5415.js} +1 -1
  8. package/alist-web/assets/{AddOrEdit.f0ec5bf9.js → AddOrEdit.971a8ba8.js} +1 -1
  9. package/alist-web/assets/{AddOrEdit.e641a9bd.js → AddOrEdit.9ee0bb50.js} +1 -1
  10. package/alist-web/assets/{AddOrEdit.79c069f9.js → AddOrEdit.c9b47599.js} +1 -1
  11. package/alist-web/assets/Common-legacy.41405c0c.js +1 -0
  12. package/alist-web/assets/Common.0404cf82.js +1 -0
  13. package/alist-web/assets/{Copy-legacy.3d846482.js → Copy-legacy.bb1c54a1.js} +1 -1
  14. package/alist-web/assets/Copy.b44f12a7.js +1 -0
  15. package/alist-web/assets/DeletePopover-legacy.0ac898a9.js +1 -0
  16. package/alist-web/assets/{DeletePopover.f7887d88.js → DeletePopover.610bc212.js} +1 -1
  17. package/alist-web/assets/File-legacy.7813c6bd.js +1 -0
  18. package/alist-web/assets/File.779fcca6.js +1 -0
  19. package/alist-web/assets/{Folder-legacy.a4550db5.js → Folder-legacy.6de85b2c.js} +3 -3
  20. package/alist-web/assets/{Folder.7e9202ae.js → Folder.744549da.js} +2 -2
  21. package/alist-web/assets/{FolderTree-legacy.2cffdb64.js → FolderTree-legacy.df0711f0.js} +1 -1
  22. package/alist-web/assets/{FolderTree.3d6d889d.js → FolderTree.b115623c.js} +1 -1
  23. package/alist-web/assets/Grid-legacy.0e5d85e0.js +1 -0
  24. package/alist-web/assets/Grid.100c9fa0.js +1 -0
  25. package/alist-web/assets/{GridItem-legacy.2300a556.js → GridItem-legacy.41480c5c.js} +1 -1
  26. package/alist-web/assets/{GridItem.5502f946.js → GridItem.c2d8d04b.js} +1 -1
  27. package/alist-web/assets/{ImageWithError-legacy.184872e5.js → ImageWithError-legacy.33680aa7.js} +1 -1
  28. package/alist-web/assets/{ImageWithError.fbebe083.js → ImageWithError.e84b4adb.js} +1 -1
  29. package/alist-web/assets/{Images-legacy.47953965.js → Images-legacy.ac934929.js} +1 -1
  30. package/alist-web/assets/{Images.cc1e423a.js → Images.5f4d59ff.js} +1 -1
  31. package/alist-web/assets/{Layout-legacy.bbe308ea.js → Layout-legacy.c23a00d4.js} +1 -1
  32. package/alist-web/assets/{Layout.683e33e3.js → Layout.edacf8b3.js} +4 -4
  33. package/alist-web/assets/{List-legacy.dc5a2a38.js → List-legacy.b954608e.js} +1 -1
  34. package/alist-web/assets/List.a7695a79.js +1 -0
  35. package/alist-web/assets/{Messenger-legacy.15747cf4.js → Messenger-legacy.ce777b2d.js} +1 -1
  36. package/alist-web/assets/{Messenger.0de50ee8.js → Messenger.0a4ddaae.js} +1 -1
  37. package/alist-web/assets/{Metas-legacy.9a37ad69.js → Metas-legacy.a8d69714.js} +1 -1
  38. package/alist-web/assets/{Metas.94282135.js → Metas.ecf1dfa9.js} +1 -1
  39. package/alist-web/assets/{Other-legacy.1defd90b.js → Other-legacy.9df9fca0.js} +1 -1
  40. package/alist-web/assets/{Other.c698471d.js → Other.20617503.js} +1 -1
  41. package/alist-web/assets/{PackageDownload-legacy.13e43bb9.js → PackageDownload-legacy.ab740d94.js} +1 -1
  42. package/alist-web/assets/{PackageDownload.89e4ecc4.js → PackageDownload.9136ed46.js} +1 -1
  43. package/alist-web/assets/{Paginator-legacy.6f9f1dcb.js → Paginator-legacy.df584da0.js} +1 -1
  44. package/alist-web/assets/{Paginator.758bcfa3.js → Paginator.56ed88cb.js} +1 -1
  45. package/alist-web/assets/{Password-legacy.5e5cbd20.js → Password-legacy.1e6250d0.js} +1 -1
  46. package/alist-web/assets/{Password.500d1886.js → Password.789eac32.js} +1 -1
  47. package/alist-web/assets/{Profile-legacy.ccf1ddd4.js → Profile-legacy.b2ff967c.js} +1 -1
  48. package/alist-web/assets/{Profile.33671ffe.js → Profile.5ddab9f2.js} +1 -1
  49. package/alist-web/assets/ResponsiveGrid-legacy.26c50421.js +1 -0
  50. package/alist-web/assets/{ResponsiveGrid.04e247e9.js → ResponsiveGrid.a8ef36b9.js} +1 -1
  51. package/alist-web/assets/{S3-legacy.fb41a1b8.js → S3-legacy.62387b8e.js} +1 -1
  52. package/alist-web/assets/{S3.135ba8ad.js → S3.d58d82f5.js} +1 -1
  53. package/alist-web/assets/{SettingItem-legacy.51bf5808.js → SettingItem-legacy.434fc01f.js} +1 -1
  54. package/alist-web/assets/{SettingItem.d9757149.js → SettingItem.e3e93238.js} +1 -1
  55. package/alist-web/assets/{Storages-legacy.6fe86e3a.js → Storages-legacy.c8c85437.js} +1 -1
  56. package/alist-web/assets/{Storages.22e89c36.js → Storages.c8aa56c5.js} +1 -1
  57. package/alist-web/assets/{Tasks-legacy.bcf4e457.js → Tasks-legacy.71eeb831.js} +1 -1
  58. package/alist-web/assets/{Tasks.f607862a.js → Tasks.a6e3b1c8.js} +1 -1
  59. package/alist-web/assets/{Upload-legacy.cb936202.js → Upload-legacy.02e5198e.js} +1 -1
  60. package/alist-web/assets/{Upload-legacy.7dd2be21.js → Upload-legacy.bfe63038.js} +1 -1
  61. package/alist-web/assets/{Upload.d35bb47b.js → Upload.42f49d82.js} +1 -1
  62. package/alist-web/assets/Upload.73d9bb5f.js +1 -0
  63. package/alist-web/assets/Users-legacy.e7985152.js +1 -0
  64. package/alist-web/assets/{Users.7eb39296.js → Users.f66892fc.js} +1 -1
  65. package/alist-web/assets/{Wether-legacy.66b7b0d3.js → Wether-legacy.d0956749.js} +1 -1
  66. package/alist-web/assets/{Wether.f17d6a97.js → Wether.8a05f999.js} +1 -1
  67. package/alist-web/assets/{aliyun_office-legacy.7e1c4ff6.js → aliyun_office-legacy.24261e1a.js} +1 -1
  68. package/alist-web/assets/{aliyun_office.627eb2ac.js → aliyun_office.1fdba9c9.js} +1 -1
  69. package/alist-web/assets/{aliyun_video-legacy.dfd303c5.js → aliyun_video-legacy.f70aedd2.js} +1 -1
  70. package/alist-web/assets/{aliyun_video.681fb5ee.js → aliyun_video.ac65f8dc.js} +1 -1
  71. package/alist-web/assets/{asciinema-legacy.554330ec.js → asciinema-legacy.12c69213.js} +1 -1
  72. package/alist-web/assets/{asciinema.a6e925e9.js → asciinema.40312582.js} +1 -1
  73. package/alist-web/assets/{audio-legacy.d6ef56f6.js → audio-legacy.b7fd7635.js} +1 -1
  74. package/alist-web/assets/{audio.0cad5cce.js → audio.c44e6fbf.js} +1 -1
  75. package/alist-web/assets/{backup-restore-legacy.f4c8daf0.js → backup-restore-legacy.5fa545c8.js} +1 -1
  76. package/alist-web/assets/{backup-restore.db700ca0.js → backup-restore.c236599d.js} +1 -1
  77. package/alist-web/assets/entry-legacy.7af3675d.js +1 -0
  78. package/alist-web/assets/entry-legacy.c6e3ee6f.js +1 -0
  79. package/alist-web/assets/entry.8b118df9.js +9 -0
  80. package/alist-web/assets/entry.f7c5bc9e.js +5 -0
  81. package/alist-web/assets/{helper-legacy.646eb2d9.js → helper-legacy.628706d4.js} +1 -1
  82. package/alist-web/assets/{helper.d54883e3.js → helper.b9cc6b8e.js} +1 -1
  83. package/alist-web/assets/{hls-legacy.9e0f7edb.js → hls-legacy.5de4cc7e.js} +7 -7
  84. package/alist-web/assets/{hls.1623c369.js → hls.35474569.js} +1 -1
  85. package/alist-web/assets/{html-legacy.fa26963f.js → html-legacy.b684ae31.js} +1 -1
  86. package/alist-web/assets/{html.8b79f6ca.js → html.94f79f48.js} +1 -1
  87. package/alist-web/assets/{icon-legacy.2d7c0a16.js → icon-legacy.d23aa70f.js} +1 -1
  88. package/alist-web/assets/{icon.94f94d81.js → icon.3be36f76.js} +3 -3
  89. package/alist-web/assets/{image-legacy.236a9cca.js → image-legacy.c33664c4.js} +1 -1
  90. package/alist-web/assets/{image.82ca8574.js → image.4ca2e490.js} +1 -1
  91. package/alist-web/assets/{index-legacy.840e3d82.js → index-legacy.1159bd68.js} +1 -1
  92. package/alist-web/assets/{index-legacy.efef9df2.js → index-legacy.20004795.js} +1 -1
  93. package/alist-web/assets/{index-legacy.0bd3a7f2.js → index-legacy.56429d46.js} +1 -1
  94. package/alist-web/assets/{index-legacy.a7c40fe3.js → index-legacy.700115ce.js} +4 -4
  95. package/alist-web/assets/index-legacy.7aba107c.js +1 -0
  96. package/alist-web/assets/{index-legacy.61172c95.js → index-legacy.8ef32e28.js} +1 -1
  97. package/alist-web/assets/{index-legacy.fb7fb711.js → index-legacy.a5798ce8.js} +1 -1
  98. package/alist-web/assets/{index-legacy.91fe7355.js → index-legacy.b820f693.js} +1 -1
  99. package/alist-web/assets/{index-legacy.40b50240.js → index-legacy.f807ff76.js} +1 -1
  100. package/alist-web/assets/{index.7409b67a.js → index.17befc27.js} +1 -1
  101. package/alist-web/assets/{index.afa471fc.js → index.4e746469.js} +1 -1
  102. package/alist-web/assets/{index.0adfc44b.js → index.6a851756.js} +1 -1
  103. package/alist-web/assets/{index.72e3f724.js → index.7b37ac3e.js} +1 -1
  104. package/alist-web/assets/{index.26f5b473.js → index.7f73cfca.js} +1 -1
  105. package/alist-web/assets/{index.c15f7469.js → index.b9404cdc.js} +1 -1
  106. package/alist-web/assets/{index.952b63b2.js → index.e0a3345f.js} +1 -1
  107. package/alist-web/assets/{index.dcae211e.js → index.e86a9d96.js} +1 -1
  108. package/alist-web/assets/{index.fae3cea4.js → index.f27bc3a3.js} +48 -48
  109. package/alist-web/assets/{indexes-legacy.2c89d2d8.js → indexes-legacy.c0a7de92.js} +1 -1
  110. package/alist-web/assets/{indexes.9cb6f537.js → indexes.a5ed9461.js} +2 -2
  111. package/alist-web/assets/{ipa-legacy.7a49e0e2.js → ipa-legacy.79da7f5e.js} +1 -1
  112. package/alist-web/assets/{ipa.97543f5f.js → ipa.d3534733.js} +1 -1
  113. package/alist-web/assets/{markdown-legacy.164943d8.js → markdown-legacy.06eecfab.js} +1 -1
  114. package/alist-web/assets/{markdown.3a932f53.js → markdown.98083d2f.js} +1 -1
  115. package/alist-web/assets/{markdown_with_word_wrap-legacy.5e032546.js → markdown_with_word_wrap-legacy.db40475c.js} +1 -1
  116. package/alist-web/assets/{markdown_with_word_wrap.0efe2540.js → markdown_with_word_wrap.01a053ec.js} +1 -1
  117. package/alist-web/assets/offline_download-legacy.8eefa027.js +1 -0
  118. package/alist-web/assets/{offline_download.940ca54b.js → offline_download.cb36ca7f.js} +1 -1
  119. package/alist-web/assets/{plist-legacy.c76fc720.js → plist-legacy.38fc4f6e.js} +1 -1
  120. package/alist-web/assets/plist.9ceca224.js +1 -0
  121. package/alist-web/assets/{polyfills-legacy.5f28c7ae.js → polyfills-legacy.7ea5ffba.js} +1 -1
  122. package/alist-web/assets/{text-editor-legacy.6e126724.js → text-editor-legacy.c08cc307.js} +1 -1
  123. package/alist-web/assets/{text-editor.45600bb2.js → text-editor.b6dbae2b.js} +3 -3
  124. package/alist-web/assets/{url-legacy.e95c5b8b.js → url-legacy.11f4f29a.js} +1 -1
  125. package/alist-web/assets/url.4723617b.js +1 -0
  126. package/alist-web/assets/{useTitle-legacy.e942225f.js → useTitle-legacy.1ab50c72.js} +1 -1
  127. package/alist-web/assets/{useTitle.630c0b7f.js → useTitle.c1b8fc88.js} +1 -1
  128. package/alist-web/assets/{video-legacy.5198eeb8.js → video-legacy.34f028da.js} +7 -7
  129. package/alist-web/assets/{video.afae2b68.js → video.2736f6ce.js} +1 -1
  130. package/alist-web/assets/{video360-legacy.227ed7df.js → video360-legacy.0da2ad24.js} +1 -1
  131. package/alist-web/assets/{video360.c8385eb2.js → video360.5f4a14b9.js} +1 -1
  132. package/alist-web/assets/{video_box-legacy.d60b6928.js → video_box-legacy.24a54504.js} +1 -1
  133. package/alist-web/assets/{video_box.bfb0d4a5.js → video_box.ea9d6184.js} +3 -3
  134. package/alist-web/index.html +11 -9
  135. package/alist-web/static/manifest.json +1 -1
  136. package/alist-web/static/pdf.js/web/viewer.mjs +1 -0
  137. package/css/alist_wallpaper.css +7 -7
  138. package/package.json +1 -1
  139. package/alist-web/assets/Common-legacy.5144e9c0.js +0 -1
  140. package/alist-web/assets/Common.6eff9060.js +0 -1
  141. package/alist-web/assets/Copy.d1980101.js +0 -1
  142. package/alist-web/assets/DeletePopover-legacy.1906395c.js +0 -1
  143. package/alist-web/assets/File-legacy.889dd355.js +0 -1
  144. package/alist-web/assets/File.23490613.js +0 -1
  145. package/alist-web/assets/Grid-legacy.a63ef469.js +0 -1
  146. package/alist-web/assets/Grid.7759c684.js +0 -1
  147. package/alist-web/assets/List.249d43e3.js +0 -1
  148. package/alist-web/assets/ResponsiveGrid-legacy.d58d4dfe.js +0 -1
  149. package/alist-web/assets/Upload.4c54bcbf.js +0 -1
  150. package/alist-web/assets/Users-legacy.b992a339.js +0 -1
  151. package/alist-web/assets/entry-legacy.01f22349.js +0 -1
  152. package/alist-web/assets/entry-legacy.31390e6c.js +0 -1
  153. package/alist-web/assets/entry-legacy.5119e4e8.js +0 -1
  154. package/alist-web/assets/entry-legacy.d3b909f7.js +0 -1
  155. package/alist-web/assets/entry-legacy.e017de3e.js +0 -1
  156. package/alist-web/assets/entry-legacy.eec15c4b.js +0 -1
  157. package/alist-web/assets/entry-legacy.fa23a37d.js +0 -1
  158. package/alist-web/assets/entry.2eaf5bb3.js +0 -5
  159. package/alist-web/assets/entry.371138c7.js +0 -7
  160. package/alist-web/assets/entry.5c41c532.js +0 -5
  161. package/alist-web/assets/entry.6cce3889.js +0 -5
  162. package/alist-web/assets/entry.8acdb7f9.js +0 -9
  163. package/alist-web/assets/entry.abb9e6ed.js +0 -5
  164. package/alist-web/assets/entry.e83ea613.js +0 -6
  165. package/alist-web/assets/index-legacy.d72e643a.js +0 -1
  166. package/alist-web/assets/offline_download-legacy.11c4744c.js +0 -1
  167. package/alist-web/assets/plist.3c9cbb1a.js +0 -1
  168. package/alist-web/assets/url.f7914d75.js +0 -1
@@ -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(){"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,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(k){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,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}}}e.wrap=f;var h={};function p(){}function y(){}function v(){}var d={};l(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(d=m);var w=v.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,u,c){var l=s(r[i],r,a);if("throw"!==l.type){var f=l.arg,h=f.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){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return 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 y.prototype=v,l(w,"constructor",v),l(v,"constructor",y),y.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(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()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.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}},e.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}},e}function e(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void e(l)}u.done?r(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,c,"next",t)}function c(t){e(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(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 i(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 i(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 i(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 e,i,a,u,c,l,f,s,h,p,y,v,d,g,m,w,b,x,L,E;return{setters:[function(t){e=t.h,i=t.bP,a=t.au,u=t.a,c=t.n,l=t.m,f=t.aW,s=t.b9,h=t.cj,p=t.e,y=t.a4,v=t.G,d=t.ar,g=t.E,m=t.I,w=t.ae,b=t.C,x=t.bG,L=t.aY,E=t.dq}],execute:function(){var S=t("Shower",{string:function(t){return e(i,{get children(){return t.content}})},image:function(t){return e(a,{get src(){return t.content}})}}),j=function(){var t=u();c.info(t("manage.messenger-tips"));var a=o(l(""),2),j=a[0],_=a[1],O=o(f((function(){return s.post("/admin/message/get")})),2),k=O[0],I=O[1],G=o(f((function(){return s.post("/admin/message/send",{message:j()})})),2),P=G[0],$=G[1],A=o(h([]),2),N=A[0],T=A[1],F=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I();case 2:e=t.sent,x(e,(function(t){T(E((function(r){return r.push(t)})))}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$();case 2:e=t.sent,L(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Y=setInterval(F,1e3);return p((function(){return clearInterval(Y)})),e(y,{spacing:"$2",h:"$full",alignItems:"start",get children(){return[e(y,{w:"$full",spacing:"$2",alignItems:"start",p:"$2",rounded:"$lg",border:"1px solid var(--hope-colors-neutral6)",get children(){return[e(i,{size:"xl",get children(){return t("manage.received_msgs")}}),e(v,{each:N,children:function(t){return e(d,g({get component(){return S[t.type]}},t))}})]}}),e(m,{w:"$full",get value(){return j()},onInput:function(t){return _(t.currentTarget.value)}}),e(w,{spacing:"$2",get children(){return[e(b,{colorScheme:"accent",get loading(){return k()},onClick:F,get children(){return t("manage.receive")}}),e(b,{get loading(){return P()},onClick:C,get children(){return t("manage.send")}})]}})]}})};t({Messenger:j,default:j})}}}))}();
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(){"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,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(k){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,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=f(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 f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}e.wrap=s;var h={};function p(){}function y(){}function v(){}var d={};l(d,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(d=m);var w=v.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,u,c){var l=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.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){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(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 y.prototype=v,l(w,"constructor",v),l(v,"constructor",y),y.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(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(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.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}},e}function e(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void e(l)}u.done?r(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,c,"next",t)}function c(t){e(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(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 i(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 i(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 i(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 e,i,a,u,c,l,s,f,h,p,y,v,d,g,m,w,b,x,L,E;return{setters:[function(t){e=t.h,i=t.bP,a=t.au,u=t.a,c=t.n,l=t.m,s=t.aW,f=t.b9,h=t.cj,p=t.e,y=t.a4,v=t.G,d=t.ar,g=t.E,m=t.I,w=t.ae,b=t.C,x=t.bG,L=t.aY,E=t.dk}],execute:function(){var S=t("Shower",{string:function(t){return e(i,{get children(){return t.content}})},image:function(t){return e(a,{get src(){return t.content}})}}),j=function(){var t=u();c.info(t("manage.messenger-tips"));var a=o(l(""),2),j=a[0],_=a[1],O=o(s((function(){return f.post("/admin/message/get")})),2),k=O[0],I=O[1],G=o(s((function(){return f.post("/admin/message/send",{message:j()})})),2),P=G[0],$=G[1],A=o(h([]),2),N=A[0],T=A[1],F=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I();case 2:e=t.sent,x(e,(function(t){T(E((function(r){return r.push(t)})))}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$();case 2:e=t.sent,L(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Y=setInterval(F,1e3);return p((function(){return clearInterval(Y)})),e(y,{spacing:"$2",h:"$full",alignItems:"start",get children(){return[e(y,{w:"$full",spacing:"$2",alignItems:"start",p:"$2",rounded:"$lg",border:"1px solid var(--hope-colors-neutral6)",get children(){return[e(i,{size:"xl",get children(){return t("manage.received_msgs")}}),e(v,{each:N,children:function(t){return e(d,g({get component(){return S[t.type]}},t))}})]}}),e(m,{w:"$full",get value(){return j()},onInput:function(t){return _(t.currentTarget.value)}}),e(w,{spacing:"$2",get children(){return[e(b,{colorScheme:"accent",get loading(){return k()},onClick:F,get children(){return t("manage.receive")}}),e(b,{get loading(){return P()},onClick:C,get children(){return t("manage.send")}})]}})]}})};t({Messenger:j,default:j})}}}))}();
@@ -1 +1 @@
1
- import{h as e,bP as i,au as w,a as y,n as C,m as R,aW as r,b9 as c,cj as b,e as k,a4 as o,G as x,ar as T,E as W,I as F,ae as G,C as g,bG as H,aY as L,dq as N}from"./index.fae3cea4.js";const P=n=>e(i,{get children(){return n.content}}),j=n=>e(w,{get src(){return n.content}}),q={string:P,image:j},B=()=>{const n=y();C.info(n("manage.messenger-tips"));const[a,l]=R(""),[u,d]=r(()=>c.post("/admin/message/get")),[p,m]=r(()=>c.post("/admin/message/send",{message:a()})),[h,S]=b([]),s=async()=>{const t=await d();H(t,f=>{S(N($=>$.push(f)))})},v=async()=>{const t=await m();L(t)},I=setInterval(s,1e3);return k(()=>clearInterval(I)),e(o,{spacing:"$2",h:"$full",alignItems:"start",get children(){return[e(o,{w:"$full",spacing:"$2",alignItems:"start",p:"$2",rounded:"$lg",border:"1px solid var(--hope-colors-neutral6)",get children(){return[e(i,{size:"xl",get children(){return n("manage.received_msgs")}}),e(x,{each:h,children:t=>e(T,W({get component(){return q[t.type]}},t))})]}}),e(F,{w:"$full",get value(){return a()},onInput:t=>l(t.currentTarget.value)}),e(G,{spacing:"$2",get children(){return[e(g,{colorScheme:"accent",get loading(){return u()},onClick:s,get children(){return n("manage.receive")}}),e(g,{get loading(){return p()},onClick:v,get children(){return n("manage.send")}})]}})]}})};export{B as Messenger,q as Shower,B as default};
1
+ import{h as e,bP as i,au as w,a as y,n as k,m as C,aW as r,b9 as c,cj as R,e as b,a4 as o,G as x,ar as T,E as W,I as F,ae as G,C as g,bG as H,aY as L,dk as N}from"./index.f27bc3a3.js";const P=n=>e(i,{get children(){return n.content}}),j=n=>e(w,{get src(){return n.content}}),z={string:P,image:j},D=()=>{const n=y();k.info(n("manage.messenger-tips"));const[a,l]=C(""),[u,d]=r(()=>c.post("/admin/message/get")),[p,m]=r(()=>c.post("/admin/message/send",{message:a()})),[h,S]=R([]),s=async()=>{const t=await d();H(t,f=>{S(N($=>$.push(f)))})},v=async()=>{const t=await m();L(t)},I=setInterval(s,1e3);return b(()=>clearInterval(I)),e(o,{spacing:"$2",h:"$full",alignItems:"start",get children(){return[e(o,{w:"$full",spacing:"$2",alignItems:"start",p:"$2",rounded:"$lg",border:"1px solid var(--hope-colors-neutral6)",get children(){return[e(i,{size:"xl",get children(){return n("manage.received_msgs")}}),e(x,{each:h,children:t=>e(T,W({get component(){return z[t.type]}},t))})]}}),e(F,{w:"$full",get value(){return a()},onInput:t=>l(t.currentTarget.value)}),e(G,{spacing:"$2",get children(){return[e(g,{colorScheme:"accent",get loading(){return u()},onClick:s,get children(){return n("manage.receive")}}),e(g,{get loading(){return p()},onClick:v,get children(){return n("manage.send")}})]}})]}})};export{D as Messenger,z as Shower,D 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(){"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",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(k){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new 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 c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}e.wrap=f;var h={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));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(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=s(r[i],r,a);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return 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=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(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()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.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}},e.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 c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,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}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return i(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 i(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 i(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","./useTitle-legacy.e942225f.js","./DeletePopover-legacy.1906395c.js","./Wether-legacy.66b7b0d3.js"],(function(t){"use strict";var e,i,a,c,u,l,f,s,h,d,p,y,g,v,m,w,b,x,L,E,S,j,_;return{setters:[function(t){e=t.a,i=t.b,a=t.aW,c=t.b9,u=t.m,l=t.d9,f=t.h,s=t.ae,h=t.C,d=t.a7,p=t.da,y=t.db,g=t.dc,v=t.G,m=t.dd,w=t.de,b=t.df,x=t.ba,L=t.n,E=t.a4},function(t){S=t.b},function(t){j=t.D},function(t){_=t.W}],execute:function(){t("default",(function(){var t=e();S("manage.sidemenu.metas");var O=i().to,k=o(a((function(){return c.get("/admin/meta/list")})),2),G=k[0],P=k[1],A=o(u([]),2),N=A[0],I=A[1],T=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P();case 2:e=t.sent,x(e,(function(t){return I(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();T();var C=o(l((function(t){return c.post("/admin/meta/delete?id=".concat(t))})),2),$=C[0],F=C[1];return f(E,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[f(s,{spacing:"$2",get children(){return[f(h,{colorScheme:"accent",get loading(){return G()},onClick:T,get children(){return t("global.refresh")}}),f(h,{onClick:function(){O("/@manage/metas/add")},get children(){return t("global.add")}})]}}),f(d,{w:"$full",overflowX:"auto",get children(){return f(p,{highlightOnHover:!0,dense:!0,get children(){return[f(y,{get children(){return f(g,{get children(){return[f(v,{each:["path","password","write"],children:function(r){return f(m,{get children(){return t("metas.".concat(r))}})}}),f(m,{get children(){return t("global.operations")}})]}})}}),f(w,{get children(){return f(v,{get each(){return N()},children:function(e){return f(g,{get children(){return[f(b,{get children(){return e.path}}),f(b,{get children(){return e.password}}),f(b,{get children(){return f(_,{get yes(){return e.write}})}}),f(b,{get children(){return f(s,{spacing:"$2",get children(){return[f(h,{onClick:function(){O("/@manage/metas/edit/".concat(e.id))},get children(){return t("global.edit")}}),f(j,{get name(){return e.path},get loading(){return $()===e.id},onClick:(o=n(r().mark((function n(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,F(e.id);case 2:o=r.sent,x(o,(function(){L.success(t("global.delete_success")),T()}));case 4:case"end":return r.stop()}}),n)}))),function(){return o.apply(this,arguments)})})];var o}})}})]}})}})}})]}})}})]}})}))}}}))}();
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(){"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",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(k){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new 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 c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}e.wrap=f;var h={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));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(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=s(r[i],r,a);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return 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=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(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()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.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}},e.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 c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,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}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return i(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 i(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 i(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","./useTitle-legacy.1ab50c72.js","./DeletePopover-legacy.0ac898a9.js","./Wether-legacy.d0956749.js"],(function(t){"use strict";var e,i,a,c,u,l,f,s,h,d,p,y,g,v,m,w,b,x,L,E,S,j,_;return{setters:[function(t){e=t.a,i=t.b,a=t.aW,c=t.b9,u=t.m,l=t.d4,f=t.h,s=t.ae,h=t.C,d=t.a7,p=t.d5,y=t.d6,g=t.d7,v=t.G,m=t.d8,w=t.d9,b=t.da,x=t.ba,L=t.n,E=t.a4},function(t){S=t.b},function(t){j=t.D},function(t){_=t.W}],execute:function(){t("default",(function(){var t=e();S("manage.sidemenu.metas");var O=i().to,k=o(a((function(){return c.get("/admin/meta/list")})),2),G=k[0],P=k[1],A=o(u([]),2),N=A[0],I=A[1],T=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P();case 2:e=t.sent,x(e,(function(t){return I(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();T();var C=o(l((function(t){return c.post("/admin/meta/delete?id=".concat(t))})),2),$=C[0],F=C[1];return f(E,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[f(s,{spacing:"$2",get children(){return[f(h,{colorScheme:"accent",get loading(){return G()},onClick:T,get children(){return t("global.refresh")}}),f(h,{onClick:function(){O("/@manage/metas/add")},get children(){return t("global.add")}})]}}),f(d,{w:"$full",overflowX:"auto",get children(){return f(p,{highlightOnHover:!0,dense:!0,get children(){return[f(y,{get children(){return f(g,{get children(){return[f(v,{each:["path","password","write"],children:function(r){return f(m,{get children(){return t("metas.".concat(r))}})}}),f(m,{get children(){return t("global.operations")}})]}})}}),f(w,{get children(){return f(v,{get each(){return N()},children:function(e){return f(g,{get children(){return[f(b,{get children(){return e.path}}),f(b,{get children(){return e.password}}),f(b,{get children(){return f(_,{get yes(){return e.write}})}}),f(b,{get children(){return f(s,{spacing:"$2",get children(){return[f(h,{onClick:function(){O("/@manage/metas/edit/".concat(e.id))},get children(){return t("global.edit")}}),f(j,{get name(){return e.path},get loading(){return $()===e.id},onClick:(o=n(r().mark((function n(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,F(e.id);case 2:o=r.sent,x(o,(function(){L.success(t("global.delete_success")),T()}));case 4:case"end":return r.stop()}}),n)}))),function(){return o.apply(this,arguments)})})];var o}})}})]}})}})}})]}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{a as $,b as k,aW as C,b9 as d,m as M,d9 as y,h as e,ae as l,C as i,a7 as S,da as v,db as F,dc as o,G as g,dd as u,de as W,df as n,ba as h,n as x,a4 as B}from"./index.fae3cea4.js";import{b as D}from"./useTitle.630c0b7f.js";import{D as H}from"./DeletePopover.f7887d88.js";import{W as L}from"./Wether.f17d6a97.js";const P=()=>{const r=$();D("manage.sidemenu.metas");const{to:c}=k(),[m,p]=C(()=>d.get("/admin/meta/list")),[b,f]=M([]),a=async()=>{const t=await p();h(t,s=>f(s.content))};a();const[w,T]=y(t=>d.post(`/admin/meta/delete?id=${t}`));return e(B,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(l,{spacing:"$2",get children(){return[e(i,{colorScheme:"accent",get loading(){return m()},onClick:a,get children(){return r("global.refresh")}}),e(i,{onClick:()=>{c("/@manage/metas/add")},get children(){return r("global.add")}})]}}),e(S,{w:"$full",overflowX:"auto",get children(){return e(v,{highlightOnHover:!0,dense:!0,get children(){return[e(F,{get children(){return e(o,{get children(){return[e(g,{each:["path","password","write"],children:t=>e(u,{get children(){return r(`metas.${t}`)}})}),e(u,{get children(){return r("global.operations")}})]}})}}),e(W,{get children(){return e(g,{get each(){return b()},children:t=>e(o,{get children(){return[e(n,{get children(){return t.path}}),e(n,{get children(){return t.password}}),e(n,{get children(){return e(L,{get yes(){return t.write}})}}),e(n,{get children(){return e(l,{spacing:"$2",get children(){return[e(i,{onClick:()=>{c(`/@manage/metas/edit/${t.id}`)},get children(){return r("global.edit")}}),e(H,{get name(){return t.path},get loading(){return w()===t.id},onClick:async()=>{const s=await T(t.id);h(s,()=>{x.success(r("global.delete_success")),a()})}})]}})}})]}})})}})]}})}})]}})};export{P as default};
1
+ import{a as $,b as k,aW as C,b9 as d,m as M,d4 as y,h as e,ae as l,C as i,a7 as S,d5 as v,d6 as F,d7 as o,G as g,d8 as u,d9 as W,da as n,ba as h,n as x,a4 as B}from"./index.f27bc3a3.js";import{b as D}from"./useTitle.c1b8fc88.js";import{D as H}from"./DeletePopover.610bc212.js";import{W as L}from"./Wether.8a05f999.js";const P=()=>{const r=$();D("manage.sidemenu.metas");const{to:c}=k(),[m,p]=C(()=>d.get("/admin/meta/list")),[b,f]=M([]),a=async()=>{const t=await p();h(t,s=>f(s.content))};a();const[w,T]=y(t=>d.post(`/admin/meta/delete?id=${t}`));return e(B,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(l,{spacing:"$2",get children(){return[e(i,{colorScheme:"accent",get loading(){return m()},onClick:a,get children(){return r("global.refresh")}}),e(i,{onClick:()=>{c("/@manage/metas/add")},get children(){return r("global.add")}})]}}),e(S,{w:"$full",overflowX:"auto",get children(){return e(v,{highlightOnHover:!0,dense:!0,get children(){return[e(F,{get children(){return e(o,{get children(){return[e(g,{each:["path","password","write"],children:t=>e(u,{get children(){return r(`metas.${t}`)}})}),e(u,{get children(){return r("global.operations")}})]}})}}),e(W,{get children(){return e(g,{get each(){return b()},children:t=>e(o,{get children(){return[e(n,{get children(){return t.path}}),e(n,{get children(){return t.password}}),e(n,{get children(){return e(L,{get yes(){return t.write}})}}),e(n,{get children(){return e(l,{spacing:"$2",get children(){return[e(i,{onClick:()=>{c(`/@manage/metas/edit/${t.id}`)},get children(){return r("global.edit")}}),e(H,{get name(){return t.path},get loading(){return w()===t.id},onClick:async()=>{const s=await T(t.id);h(s,()=>{x.success(r("global.delete_success")),a()})}})]}})}})]}})})}})]}})}})]}})};export{P as default};
@@ -1 +1 @@
1
- !function(){function t(n){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(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 e};var e={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(O){s=function(t,n,e){return t[n]=e}}function f(t,n,e,r){var o=n&&n.prototype instanceof d?n:d,i=Object.create(o.prototype),u=new E(r||[]);return i._invoke=function(t,n,e){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var a=x(u,e);if(a){if(a===h)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var c=l(t,n,e);if("normal"===c.type){if(r=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r="completed",e.method="throw",e.arg=c.arg)}}}(t,e,u),i}function l(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=f;var h={};function d(){}function y(){}function p(){}var v={};s(v,u,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==r&&o.call(m,u)&&(v=m);var w=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function _(n,e){function r(i,u,a,c){var s=l(n[i],n,u);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}}function x(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,x(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function L(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,r=function n(){for(;++e<t.length;)if(o.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return y.prototype=p,s(w,"constructor",p),s(p,"constructor",y),y.displayName=s(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var u=new _(f(t,n,r,o),i);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},b(w),s(w,c,"Generator"),s(w,u,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=j,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function e(e,r){return u.type="throw",u.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],u=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){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,n){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(u)},complete:function(t,n){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&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;L(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:j(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,n,e,r,o,i,u){try{var a=t[i](u),c=a.value}catch(s){return void e(s)}a.done?n(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,c,"next",t)}function c(t){e(u,o,i,a,c,"throw",t)}a(void 0)}))}}function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,a=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(c){a=!0,o=c}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}System.register(["./index-legacy.a7c40fe3.js","./useTitle-legacy.e942225f.js","./index-legacy.efef9df2.js","./SettingItem-legacy.51bf5808.js","./index-legacy.91fe7355.js","./index-legacy.fb7fb711.js","./item_type-legacy.d1f1c701.js"],(function(t){"use strict";var e,i,u,a,c,s,f,l,h,d,y,p,v,g,m,w,b,_;return{setters:[function(t){e=t.a,i=t.m,u=t.aW,a=t.b9,c=t.bI,s=t.h,f=t.bP,l=t.d7,h=t.E,d=t.C,y=t.ba,p=t.n,v=t.I,g=t.ae,m=t.a8},function(t){w=t.b},function(t){b=t.G},function(t){_=t.I},function(){},function(){},function(){}],execute:function(){t("default",(function(){var t=e();w("manage.sidemenu.other");var x=o(i(""),2),k=x[0],L=x[1],E=o(i(""),2),j=E[0],S=E[1],O=o(i(""),2),C=O[0],$=O[1],I=o(i(""),2),A=I[0],G=I[1],N=o(i(""),2),P=N[0],q=N[1],T=o(i(""),2),F=T[0],Y=T[1],M=o(i(""),2),R=M[0],U=M[1],W=o(i([]),2),z=W[0],B=W[1],D=o(u((function(){return a.get("/admin/setting/list?groups=".concat(b.ARIA2,",").concat(b.SINGLE))})),2),H=D[0],J=D[1],K=o(u((function(){return a.post("/admin/setting/set_aria2",{uri:k(),secret:j()})})),2),Q=K[0],V=K[1],X=o(u((function(){return a.post("/admin/setting/set_qbit",{url:C(),seedtime:A()})})),2),Z=X[0],tt=X[1],nt=o(u((function(){return a.post("/admin/setting/set_transmission",{uri:P(),seedtime:F()})})),2),et=nt[0],rt=nt[1],ot=function(){var t=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J();case 2:e=t.sent,y(e,(function(t){var n,e,r,o,i,u,a;L((null===(n=t.find((function(t){return"aria2_uri"===t.key})))||void 0===n?void 0:n.value)||""),S((null===(e=t.find((function(t){return"aria2_secret"===t.key})))||void 0===e?void 0:e.value)||""),U((null===(r=t.find((function(t){return"token"===t.key})))||void 0===r?void 0:r.value)||""),$((null===(o=t.find((function(t){return"qbittorrent_url"===t.key})))||void 0===o?void 0:o.value)||""),G((null===(i=t.find((function(t){return"qbittorrent_seedtime"===t.key})))||void 0===i?void 0:i.value)||""),q((null===(u=t.find((function(t){return"transmission_uri"===t.key})))||void 0===u?void 0:u.value)||""),Y((null===(a=t.find((function(t){return"transmission_seedtime"===t.key})))||void 0===a?void 0:a.value)||""),B(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();ot();var it=o(u((function(){return a.post("/admin/setting/reset_token")})),2),ut=it[0],at=it[1],ct=c().copy;return s(m,{get loading(){return H()},get children(){return[s(f,{mb:"$2",get children(){return t("settings_other.aria2")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"aria2_uri"===t.key}))}),{get value(){return k()},onChange:function(t){return L(t)}})),s(_,h((function(){return z().find((function(t){return"aria2_secret"===t.key}))}),{get value(){return j()},onChange:function(t){return S(t)}}))]}}),s(d,{my:"$2",get loading(){return Q()},onClick:(i=r(n().mark((function e(){var r;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,V();case 2:r=n.sent,y(r,(function(n){p.success("".concat(t("settings_other.aria2_version")," ").concat(n))}));case 4:case"end":return n.stop()}}),e)}))),function(){return i.apply(this,arguments)}),get children(){return t("settings_other.set_aria2")}}),s(f,{my:"$2",get children(){return t("settings_other.qbittorrent")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"qbittorrent_url"===t.key}))}),{get value(){return C()},onChange:function(t){return $(t)}})),s(_,h((function(){return z().find((function(t){return"qbittorrent_seedtime"===t.key}))}),{get value(){return A()},onChange:function(t){return G(t)}}))]}}),s(d,{my:"$2",get loading(){return Z()},onClick:(o=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tt();case 2:e=t.sent,y(e,(function(t){p.success(t)}));case 4:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),get children(){return t("settings_other.set_qbit")}}),s(f,{my:"$2",get children(){return t("settings_other.transmission")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"transmission_uri"===t.key}))}),{get value(){return P()},onChange:function(t){return q(t)}})),s(_,h((function(){return z().find((function(t){return"transmission_seedtime"===t.key}))}),{get value(){return F()},onChange:function(t){return Y(t)}}))]}}),s(d,{my:"$2",get loading(){return et()},onClick:(e=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,rt();case 2:e=t.sent,y(e,(function(t){p.success(t)}));case 4:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)}),get children(){return t("settings_other.set_transmission")}}),s(f,{my:"$2",get children(){return t("settings.token")}}),s(v,{get value(){return R()},readOnly:!0}),s(g,{my:"$2",spacing:"$2",get children(){return[s(d,{onClick:function(){ct(R())},get children(){return t("settings_other.copy_token")}}),s(d,{colorScheme:"danger",get loading(){return ut()},onClick:(e=r(n().mark((function e(){var r;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,at();case 2:r=n.sent,y(r,(function(n){p.success(t("settings_other.reset_token_success")),U(n)}));case 4:case"end":return n.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("settings_other.reset_token")}})];var e}})];var e,o,i}})}))}}}))}();
1
+ !function(){function t(n){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(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 e};var e={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(O){s=function(t,n,e){return t[n]=e}}function f(t,n,e,r){var o=n&&n.prototype instanceof d?n:d,i=Object.create(o.prototype),u=new E(r||[]);return i._invoke=function(t,n,e){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var a=x(u,e);if(a){if(a===h)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var c=l(t,n,e);if("normal"===c.type){if(r=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r="completed",e.method="throw",e.arg=c.arg)}}}(t,e,u),i}function l(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=f;var h={};function d(){}function y(){}function p(){}var v={};s(v,u,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==r&&o.call(m,u)&&(v=m);var w=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function _(n,e){function r(i,u,a,c){var s=l(n[i],n,u);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}}function x(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,x(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function L(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,r=function n(){for(;++e<t.length;)if(o.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return y.prototype=p,s(w,"constructor",p),s(p,"constructor",y),y.displayName=s(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var u=new _(f(t,n,r,o),i);return e.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},b(w),s(w,c,"Generator"),s(w,u,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=j,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function e(e,r){return u.type="throw",u.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],u=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){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,n){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(u)},complete:function(t,n){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&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;L(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:j(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,n,e,r,o,i,u){try{var a=t[i](u),c=a.value}catch(s){return void e(s)}a.done?n(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,c,"next",t)}function c(t){e(u,o,i,a,c,"throw",t)}a(void 0)}))}}function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,a=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(c){a=!0,o=c}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}System.register(["./index-legacy.700115ce.js","./useTitle-legacy.1ab50c72.js","./index-legacy.20004795.js","./SettingItem-legacy.434fc01f.js","./index-legacy.b820f693.js","./index-legacy.a5798ce8.js","./item_type-legacy.d1f1c701.js"],(function(t){"use strict";var e,i,u,a,c,s,f,l,h,d,y,p,v,g,m,w,b,_;return{setters:[function(t){e=t.a,i=t.m,u=t.aW,a=t.b9,c=t.bI,s=t.h,f=t.bP,l=t.d2,h=t.E,d=t.C,y=t.ba,p=t.n,v=t.I,g=t.ae,m=t.a8},function(t){w=t.b},function(t){b=t.G},function(t){_=t.I},function(){},function(){},function(){}],execute:function(){t("default",(function(){var t=e();w("manage.sidemenu.other");var x=o(i(""),2),k=x[0],L=x[1],E=o(i(""),2),j=E[0],S=E[1],O=o(i(""),2),C=O[0],$=O[1],I=o(i(""),2),A=I[0],G=I[1],N=o(i(""),2),P=N[0],q=N[1],T=o(i(""),2),F=T[0],Y=T[1],M=o(i(""),2),R=M[0],U=M[1],W=o(i([]),2),z=W[0],B=W[1],D=o(u((function(){return a.get("/admin/setting/list?groups=".concat(b.ARIA2,",").concat(b.SINGLE))})),2),H=D[0],J=D[1],K=o(u((function(){return a.post("/admin/setting/set_aria2",{uri:k(),secret:j()})})),2),Q=K[0],V=K[1],X=o(u((function(){return a.post("/admin/setting/set_qbit",{url:C(),seedtime:A()})})),2),Z=X[0],tt=X[1],nt=o(u((function(){return a.post("/admin/setting/set_transmission",{uri:P(),seedtime:F()})})),2),et=nt[0],rt=nt[1],ot=function(){var t=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J();case 2:e=t.sent,y(e,(function(t){var n,e,r,o,i,u,a;L((null===(n=t.find((function(t){return"aria2_uri"===t.key})))||void 0===n?void 0:n.value)||""),S((null===(e=t.find((function(t){return"aria2_secret"===t.key})))||void 0===e?void 0:e.value)||""),U((null===(r=t.find((function(t){return"token"===t.key})))||void 0===r?void 0:r.value)||""),$((null===(o=t.find((function(t){return"qbittorrent_url"===t.key})))||void 0===o?void 0:o.value)||""),G((null===(i=t.find((function(t){return"qbittorrent_seedtime"===t.key})))||void 0===i?void 0:i.value)||""),q((null===(u=t.find((function(t){return"transmission_uri"===t.key})))||void 0===u?void 0:u.value)||""),Y((null===(a=t.find((function(t){return"transmission_seedtime"===t.key})))||void 0===a?void 0:a.value)||""),B(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();ot();var it=o(u((function(){return a.post("/admin/setting/reset_token")})),2),ut=it[0],at=it[1],ct=c().copy;return s(m,{get loading(){return H()},get children(){return[s(f,{mb:"$2",get children(){return t("settings_other.aria2")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"aria2_uri"===t.key}))}),{get value(){return k()},onChange:function(t){return L(t)}})),s(_,h((function(){return z().find((function(t){return"aria2_secret"===t.key}))}),{get value(){return j()},onChange:function(t){return S(t)}}))]}}),s(d,{my:"$2",get loading(){return Q()},onClick:(i=r(n().mark((function e(){var r;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,V();case 2:r=n.sent,y(r,(function(n){p.success("".concat(t("settings_other.aria2_version")," ").concat(n))}));case 4:case"end":return n.stop()}}),e)}))),function(){return i.apply(this,arguments)}),get children(){return t("settings_other.set_aria2")}}),s(f,{my:"$2",get children(){return t("settings_other.qbittorrent")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"qbittorrent_url"===t.key}))}),{get value(){return C()},onChange:function(t){return $(t)}})),s(_,h((function(){return z().find((function(t){return"qbittorrent_seedtime"===t.key}))}),{get value(){return A()},onChange:function(t){return G(t)}}))]}}),s(d,{my:"$2",get loading(){return Z()},onClick:(o=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tt();case 2:e=t.sent,y(e,(function(t){p.success(t)}));case 4:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),get children(){return t("settings_other.set_qbit")}}),s(f,{my:"$2",get children(){return t("settings_other.transmission")}}),s(l,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(_,h((function(){return z().find((function(t){return"transmission_uri"===t.key}))}),{get value(){return P()},onChange:function(t){return q(t)}})),s(_,h((function(){return z().find((function(t){return"transmission_seedtime"===t.key}))}),{get value(){return F()},onChange:function(t){return Y(t)}}))]}}),s(d,{my:"$2",get loading(){return et()},onClick:(e=r(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,rt();case 2:e=t.sent,y(e,(function(t){p.success(t)}));case 4:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)}),get children(){return t("settings_other.set_transmission")}}),s(f,{my:"$2",get children(){return t("settings.token")}}),s(v,{get value(){return R()},readOnly:!0}),s(g,{my:"$2",spacing:"$2",get children(){return[s(d,{onClick:function(){ct(R())},get children(){return t("settings_other.copy_token")}}),s(d,{colorScheme:"danger",get loading(){return ut()},onClick:(e=r(n().mark((function e(){var r;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,at();case 2:r=n.sent,y(r,(function(n){p.success(t("settings_other.reset_token_success")),U(n)}));case 4:case"end":return n.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("settings_other.reset_token")}})];var e}})];var e,o,i}})}))}}}))}();
@@ -1 +1 @@
1
- import{a as V,m as i,aW as c,b9 as u,bI as X,h as t,bP as d,d7 as _,E as o,C as m,ba as l,n as h,I as Y,ae as Z,a8 as ee}from"./index.fae3cea4.js";import{b as te}from"./useTitle.630c0b7f.js";import{G as O}from"./index.72e3f724.js";import{I as g}from"./SettingItem.d9757149.js";import"./index.0adfc44b.js";import"./index.afa471fc.js";import"./item_type.be442da4.js";const ue=()=>{const r=V();te("manage.sidemenu.other");const[p,y]=i(""),[k,f]=i(""),[b,$]=i(""),[v,C]=i(""),[T,S]=i(""),[q,I]=i(""),[L,U]=i(""),[a,P]=i([]),[R,x]=c(()=>u.get(`/admin/setting/list?groups=${O.ARIA2},${O.SINGLE}`)),[B,D]=c(()=>u.post("/admin/setting/set_aria2",{uri:p(),secret:k()})),[F,N]=c(()=>u.post("/admin/setting/set_qbit",{url:b(),seedtime:v()})),[W,j]=c(()=>u.post("/admin/setting/set_transmission",{uri:T(),seedtime:q()}));(async()=>{const e=await x();l(e,n=>{var w,A,G,Q,E,H,M;y(((w=n.find(s=>s.key==="aria2_uri"))==null?void 0:w.value)||""),f(((A=n.find(s=>s.key==="aria2_secret"))==null?void 0:A.value)||""),U(((G=n.find(s=>s.key==="token"))==null?void 0:G.value)||""),$(((Q=n.find(s=>s.key==="qbittorrent_url"))==null?void 0:Q.value)||""),C(((E=n.find(s=>s.key==="qbittorrent_seedtime"))==null?void 0:E.value)||""),S(((H=n.find(s=>s.key==="transmission_uri"))==null?void 0:H.value)||""),I(((M=n.find(s=>s.key==="transmission_seedtime"))==null?void 0:M.value)||""),P(n)})})();const[z,J]=c(()=>u.post("/admin/setting/reset_token")),{copy:K}=X();return t(ee,{get loading(){return R()},get children(){return[t(d,{mb:"$2",get children(){return r("settings_other.aria2")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="aria2_uri"),{get value(){return p()},onChange:e=>y(e)})),t(g,o(()=>a().find(e=>e.key==="aria2_secret"),{get value(){return k()},onChange:e=>f(e)}))]}}),t(m,{my:"$2",get loading(){return B()},onClick:async()=>{const e=await D();l(e,n=>{h.success(`${r("settings_other.aria2_version")} ${n}`)})},get children(){return r("settings_other.set_aria2")}}),t(d,{my:"$2",get children(){return r("settings_other.qbittorrent")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="qbittorrent_url"),{get value(){return b()},onChange:e=>$(e)})),t(g,o(()=>a().find(e=>e.key==="qbittorrent_seedtime"),{get value(){return v()},onChange:e=>C(e)}))]}}),t(m,{my:"$2",get loading(){return F()},onClick:async()=>{const e=await N();l(e,n=>{h.success(n)})},get children(){return r("settings_other.set_qbit")}}),t(d,{my:"$2",get children(){return r("settings_other.transmission")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="transmission_uri"),{get value(){return T()},onChange:e=>S(e)})),t(g,o(()=>a().find(e=>e.key==="transmission_seedtime"),{get value(){return q()},onChange:e=>I(e)}))]}}),t(m,{my:"$2",get loading(){return W()},onClick:async()=>{const e=await j();l(e,n=>{h.success(n)})},get children(){return r("settings_other.set_transmission")}}),t(d,{my:"$2",get children(){return r("settings.token")}}),t(Y,{get value(){return L()},readOnly:!0}),t(Z,{my:"$2",spacing:"$2",get children(){return[t(m,{onClick:()=>{K(L())},get children(){return r("settings_other.copy_token")}}),t(m,{colorScheme:"danger",get loading(){return z()},onClick:async()=>{const e=await J();l(e,n=>{h.success(r("settings_other.reset_token_success")),U(n)})},get children(){return r("settings_other.reset_token")}})]}})]}})};export{ue as default};
1
+ import{a as V,m as i,aW as c,b9 as u,bI as X,h as t,bP as d,d2 as _,E as o,C as m,ba as l,n as h,I as Y,ae as Z,a8 as ee}from"./index.f27bc3a3.js";import{b as te}from"./useTitle.c1b8fc88.js";import{G as O}from"./index.7b37ac3e.js";import{I as g}from"./SettingItem.e3e93238.js";import"./index.6a851756.js";import"./index.4e746469.js";import"./item_type.be442da4.js";const ue=()=>{const r=V();te("manage.sidemenu.other");const[p,y]=i(""),[k,f]=i(""),[b,$]=i(""),[v,C]=i(""),[T,S]=i(""),[q,I]=i(""),[L,U]=i(""),[a,P]=i([]),[R,x]=c(()=>u.get(`/admin/setting/list?groups=${O.ARIA2},${O.SINGLE}`)),[B,D]=c(()=>u.post("/admin/setting/set_aria2",{uri:p(),secret:k()})),[F,N]=c(()=>u.post("/admin/setting/set_qbit",{url:b(),seedtime:v()})),[W,j]=c(()=>u.post("/admin/setting/set_transmission",{uri:T(),seedtime:q()}));(async()=>{const e=await x();l(e,n=>{var w,A,G,Q,E,H,M;y(((w=n.find(s=>s.key==="aria2_uri"))==null?void 0:w.value)||""),f(((A=n.find(s=>s.key==="aria2_secret"))==null?void 0:A.value)||""),U(((G=n.find(s=>s.key==="token"))==null?void 0:G.value)||""),$(((Q=n.find(s=>s.key==="qbittorrent_url"))==null?void 0:Q.value)||""),C(((E=n.find(s=>s.key==="qbittorrent_seedtime"))==null?void 0:E.value)||""),S(((H=n.find(s=>s.key==="transmission_uri"))==null?void 0:H.value)||""),I(((M=n.find(s=>s.key==="transmission_seedtime"))==null?void 0:M.value)||""),P(n)})})();const[z,J]=c(()=>u.post("/admin/setting/reset_token")),{copy:K}=X();return t(ee,{get loading(){return R()},get children(){return[t(d,{mb:"$2",get children(){return r("settings_other.aria2")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="aria2_uri"),{get value(){return p()},onChange:e=>y(e)})),t(g,o(()=>a().find(e=>e.key==="aria2_secret"),{get value(){return k()},onChange:e=>f(e)}))]}}),t(m,{my:"$2",get loading(){return B()},onClick:async()=>{const e=await D();l(e,n=>{h.success(`${r("settings_other.aria2_version")} ${n}`)})},get children(){return r("settings_other.set_aria2")}}),t(d,{my:"$2",get children(){return r("settings_other.qbittorrent")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="qbittorrent_url"),{get value(){return b()},onChange:e=>$(e)})),t(g,o(()=>a().find(e=>e.key==="qbittorrent_seedtime"),{get value(){return v()},onChange:e=>C(e)}))]}}),t(m,{my:"$2",get loading(){return F()},onClick:async()=>{const e=await N();l(e,n=>{h.success(n)})},get children(){return r("settings_other.set_qbit")}}),t(d,{my:"$2",get children(){return r("settings_other.transmission")}}),t(_,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[t(g,o(()=>a().find(e=>e.key==="transmission_uri"),{get value(){return T()},onChange:e=>S(e)})),t(g,o(()=>a().find(e=>e.key==="transmission_seedtime"),{get value(){return q()},onChange:e=>I(e)}))]}}),t(m,{my:"$2",get loading(){return W()},onClick:async()=>{const e=await j();l(e,n=>{h.success(n)})},get children(){return r("settings_other.set_transmission")}}),t(d,{my:"$2",get children(){return r("settings.token")}}),t(Y,{get value(){return L()},readOnly:!0}),t(Z,{my:"$2",spacing:"$2",get children(){return[t(m,{onClick:()=>{K(L())},get children(){return r("settings_other.copy_token")}}),t(m,{colorScheme:"danger",get loading(){return z()},onClick:async()=>{const e=await J();l(e,n=>{h.success(r("settings_other.reset_token_success")),U(n)})},get children(){return r("settings_other.reset_token")}})]}})]}})};export{ue as default};
@@ -1 +1 @@
1
- !function(){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 t};var t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(_){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new k(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return j()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(e,t,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)}}}(e,r,i),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(_){return{type:"throw",arg:_}}}t.wrap=l;var h={};function d(){}function p(){}function m(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(U([])));g&&g!==r&&n.call(g,a)&&(v=g);var w=m.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,c){var s=f(e[o],e,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==u(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(h).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function U(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=m,s(w,"constructor",m),s(m,"constructor",p),p.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},b(S.prototype),s(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=U,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:U(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function t(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function n(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(s){return void r(s)}c.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,u,"next",e)}function u(e){n(i,o,a,c,u,"throw",e)}c(void 0)}))}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(u){c=!0,o=u}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}System.register(["./index-legacy.a7c40fe3.js"],(function(n){"use strict";var i,c,l,f,h,d,p,m,v,y,g,w,b,S,x,L,E,k,U;return{setters:[function(e){i=e.a,c=e.m,l=e.b,f=e.s,h=e.h,d=e.a4,p=e.bP,m=e.az,v=e.G,y=e.b5,g=e.A,w=e.B,b=e.C,S=e.S,x=e.p,L=e.d,E=e.g,k=e.f,U=e._}],execute:function(){var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.crc=-1}var t,r,n;return t=e,(r=[{key:"append",value:function(e){for(var t=0|this.crc,r=this.table,n=0,o=0|e.length;n<o;n++)t=t>>>8^r[255&(t^e[n])];this.crc=t}},{key:"get",value:function(){return~this.crc}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();j.prototype.table=function(){var e,t,r,n=[];for(e=0;e<256;e++){for(r=e,t=0;t<8;t++)r=1&r?r>>>1^3988292384:r>>>1;n[e]=r}return n}();var _=function(e){var t=new Uint8Array(e);return{array:t,view:new DataView(t.buffer)}};window.ZIP=function(e){var t,r,n,o=Object.create(null),a=[],i=new TextEncoder,c=0,u=0;function s(){u++,(r=o[a[u]])?h():n&&f()}var l={enqueue:function(e){if(n)throw new TypeError("Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed");var u=e.name.trim(),l=new Date(void 0===e.lastModified?Date.now():e.lastModified);if(e.directory&&!u.endsWith("/")&&(u+="/"),o[u])throw new Error("File already exists.");var f=i.encode(u);a.push(u);var d=o[u]={level:0,ctrl:t,directory:!!e.directory,nameBuf:f,comment:i.encode(e.comment||""),compressedLength:0,uncompressedLength:0,writeHeader:function(){var e=_(26),r=_(30+f.length);d.offset=c,d.header=e,0===d.level||d.directory||e.view.setUint16(4,2048),e.view.setUint32(0,335546376),e.view.setUint16(6,(l.getHours()<<6|l.getMinutes())<<5|l.getSeconds()/2,!0),e.view.setUint16(8,(l.getFullYear()-1980<<4|l.getMonth()+1)<<5|l.getDate(),!0),e.view.setUint16(22,f.length,!0),r.view.setUint32(0,1347093252),r.array.set(e.array,4),r.array.set(f,30),c+=r.array.length,t.enqueue(r.array)},writeFooter:function(){var e=_(16);e.view.setUint32(0,1347094280),d.crc&&(d.header.view.setUint32(10,d.crc.get(),!0),d.header.view.setUint32(14,d.compressedLength,!0),d.header.view.setUint32(18,d.uncompressedLength,!0),e.view.setUint32(4,d.crc.get(),!0),e.view.setUint32(8,d.compressedLength,!0),e.view.setUint32(12,d.uncompressedLength,!0)),t.enqueue(e.array),c+=d.compressedLength+16,s()},fileLike:e};r||(r=d,h())},close:function(){if(n)throw new TypeError("Cannot close a readable stream that has already been requested to be closed");r||f(),n=!0}};function f(){var e,r,n=0,i=0;for(e=0;e<a.length;e++)n+=46+(r=o[a[e]]).nameBuf.length+r.comment.length;var u=_(n+22);for(e=0;e<a.length;e++)r=o[a[e]],u.view.setUint32(i,1347092738),u.view.setUint16(i+4,5120),u.array.set(r.header.array,i+6),u.view.setUint16(i+32,r.comment.length,!0),r.directory&&u.view.setUint8(i+38,16),u.view.setUint32(i+42,r.offset,!0),u.array.set(r.nameBuf,i+46),u.array.set(r.comment,i+46+r.nameBuf.length),i+=46+r.nameBuf.length+r.comment.length;u.view.setUint32(i,1347093766),u.view.setUint16(i+8,a.length,!0),u.view.setUint16(i+10,a.length,!0),u.view.setUint32(i+12,n,!0),u.view.setUint32(i+16,c,!0),t.enqueue(u.array),t.close()}function h(){var e;if(r)return r.directory?r.writeFooter(r.writeHeader()):r.reader?(e=r).reader.read().then((function(t){if(t.done)return e.writeFooter();var r=t.value;e.crc.append(r),e.uncompressedLength+=r.length,e.compressedLength+=r.length,e.ctrl.enqueue(r)})):void(r.fileLike.stream?(r.crc=new j,r.reader=r.fileLike.stream.getReader(),r.writeHeader()):s())}return new ReadableStream({start:function(r){t=r,e.start&&Promise.resolve(e.start(l))},pull:function(){return h()||e.pull&&Promise.resolve(e.pull(l))}})};var M={exports:{}};/*! streamsaver. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */!function(e){var t=this;e.exports=function(){var e="object"===("undefined"==typeof window?"undefined":u(window))?window:t;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");var r=null,n=!1,o=function(e){try{e()}catch(t){}},a=e.WebStreamsPolyfill||{},i=e.isSecureContext,c=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint,s=i||"MozAppearance"in document.documentElement.style?"iframe":"navigate",l={createWriteStream:p,WritableStream:e.WritableStream||a.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function f(e){if(!e)throw new Error("meh");var t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=function(){var e;return(e=t.contentWindow).postMessage.apply(e,arguments)},t.addEventListener("load",(function(){t.loaded=!0}),{once:!0}),document.body.appendChild(t),t}function h(t){var r="width=200,height=100",n=document.createDocumentFragment(),o={frame:e.open(t,"popup",r),loaded:!1,isIframe:!1,isPopup:!0,remove:function(){o.frame.close()},addEventListener:function(){n.addEventListener.apply(n,arguments)},dispatchEvent:function(){n.dispatchEvent.apply(n,arguments)},removeEventListener:function(){n.removeEventListener.apply(n,arguments)},postMessage:function(){var e;(e=o.frame).postMessage.apply(e,arguments)}},a=function t(r){r.source===o.frame&&(o.loaded=!0,e.removeEventListener("message",t),o.dispatchEvent(new Event("load")))};return e.addEventListener("message",a),o}try{new Response(new ReadableStream),i&&!("serviceWorker"in navigator)&&(c=!0)}catch(m){c=!0}function d(){r||(r=i?f(l.mitm):h(l.mitm))}function p(e,t,o){var a={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},i=0,u=null,h=null,p=null;if(Number.isFinite(t)){var m=[t,o];o=m[0],t=m[1],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),a.size=o,a.writableStrategy=t}else t&&t.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),a.size=o,a.writableStrategy=t):a=t||{};if(!c){d(),h=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");var v={transferringReadable:n,pathname:a.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};a.size&&(v.headers["Content-Length"]=a.size);var y,g=[v,"*",[h.port2]];if(n){var w="iframe"===s?void 0:{transform:function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i+=e.length,t.enqueue(e),u&&(location.href=u,u=null)},flush:function(){u&&(location.href=u)}},b=(p=new l.TransformStream(w,a.writableStrategy,a.readableStrategy)).readable;h.port1.postMessage({readableStream:b},[b])}h.port1.onmessage=function(e){e.data.download?"navigate"===s?(r.remove(),r=null,i?location.href=e.data.download:u=e.data.download):(r.isPopup&&(r.remove(),r=null,"iframe"===s&&f(l.mitm)),f(e.data.download)):e.data.abort&&(S=[],h.port1.postMessage("abort"),h.port1.onmessage=null,h.port1.close(),h.port2.close(),h=null)},r.loaded?(y=r).postMessage.apply(y,g):r.addEventListener("load",(function(){var e;(e=r).postMessage.apply(e,g)}),{once:!0})}var S=[];return!c&&p&&p.writable||new l.WritableStream({write:function(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");c?S.push(e):(h.port1.postMessage(e),i+=e.length,u&&(location.href=u,u=null))},close:function(){if(c){var t=new Blob(S,{type:"application/octet-stream; charset=utf-8"}),r=document.createElement("a");r.href=URL.createObjectURL(t),r.download=e,r.click()}else h.port1.postMessage("end")},abort:function(){S=[],h.port1.postMessage("abort"),h.port1.onmessage=null,h.port1.close(),h.port2.close(),h=null}},a.writableStrategy)}return o((function(){var e=(new TransformStream).readable,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(l,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})})),l}()}(M);var T=M.exports;T.mitm="/streamer/mitm.html";var A=0;n("default",(function(n){var u=i(),s=a(c(u("home.package_download.initializing")),2),j=s[0],_=s[1],M=a(c(0),2),P=M[0],O=M[1],C=l().pathname,I=f(),F=function(){var n=o(e().mark((function n(o,a){var i,c,u,s,l,f,h;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.is_dir){e.next=5;break}return A+=a.size,e.abrupt("return",[{path:L(o,a.name),url:E(L(C(),o),a,"direct",!0)}]);case 5:return e.next=7,k(L(C(),o,a.name),U());case 7:if(200===(c=e.sent).code){e.next=10;break}return e.abrupt("return",c.message);case 10:u=[],s=r(null!==(i=c.data.content)&&void 0!==i?i:[]),e.prev=12,s.s();case 14:if((l=s.n()).done){e.next=26;break}return f=l.value,e.next=18,F(L(o,a.name),f);case 18:if("string"!=typeof(h=e.sent)){e.next=23;break}return e.abrupt("return",h);case 23:u.push.apply(u,t(h));case 24:e.next=14;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(12),s.e(e.t0);case 31:return e.prev=31,s.f(),e.finish(31);case 34:return e.abrupt("return",u);case 35:case"end":return e.stop()}}),n,null,[[12,28,31,34]])})));return function(e,t){return n.apply(this,arguments)}}(),W=a(c([]),2),z=W[0],q=W[1],G=function(){var n=o(e().mark((function n(){var o,a,i,c,s,l,f,h,d;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=x(C()),1===I.length&&(o=I[0].name),o||(o=u("manage.sidemenu.home")),a=T.createWriteStream("".concat(o,".zip"),{size:A}),_(u("home.package_download.fetching_struct")),O(2),i=[],c=r(I),e.prev=8,c.s();case 10:if((s=c.n()).done){e.next=24;break}return l=s.value,e.next=14,F("",l);case 14:if("string"!=typeof(f=e.sent)){e.next=21;break}return _("".concat(u("home.package_download.fetching_struct_failed"),": ").concat(f)),O(1),e.abrupt("return",f);case 21:i.push.apply(i,t(f));case 22:e.next=10;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(8),c.e(e.t0);case 29:return e.prev=29,c.f(),e.finish(29);case 32:if(_(u("home.package_download.downloading")),O(3),h=i.values(),d=new window.ZIP({pull:function(e){var r=h.next();if(!r.done){var n=r.value.path.replace(/^\/+|\/+$/g,"");1===I.length&&(n=n.replace("".concat(o,"/"),""));var a=r.value.url;return fetch(a).then((function(r){q((function(e){return[].concat(t(e),[n])})),e.enqueue({name:n,stream:r.body})}))}e.close()}}),!window.WritableStream||!d.pipeTo){e.next=38;break}return e.abrupt("return",d.pipeTo(a).then((function(){_("".concat(u("home.package_download.success"))),O(4)})).catch((function(e){_("".concat(u("home.package_download.failed"),": ").concat(e)),O(1)})));case 38:case"end":return e.stop()}}),n,null,[[8,26,29,32]])})));return function(){return n.apply(this,arguments)}}();return G(),[h(g,{get children(){return h(d,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[h(p,{get children(){return[m((function(){return u("home.package_download.current_status")})),": ",m((function(){return j()}))]}}),h(v,{get each(){return z()},children:function(e){return h(y,{css:{wordBreak:"break-all"},get children(){return["Fetching: ",e]}})}})]}})}}),h(S,{get when(){return[1,4].includes(P())},get children(){return h(w,{get children(){return h(b,{colorScheme:"info",get onClick(){return n.onClose},get children(){return u("global.close")}})}})}})]}))}}}))}();
1
+ !function(){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 t};var t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(_){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new k(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return j()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(e,t,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)}}}(e,r,i),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(_){return{type:"throw",arg:_}}}t.wrap=l;var h={};function d(){}function p(){}function m(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(U([])));g&&g!==r&&n.call(g,a)&&(v=g);var w=m.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,c){var s=f(e[o],e,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==u(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(h).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function U(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=m,s(w,"constructor",m),s(m,"constructor",p),p.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},b(S.prototype),s(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=U,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:U(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function t(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function n(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(s){return void r(s)}c.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,u,"next",e)}function u(e){n(i,o,a,c,u,"throw",e)}c(void 0)}))}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(u){c=!0,o=u}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}System.register(["./index-legacy.700115ce.js"],(function(n){"use strict";var i,c,l,f,h,d,p,m,v,y,g,w,b,S,x,L,E,k,U;return{setters:[function(e){i=e.a,c=e.m,l=e.b,f=e.s,h=e.h,d=e.a4,p=e.bP,m=e.az,v=e.G,y=e.b5,g=e.A,w=e.B,b=e.C,S=e.S,x=e.p,L=e.d,E=e.g,k=e.f,U=e._}],execute:function(){var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.crc=-1}var t,r,n;return t=e,(r=[{key:"append",value:function(e){for(var t=0|this.crc,r=this.table,n=0,o=0|e.length;n<o;n++)t=t>>>8^r[255&(t^e[n])];this.crc=t}},{key:"get",value:function(){return~this.crc}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();j.prototype.table=function(){var e,t,r,n=[];for(e=0;e<256;e++){for(r=e,t=0;t<8;t++)r=1&r?r>>>1^3988292384:r>>>1;n[e]=r}return n}();var _=function(e){var t=new Uint8Array(e);return{array:t,view:new DataView(t.buffer)}};window.ZIP=function(e){var t,r,n,o=Object.create(null),a=[],i=new TextEncoder,c=0,u=0;function s(){u++,(r=o[a[u]])?h():n&&f()}var l={enqueue:function(e){if(n)throw new TypeError("Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed");var u=e.name.trim(),l=new Date(void 0===e.lastModified?Date.now():e.lastModified);if(e.directory&&!u.endsWith("/")&&(u+="/"),o[u])throw new Error("File already exists.");var f=i.encode(u);a.push(u);var d=o[u]={level:0,ctrl:t,directory:!!e.directory,nameBuf:f,comment:i.encode(e.comment||""),compressedLength:0,uncompressedLength:0,writeHeader:function(){var e=_(26),r=_(30+f.length);d.offset=c,d.header=e,0===d.level||d.directory||e.view.setUint16(4,2048),e.view.setUint32(0,335546376),e.view.setUint16(6,(l.getHours()<<6|l.getMinutes())<<5|l.getSeconds()/2,!0),e.view.setUint16(8,(l.getFullYear()-1980<<4|l.getMonth()+1)<<5|l.getDate(),!0),e.view.setUint16(22,f.length,!0),r.view.setUint32(0,1347093252),r.array.set(e.array,4),r.array.set(f,30),c+=r.array.length,t.enqueue(r.array)},writeFooter:function(){var e=_(16);e.view.setUint32(0,1347094280),d.crc&&(d.header.view.setUint32(10,d.crc.get(),!0),d.header.view.setUint32(14,d.compressedLength,!0),d.header.view.setUint32(18,d.uncompressedLength,!0),e.view.setUint32(4,d.crc.get(),!0),e.view.setUint32(8,d.compressedLength,!0),e.view.setUint32(12,d.uncompressedLength,!0)),t.enqueue(e.array),c+=d.compressedLength+16,s()},fileLike:e};r||(r=d,h())},close:function(){if(n)throw new TypeError("Cannot close a readable stream that has already been requested to be closed");r||f(),n=!0}};function f(){var e,r,n=0,i=0;for(e=0;e<a.length;e++)n+=46+(r=o[a[e]]).nameBuf.length+r.comment.length;var u=_(n+22);for(e=0;e<a.length;e++)r=o[a[e]],u.view.setUint32(i,1347092738),u.view.setUint16(i+4,5120),u.array.set(r.header.array,i+6),u.view.setUint16(i+32,r.comment.length,!0),r.directory&&u.view.setUint8(i+38,16),u.view.setUint32(i+42,r.offset,!0),u.array.set(r.nameBuf,i+46),u.array.set(r.comment,i+46+r.nameBuf.length),i+=46+r.nameBuf.length+r.comment.length;u.view.setUint32(i,1347093766),u.view.setUint16(i+8,a.length,!0),u.view.setUint16(i+10,a.length,!0),u.view.setUint32(i+12,n,!0),u.view.setUint32(i+16,c,!0),t.enqueue(u.array),t.close()}function h(){var e;if(r)return r.directory?r.writeFooter(r.writeHeader()):r.reader?(e=r).reader.read().then((function(t){if(t.done)return e.writeFooter();var r=t.value;e.crc.append(r),e.uncompressedLength+=r.length,e.compressedLength+=r.length,e.ctrl.enqueue(r)})):void(r.fileLike.stream?(r.crc=new j,r.reader=r.fileLike.stream.getReader(),r.writeHeader()):s())}return new ReadableStream({start:function(r){t=r,e.start&&Promise.resolve(e.start(l))},pull:function(){return h()||e.pull&&Promise.resolve(e.pull(l))}})};var M={exports:{}};/*! streamsaver. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */!function(e){var t=this;e.exports=function(){var e="object"===("undefined"==typeof window?"undefined":u(window))?window:t;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");var r=null,n=!1,o=function(e){try{e()}catch(t){}},a=e.WebStreamsPolyfill||{},i=e.isSecureContext,c=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint,s=i||"MozAppearance"in document.documentElement.style?"iframe":"navigate",l={createWriteStream:p,WritableStream:e.WritableStream||a.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function f(e){if(!e)throw new Error("meh");var t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=function(){var e;return(e=t.contentWindow).postMessage.apply(e,arguments)},t.addEventListener("load",(function(){t.loaded=!0}),{once:!0}),document.body.appendChild(t),t}function h(t){var r="width=200,height=100",n=document.createDocumentFragment(),o={frame:e.open(t,"popup",r),loaded:!1,isIframe:!1,isPopup:!0,remove:function(){o.frame.close()},addEventListener:function(){n.addEventListener.apply(n,arguments)},dispatchEvent:function(){n.dispatchEvent.apply(n,arguments)},removeEventListener:function(){n.removeEventListener.apply(n,arguments)},postMessage:function(){var e;(e=o.frame).postMessage.apply(e,arguments)}},a=function t(r){r.source===o.frame&&(o.loaded=!0,e.removeEventListener("message",t),o.dispatchEvent(new Event("load")))};return e.addEventListener("message",a),o}try{new Response(new ReadableStream),i&&!("serviceWorker"in navigator)&&(c=!0)}catch(m){c=!0}function d(){r||(r=i?f(l.mitm):h(l.mitm))}function p(e,t,o){var a={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},i=0,u=null,h=null,p=null;if(Number.isFinite(t)){var m=[t,o];o=m[0],t=m[1],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),a.size=o,a.writableStrategy=t}else t&&t.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),a.size=o,a.writableStrategy=t):a=t||{};if(!c){d(),h=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");var v={transferringReadable:n,pathname:a.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};a.size&&(v.headers["Content-Length"]=a.size);var y,g=[v,"*",[h.port2]];if(n){var w="iframe"===s?void 0:{transform:function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i+=e.length,t.enqueue(e),u&&(location.href=u,u=null)},flush:function(){u&&(location.href=u)}},b=(p=new l.TransformStream(w,a.writableStrategy,a.readableStrategy)).readable;h.port1.postMessage({readableStream:b},[b])}h.port1.onmessage=function(e){e.data.download?"navigate"===s?(r.remove(),r=null,i?location.href=e.data.download:u=e.data.download):(r.isPopup&&(r.remove(),r=null,"iframe"===s&&f(l.mitm)),f(e.data.download)):e.data.abort&&(S=[],h.port1.postMessage("abort"),h.port1.onmessage=null,h.port1.close(),h.port2.close(),h=null)},r.loaded?(y=r).postMessage.apply(y,g):r.addEventListener("load",(function(){var e;(e=r).postMessage.apply(e,g)}),{once:!0})}var S=[];return!c&&p&&p.writable||new l.WritableStream({write:function(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");c?S.push(e):(h.port1.postMessage(e),i+=e.length,u&&(location.href=u,u=null))},close:function(){if(c){var t=new Blob(S,{type:"application/octet-stream; charset=utf-8"}),r=document.createElement("a");r.href=URL.createObjectURL(t),r.download=e,r.click()}else h.port1.postMessage("end")},abort:function(){S=[],h.port1.postMessage("abort"),h.port1.onmessage=null,h.port1.close(),h.port2.close(),h=null}},a.writableStrategy)}return o((function(){var e=(new TransformStream).readable,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(l,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})})),l}()}(M);var T=M.exports;T.mitm="/streamer/mitm.html";var A=0;n("default",(function(n){var u=i(),s=a(c(u("home.package_download.initializing")),2),j=s[0],_=s[1],M=a(c(0),2),P=M[0],O=M[1],C=l().pathname,I=f(),F=function(){var n=o(e().mark((function n(o,a){var i,c,u,s,l,f,h;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.is_dir){e.next=5;break}return A+=a.size,e.abrupt("return",[{path:L(o,a.name),url:E(L(C(),o),a,"direct",!0)}]);case 5:return e.next=7,k(L(C(),o,a.name),U());case 7:if(200===(c=e.sent).code){e.next=10;break}return e.abrupt("return",c.message);case 10:u=[],s=r(null!==(i=c.data.content)&&void 0!==i?i:[]),e.prev=12,s.s();case 14:if((l=s.n()).done){e.next=26;break}return f=l.value,e.next=18,F(L(o,a.name),f);case 18:if("string"!=typeof(h=e.sent)){e.next=23;break}return e.abrupt("return",h);case 23:u.push.apply(u,t(h));case 24:e.next=14;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(12),s.e(e.t0);case 31:return e.prev=31,s.f(),e.finish(31);case 34:return e.abrupt("return",u);case 35:case"end":return e.stop()}}),n,null,[[12,28,31,34]])})));return function(e,t){return n.apply(this,arguments)}}(),W=a(c([]),2),z=W[0],q=W[1],G=function(){var n=o(e().mark((function n(){var o,a,i,c,s,l,f,h,d;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=x(C()),1===I.length&&(o=I[0].name),o||(o=u("manage.sidemenu.home")),a=T.createWriteStream("".concat(o,".zip"),{size:A}),_(u("home.package_download.fetching_struct")),O(2),i=[],c=r(I),e.prev=8,c.s();case 10:if((s=c.n()).done){e.next=24;break}return l=s.value,e.next=14,F("",l);case 14:if("string"!=typeof(f=e.sent)){e.next=21;break}return _("".concat(u("home.package_download.fetching_struct_failed"),": ").concat(f)),O(1),e.abrupt("return",f);case 21:i.push.apply(i,t(f));case 22:e.next=10;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(8),c.e(e.t0);case 29:return e.prev=29,c.f(),e.finish(29);case 32:if(_(u("home.package_download.downloading")),O(3),h=i.values(),d=new window.ZIP({pull:function(e){var r=h.next();if(!r.done){var n=r.value.path.replace(/^\/+|\/+$/g,"");1===I.length&&(n=n.replace("".concat(o,"/"),""));var a=r.value.url;return fetch(a).then((function(r){q((function(e){return[].concat(t(e),[n])})),e.enqueue({name:n,stream:r.body})}))}e.close()}}),!window.WritableStream||!d.pipeTo){e.next=38;break}return e.abrupt("return",d.pipeTo(a).then((function(){_("".concat(u("home.package_download.success"))),O(4)})).catch((function(e){_("".concat(u("home.package_download.failed"),": ").concat(e)),O(1)})));case 38:case"end":return e.stop()}}),n,null,[[8,26,29,32]])})));return function(){return n.apply(this,arguments)}}();return G(),[h(g,{get children(){return h(d,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[h(p,{get children(){return[m((function(){return u("home.package_download.current_status")})),": ",m((function(){return j()}))]}}),h(v,{get each(){return z()},children:function(e){return h(y,{css:{wordBreak:"break-all"},get children(){return["Fetching: ",e]}})}})]}})}}),h(S,{get when(){return[1,4].includes(P())},get children(){return h(w,{get children(){return h(b,{colorScheme:"info",get onClick(){return n.onClose},get children(){return u("global.close")}})}})}})]}))}}}))}();
@@ -1 +1 @@
1
- import{a as A,m as W,b as R,s as H,h as S,a4 as I,bP as j,az as k,G as z,b5 as Z,A as N,B as O,C as V,S as G,p as J,d as L,g as K,f as Y,_ as Q}from"./index.fae3cea4.js";class D{constructor(){this.crc=-1}append(n){for(var a=this.crc|0,f=this.table,h=0,g=n.length|0;h<g;h++)a=a>>>8^f[(a^n[h])&255];this.crc=a}get(){return~this.crc}}D.prototype.table=(()=>{var c,n,a,f=[];for(c=0;c<256;c++){for(a=c,n=0;n<8;n++)a=a&1?a>>>1^3988292384:a>>>1;f[c]=a}return f})();const T=c=>{var n=new Uint8Array(c);return{array:n,view:new DataView(n.buffer)}},X=c=>c.reader.read().then(n=>{if(n.done)return c.writeFooter();const a=n.value;c.crc.append(a),c.uncompressedLength+=a.length,c.compressedLength+=a.length,c.ctrl.enqueue(a)});function ee(c){const n=Object.create(null),a=[],f=new TextEncoder;let h=0,g=0,p,l,v;function w(){g++,l=n[a[g]],l?u():v&&C()}var y={enqueue(d){if(v)throw new TypeError("Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed");let r=d.name.trim();const t=new Date(typeof d.lastModified>"u"?Date.now():d.lastModified);if(d.directory&&!r.endsWith("/")&&(r+="/"),n[r])throw new Error("File already exists.");const s=f.encode(r);a.push(r);const e=n[r]={level:0,ctrl:p,directory:!!d.directory,nameBuf:s,comment:f.encode(d.comment||""),compressedLength:0,uncompressedLength:0,writeHeader(){var o=T(26),i=T(30+s.length);e.offset=h,e.header=o,e.level!==0&&!e.directory&&o.view.setUint16(4,2048),o.view.setUint32(0,335546376),o.view.setUint16(6,(t.getHours()<<6|t.getMinutes())<<5|t.getSeconds()/2,!0),o.view.setUint16(8,(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate(),!0),o.view.setUint16(22,s.length,!0),i.view.setUint32(0,1347093252),i.array.set(o.array,4),i.array.set(s,30),h+=i.array.length,p.enqueue(i.array)},writeFooter(){var o=T(16);o.view.setUint32(0,1347094280),e.crc&&(e.header.view.setUint32(10,e.crc.get(),!0),e.header.view.setUint32(14,e.compressedLength,!0),e.header.view.setUint32(18,e.uncompressedLength,!0),o.view.setUint32(4,e.crc.get(),!0),o.view.setUint32(8,e.compressedLength,!0),o.view.setUint32(12,e.uncompressedLength,!0)),p.enqueue(o.array),h+=e.compressedLength+16,w()},fileLike:d};l||(l=e,u())},close(){if(v)throw new TypeError("Cannot close a readable stream that has already been requested to be closed");l||C(),v=!0}};function C(){var d=0,r=0,t,s;for(t=0;t<a.length;t++)s=n[a[t]],d+=46+s.nameBuf.length+s.comment.length;const e=T(d+22);for(t=0;t<a.length;t++)s=n[a[t]],e.view.setUint32(r,1347092738),e.view.setUint16(r+4,5120),e.array.set(s.header.array,r+6),e.view.setUint16(r+32,s.comment.length,!0),s.directory&&e.view.setUint8(r+38,16),e.view.setUint32(r+42,s.offset,!0),e.array.set(s.nameBuf,r+46),e.array.set(s.comment,r+46+s.nameBuf.length),r+=46+s.nameBuf.length+s.comment.length;e.view.setUint32(r,1347093766),e.view.setUint16(r+8,a.length,!0),e.view.setUint16(r+10,a.length,!0),e.view.setUint32(r+12,d,!0),e.view.setUint32(r+16,h,!0),p.enqueue(e.array),p.close()}function u(){if(!!l){if(l.directory)return l.writeFooter(l.writeHeader());if(l.reader)return X(l);l.fileLike.stream?(l.crc=new D,l.reader=l.fileLike.stream.getReader(),l.writeHeader()):w()}}return new ReadableStream({start:d=>{p=d,c.start&&Promise.resolve(c.start(y))},pull(){return u()||c.pull&&Promise.resolve(c.pull(y))}})}window.ZIP=ee;var P={exports:{}};/*! streamsaver. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */(function(c){((n,a)=>{c.exports=a()})("streamSaver",()=>{const n=typeof window=="object"?window:this;n.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let a=null,f=!1;const h=r=>{try{r()}catch{}},g=n.WebStreamsPolyfill||{},p=n.isSecureContext;let l=/constructor/i.test(n.HTMLElement)||!!n.safari||!!n.WebKitPoint;const v=p||"MozAppearance"in document.documentElement.style?"iframe":"navigate",w={createWriteStream:d,WritableStream:n.WritableStream||g.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function y(r){if(!r)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=r,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...s)=>t.contentWindow.postMessage(...s),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}function C(r){const t="width=200,height=100",s=document.createDocumentFragment(),e={frame:n.open(r,"popup",t),loaded:!1,isIframe:!1,isPopup:!0,remove(){e.frame.close()},addEventListener(...i){s.addEventListener(...i)},dispatchEvent(...i){s.dispatchEvent(...i)},removeEventListener(...i){s.removeEventListener(...i)},postMessage(...i){e.frame.postMessage(...i)}},o=i=>{i.source===e.frame&&(e.loaded=!0,n.removeEventListener("message",o),e.dispatchEvent(new Event("load")))};return n.addEventListener("message",o),e}try{new Response(new ReadableStream),p&&!("serviceWorker"in navigator)&&(l=!0)}catch{l=!0}h(()=>{const{readable:r}=new TransformStream,t=new MessageChannel;t.port1.postMessage(r,[r]),t.port1.close(),t.port2.close(),f=!0,Object.defineProperty(w,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})});function u(){a||(a=p?y(w.mitm):C(w.mitm))}function d(r,t,s){let e={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},o=0,i=null,m=null,x=null;if(Number.isFinite(t)?([s,t]=[t,s],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),e.size=s,e.writableStrategy=t):t&&t.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),e.size=s,e.writableStrategy=t):e=t||{},!l){u(),m=new MessageChannel,r=encodeURIComponent(r.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const b={transferringReadable:f,pathname:e.pathname||Math.random().toString().slice(-6)+"/"+r,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+r}};e.size&&(b.headers["Content-Length"]=e.size);const E=[b,"*",[m.port2]];if(f){const U=v==="iframe"?void 0:{transform(F,q){if(!(F instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");o+=F.length,q.enqueue(F),i&&(location.href=i,i=null)},flush(){i&&(location.href=i)}};x=new w.TransformStream(U,e.writableStrategy,e.readableStrategy);const _=x.readable;m.port1.postMessage({readableStream:_},[_])}m.port1.onmessage=U=>{U.data.download?v==="navigate"?(a.remove(),a=null,o?location.href=U.data.download:i=U.data.download):(a.isPopup&&(a.remove(),a=null,v==="iframe"&&y(w.mitm)),y(U.data.download)):U.data.abort&&(M=[],m.port1.postMessage("abort"),m.port1.onmessage=null,m.port1.close(),m.port2.close(),m=null)},a.loaded?a.postMessage(...E):a.addEventListener("load",()=>{a.postMessage(...E)},{once:!0})}let M=[];return!l&&x&&x.writable||new w.WritableStream({write(b){if(!(b instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");if(l){M.push(b);return}m.port1.postMessage(b),o+=b.length,i&&(location.href=i,i=null)},close(){if(l){const b=new Blob(M,{type:"application/octet-stream; charset=utf-8"}),E=document.createElement("a");E.href=URL.createObjectURL(b),E.download=r,E.click()}else m.port1.postMessage("end")},abort(){M=[],m.port1.postMessage("abort"),m.port1.onmessage=null,m.port1.close(),m.port2.close(),m=null}},e.writableStrategy)}return w})})(P);const $=P.exports;$.mitm="/streamer/mitm.html";const te=c=>c.replace(/^\/+|\/+$/g,"");let B=0;const ae=c=>{const n=A(),[a,f]=W(n("home.package_download.initializing")),[h,g]=W(0),{pathname:p}=R(),l=H(),v=async(u,d)=>{var r;if(d.is_dir){const t=await Y(L(p(),u,d.name),Q());if(t.code!==200)return t.message;const s=[];for(const e of(r=t.data.content)!=null?r:[]){const o=await v(L(u,d.name),e);if(typeof o=="string")return o;s.push(...o)}return s}else return B+=d.size,[{path:L(u,d.name),url:K(L(p(),u),d,"direct",!0)}]},[w,y]=W([]);return(async()=>{let u=J(p());l.length===1&&(u=l[0].name),u||(u=n("manage.sidemenu.home"));let d=$.createWriteStream(`${u}.zip`,{size:B});f(n("home.package_download.fetching_struct")),g(2);const r=[];for(const e of l){const o=await v("",e);if(typeof o=="string")return f(`${n("home.package_download.fetching_struct_failed")}: ${o}`),g(1),o;r.push(...o)}f(n("home.package_download.downloading")),g(3);let t=r.values(),s=new window.ZIP({pull(e){const o=t.next();if(o.done)e.close();else{let i=te(o.value.path);l.length===1&&(i=i.replace(`${u}/`,""));const m=o.value.url;return fetch(m).then(x=>{y(M=>[...M,i]),e.enqueue({name:i,stream:x.body})})}}});if(window.WritableStream&&s.pipeTo)return s.pipeTo(d).then(()=>{f(`${n("home.package_download.success")}`),g(4)}).catch(e=>{f(`${n("home.package_download.failed")}: ${e}`),g(1)})})(),[S(N,{get children(){return S(I,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[S(j,{get children(){return[k(()=>n("home.package_download.current_status")),": ",k(()=>a())]}}),S(z,{get each(){return w()},children:u=>S(Z,{css:{wordBreak:"break-all"},get children(){return["Fetching: ",u]}})})]}})}}),S(G,{get when(){return[1,4].includes(h())},get children(){return S(O,{get children(){return S(V,{colorScheme:"info",get onClick(){return c.onClose},get children(){return n("global.close")}})}})}})]};export{ae as default};
1
+ import{a as A,m as W,b as R,s as H,h as S,a4 as I,bP as j,az as k,G as z,b5 as Z,A as N,B as O,C as V,S as G,p as J,d as L,g as K,f as Y,_ as Q}from"./index.f27bc3a3.js";class D{constructor(){this.crc=-1}append(n){for(var a=this.crc|0,f=this.table,h=0,g=n.length|0;h<g;h++)a=a>>>8^f[(a^n[h])&255];this.crc=a}get(){return~this.crc}}D.prototype.table=(()=>{var c,n,a,f=[];for(c=0;c<256;c++){for(a=c,n=0;n<8;n++)a=a&1?a>>>1^3988292384:a>>>1;f[c]=a}return f})();const T=c=>{var n=new Uint8Array(c);return{array:n,view:new DataView(n.buffer)}},X=c=>c.reader.read().then(n=>{if(n.done)return c.writeFooter();const a=n.value;c.crc.append(a),c.uncompressedLength+=a.length,c.compressedLength+=a.length,c.ctrl.enqueue(a)});function ee(c){const n=Object.create(null),a=[],f=new TextEncoder;let h=0,g=0,p,l,v;function w(){g++,l=n[a[g]],l?u():v&&C()}var y={enqueue(d){if(v)throw new TypeError("Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed");let r=d.name.trim();const t=new Date(typeof d.lastModified>"u"?Date.now():d.lastModified);if(d.directory&&!r.endsWith("/")&&(r+="/"),n[r])throw new Error("File already exists.");const s=f.encode(r);a.push(r);const e=n[r]={level:0,ctrl:p,directory:!!d.directory,nameBuf:s,comment:f.encode(d.comment||""),compressedLength:0,uncompressedLength:0,writeHeader(){var o=T(26),i=T(30+s.length);e.offset=h,e.header=o,e.level!==0&&!e.directory&&o.view.setUint16(4,2048),o.view.setUint32(0,335546376),o.view.setUint16(6,(t.getHours()<<6|t.getMinutes())<<5|t.getSeconds()/2,!0),o.view.setUint16(8,(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate(),!0),o.view.setUint16(22,s.length,!0),i.view.setUint32(0,1347093252),i.array.set(o.array,4),i.array.set(s,30),h+=i.array.length,p.enqueue(i.array)},writeFooter(){var o=T(16);o.view.setUint32(0,1347094280),e.crc&&(e.header.view.setUint32(10,e.crc.get(),!0),e.header.view.setUint32(14,e.compressedLength,!0),e.header.view.setUint32(18,e.uncompressedLength,!0),o.view.setUint32(4,e.crc.get(),!0),o.view.setUint32(8,e.compressedLength,!0),o.view.setUint32(12,e.uncompressedLength,!0)),p.enqueue(o.array),h+=e.compressedLength+16,w()},fileLike:d};l||(l=e,u())},close(){if(v)throw new TypeError("Cannot close a readable stream that has already been requested to be closed");l||C(),v=!0}};function C(){var d=0,r=0,t,s;for(t=0;t<a.length;t++)s=n[a[t]],d+=46+s.nameBuf.length+s.comment.length;const e=T(d+22);for(t=0;t<a.length;t++)s=n[a[t]],e.view.setUint32(r,1347092738),e.view.setUint16(r+4,5120),e.array.set(s.header.array,r+6),e.view.setUint16(r+32,s.comment.length,!0),s.directory&&e.view.setUint8(r+38,16),e.view.setUint32(r+42,s.offset,!0),e.array.set(s.nameBuf,r+46),e.array.set(s.comment,r+46+s.nameBuf.length),r+=46+s.nameBuf.length+s.comment.length;e.view.setUint32(r,1347093766),e.view.setUint16(r+8,a.length,!0),e.view.setUint16(r+10,a.length,!0),e.view.setUint32(r+12,d,!0),e.view.setUint32(r+16,h,!0),p.enqueue(e.array),p.close()}function u(){if(!!l){if(l.directory)return l.writeFooter(l.writeHeader());if(l.reader)return X(l);l.fileLike.stream?(l.crc=new D,l.reader=l.fileLike.stream.getReader(),l.writeHeader()):w()}}return new ReadableStream({start:d=>{p=d,c.start&&Promise.resolve(c.start(y))},pull(){return u()||c.pull&&Promise.resolve(c.pull(y))}})}window.ZIP=ee;var P={exports:{}};/*! streamsaver. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */(function(c){((n,a)=>{c.exports=a()})("streamSaver",()=>{const n=typeof window=="object"?window:this;n.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let a=null,f=!1;const h=r=>{try{r()}catch{}},g=n.WebStreamsPolyfill||{},p=n.isSecureContext;let l=/constructor/i.test(n.HTMLElement)||!!n.safari||!!n.WebKitPoint;const v=p||"MozAppearance"in document.documentElement.style?"iframe":"navigate",w={createWriteStream:d,WritableStream:n.WritableStream||g.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function y(r){if(!r)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=r,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...s)=>t.contentWindow.postMessage(...s),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}function C(r){const t="width=200,height=100",s=document.createDocumentFragment(),e={frame:n.open(r,"popup",t),loaded:!1,isIframe:!1,isPopup:!0,remove(){e.frame.close()},addEventListener(...i){s.addEventListener(...i)},dispatchEvent(...i){s.dispatchEvent(...i)},removeEventListener(...i){s.removeEventListener(...i)},postMessage(...i){e.frame.postMessage(...i)}},o=i=>{i.source===e.frame&&(e.loaded=!0,n.removeEventListener("message",o),e.dispatchEvent(new Event("load")))};return n.addEventListener("message",o),e}try{new Response(new ReadableStream),p&&!("serviceWorker"in navigator)&&(l=!0)}catch{l=!0}h(()=>{const{readable:r}=new TransformStream,t=new MessageChannel;t.port1.postMessage(r,[r]),t.port1.close(),t.port2.close(),f=!0,Object.defineProperty(w,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})});function u(){a||(a=p?y(w.mitm):C(w.mitm))}function d(r,t,s){let e={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},o=0,i=null,m=null,x=null;if(Number.isFinite(t)?([s,t]=[t,s],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),e.size=s,e.writableStrategy=t):t&&t.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),e.size=s,e.writableStrategy=t):e=t||{},!l){u(),m=new MessageChannel,r=encodeURIComponent(r.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const b={transferringReadable:f,pathname:e.pathname||Math.random().toString().slice(-6)+"/"+r,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+r}};e.size&&(b.headers["Content-Length"]=e.size);const E=[b,"*",[m.port2]];if(f){const U=v==="iframe"?void 0:{transform(F,q){if(!(F instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");o+=F.length,q.enqueue(F),i&&(location.href=i,i=null)},flush(){i&&(location.href=i)}};x=new w.TransformStream(U,e.writableStrategy,e.readableStrategy);const _=x.readable;m.port1.postMessage({readableStream:_},[_])}m.port1.onmessage=U=>{U.data.download?v==="navigate"?(a.remove(),a=null,o?location.href=U.data.download:i=U.data.download):(a.isPopup&&(a.remove(),a=null,v==="iframe"&&y(w.mitm)),y(U.data.download)):U.data.abort&&(M=[],m.port1.postMessage("abort"),m.port1.onmessage=null,m.port1.close(),m.port2.close(),m=null)},a.loaded?a.postMessage(...E):a.addEventListener("load",()=>{a.postMessage(...E)},{once:!0})}let M=[];return!l&&x&&x.writable||new w.WritableStream({write(b){if(!(b instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");if(l){M.push(b);return}m.port1.postMessage(b),o+=b.length,i&&(location.href=i,i=null)},close(){if(l){const b=new Blob(M,{type:"application/octet-stream; charset=utf-8"}),E=document.createElement("a");E.href=URL.createObjectURL(b),E.download=r,E.click()}else m.port1.postMessage("end")},abort(){M=[],m.port1.postMessage("abort"),m.port1.onmessage=null,m.port1.close(),m.port2.close(),m=null}},e.writableStrategy)}return w})})(P);const $=P.exports;$.mitm="/streamer/mitm.html";const te=c=>c.replace(/^\/+|\/+$/g,"");let B=0;const ae=c=>{const n=A(),[a,f]=W(n("home.package_download.initializing")),[h,g]=W(0),{pathname:p}=R(),l=H(),v=async(u,d)=>{var r;if(d.is_dir){const t=await Y(L(p(),u,d.name),Q());if(t.code!==200)return t.message;const s=[];for(const e of(r=t.data.content)!=null?r:[]){const o=await v(L(u,d.name),e);if(typeof o=="string")return o;s.push(...o)}return s}else return B+=d.size,[{path:L(u,d.name),url:K(L(p(),u),d,"direct",!0)}]},[w,y]=W([]);return(async()=>{let u=J(p());l.length===1&&(u=l[0].name),u||(u=n("manage.sidemenu.home"));let d=$.createWriteStream(`${u}.zip`,{size:B});f(n("home.package_download.fetching_struct")),g(2);const r=[];for(const e of l){const o=await v("",e);if(typeof o=="string")return f(`${n("home.package_download.fetching_struct_failed")}: ${o}`),g(1),o;r.push(...o)}f(n("home.package_download.downloading")),g(3);let t=r.values(),s=new window.ZIP({pull(e){const o=t.next();if(o.done)e.close();else{let i=te(o.value.path);l.length===1&&(i=i.replace(`${u}/`,""));const m=o.value.url;return fetch(m).then(x=>{y(M=>[...M,i]),e.enqueue({name:i,stream:x.body})})}}});if(window.WritableStream&&s.pipeTo)return s.pipeTo(d).then(()=>{f(`${n("home.package_download.success")}`),g(4)}).catch(e=>{f(`${n("home.package_download.failed")}: ${e}`),g(1)})})(),[S(N,{get children(){return S(I,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[S(j,{get children(){return[k(()=>n("home.package_download.current_status")),": ",k(()=>a())]}}),S(z,{get each(){return w()},children:u=>S(Z,{css:{wordBreak:"break-all"},get children(){return["Fetching: ",u]}})})]}})}}),S(G,{get when(){return[1,4].includes(h())},get children(){return S(O,{get children(){return S(V,{colorScheme:"info",get onClick(){return c.onClose},get children(){return n("global.close")}})}})}})]};export{ae as default};
@@ -1 +1 @@
1
- !function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var t,c,o=[],u=!0,i=!1;try{for(n=n.call(e);!(u=(t=n.next()).done)&&(o.push(t.value),!r||o.length!==r);u=!0);}catch(l){i=!0,c=l}finally{try{u||null==n.return||n.return()}finally{if(i)throw c}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);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 r(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}System.register(["./index-legacy.a7c40fe3.js","./index-legacy.91fe7355.js"],(function(r){"use strict";var n,t,c,o,u,i,l,a,f,h,g;return{setters:[function(e){n=e.E,t=e.cj,c=e.k,o=e.h,u=e.ae,i=e.S,l=e.C,a=e.ak,f=e.G},function(e){h=e.m,g=e.n}],execute:function(){r("P",(function(r){var m,d=n({maxShowPage:4,defaultPageSize:30,defaultCurrent:1,hideOnSinglePage:!0},r),s=e(t({pageSize:d.defaultPageSize,current:d.defaultCurrent}),2),S=s[0],y=s[1];null===(m=d.setResetCallback)||void 0===m||m.call(d,(function(){y("current",d.defaultCurrent)}));var p=c((function(){return Math.ceil(d.total/S.pageSize)})),v=c((function(){var e=S.current,r=Math.max(2,e-Math.floor(d.maxShowPage/2));return Array.from({length:e-r},(function(e,n){return r+n}))})),x=c((function(){var e=S.current,r=Math.min(p()-1,e+Math.floor(d.maxShowPage/2));return Array.from({length:r-e},(function(r,n){return e+1+n}))})),C={"@initial":"sm","@md":"md"},b=function(e){var r;y("current",e),null===(r=d.onChange)||void 0===r||r.call(d,e)};return o(i,{get when(){return!d.hideOnSinglePage||p()>1},get children(){return o(u,{spacing:"$1",get children(){return[o(i,{get when(){return 1!==S.current},get children(){return[o(l,{size:C,get colorScheme(){return d.colorScheme},onClick:function(){b(1)},px:"$3",children:"1"}),o(a,{size:C,get icon(){return o(h,{})},"aria-label":"Previous",get colorScheme(){return d.colorScheme},onClick:function(){b(S.current-1)},w:"2rem !important"})]}}),o(f,{get each(){return v()},children:function(e){return o(l,{size:C,get colorScheme(){return d.colorScheme},onClick:function(){b(e)},px:e>10?"$2_5":"$3",children:e})}}),o(l,{size:C,get colorScheme(){return d.colorScheme},variant:"solid",get px(){return S.current>10?"$2_5":"$3"},get children(){return S.current}}),o(f,{get each(){return x()},children:function(e){return o(l,{size:C,get colorScheme(){return d.colorScheme},onClick:function(){b(e)},px:e>10?"$2_5":"$3",children:e})}}),o(i,{get when(){return S.current!==p()},get children(){return[o(a,{size:C,get icon(){return o(g,{})},"aria-label":"Next",get colorScheme(){return d.colorScheme},onClick:function(){b(S.current+1)},w:"2rem !important"}),o(l,{size:C,get colorScheme(){return d.colorScheme},onClick:function(){b(p())},get px(){return p()>10?"$2_5":"$3"},get children(){return p()}})]}})]}})}})}))}}}))}();
1
+ !function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var t,c,o=[],u=!0,i=!1;try{for(n=n.call(e);!(u=(t=n.next()).done)&&(o.push(t.value),!r||o.length!==r);u=!0);}catch(l){i=!0,c=l}finally{try{u||null==n.return||n.return()}finally{if(i)throw c}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);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 r(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}System.register(["./index-legacy.700115ce.js","./index-legacy.b820f693.js"],(function(r){"use strict";var n,t,c,o,u,i,l,a,h,f,g;return{setters:[function(e){n=e.E,t=e.cj,c=e.k,o=e.h,u=e.ae,i=e.S,l=e.C,a=e.ak,h=e.G},function(e){f=e.m,g=e.n}],execute:function(){r("P",(function(r){var m,d=n({maxShowPage:4,defaultPageSize:30,defaultCurrent:1,hideOnSinglePage:!0},r),s=e(t({pageSize:d.defaultPageSize,current:d.defaultCurrent}),2),S=s[0],y=s[1];null===(m=d.setResetCallback)||void 0===m||m.call(d,(function(){y("current",d.defaultCurrent)}));var p=c((function(){return Math.ceil(d.total/S.pageSize)})),v=c((function(){var e=S.current,r=Math.max(2,e-Math.floor(d.maxShowPage/2));return Array.from({length:e-r},(function(e,n){return r+n}))})),x=c((function(){var e=S.current,r=Math.min(p()-1,e+Math.floor(d.maxShowPage/2));return Array.from({length:r-e},(function(r,n){return e+1+n}))})),b={"@initial":"sm","@md":"md"},C=function(e){var r;y("current",e),null===(r=d.onChange)||void 0===r||r.call(d,e)};return o(i,{get when(){return!d.hideOnSinglePage||p()>1},get children(){return o(u,{spacing:"$1",get children(){return[o(i,{get when(){return 1!==S.current},get children(){return[o(l,{size:b,get colorScheme(){return d.colorScheme},onClick:function(){C(1)},px:"$3",children:"1"}),o(a,{size:b,get icon(){return o(f,{})},"aria-label":"Previous",get colorScheme(){return d.colorScheme},onClick:function(){C(S.current-1)},w:"2rem !important"})]}}),o(h,{get each(){return v()},children:function(e){return o(l,{size:b,get colorScheme(){return d.colorScheme},onClick:function(){C(e)},px:e>10?"$2_5":"$3",children:e})}}),o(l,{size:b,get colorScheme(){return d.colorScheme},variant:"solid",get px(){return S.current>10?"$2_5":"$3"},get children(){return S.current}}),o(h,{get each(){return x()},children:function(e){return o(l,{size:b,get colorScheme(){return d.colorScheme},onClick:function(){C(e)},px:e>10?"$2_5":"$3",children:e})}}),o(i,{get when(){return S.current!==p()},get children(){return[o(a,{size:b,get icon(){return o(g,{})},"aria-label":"Next",get colorScheme(){return d.colorScheme},onClick:function(){C(S.current+1)},w:"2rem !important"}),o(l,{size:b,get colorScheme(){return d.colorScheme},onClick:function(){C(p())},get px(){return p()>10?"$2_5":"$3"},get children(){return p()}})]}})]}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{E as z,cj as p,k as h,h as t,ae as k,S as s,C as i,ak as S,G as d}from"./index.fae3cea4.js";import{m as $,n as w}from"./index.0adfc44b.js";const A=C=>{var m;const e=z({maxShowPage:4,defaultPageSize:30,defaultCurrent:1,hideOnSinglePage:!0},C),[n,g]=p({pageSize:e.defaultPageSize,current:e.defaultCurrent});(m=e.setResetCallback)==null||m.call(e,()=>{g("current",e.defaultCurrent)});const a=h(()=>Math.ceil(e.total/n.pageSize)),P=h(()=>{const r=n.current,c=Math.max(2,r-Math.floor(e.maxShowPage/2));return Array.from({length:r-c},(x,u)=>c+u)}),f=h(()=>{const r=n.current,c=Math.min(a()-1,r+Math.floor(e.maxShowPage/2));return Array.from({length:c-r},(x,u)=>r+1+u)}),o={"@initial":"sm","@md":"md"},l=r=>{var c;g("current",r),(c=e.onChange)==null||c.call(e,r)};return t(s,{get when(){return!e.hideOnSinglePage||a()>1},get children(){return t(k,{spacing:"$1",get children(){return[t(s,{get when(){return n.current!==1},get children(){return[t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(1)},px:"$3",children:"1"}),t(S,{size:o,get icon(){return t($,{})},"aria-label":"Previous",get colorScheme(){return e.colorScheme},onClick:()=>{l(n.current-1)},w:"2rem !important"})]}}),t(d,{get each(){return P()},children:r=>t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(r)},px:r>10?"$2_5":"$3",children:r})}),t(i,{size:o,get colorScheme(){return e.colorScheme},variant:"solid",get px(){return n.current>10?"$2_5":"$3"},get children(){return n.current}}),t(d,{get each(){return f()},children:r=>t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(r)},px:r>10?"$2_5":"$3",children:r})}),t(s,{get when(){return n.current!==a()},get children(){return[t(S,{size:o,get icon(){return t(w,{})},"aria-label":"Next",get colorScheme(){return e.colorScheme},onClick:()=>{l(n.current+1)},w:"2rem !important"}),t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(a())},get px(){return a()>10?"$2_5":"$3"},get children(){return a()}})]}})]}})}})};export{A as P};
1
+ import{E as z,cj as p,k as h,h as t,ae as k,S as s,C as i,ak as S,G as d}from"./index.f27bc3a3.js";import{m as $,n as w}from"./index.6a851756.js";const A=C=>{var m;const e=z({maxShowPage:4,defaultPageSize:30,defaultCurrent:1,hideOnSinglePage:!0},C),[n,g]=p({pageSize:e.defaultPageSize,current:e.defaultCurrent});(m=e.setResetCallback)==null||m.call(e,()=>{g("current",e.defaultCurrent)});const a=h(()=>Math.ceil(e.total/n.pageSize)),P=h(()=>{const r=n.current,c=Math.max(2,r-Math.floor(e.maxShowPage/2));return Array.from({length:r-c},(x,u)=>c+u)}),f=h(()=>{const r=n.current,c=Math.min(a()-1,r+Math.floor(e.maxShowPage/2));return Array.from({length:c-r},(x,u)=>r+1+u)}),o={"@initial":"sm","@md":"md"},l=r=>{var c;g("current",r),(c=e.onChange)==null||c.call(e,r)};return t(s,{get when(){return!e.hideOnSinglePage||a()>1},get children(){return t(k,{spacing:"$1",get children(){return[t(s,{get when(){return n.current!==1},get children(){return[t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(1)},px:"$3",children:"1"}),t(S,{size:o,get icon(){return t($,{})},"aria-label":"Previous",get colorScheme(){return e.colorScheme},onClick:()=>{l(n.current-1)},w:"2rem !important"})]}}),t(d,{get each(){return P()},children:r=>t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(r)},px:r>10?"$2_5":"$3",children:r})}),t(i,{size:o,get colorScheme(){return e.colorScheme},variant:"solid",get px(){return n.current>10?"$2_5":"$3"},get children(){return n.current}}),t(d,{get each(){return f()},children:r=>t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(r)},px:r>10?"$2_5":"$3",children:r})}),t(s,{get when(){return n.current!==a()},get children(){return[t(S,{size:o,get icon(){return t(w,{})},"aria-label":"Next",get colorScheme(){return e.colorScheme},onClick:()=>{l(n.current+1)},w:"2rem !important"}),t(i,{size:o,get colorScheme(){return e.colorScheme},onClick:()=>{l(a())},get px(){return a()>10?"$2_5":"$3"},get children(){return a()}})]}})]}})}})};export{A as P};
@@ -1 +1 @@
1
- System.register(["./index-legacy.a7c40fe3.js","./index-legacy.61172c95.js","./index-legacy.91fe7355.js"],(function(e){"use strict";var n,t,r,c,o,l,u,i,a,g,s,d,f,h,b;return{setters:[function(e){n=e.a,t=e.b,r=e.h,c=e.bP,o=e.I,l=e._,u=e.X,i=e.cZ,a=e.ae,g=e.bQ,s=e.b5,d=e.C,f=e.a4},function(e){h=e.u},function(e){b=e.L}],execute:function(){e("default",(function(){var e=n(),p=h().refresh,$=t().back;return r(f,{w:{"@initial":"$full","@md":"$lg"},p:"$8",spacing:"$3",alignItems:"start",get children(){return[r(c,{get children(){return e("home.input_password")}}),r(o,{type:"password",get value(){return l()},get background(){return u("$neutral3","$neutral2")()},onKeyDown:function(e){"Enter"===e.key&&p(!0)},onInput:function(e){return i(e.currentTarget.value)}}),r(a,{w:"$full",justifyContent:"space-between",get children(){return[r(g,{fontSize:"$sm",color:"$neutral10",direction:{"@initial":"column","@sm":"row"},columnGap:"$1",get children(){return[r(s,{get children(){return e("global.have_account")}}),r(s,{color:"$info9",as:b,get href(){return"/@login?redirect=".concat(encodeURIComponent(location.pathname))},get children(){return e("global.go_login")}})]}}),r(a,{spacing:"$2",get children(){return[r(d,{colorScheme:"neutral",onClick:$,get children(){return e("global.back")}}),r(d,{onClick:function(){return p(!0)},get children(){return e("global.ok")}})]}})]}})]}})}))}}}));
1
+ System.register(["./index-legacy.700115ce.js","./index-legacy.8ef32e28.js","./index-legacy.b820f693.js"],(function(e){"use strict";var n,t,r,c,o,l,u,i,a,g,s,d,f,h,b;return{setters:[function(e){n=e.a,t=e.b,r=e.h,c=e.bP,o=e.I,l=e._,u=e.X,i=e.cU,a=e.ae,g=e.bQ,s=e.b5,d=e.C,f=e.a4},function(e){h=e.u},function(e){b=e.L}],execute:function(){e("default",(function(){var e=n(),p=h().refresh,$=t().back;return r(f,{w:{"@initial":"$full","@md":"$lg"},p:"$8",spacing:"$3",alignItems:"start",get children(){return[r(c,{get children(){return e("home.input_password")}}),r(o,{type:"password",get value(){return l()},get background(){return u("$neutral3","$neutral2")()},onKeyDown:function(e){"Enter"===e.key&&p(!0)},onInput:function(e){return i(e.currentTarget.value)}}),r(a,{w:"$full",justifyContent:"space-between",get children(){return[r(g,{fontSize:"$sm",color:"$neutral10",direction:{"@initial":"column","@sm":"row"},columnGap:"$1",get children(){return[r(s,{get children(){return e("global.have_account")}}),r(s,{color:"$info9",as:b,get href(){return"/@login?redirect=".concat(encodeURIComponent(location.pathname))},get children(){return e("global.go_login")}})]}}),r(a,{spacing:"$2",get children(){return[r(d,{colorScheme:"neutral",onClick:$,get children(){return e("global.back")}}),r(d,{onClick:function(){return p(!0)},get children(){return e("global.ok")}})]}})]}})]}})}))}}}));
@@ -1 +1 @@
1
- import{a as u,b as c,h as e,bP as i,I as g,_ as d,X as p,cZ as h,ae as a,bQ as m,b5 as o,C as s,a4 as $}from"./index.fae3cea4.js";import{u as b}from"./index.952b63b2.js";import{L as f}from"./index.0adfc44b.js";const I=()=>{const t=u(),{refresh:n}=b(),{back:l}=c();return e($,{w:{"@initial":"$full","@md":"$lg"},p:"$8",spacing:"$3",alignItems:"start",get children(){return[e(i,{get children(){return t("home.input_password")}}),e(g,{type:"password",get value(){return d()},get background(){return p("$neutral3","$neutral2")()},onKeyDown:r=>{r.key==="Enter"&&n(!0)},onInput:r=>h(r.currentTarget.value)}),e(a,{w:"$full",justifyContent:"space-between",get children(){return[e(m,{fontSize:"$sm",color:"$neutral10",direction:{"@initial":"column","@sm":"row"},columnGap:"$1",get children(){return[e(o,{get children(){return t("global.have_account")}}),e(o,{color:"$info9",as:f,get href(){return`/@login?redirect=${encodeURIComponent(location.pathname)}`},get children(){return t("global.go_login")}})]}}),e(a,{spacing:"$2",get children(){return[e(s,{colorScheme:"neutral",onClick:l,get children(){return t("global.back")}}),e(s,{onClick:()=>n(!0),get children(){return t("global.ok")}})]}})]}})]}})};export{I as default};
1
+ import{a as u,b as c,h as e,bP as i,I as g,_ as d,X as p,cU as h,ae as a,bQ as m,b5 as o,C as s,a4 as $}from"./index.f27bc3a3.js";import{u as b}from"./index.e0a3345f.js";import{L as f}from"./index.6a851756.js";const I=()=>{const t=u(),{refresh:n}=b(),{back:l}=c();return e($,{w:{"@initial":"$full","@md":"$lg"},p:"$8",spacing:"$3",alignItems:"start",get children(){return[e(i,{get children(){return t("home.input_password")}}),e(g,{type:"password",get value(){return d()},get background(){return p("$neutral3","$neutral2")()},onKeyDown:r=>{r.key==="Enter"&&n(!0)},onInput:r=>h(r.currentTarget.value)}),e(a,{w:"$full",justifyContent:"space-between",get children(){return[e(m,{fontSize:"$sm",color:"$neutral10",direction:{"@initial":"column","@sm":"row"},columnGap:"$1",get children(){return[e(o,{get children(){return t("global.have_account")}}),e(o,{color:"$info9",as:f,get href(){return`/@login?redirect=${encodeURIComponent(location.pathname)}`},get children(){return t("global.go_login")}})]}}),e(a,{spacing:"$2",get children(){return[e(s,{colorScheme:"neutral",onClick:l,get children(){return t("global.back")}}),e(s,{onClick:()=>n(!0),get children(){return t("global.ok")}})]}})]}})]}})};export{I 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(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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 e};var e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(S){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new L(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=x(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(S){return{type:"throw",arg:S}}}e.wrap=l;var h={};function d(){}function p(){}function g(){}var y={};s(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==r&&n.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&n.call(h,"__await")?r.resolve(h.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):r.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(s.arg)}var i;this._invoke=function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return i=i?i.then(n,n):n()}}function x(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,x(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 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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(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,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,s(w,"constructor",g),s(g,"constructor",p),p.displayName=s(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"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=k,L.prototype={constructor:L,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)&&n.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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("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 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 o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function i(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(s){return void r(s)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);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,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 c(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 c(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 c(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","./index-legacy.91fe7355.js","./webauthn-json.browser-ponyfill-legacy.8ddd819a.js"],(function(t){"use strict";var e,n,i,c,s,l,f,h,d,p,g,y,v,m,w,b,_,x,O,j,L,k,E,S,$,P,I,C,G,T,A,N,F,D,U,J,R,Y,z,B;return{setters:[function(t){e=t.a,n=t.aW,i=t.b9,c=t.m,s=t.h,l=t.d1,f=t.a4,h=t.bP,d=t.C,p=t.ba,g=t.n,y=t.S,v=t.b,m=t.ah,w=t.d2,b=t.e,_=t.ag,x=t.aJ,O=t.d3,j=t.d4,L=t.d5,k=t.d6,E=t.ae,S=t.b5,$=t.d7,P=t.bA,I=t.bn,C=t.I,G=t.F,T=t.az,A=t.a8,N=t.G,F=t.aG,D=t.ck,U=t.bG},function(t){J=t.b},function(t){R=t.L},function(t){Y=t.s,z=t.c,B=t.b}],execute:function(){var M=function(t){var r=e(),v=u(n((function(){return i.post("/authn/delete_authn",{id:t.id})})),2),m=v[0],w=v[1],b=u(c(!1),2),_=b[0],x=b[1];return s(y,{get when(){return!_()},get children(){return s(l,{w:"$full",overflowX:"auto",shadow:"$md",rounded:"$lg",p:"$2",direction:{"@initial":"column","@xl":"row"},spacing:"$2",get children(){return[s(f,{w:"$full",alignItems:"start",spacing:"$1",get children(){return s(h,{color:"$info9",css:{wordBreak:"break-all"},get children(){return"Fingerprint: "+t.fingerprint+"\tID: "+t.id}})}}),s(l,{direction:{"@initial":"row","@xl":"column"},justifyContent:{"@xl":"center"},spacing:"$1",get children(){return s(d,{colorScheme:"danger",get loading(){return m()},onClick:(t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w();case 2:e=t.sent,p(e,(function(){g.success(r("global.delete_success")),x(!0)}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("global.delete")}});var t}})]}})}})},W=function(t){return s(D,{get colorScheme(){return t.can?"success":"danger"},get children(){return t.children}})};t("default",(function(){var t=e();J("manage.sidemenu.profile");var l=v(),D=l.searchParams,X=l.to,q=u(c(m().username),2),H=q[0],K=q[1],Q=u(c(""),2),V=Q[0],Z=Q[1],tt=u(c(""),2),et=tt[0],rt=tt[1],nt=x("sso_compatibility_mode"),ot=n((function(t){return i.post("/me/update",{username:t?m().username:H(),password:t?"":V(),sso_id:m().sso_id})})),it=u(ot,2),at=it[0],ut=it[1],ct=u(n((function(){return i.get("/authn/getcredentials")})),2),st=ct[0],lt=ct[1],ft=u(n((function(){return i.get("/authn/webauthn_begin_registration")})),2)[1],ht=n((function(t,e){return i.post("/authn/webauthn_finish_registration",JSON.stringify(e),{headers:{session:t}})})),dt=u(ht,2),pt=dt[0],gt=dt[1],yt=function(){var e=a(o().mark((function e(n){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!V()||V()===et()){e.next=3;break}return g.warning(t("users.confirm_password_not_same")),e.abrupt("return");case 3:return e.next=5,ut(n);case 5:i=e.sent,p(i,(function(){w(r(r({},m()),{},{username:H()})),n?X(""):(g.success(t("users.update_profile_success")),X("/@login?redirect=".concat(encodeURIComponent(location.pathname))))}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),vt=D.sso_id;function mt(t){var e=t.data;e.sso_id&&(w(r(r({},m()),{},{sso_id:e.sso_id})),yt(!0))}vt&&(w(r(r({},m()),{},{sso_id:vt})),yt(!0)),window.addEventListener("message",mt),b((function(){window.removeEventListener("message",mt)}));var wt=u(c([]),2),bt=wt[0],_t=wt[1],xt=function(){var t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lt();case 2:e=t.sent,U(e,_t);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Y()&&!_.is_guest(m())&&x("webauthn_login_enabled")&&xt(),s(f,{w:"$full",spacing:"$4",alignItems:"start",get children(){return[s(y,{get when(){return!_.is_guest(m())},get fallback(){return[s(O,{status:"warning",flexDirection:{"@initial":"column","@lg":"row"},get children(){return[s(j,{mr:"$2_5"}),s(L,{mr:"$2_5",get children(){return t("users.guest-tips")}}),s(k,{get children(){return t("users.modify_nothing")}})]}}),s(E,{spacing:"$2",get children(){return[s(S,{get children(){return t("global.have_account")}}),s(S,{color:"$info9",as:R,get href(){return"/@login?redirect=".concat(encodeURIComponent(location.pathname))},get children(){return t("global.go_login")}})]}})]},get children(){return[s(h,{get children(){return t("users.update_profile")}}),s($,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return s(P,{get children(){return[s(I,{for:"username",get children(){return t("users.change_username")}}),s(C,{id:"username",get value(){return H()},onInput:function(t){K(t.currentTarget.value)}})]}})}}),s($,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(P,{get children(){return[s(I,{for:"password",get children(){return t("users.change_password")}}),s(C,{id:"password",type:"password",placeholder:"********",get value(){return V()},onInput:function(t){Z(t.currentTarget.value)}}),s(G,{get children(){return t("users.change_password-tips")}})]}}),s(P,{get children(){return[s(I,{for:"confirm-password",get children(){return t("users.confirm_password")}}),s(C,{id:"confirm-password",type:"password",placeholder:"********",get value(){return et()},onInput:function(t){rt(t.currentTarget.value)}}),s(G,{get children(){return t("users.confirm_password-tips")}})]}})]}}),s(E,{spacing:"$2",get children(){return[s(d,{get loading(){return at()},onClick:[yt,!1],get children(){return t("global.save")}}),s(y,{get when(){return!m().otp},get children(){return s(d,{colorScheme:"accent",onClick:function(){X("/@manage/2fa")},get children(){return t("users.enable_2fa")}})}})]}})]}}),s(y,{get when(){return T((function(){return!!x("sso_login_enabled")}),!0)()&&!_.is_guest(m())},get children(){return[s(h,{get children(){return t("users.sso_login")}}),s(E,{spacing:"$2",get children(){return s(y,{get when(){return m().sso_id},get fallback(){return s(d,{onClick:function(){var t=i.getUri()+"/auth/sso?method=get_sso_id";nt?window.location.href=t:window.open(t,"authPopup","width=500,height=600")},get children(){return t("users.connect_sso")}})},get children(){return s(d,{colorScheme:"danger",get loading(){return at()},onClick:function(){w(r(r({},m()),{},{sso_id:""})),yt(!0)},get children(){return t("users.disconnect_sso")}})}})}})]}}),s(y,{get when(){return T((function(){return!_.is_guest(m())}),!0)()&&x("webauthn_login_enabled")},get children(){return[s(h,{get children(){return t("users.webauthn")}}),s(E,{wrap:"wrap",gap:"$2",mt:"$2",get children(){return s(A,{get loading(){return st()},get children(){return s(N,{get each(){return bt()},children:function(t){return s(M,{get id(){return t.id},get fingerprint(){return t.fingerprint}})}})}})}}),s(d,{get loading(){return pt()},onClick:(e=a(o().mark((function e(){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Y()){e.next=3;break}return g.error(t("users.webauthn_not_supported")),e.abrupt("return");case 3:return e.next=5,ft();case 5:r=e.sent,p(r,function(){var e=a(o().mark((function e(r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=z(r.options),i=r.session,e.prev=2,e.next=5,B(n);case 5:return a=e.sent,e.t0=p,e.next=9,gt(i,a);case 9:e.t1=e.sent,e.t2=function(){g.success(t("users.add_webauthn_success"))},(0,e.t0)(e.t1,e.t2),e.next=17;break;case 14:e.prev=14,e.t3=e.catch(2),e.t3 instanceof Error&&g.error(e.t3.message);case 17:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("users.add_webauthn")}})];var e}}),s(E,{wrap:"wrap",gap:"$2",mt:"$2",get children(){return s(N,{each:F,children:function(e,r){return s(W,{get can(){return _.can(m(),r())},get children(){return t("users.permissions.".concat(e))}})}})}})]}})}))}}}))}();
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=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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 e};var e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(S){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new L(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=x(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(S){return{type:"throw",arg:S}}}e.wrap=l;var h={};function d(){}function p(){}function g(){}var y={};s(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==r&&n.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&n.call(h,"__await")?r.resolve(h.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):r.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(s.arg)}var i;this._invoke=function(t,e){function n(){return new r((function(r,n){o(t,e,r,n)}))}return i=i?i.then(n,n):n()}}function x(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,x(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 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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(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,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,s(w,"constructor",g),s(g,"constructor",p),p.displayName=s(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"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=k,L.prototype={constructor:L,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)&&n.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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("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 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 o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function i(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(s){return void r(s)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);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,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 c(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 c(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 c(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","./useTitle-legacy.1ab50c72.js","./index-legacy.b820f693.js","./webauthn-json.browser-ponyfill-legacy.8ddd819a.js"],(function(t){"use strict";var e,n,i,c,s,l,f,h,d,p,g,y,v,m,w,b,_,x,O,j,L,k,E,S,$,P,I,C,G,T,A,N,F,D,U,Y,J,R,z,B;return{setters:[function(t){e=t.a,n=t.aW,i=t.b9,c=t.m,s=t.h,l=t.cY,f=t.a4,h=t.bP,d=t.C,p=t.ba,g=t.n,y=t.S,v=t.b,m=t.ah,w=t.cZ,b=t.e,_=t.ag,x=t.aJ,O=t.c_,j=t.c$,L=t.d0,k=t.d1,E=t.ae,S=t.b5,$=t.d2,P=t.bA,I=t.bn,C=t.I,G=t.F,T=t.az,A=t.a8,N=t.G,F=t.aG,D=t.ck,U=t.bG},function(t){Y=t.b},function(t){J=t.L},function(t){R=t.s,z=t.c,B=t.b}],execute:function(){var M=function(t){var r=e(),v=u(n((function(){return i.post("/authn/delete_authn",{id:t.id})})),2),m=v[0],w=v[1],b=u(c(!1),2),_=b[0],x=b[1];return s(y,{get when(){return!_()},get children(){return s(l,{w:"$full",overflowX:"auto",shadow:"$md",rounded:"$lg",p:"$2",direction:{"@initial":"column","@xl":"row"},spacing:"$2",get children(){return[s(f,{w:"$full",alignItems:"start",spacing:"$1",get children(){return s(h,{color:"$info9",css:{wordBreak:"break-all"},get children(){return"Fingerprint: "+t.fingerprint+"\tID: "+t.id}})}}),s(l,{direction:{"@initial":"row","@xl":"column"},justifyContent:{"@xl":"center"},spacing:"$1",get children(){return s(d,{colorScheme:"danger",get loading(){return m()},onClick:(t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w();case 2:e=t.sent,p(e,(function(){g.success(r("global.delete_success")),x(!0)}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("global.delete")}});var t}})]}})}})},W=function(t){return s(D,{get colorScheme(){return t.can?"success":"danger"},get children(){return t.children}})};t("default",(function(){var t=e();Y("manage.sidemenu.profile");var l=v(),D=l.searchParams,X=l.to,Z=u(c(m().username),2),q=Z[0],H=Z[1],K=u(c(""),2),Q=K[0],V=K[1],tt=u(c(""),2),et=tt[0],rt=tt[1],nt=x("sso_compatibility_mode"),ot=n((function(t){return i.post("/me/update",{username:t?m().username:q(),password:t?"":Q(),sso_id:m().sso_id})})),it=u(ot,2),at=it[0],ut=it[1],ct=u(n((function(){return i.get("/authn/getcredentials")})),2),st=ct[0],lt=ct[1],ft=u(n((function(){return i.get("/authn/webauthn_begin_registration")})),2)[1],ht=n((function(t,e){return i.post("/authn/webauthn_finish_registration",JSON.stringify(e),{headers:{session:t}})})),dt=u(ht,2),pt=dt[0],gt=dt[1],yt=function(){var e=a(o().mark((function e(n){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q()||Q()===et()){e.next=3;break}return g.warning(t("users.confirm_password_not_same")),e.abrupt("return");case 3:return e.next=5,ut(n);case 5:i=e.sent,p(i,(function(){w(r(r({},m()),{},{username:q()})),n?X(""):(g.success(t("users.update_profile_success")),X("/@login?redirect=".concat(encodeURIComponent(location.pathname))))}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),vt=D.sso_id;function mt(t){var e=t.data;e.sso_id&&(w(r(r({},m()),{},{sso_id:e.sso_id})),yt(!0))}vt&&(w(r(r({},m()),{},{sso_id:vt})),yt(!0)),window.addEventListener("message",mt),b((function(){window.removeEventListener("message",mt)}));var wt=u(c([]),2),bt=wt[0],_t=wt[1],xt=function(){var t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lt();case 2:e=t.sent,U(e,_t);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return R()&&!_.is_guest(m())&&x("webauthn_login_enabled")&&xt(),s(f,{w:"$full",spacing:"$4",alignItems:"start",get children(){return[s(y,{get when(){return!_.is_guest(m())},get fallback(){return[s(O,{status:"warning",flexDirection:{"@initial":"column","@lg":"row"},get children(){return[s(j,{mr:"$2_5"}),s(L,{mr:"$2_5",get children(){return t("users.guest-tips")}}),s(k,{get children(){return t("users.modify_nothing")}})]}}),s(E,{spacing:"$2",get children(){return[s(S,{get children(){return t("global.have_account")}}),s(S,{color:"$info9",as:J,get href(){return"/@login?redirect=".concat(encodeURIComponent(location.pathname))},get children(){return t("global.go_login")}})]}})]},get children(){return[s(h,{get children(){return t("users.update_profile")}}),s($,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return s(P,{get children(){return[s(I,{for:"username",get children(){return t("users.change_username")}}),s(C,{id:"username",get value(){return q()},onInput:function(t){H(t.currentTarget.value)}})]}})}}),s($,{gap:"$2",columns:{"@initial":1,"@md":2},get children(){return[s(P,{get children(){return[s(I,{for:"password",get children(){return t("users.change_password")}}),s(C,{id:"password",type:"password",placeholder:"********",get value(){return Q()},onInput:function(t){V(t.currentTarget.value)}}),s(G,{get children(){return t("users.change_password-tips")}})]}}),s(P,{get children(){return[s(I,{for:"confirm-password",get children(){return t("users.confirm_password")}}),s(C,{id:"confirm-password",type:"password",placeholder:"********",get value(){return et()},onInput:function(t){rt(t.currentTarget.value)}}),s(G,{get children(){return t("users.confirm_password-tips")}})]}})]}}),s(E,{spacing:"$2",get children(){return[s(d,{get loading(){return at()},onClick:[yt,!1],get children(){return t("global.save")}}),s(y,{get when(){return!m().otp},get children(){return s(d,{colorScheme:"accent",onClick:function(){X("/@manage/2fa")},get children(){return t("users.enable_2fa")}})}})]}})]}}),s(y,{get when(){return T((function(){return!!x("sso_login_enabled")}),!0)()&&!_.is_guest(m())},get children(){return[s(h,{get children(){return t("users.sso_login")}}),s(E,{spacing:"$2",get children(){return s(y,{get when(){return m().sso_id},get fallback(){return s(d,{onClick:function(){var t=i.getUri()+"/auth/sso?method=get_sso_id";nt?window.location.href=t:window.open(t,"authPopup","width=500,height=600")},get children(){return t("users.connect_sso")}})},get children(){return s(d,{colorScheme:"danger",get loading(){return at()},onClick:function(){w(r(r({},m()),{},{sso_id:""})),yt(!0)},get children(){return t("users.disconnect_sso")}})}})}})]}}),s(y,{get when(){return T((function(){return!_.is_guest(m())}),!0)()&&x("webauthn_login_enabled")},get children(){return[s(h,{get children(){return t("users.webauthn")}}),s(E,{wrap:"wrap",gap:"$2",mt:"$2",get children(){return s(A,{get loading(){return st()},get children(){return s(N,{get each(){return bt()},children:function(t){return s(M,{get id(){return t.id},get fingerprint(){return t.fingerprint}})}})}})}}),s(d,{get loading(){return pt()},onClick:(e=a(o().mark((function e(){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R()){e.next=3;break}return g.error(t("users.webauthn_not_supported")),e.abrupt("return");case 3:return e.next=5,ft();case 5:r=e.sent,p(r,function(){var e=a(o().mark((function e(r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=z(r.options),i=r.session,e.prev=2,e.next=5,B(n);case 5:return a=e.sent,e.t0=p,e.next=9,gt(i,a);case 9:e.t1=e.sent,e.t2=function(){g.success(t("users.add_webauthn_success"))},(0,e.t0)(e.t1,e.t2),e.next=17;break;case 14:e.prev=14,e.t3=e.catch(2),e.t3 instanceof Error&&g.error(e.t3.message);case 17:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("users.add_webauthn")}})];var e}}),s(E,{wrap:"wrap",gap:"$2",mt:"$2",get children(){return s(N,{each:F,children:function(e,r){return s(W,{get can(){return _.can(m(),r())},get children(){return t("users.permissions.".concat(e))}})}})}})]}})}))}}}))}();