filecat 5.16.1 → 5.16.2

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 (299) hide show
  1. package/build/dist/{523.cd76e6fafa6440cc1693.js → 523.dccd16b3d9a55836ef44.js} +2 -2
  2. package/build/dist/{943.7e28d7ce1a69f0d15eb2.js → 943.b94459fa6f46eef06e48.js} +2 -2
  3. package/build/dist/index.html +1 -1
  4. package/build/dist/{main.7d110d8fdcc3c74c6c82.js → main.7b13a8b34814c54500af.js} +2 -2
  5. package/build/main.js +2 -0
  6. package/build/main.js.LICENSE.txt +445 -0
  7. package/build/unrar.wasm +0 -0
  8. package/build/{server/main/watch.js → watch.js} +86 -68
  9. package/package.json +4 -3
  10. package/shell/config/webpack.npm.config.js +1 -1
  11. package/build/server/common/Env.js +0 -188
  12. package/build/server/common/Env.js.map +0 -1
  13. package/build/server/common/FileMenuType.js +0 -45
  14. package/build/server/common/FileMenuType.js.map +0 -1
  15. package/build/server/common/ListUtil.js +0 -174
  16. package/build/server/common/ListUtil.js.map +0 -1
  17. package/build/server/common/Result.pojo.js +0 -14
  18. package/build/server/common/Result.pojo.js.map +0 -1
  19. package/build/server/common/RouterConfig.js +0 -16
  20. package/build/server/common/RouterConfig.js.map +0 -1
  21. package/build/server/common/StringUtil.js +0 -153
  22. package/build/server/common/StringUtil.js.map +0 -1
  23. package/build/server/common/ValueUtil.js +0 -49
  24. package/build/server/common/ValueUtil.js.map +0 -1
  25. package/build/server/common/common.util.js +0 -10
  26. package/build/server/common/common.util.js.map +0 -1
  27. package/build/server/common/file.pojo.js +0 -56
  28. package/build/server/common/file.pojo.js.map +0 -1
  29. package/build/server/common/findPort.js +0 -34
  30. package/build/server/common/findPort.js.map +0 -1
  31. package/build/server/common/frame/WsData.js +0 -168
  32. package/build/server/common/frame/WsData.js.map +0 -1
  33. package/build/server/common/frame/router.js +0 -25
  34. package/build/server/common/frame/router.js.map +0 -1
  35. package/build/server/common/frame/ws.client.js +0 -295
  36. package/build/server/common/frame/ws.client.js.map +0 -1
  37. package/build/server/common/frame/ws.server.js +0 -226
  38. package/build/server/common/frame/ws.server.js.map +0 -1
  39. package/build/server/common/http.js +0 -47
  40. package/build/server/common/http.js.map +0 -1
  41. package/build/server/common/install.js +0 -139
  42. package/build/server/common/install.js.map +0 -1
  43. package/build/server/common/path_util.js +0 -86
  44. package/build/server/common/path_util.js.map +0 -1
  45. package/build/server/common/proto/proto.generate.js +0 -23
  46. package/build/server/common/proto/proto.generate.js.map +0 -1
  47. package/build/server/common/proto/proto.js +0 -172
  48. package/build/server/common/proto/proto.js.map +0 -1
  49. package/build/server/common/req/common.pojo.js +0 -17
  50. package/build/server/common/req/common.pojo.js.map +0 -1
  51. package/build/server/common/req/customerRouter.pojo.js +0 -9
  52. package/build/server/common/req/customerRouter.pojo.js.map +0 -1
  53. package/build/server/common/req/data.pojo.js +0 -3
  54. package/build/server/common/req/data.pojo.js.map +0 -1
  55. package/build/server/common/req/ddns.pojo.js +0 -39
  56. package/build/server/common/req/ddns.pojo.js.map +0 -1
  57. package/build/server/common/req/file.req.js +0 -46
  58. package/build/server/common/req/file.req.js.map +0 -1
  59. package/build/server/common/req/http_controller_router.js +0 -13
  60. package/build/server/common/req/http_controller_router.js.map +0 -1
  61. package/build/server/common/req/net.pojo.js +0 -49
  62. package/build/server/common/req/net.pojo.js.map +0 -1
  63. package/build/server/common/req/setting.req.js +0 -37
  64. package/build/server/common/req/setting.req.js.map +0 -1
  65. package/build/server/common/req/ssh.pojo.js +0 -13
  66. package/build/server/common/req/ssh.pojo.js.map +0 -1
  67. package/build/server/common/req/sys.pojo.js +0 -23
  68. package/build/server/common/req/sys.pojo.js.map +0 -1
  69. package/build/server/common/req/user.req.js +0 -91
  70. package/build/server/common/req/user.req.js.map +0 -1
  71. package/build/server/common/word_detection_js.js +0 -142
  72. package/build/server/common/word_detection_js.js.map +0 -1
  73. package/build/server/main/domain/bin/bin.js +0 -149
  74. package/build/server/main/domain/bin/bin.js.map +0 -1
  75. package/build/server/main/domain/crypto/crypto.controller.js +0 -63
  76. package/build/server/main/domain/crypto/crypto.controller.js.map +0 -1
  77. package/build/server/main/domain/crypto/crypto.service.js +0 -112
  78. package/build/server/main/domain/crypto/crypto.service.js.map +0 -1
  79. package/build/server/main/domain/data/DataUtil.js +0 -111
  80. package/build/server/main/domain/data/DataUtil.js.map +0 -1
  81. package/build/server/main/domain/data/basedata/base_data_util.js +0 -241
  82. package/build/server/main/domain/data/basedata/base_data_util.js.map +0 -1
  83. package/build/server/main/domain/data/data_type.js +0 -74
  84. package/build/server/main/domain/data/data_type.js.map +0 -1
  85. package/build/server/main/domain/ddns/ddns.ali.server.js +0 -88
  86. package/build/server/main/domain/ddns/ddns.ali.server.js.map +0 -1
  87. package/build/server/main/domain/ddns/ddns.controller.js +0 -103
  88. package/build/server/main/domain/ddns/ddns.controller.js.map +0 -1
  89. package/build/server/main/domain/ddns/ddns.dnspod.service.js +0 -121
  90. package/build/server/main/domain/ddns/ddns.dnspod.service.js.map +0 -1
  91. package/build/server/main/domain/ddns/ddns.pre.js +0 -120
  92. package/build/server/main/domain/ddns/ddns.pre.js.map +0 -1
  93. package/build/server/main/domain/ddns/ddns.service.js +0 -175
  94. package/build/server/main/domain/ddns/ddns.service.js.map +0 -1
  95. package/build/server/main/domain/ddns/ddns.tengxun.service.js +0 -57
  96. package/build/server/main/domain/ddns/ddns.tengxun.service.js.map +0 -1
  97. package/build/server/main/domain/ddns/tx/abstract_client.js +0 -270
  98. package/build/server/main/domain/ddns/tx/abstract_client.js.map +0 -1
  99. package/build/server/main/domain/ddns/tx/dnspod_client.js +0 -65
  100. package/build/server/main/domain/ddns/tx/dnspod_client.js.map +0 -1
  101. package/build/server/main/domain/ddns/tx/dnspod_models.js +0 -3
  102. package/build/server/main/domain/ddns/tx/dnspod_models.js.map +0 -1
  103. package/build/server/main/domain/ddns/tx/exception/tencent_cloud_sdk_exception.js +0 -38
  104. package/build/server/main/domain/ddns/tx/exception/tencent_cloud_sdk_exception.js.map +0 -1
  105. package/build/server/main/domain/ddns/tx/http/fetch.js +0 -3
  106. package/build/server/main/domain/ddns/tx/http/fetch.js.map +0 -1
  107. package/build/server/main/domain/ddns/tx/http/http_connection.js +0 -194
  108. package/build/server/main/domain/ddns/tx/http/http_connection.js.map +0 -1
  109. package/build/server/main/domain/ddns/tx/interface.js +0 -5
  110. package/build/server/main/domain/ddns/tx/interface.js.map +0 -1
  111. package/build/server/main/domain/ddns/tx/sdk_version.js +0 -5
  112. package/build/server/main/domain/ddns/tx/sdk_version.js.map +0 -1
  113. package/build/server/main/domain/ddns/tx/sign.js +0 -142
  114. package/build/server/main/domain/ddns/tx/sign.js.map +0 -1
  115. package/build/server/main/domain/ddns/tx/sse_response_model.js +0 -124
  116. package/build/server/main/domain/ddns/tx/sse_response_model.js.map +0 -1
  117. package/build/server/main/domain/file/FileUtil.js +0 -96
  118. package/build/server/main/domain/file/FileUtil.js.map +0 -1
  119. package/build/server/main/domain/file/file.compress.js +0 -131
  120. package/build/server/main/domain/file/file.compress.js.map +0 -1
  121. package/build/server/main/domain/file/file.controller.js +0 -483
  122. package/build/server/main/domain/file/file.controller.js.map +0 -1
  123. package/build/server/main/domain/file/file.service.js +0 -1123
  124. package/build/server/main/domain/file/file.service.js.map +0 -1
  125. package/build/server/main/domain/file/search/file.search.js +0 -83
  126. package/build/server/main/domain/file/search/file.search.js.map +0 -1
  127. package/build/server/main/domain/file/search/file.search.worker.js +0 -100
  128. package/build/server/main/domain/file/search/file.search.worker.js.map +0 -1
  129. package/build/server/main/domain/file/search/file.type.js +0 -3
  130. package/build/server/main/domain/file/search/file.type.js.map +0 -1
  131. package/build/server/main/domain/file/workflow/workflow.process.js +0 -104
  132. package/build/server/main/domain/file/workflow/workflow.process.js.map +0 -1
  133. package/build/server/main/domain/file/workflow/workflow.service.js +0 -687
  134. package/build/server/main/domain/file/workflow/workflow.service.js.map +0 -1
  135. package/build/server/main/domain/file/workflow/workflow.util.js +0 -121
  136. package/build/server/main/domain/file/workflow/workflow.util.js.map +0 -1
  137. package/build/server/main/domain/navindex/navindex.controller.js +0 -73
  138. package/build/server/main/domain/navindex/navindex.controller.js.map +0 -1
  139. package/build/server/main/domain/net/net.controller.js +0 -196
  140. package/build/server/main/domain/net/net.controller.js.map +0 -1
  141. package/build/server/main/domain/net/net.datautil.js +0 -8
  142. package/build/server/main/domain/net/net.datautil.js.map +0 -1
  143. package/build/server/main/domain/net/net.service.js +0 -415
  144. package/build/server/main/domain/net/net.service.js.map +0 -1
  145. package/build/server/main/domain/net/util/NetClientUtil.js +0 -246
  146. package/build/server/main/domain/net/util/NetClientUtil.js.map +0 -1
  147. package/build/server/main/domain/net/util/NetServerUtil.js +0 -128
  148. package/build/server/main/domain/net/util/NetServerUtil.js.map +0 -1
  149. package/build/server/main/domain/net/util/NetUtil.js +0 -129
  150. package/build/server/main/domain/net/util/NetUtil.js.map +0 -1
  151. package/build/server/main/domain/net/util/tcp.util.js +0 -137
  152. package/build/server/main/domain/net/util/tcp.util.js.map +0 -1
  153. package/build/server/main/domain/net/util/udp.util.js +0 -28
  154. package/build/server/main/domain/net/util/udp.util.js.map +0 -1
  155. package/build/server/main/domain/net/virtual/tcp_proxy.js +0 -106
  156. package/build/server/main/domain/net/virtual/tcp_proxy.js.map +0 -1
  157. package/build/server/main/domain/net/virtual/virtual.client.service.js +0 -445
  158. package/build/server/main/domain/net/virtual/virtual.client.service.js.map +0 -1
  159. package/build/server/main/domain/net/virtual/virtual.controller.js +0 -263
  160. package/build/server/main/domain/net/virtual/virtual.controller.js.map +0 -1
  161. package/build/server/main/domain/net/virtual/virtual.server.service.js +0 -91
  162. package/build/server/main/domain/net/virtual/virtual.server.service.js.map +0 -1
  163. package/build/server/main/domain/pre/lifeRecordService.js +0 -92
  164. package/build/server/main/domain/pre/lifeRecordService.js.map +0 -1
  165. package/build/server/main/domain/rdp/lib/asn1/ber.js +0 -66
  166. package/build/server/main/domain/rdp/lib/asn1/ber.js.map +0 -1
  167. package/build/server/main/domain/rdp/lib/asn1/index.js +0 -9
  168. package/build/server/main/domain/rdp/lib/asn1/index.js.map +0 -1
  169. package/build/server/main/domain/rdp/lib/asn1/spec.js +0 -56
  170. package/build/server/main/domain/rdp/lib/asn1/spec.js.map +0 -1
  171. package/build/server/main/domain/rdp/lib/asn1/univ.js +0 -315
  172. package/build/server/main/domain/rdp/lib/asn1/univ.js.map +0 -1
  173. package/build/server/main/domain/rdp/lib/core/error.js +0 -25
  174. package/build/server/main/domain/rdp/lib/core/error.js.map +0 -1
  175. package/build/server/main/domain/rdp/lib/core/index.js +0 -13
  176. package/build/server/main/domain/rdp/lib/core/index.js.map +0 -1
  177. package/build/server/main/domain/rdp/lib/core/layer.js +0 -135
  178. package/build/server/main/domain/rdp/lib/core/layer.js.map +0 -1
  179. package/build/server/main/domain/rdp/lib/core/log.js +0 -25
  180. package/build/server/main/domain/rdp/lib/core/log.js.map +0 -1
  181. package/build/server/main/domain/rdp/lib/core/rle.js +0 -22699
  182. package/build/server/main/domain/rdp/lib/core/rle.js.map +0 -1
  183. package/build/server/main/domain/rdp/lib/core/type.js +0 -245
  184. package/build/server/main/domain/rdp/lib/core/type.js.map +0 -1
  185. package/build/server/main/domain/rdp/lib/index.js +0 -6
  186. package/build/server/main/domain/rdp/lib/index.js.map +0 -1
  187. package/build/server/main/domain/rdp/lib/protocol/cert.js +0 -115
  188. package/build/server/main/domain/rdp/lib/protocol/cert.js.map +0 -1
  189. package/build/server/main/domain/rdp/lib/protocol/index.js +0 -11
  190. package/build/server/main/domain/rdp/lib/protocol/index.js.map +0 -1
  191. package/build/server/main/domain/rdp/lib/protocol/nla.js +0 -549
  192. package/build/server/main/domain/rdp/lib/protocol/nla.js.map +0 -1
  193. package/build/server/main/domain/rdp/lib/protocol/pdu/caps.js +0 -486
  194. package/build/server/main/domain/rdp/lib/protocol/pdu/caps.js.map +0 -1
  195. package/build/server/main/domain/rdp/lib/protocol/pdu/cliprdr.js +0 -167
  196. package/build/server/main/domain/rdp/lib/protocol/pdu/cliprdr.js.map +0 -1
  197. package/build/server/main/domain/rdp/lib/protocol/pdu/data.js +0 -876
  198. package/build/server/main/domain/rdp/lib/protocol/pdu/data.js.map +0 -1
  199. package/build/server/main/domain/rdp/lib/protocol/pdu/global.js +0 -260
  200. package/build/server/main/domain/rdp/lib/protocol/pdu/global.js.map +0 -1
  201. package/build/server/main/domain/rdp/lib/protocol/pdu/index.js +0 -13
  202. package/build/server/main/domain/rdp/lib/protocol/pdu/index.js.map +0 -1
  203. package/build/server/main/domain/rdp/lib/protocol/pdu/lic.js +0 -199
  204. package/build/server/main/domain/rdp/lib/protocol/pdu/lic.js.map +0 -1
  205. package/build/server/main/domain/rdp/lib/protocol/pdu/sec.js +0 -333
  206. package/build/server/main/domain/rdp/lib/protocol/pdu/sec.js.map +0 -1
  207. package/build/server/main/domain/rdp/lib/protocol/rdp.js +0 -255
  208. package/build/server/main/domain/rdp/lib/protocol/rdp.js.map +0 -1
  209. package/build/server/main/domain/rdp/lib/protocol/t125/gcc.js +0 -354
  210. package/build/server/main/domain/rdp/lib/protocol/t125/gcc.js.map +0 -1
  211. package/build/server/main/domain/rdp/lib/protocol/t125/index.js +0 -7
  212. package/build/server/main/domain/rdp/lib/protocol/t125/index.js.map +0 -1
  213. package/build/server/main/domain/rdp/lib/protocol/t125/mcs.js +0 -318
  214. package/build/server/main/domain/rdp/lib/protocol/t125/mcs.js.map +0 -1
  215. package/build/server/main/domain/rdp/lib/protocol/t125/per.js +0 -188
  216. package/build/server/main/domain/rdp/lib/protocol/t125/per.js.map +0 -1
  217. package/build/server/main/domain/rdp/lib/protocol/tpkt.js +0 -94
  218. package/build/server/main/domain/rdp/lib/protocol/tpkt.js.map +0 -1
  219. package/build/server/main/domain/rdp/lib/protocol/x224.js +0 -207
  220. package/build/server/main/domain/rdp/lib/protocol/x224.js.map +0 -1
  221. package/build/server/main/domain/rdp/lib/security/index.js +0 -7
  222. package/build/server/main/domain/rdp/lib/security/index.js.map +0 -1
  223. package/build/server/main/domain/rdp/lib/security/jsbn.js +0 -1372
  224. package/build/server/main/domain/rdp/lib/security/jsbn.js.map +0 -1
  225. package/build/server/main/domain/rdp/lib/security/md4.js +0 -401
  226. package/build/server/main/domain/rdp/lib/security/md4.js.map +0 -1
  227. package/build/server/main/domain/rdp/lib/security/rc4.js +0 -45
  228. package/build/server/main/domain/rdp/lib/security/rc4.js.map +0 -1
  229. package/build/server/main/domain/rdp/lib/security/rsa.js +0 -15
  230. package/build/server/main/domain/rdp/lib/security/rsa.js.map +0 -1
  231. package/build/server/main/domain/rdp/lib/security/x509.js +0 -106
  232. package/build/server/main/domain/rdp/lib/security/x509.js.map +0 -1
  233. package/build/server/main/domain/rdp/rdp.controller.js +0 -137
  234. package/build/server/main/domain/rdp/rdp.controller.js.map +0 -1
  235. package/build/server/main/domain/rdp/rdp.service.js +0 -137
  236. package/build/server/main/domain/rdp/rdp.service.js.map +0 -1
  237. package/build/server/main/domain/setting/setting.controller.js +0 -518
  238. package/build/server/main/domain/setting/setting.controller.js.map +0 -1
  239. package/build/server/main/domain/setting/setting.prefile.js +0 -74
  240. package/build/server/main/domain/setting/setting.prefile.js.map +0 -1
  241. package/build/server/main/domain/setting/setting.service.js +0 -550
  242. package/build/server/main/domain/setting/setting.service.js.map +0 -1
  243. package/build/server/main/domain/shell/shell.controller.js +0 -115
  244. package/build/server/main/domain/shell/shell.controller.js.map +0 -1
  245. package/build/server/main/domain/shell/shell.service.js +0 -443
  246. package/build/server/main/domain/shell/shell.service.js.map +0 -1
  247. package/build/server/main/domain/ssh/ssh.controller.js +0 -236
  248. package/build/server/main/domain/ssh/ssh.controller.js.map +0 -1
  249. package/build/server/main/domain/ssh/ssh.service.js +0 -271
  250. package/build/server/main/domain/ssh/ssh.service.js.map +0 -1
  251. package/build/server/main/domain/ssh/ssh.ssh2.js +0 -250
  252. package/build/server/main/domain/ssh/ssh.ssh2.js.map +0 -1
  253. package/build/server/main/domain/sys/sys.controller.js +0 -395
  254. package/build/server/main/domain/sys/sys.controller.js.map +0 -1
  255. package/build/server/main/domain/sys/sys.docker.service.js +0 -367
  256. package/build/server/main/domain/sys/sys.docker.service.js.map +0 -1
  257. package/build/server/main/domain/sys/sys.process.service.js +0 -239
  258. package/build/server/main/domain/sys/sys.process.service.js.map +0 -1
  259. package/build/server/main/domain/sys/sys.service.js +0 -101
  260. package/build/server/main/domain/sys/sys.service.js.map +0 -1
  261. package/build/server/main/domain/sys/sys.sys.service.js +0 -192
  262. package/build/server/main/domain/sys/sys.sys.service.js.map +0 -1
  263. package/build/server/main/domain/sys/sys.systemd.service.js +0 -306
  264. package/build/server/main/domain/sys/sys.systemd.service.js.map +0 -1
  265. package/build/server/main/domain/sys/sys.utl.js +0 -23
  266. package/build/server/main/domain/sys/sys.utl.js.map +0 -1
  267. package/build/server/main/domain/user/user.controller.js +0 -264
  268. package/build/server/main/domain/user/user.controller.js.map +0 -1
  269. package/build/server/main/domain/user/user.hash.js +0 -8
  270. package/build/server/main/domain/user/user.hash.js.map +0 -1
  271. package/build/server/main/domain/user/user.service.js +0 -573
  272. package/build/server/main/domain/user/user.service.js.map +0 -1
  273. package/build/server/main/domain/video/video.controller.js +0 -71
  274. package/build/server/main/domain/video/video.controller.js.map +0 -1
  275. package/build/server/main/domain/video/video.service.js +0 -45
  276. package/build/server/main/domain/video/video.service.js.map +0 -1
  277. package/build/server/main/other/Result.js +0 -25
  278. package/build/server/main/other/Result.js.map +0 -1
  279. package/build/server/main/other/cache.js +0 -50
  280. package/build/server/main/other/cache.js.map +0 -1
  281. package/build/server/main/other/config.js +0 -6
  282. package/build/server/main/other/config.js.map +0 -1
  283. package/build/server/main/other/middleware/AuthMiddleware.js +0 -72
  284. package/build/server/main/other/middleware/AuthMiddleware.js.map +0 -1
  285. package/build/server/main/other/middleware/GlobalErrorHandler.js +0 -23
  286. package/build/server/main/other/middleware/GlobalErrorHandler.js.map +0 -1
  287. package/build/server/main/other/middleware/redirect.js +0 -20
  288. package/build/server/main/other/middleware/redirect.js.map +0 -1
  289. package/build/server/main/server.js +0 -155
  290. package/build/server/main/server.js.map +0 -1
  291. package/build/server/main/watch.js.map +0 -1
  292. package/build/server/tsconfig.tsbuildinfo +0 -1
  293. package/build/server/web/project/util/noty.js +0 -60
  294. package/build/server/web/project/util/noty.js.map +0 -1
  295. package/build/server/web/project/util/ws.js +0 -7
  296. package/build/server/web/project/util/ws.js.map +0 -1
  297. /package/build/dist/{523.cd76e6fafa6440cc1693.js.LICENSE.txt → 523.dccd16b3d9a55836ef44.js.LICENSE.txt} +0 -0
  298. /package/build/dist/{943.7e28d7ce1a69f0d15eb2.js.LICENSE.txt → 943.b94459fa6f46eef06e48.js.LICENSE.txt} +0 -0
  299. /package/build/dist/{main.7d110d8fdcc3c74c6c82.js.LICENSE.txt → main.7b13a8b34814c54500af.js.LICENSE.txt} +0 -0
@@ -1,236 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.SSHController = void 0;
25
- const router_1 = require("../../../common/frame/router");
26
- const WsData_1 = require("../../../common/frame/WsData");
27
- const ssh_service_1 = require("./ssh.service");
28
- const ssh_pojo_1 = require("../../../common/req/ssh.pojo");
29
- const routing_controllers_1 = require("routing-controllers");
30
- const Result_1 = require("../../other/Result");
31
- const DataUtil_1 = require("../data/DataUtil");
32
- const data_type_1 = require("../data/data_type");
33
- const user_service_1 = require("../user/user.service");
34
- const user_req_1 = require("../../../common/req/user.req");
35
- let SSHController = class SSHController {
36
- start(body, r) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
39
- return (0, Result_1.Sucess)(yield ssh_service_1.sshService.start(body));
40
- });
41
- }
42
- close(body, r) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
45
- return (0, Result_1.Sucess)(yield ssh_service_1.sshService.close(body));
46
- });
47
- }
48
- getDir(body, r) {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
51
- return (0, Result_1.Sucess)(yield ssh_service_1.sshService.getDir(body));
52
- });
53
- }
54
- getFileText(body, r) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
57
- return ssh_service_1.sshService.getFileText(body);
58
- });
59
- }
60
- updateFileText(body, r) {
61
- return __awaiter(this, void 0, void 0, function* () {
62
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
63
- return (0, Result_1.Sucess)(yield ssh_service_1.sshService.updateFileText(body));
64
- });
65
- }
66
- create(body, r) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
69
- return (0, Result_1.Sucess)(yield ssh_service_1.sshService.create(body));
70
- });
71
- }
72
- deletes(body, r) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
75
- yield ssh_service_1.sshService.deletes(body);
76
- return (0, Result_1.Sucess)("");
77
- });
78
- }
79
- move(body, r) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
82
- yield ssh_service_1.sshService.move(body);
83
- return (0, Result_1.Sucess)("");
84
- });
85
- }
86
- copy(body, r) {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
89
- yield ssh_service_1.sshService.copy(body);
90
- return (0, Result_1.Sucess)("");
91
- });
92
- }
93
- uploadFile(r, res) {
94
- return __awaiter(this, void 0, void 0, function* () {
95
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
96
- yield ssh_service_1.sshService.uploadFile(r, res);
97
- return (0, Result_1.Sucess)("1");
98
- });
99
- }
100
- open(data) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- user_service_1.userService.check_user_auth(data.wss.token, user_req_1.UserAuth.ssh_proxy_tag_update);
103
- ssh_service_1.sshService.open(data);
104
- return "";
105
- });
106
- }
107
- send(data) {
108
- return __awaiter(this, void 0, void 0, function* () {
109
- user_service_1.userService.check_user_auth(data.wss.token, user_req_1.UserAuth.ssh_proxy_tag_update);
110
- ssh_service_1.sshService.send(data);
111
- return "";
112
- });
113
- }
114
- save(items, r) {
115
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy_tag_update);
116
- DataUtil_1.DataUtil.set(data_type_1.data_common_key.navindex_remote_ssh_key, items);
117
- return (0, Result_1.Sucess)('ok');
118
- }
119
- get(r) {
120
- user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
121
- let list = DataUtil_1.DataUtil.get(data_type_1.data_common_key.navindex_remote_ssh_key);
122
- return (0, Result_1.Sucess)(list || []);
123
- }
124
- };
125
- exports.SSHController = SSHController;
126
- __decorate([
127
- (0, routing_controllers_1.Post)("/start"),
128
- __param(0, (0, routing_controllers_1.Body)()),
129
- __param(1, (0, routing_controllers_1.Req)()),
130
- __metadata("design:type", Function),
131
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
132
- __metadata("design:returntype", Promise)
133
- ], SSHController.prototype, "start", null);
134
- __decorate([
135
- (0, routing_controllers_1.Post)("/close"),
136
- __param(0, (0, routing_controllers_1.Body)()),
137
- __param(1, (0, routing_controllers_1.Req)()),
138
- __metadata("design:type", Function),
139
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
140
- __metadata("design:returntype", Promise)
141
- ], SSHController.prototype, "close", null);
142
- __decorate([
143
- (0, routing_controllers_1.Post)("/get/dir"),
144
- __param(0, (0, routing_controllers_1.Body)()),
145
- __param(1, (0, routing_controllers_1.Req)()),
146
- __metadata("design:type", Function),
147
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
148
- __metadata("design:returntype", Promise)
149
- ], SSHController.prototype, "getDir", null);
150
- __decorate([
151
- (0, routing_controllers_1.Post)("/get/file/text"),
152
- __param(0, (0, routing_controllers_1.Body)()),
153
- __param(1, (0, routing_controllers_1.Req)()),
154
- __metadata("design:type", Function),
155
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
156
- __metadata("design:returntype", Promise)
157
- ], SSHController.prototype, "getFileText", null);
158
- __decorate([
159
- (0, routing_controllers_1.Post)("/update/file/text"),
160
- __param(0, (0, routing_controllers_1.Body)()),
161
- __param(1, (0, routing_controllers_1.Req)()),
162
- __metadata("design:type", Function),
163
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
164
- __metadata("design:returntype", Promise)
165
- ], SSHController.prototype, "updateFileText", null);
166
- __decorate([
167
- (0, routing_controllers_1.Post)("/create"),
168
- __param(0, (0, routing_controllers_1.Body)()),
169
- __param(1, (0, routing_controllers_1.Req)()),
170
- __metadata("design:type", Function),
171
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
172
- __metadata("design:returntype", Promise)
173
- ], SSHController.prototype, "create", null);
174
- __decorate([
175
- (0, routing_controllers_1.Post)("/delete"),
176
- __param(0, (0, routing_controllers_1.Body)()),
177
- __param(1, (0, routing_controllers_1.Req)()),
178
- __metadata("design:type", Function),
179
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
180
- __metadata("design:returntype", Promise)
181
- ], SSHController.prototype, "deletes", null);
182
- __decorate([
183
- (0, routing_controllers_1.Post)("/move"),
184
- __param(0, (0, routing_controllers_1.Body)()),
185
- __param(1, (0, routing_controllers_1.Req)()),
186
- __metadata("design:type", Function),
187
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
188
- __metadata("design:returntype", Promise)
189
- ], SSHController.prototype, "move", null);
190
- __decorate([
191
- (0, routing_controllers_1.Post)("/copy"),
192
- __param(0, (0, routing_controllers_1.Body)()),
193
- __param(1, (0, routing_controllers_1.Req)()),
194
- __metadata("design:type", Function),
195
- __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
196
- __metadata("design:returntype", Promise)
197
- ], SSHController.prototype, "copy", null);
198
- __decorate([
199
- (0, routing_controllers_1.Put)("/"),
200
- __param(0, (0, routing_controllers_1.Req)()),
201
- __param(1, (0, routing_controllers_1.Res)()),
202
- __metadata("design:type", Function),
203
- __metadata("design:paramtypes", [Object, Object]),
204
- __metadata("design:returntype", Promise)
205
- ], SSHController.prototype, "uploadFile", null);
206
- __decorate([
207
- (0, router_1.msg)(WsData_1.CmdType.remote_shell_open),
208
- __metadata("design:type", Function),
209
- __metadata("design:paramtypes", [WsData_1.WsData]),
210
- __metadata("design:returntype", Promise)
211
- ], SSHController.prototype, "open", null);
212
- __decorate([
213
- (0, router_1.msg)(WsData_1.CmdType.remote_shell_send),
214
- __metadata("design:type", Function),
215
- __metadata("design:paramtypes", [WsData_1.WsData]),
216
- __metadata("design:returntype", Promise)
217
- ], SSHController.prototype, "send", null);
218
- __decorate([
219
- (0, routing_controllers_1.Post)('/tag/save'),
220
- __param(0, (0, routing_controllers_1.Body)()),
221
- __param(1, (0, routing_controllers_1.Req)()),
222
- __metadata("design:type", Function),
223
- __metadata("design:paramtypes", [Array, Object]),
224
- __metadata("design:returntype", void 0)
225
- ], SSHController.prototype, "save", null);
226
- __decorate([
227
- (0, routing_controllers_1.Get)("/tag"),
228
- __param(0, (0, routing_controllers_1.Req)()),
229
- __metadata("design:type", Function),
230
- __metadata("design:paramtypes", [Object]),
231
- __metadata("design:returntype", void 0)
232
- ], SSHController.prototype, "get", null);
233
- exports.SSHController = SSHController = __decorate([
234
- (0, routing_controllers_1.JsonController)("/ssh")
235
- ], SSHController);
236
- //# sourceMappingURL=ssh.controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssh.controller.js","sourceRoot":"","sources":["../../../../../src/main/domain/ssh/ssh.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAiD;AACjD,yDAA6D;AAC7D,+CAA0C;AAC1C,2DAAoE;AACpE,6DAY6B;AAC7B,+CAA0C;AAE1C,+CAA2C;AAG3C,iDAAkD;AAClD,uDAAiD;AACjD,2DAAsD;AAI/C,IAAM,aAAa,GAAnB,MAAM,aAAa;IAIhB,KAAK,CAAS,IAAa,EAAO,CAAC;;YACrC,0BAAW,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,EAA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,iBAAiB,CAAC;;qCACd,eAAM;;yCAItB;AAgBD;IADC,IAAA,0BAAI,EAAC,WAAW,CAAC;IACZ,WAAA,IAAA,0BAAI,GAAE,CAAA;IAAwB,WAAA,IAAA,yBAAG,GAAE,CAAA;;;;yCAIxC;AAGD;IADC,IAAA,yBAAG,EAAC,MAAM,CAAC;IACP,WAAA,IAAA,yBAAG,GAAE,CAAA;;;;wCAIT;wBApHQ,aAAa;IADzB,IAAA,oCAAc,EAAC,MAAM,CAAC;GACV,aAAa,CAqHzB"}
@@ -1,271 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.sshService = exports.SshService = void 0;
16
- const ssh_pojo_1 = require("../../../common/req/ssh.pojo");
17
- const WsData_1 = require("../../../common/frame/WsData");
18
- const { Readable } = require('stream');
19
- const EventEmitter = require('events');
20
- const ssh_ssh2_1 = require("./ssh.ssh2");
21
- const path_1 = __importDefault(require("path"));
22
- const DataUtil_1 = require("../data/DataUtil");
23
- const Result_1 = require("../../other/Result");
24
- const multer_1 = __importDefault(require("multer"));
25
- const FileUtil_1 = require("../file/FileUtil");
26
- class SshService extends ssh_ssh2_1.SshSsh2 {
27
- constructor() {
28
- super(...arguments);
29
- this.fileUploadOptions = {
30
- storage: multer_1.default.diskStorage({
31
- destination: (req, file, cb) => {
32
- cb(null, req.fileDir);
33
- },
34
- filename: (req, file, cb) => {
35
- cb(null, req.fileName);
36
- }
37
- })
38
- };
39
- this.upload = (0, multer_1.default)({
40
- storage: this.fileUploadOptions.storage,
41
- }).single('file');
42
- }
43
- start(req) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- let key = ssh_pojo_1.SshPojo.getKey(req);
46
- const data = this.lifeGetData(key);
47
- if (data) {
48
- return { key };
49
- }
50
- const client = yield this.connect(req);
51
- if (!client) {
52
- throw "连接失败";
53
- }
54
- this.lifeStart(key, client, (c) => __awaiter(this, void 0, void 0, function* () {
55
- try {
56
- client[ssh_ssh2_1.sftp_client].end();
57
- client.end();
58
- }
59
- catch (e) {
60
- console.log('触发', e);
61
- }
62
- }));
63
- return { key };
64
- });
65
- }
66
- close(req) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- const client = this.lifeGetData(req.key);
69
- if (client) {
70
- this.lifeClose(req.key);
71
- }
72
- return true;
73
- });
74
- }
75
- getDir(req) {
76
- return __awaiter(this, void 0, void 0, function* () {
77
- const client = this.lifeGetData(req.key);
78
- if (!client) {
79
- return [];
80
- }
81
- this.lifeHeart(req.key);
82
- return this.sftGetDir(decodeURIComponent(req.dir), client);
83
- });
84
- }
85
- getFileText(req) {
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const client = this.lifeGetData(req.key);
88
- if (!client) {
89
- return "";
90
- }
91
- this.lifeHeart(req.key);
92
- const stats = yield this.sftGetFileStats(req.file, client);
93
- return (0, Result_1.Sucess)(yield this.sftGetFileText(decodeURIComponent(req.file), client));
94
- });
95
- }
96
- updateFileText(req) {
97
- return __awaiter(this, void 0, void 0, function* () {
98
- const client = this.lifeGetData(req.key);
99
- if (!client) {
100
- return "";
101
- }
102
- this.lifeHeart(req.key);
103
- return this.sftUpdateFileText(req, client);
104
- });
105
- }
106
- create(req) {
107
- return __awaiter(this, void 0, void 0, function* () {
108
- const client = this.lifeGetData(req.key);
109
- if (!client) {
110
- return "";
111
- }
112
- if (req.dir) {
113
- yield this.sftCreateDir(req, client);
114
- }
115
- else if (req.file) {
116
- req.context = "";
117
- yield this.sftUpdateFileText(req, client);
118
- }
119
- this.lifeHeart(req.key);
120
- return;
121
- });
122
- }
123
- deletes(req) {
124
- return __awaiter(this, void 0, void 0, function* () {
125
- const client = this.lifeGetData(req.key);
126
- if (!client) {
127
- return "";
128
- }
129
- if (req.dir) {
130
- yield this.sftDelteFolder(decodeURIComponent(req.dir), client);
131
- }
132
- else if (req.file) {
133
- yield this.sftDelteFile(decodeURIComponent(req.file), client);
134
- }
135
- this.lifeHeart(req.key);
136
- return;
137
- });
138
- }
139
- move(req) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- const client = this.lifeGetData(req.key);
142
- if (!client) {
143
- return "";
144
- }
145
- yield this.sftMoveFile(decodeURIComponent(req.source), decodeURIComponent(req.target), client);
146
- this.lifeHeart(req.key);
147
- return;
148
- });
149
- }
150
- copy(req) {
151
- return __awaiter(this, void 0, void 0, function* () {
152
- const client = this.lifeGetData(req.key);
153
- if (!client) {
154
- return "";
155
- }
156
- yield this.sftCopyFile(decodeURIComponent(req.source), decodeURIComponent(req.target), client);
157
- this.lifeHeart(req.key);
158
- return;
159
- });
160
- }
161
- open(data) {
162
- return __awaiter(this, void 0, void 0, function* () {
163
- try {
164
- const pojo = data.context;
165
- const client = this.lifeGetData(pojo.key);
166
- if (!client) {
167
- return "";
168
- }
169
- this.forEveryLifeHeart(pojo.key);
170
- const wss = data.wss;
171
- let emitter = new EventEmitter();
172
- wss.dataMap.set(`emitter_${pojo.key}`, emitter);
173
- client.shell((err, stream) => {
174
- stream.setWindow(pojo.rows, pojo.cols);
175
- stream.write(`cd '${pojo.init_path}' \r`);
176
- stream.on('data', (cmdData) => {
177
- const result = new WsData_1.WsData(WsData_1.CmdType.remote_shell_getting);
178
- result.context = cmdData.toString();
179
- data.wss.sendData(result.encode());
180
- });
181
- emitter.on('data', (data) => {
182
- stream.write(data);
183
- });
184
- wss.setClose(() => {
185
- this.endForEveryLifeHeart(pojo.key);
186
- stream.end('exit\r');
187
- });
188
- });
189
- }
190
- catch (e) {
191
- console.log(e);
192
- }
193
- });
194
- }
195
- send(data) {
196
- return __awaiter(this, void 0, void 0, function* () {
197
- try {
198
- const pojo = data.context;
199
- const wss = data.wss;
200
- let emitter = wss.dataMap.get(`emitter_${pojo.key}`);
201
- if (emitter) {
202
- if (pojo.cmd !== null && pojo.cmd !== "null") {
203
- emitter.emit("data", pojo.cmd);
204
- }
205
- }
206
- }
207
- catch (e) {
208
- console.log(e);
209
- }
210
- });
211
- }
212
- download(ctx) {
213
- const file = ctx.query.file;
214
- if (!file || !file.length) {
215
- ctx.res.status(404).send('File not found');
216
- return;
217
- }
218
- ctx.res.attachment(file);
219
- ctx.res.set('Content-Type', 'application/octet-stream');
220
- const client = this.lifeGetData(decodeURIComponent(ctx.query.key));
221
- if (!client) {
222
- ctx.status(200).send('not connect ssh');
223
- return;
224
- }
225
- const sftp = this.sftGet(client);
226
- const readStream = sftp.createReadStream(file);
227
- readStream.pipe(ctx.res);
228
- }
229
- uploadFileAsync(req, res) {
230
- return new Promise((resolve, reject) => {
231
- this.upload(req, res, (err) => {
232
- if (err) {
233
- return reject(err);
234
- }
235
- resolve();
236
- });
237
- });
238
- }
239
- uploadFile(req, res) {
240
- return __awaiter(this, void 0, void 0, function* () {
241
- const client = this.lifeGetData(decodeURIComponent(req.query.key));
242
- const sftp = this.sftGet(client);
243
- const remoteFilePath = decodeURIComponent(req.query.target);
244
- if (req.query.dir === "1") {
245
- req.dir = remoteFilePath;
246
- yield this.sftCreateDir(req, client);
247
- return;
248
- }
249
- const temp = "tempfile";
250
- const localFilePath = DataUtil_1.DataUtil.writeFileSyncTemp(path_1.default.basename(remoteFilePath), temp);
251
- req['fileDir'] = path_1.default.dirname(localFilePath);
252
- req['fileName'] = path_1.default.basename(localFilePath);
253
- yield this.uploadFileAsync(req, res);
254
- return new Promise((resolve, reject) => {
255
- this.lifeHeart(req.query.key);
256
- sftp.fastPut(localFilePath, remoteFilePath, (err) => __awaiter(this, void 0, void 0, function* () {
257
- if (err) {
258
- reject(err);
259
- }
260
- else {
261
- resolve(1);
262
- }
263
- yield FileUtil_1.FileUtil.unlinkSync(localFilePath);
264
- }));
265
- });
266
- });
267
- }
268
- }
269
- exports.SshService = SshService;
270
- exports.sshService = new SshService();
271
- //# sourceMappingURL=ssh.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssh.service.js","sourceRoot":"","sources":["../../../../../src/main/domain/ssh/ssh.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAoE;AACpE,yDAA6D;AAG7D,MAAM,EAAC,QAAQ,EAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrC,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAGvC,yCAAgD;AAChD,gDAAwB;AAKxB,+CAA0C;AAC1C,+CAAgD;AAGhD,oDAA4B;AAE5B,+CAA0C;AAI1C,MAAa,UAAW,SAAQ,kBAAO;IAAvC;;QAoNI,sBAAiB,GAAG;YAChB,OAAO,EAAE,gBAAM,CAAC,WAAW,CAAC;gBACxB,WAAW,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAE,EAAO,EAAE,EAAE;oBAE1C,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;gBAC1B,CAAC;gBACD,QAAQ,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAE,EAAO,EAAE,EAAE;oBAEvC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC3B,CAAC;aACJ,CAAC;SACL,CAAC;QAEF,WAAM,GAAG,IAAA,gBAAM,EAAC;YACZ,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO;SAE1C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IA6DtB,CAAC;IA9RS,KAAK,CAAC,GAAY;;YACpB,IAAI,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