@yinuo-ngm/server 1.0.15 → 1.0.17

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 (349) hide show
  1. package/lib/app.js +3 -15
  2. package/lib/common/editor.js +2 -2
  3. package/lib/env.d.ts +1 -0
  4. package/lib/env.js +1 -0
  5. package/lib/plugins/error-handler.plugin.d.ts +2 -2
  6. package/lib/plugins/error-handler.plugin.js +97 -88
  7. package/lib/plugins/ws/topics/nginx.ws.js +2 -1
  8. package/lib/plugins/ws/topics/svn.ws.d.ts +2 -1
  9. package/lib/plugins/ws/topics/svn.ws.js +3 -2
  10. package/lib/plugins/ws/topics/syslog.ws.d.ts +1 -1
  11. package/lib/plugins/ws/topics/task.ws.d.ts +2 -1
  12. package/lib/plugins/ws/topics/task.ws.js +2 -1
  13. package/lib/plugins/ws/ws.context.d.ts +1 -1
  14. package/lib/plugins/ws/ws.plugin.js +4 -3
  15. package/lib/plugins/ws/ws.router.d.ts +2 -2
  16. package/lib/plugins/ws/ws.router.js +8 -7
  17. package/lib/routes/api-client/collection.routes.js +8 -6
  18. package/lib/routes/api-client/env.routes.js +4 -3
  19. package/lib/routes/api-client/history.routes.js +3 -2
  20. package/lib/routes/api-client/hub-token.routes.js +32 -10
  21. package/lib/routes/api-client/request.routes.js +7 -6
  22. package/lib/routes/api-client/send.routes.js +3 -2
  23. package/lib/routes/config.routes.js +5 -5
  24. package/lib/routes/hub.routes.js +10 -10
  25. package/lib/routes/index.js +2 -0
  26. package/lib/routes/nginx/nginx-lifecycle.routes.js +4 -0
  27. package/lib/routes/nginx/nginx-route.context.js +23 -7
  28. package/lib/routes/nginx/nginx-server.routes.js +158 -6
  29. package/lib/routes/node-version.routes.d.ts +2 -0
  30. package/lib/routes/node-version.routes.js +56 -0
  31. package/lib/routes/project.routes.js +14 -9
  32. package/lib/routes/rss.routes.js +3 -3
  33. package/lib/routes/sprite-browse.routes.js +21 -6
  34. package/lib/routes/sprite.routes.js +18 -12
  35. package/lib/routes/static-files.routes.js +21 -5
  36. package/lib/routes/svn.routes.js +5 -3
  37. package/lib/routes/system.routes.js +20 -1
  38. package/lib/routes/task.routes.js +10 -3
  39. package/package.json +13 -6
  40. package/www/3rdpartylicenses.txt +66 -118
  41. package/www/browser/chunk-2L7NUOMX.js +2 -0
  42. package/www/browser/chunk-2NZJ7CN2.js +20 -0
  43. package/www/browser/chunk-3CM4SKDO.js +15 -0
  44. package/www/browser/chunk-3I7BQCXS.js +1 -0
  45. package/www/browser/chunk-3M56F2S2.js +1 -0
  46. package/www/browser/chunk-3OHBKMAA.js +1 -0
  47. package/www/browser/chunk-3XNNQFWR.js +1 -0
  48. package/www/browser/chunk-4BRW6LCZ.js +4 -0
  49. package/www/browser/chunk-4LBSLURA.js +1 -0
  50. package/www/browser/chunk-4X42HB6N.js +2 -0
  51. package/www/browser/chunk-5DYX4DUX.js +11 -0
  52. package/www/browser/chunk-6SYVDN5L.js +1 -0
  53. package/www/browser/chunk-6YYNHZ2A.js +1 -0
  54. package/www/browser/chunk-75W3GVSO.js +1 -0
  55. package/www/browser/chunk-7U44RF5F.js +63 -0
  56. package/www/browser/chunk-AELTP6YN.js +1 -0
  57. package/www/browser/chunk-AMXRL4GR.js +1 -0
  58. package/www/browser/chunk-AV2ZODEH.js +1 -0
  59. package/www/browser/chunk-AZ6SIMYH.js +1 -0
  60. package/www/browser/chunk-B3C35ET3.js +2 -0
  61. package/www/browser/chunk-BTQIUVTQ.js +1 -0
  62. package/www/browser/chunk-CN5J4WNO.js +1 -0
  63. package/www/browser/chunk-D2ODDESN.js +1 -0
  64. package/www/browser/chunk-DE6E23ET.js +1 -0
  65. package/www/browser/chunk-DIJPUYIA.js +1 -0
  66. package/www/browser/chunk-DLGJD6YU.js +4 -0
  67. package/www/browser/chunk-EEDA5U4V.js +1 -0
  68. package/www/browser/chunk-FK6Z4HLL.js +1 -0
  69. package/www/browser/chunk-FL6GDGHW.js +1 -0
  70. package/www/browser/chunk-FXCG34QS.js +1 -0
  71. package/www/browser/chunk-H2USFIYR.js +1 -0
  72. package/www/browser/chunk-H5HGMOE6.js +1 -0
  73. package/www/browser/chunk-HB3HECPD.js +1 -0
  74. package/www/browser/chunk-HDNG236Q.js +1 -0
  75. package/www/browser/chunk-HFZLJHYR.js +1 -0
  76. package/www/browser/chunk-HJTXXSMC.js +1 -0
  77. package/www/browser/chunk-HUMCWAKJ.js +3 -0
  78. package/www/browser/chunk-IKB3EQCP.js +2 -0
  79. package/www/browser/chunk-K7PESFPY.js +1 -0
  80. package/www/browser/chunk-KRYMOHYF.js +2 -0
  81. package/www/browser/chunk-M4QRBV3K.js +1 -0
  82. package/www/browser/chunk-N2PELLMM.js +30 -0
  83. package/www/browser/chunk-ONXBYGIG.js +1 -0
  84. package/www/browser/chunk-OSBDR36P.js +1 -0
  85. package/www/browser/chunk-OZCK4XVV.js +1 -0
  86. package/www/browser/chunk-QJP5F735.js +1 -0
  87. package/www/browser/chunk-RGOYDY7H.js +1 -0
  88. package/www/browser/chunk-UJKK4A7Y.js +1 -0
  89. package/www/browser/chunk-WD2EKZQC.js +1 -0
  90. package/www/browser/chunk-WUA5JFDD.js +1 -0
  91. package/www/browser/chunk-XLFHB7RS.js +3 -0
  92. package/www/browser/chunk-YNW4HEJO.js +37 -0
  93. package/www/browser/chunk-ZTDLWBW5.js +1 -0
  94. package/www/browser/dark.css +1 -30433
  95. package/www/browser/default.css +1 -30149
  96. package/www/browser/index.html +3 -3
  97. package/www/browser/main-N64WJCHX.js +34 -0
  98. package/www/browser/scripts-U25HCVEI.js +6 -0
  99. package/www/browser/styles-ROAHD7MY.css +1 -0
  100. package/www/browser/add-widget-drawer.component.css.map +0 -7
  101. package/www/browser/advanced-editor.component.css.map +0 -7
  102. package/www/browser/api-client.component.css.map +0 -7
  103. package/www/browser/api-history-drawer.component.css.map +0 -7
  104. package/www/browser/app.css.map +0 -7
  105. package/www/browser/attachment-viewer.component.css.map +0 -7
  106. package/www/browser/auth-editor.component.css.map +0 -7
  107. package/www/browser/body-editor.component.css.map +0 -7
  108. package/www/browser/chunk-2YSUXBGC.js +0 -627
  109. package/www/browser/chunk-2YSUXBGC.js.map +0 -1
  110. package/www/browser/chunk-3G2GEOPV.js +0 -456
  111. package/www/browser/chunk-3G2GEOPV.js.map +0 -1
  112. package/www/browser/chunk-3L72DF3R.js +0 -1683
  113. package/www/browser/chunk-3L72DF3R.js.map +0 -1
  114. package/www/browser/chunk-3MCIETCQ.js +0 -8279
  115. package/www/browser/chunk-3MCIETCQ.js.map +0 -1
  116. package/www/browser/chunk-665WC4RU.js +0 -5383
  117. package/www/browser/chunk-665WC4RU.js.map +0 -1
  118. package/www/browser/chunk-6QMSEZPT.js +0 -10044
  119. package/www/browser/chunk-6QMSEZPT.js.map +0 -1
  120. package/www/browser/chunk-6TBQERYX.js +0 -280
  121. package/www/browser/chunk-6TBQERYX.js.map +0 -1
  122. package/www/browser/chunk-6UW4MRJZ.js +0 -43
  123. package/www/browser/chunk-6UW4MRJZ.js.map +0 -7
  124. package/www/browser/chunk-6XUMIL3W.js +0 -5495
  125. package/www/browser/chunk-6XUMIL3W.js.map +0 -1
  126. package/www/browser/chunk-724YOJI3.js +0 -903
  127. package/www/browser/chunk-724YOJI3.js.map +0 -1
  128. package/www/browser/chunk-766T7YES.js +0 -437
  129. package/www/browser/chunk-766T7YES.js.map +0 -1
  130. package/www/browser/chunk-7FC7DN65.js +0 -728
  131. package/www/browser/chunk-7FC7DN65.js.map +0 -1
  132. package/www/browser/chunk-APGQRYWX.js +0 -156
  133. package/www/browser/chunk-APGQRYWX.js.map +0 -7
  134. package/www/browser/chunk-AQHSGTHS.js +0 -1960
  135. package/www/browser/chunk-AQHSGTHS.js.map +0 -1
  136. package/www/browser/chunk-CTOEAJQK.js +0 -40
  137. package/www/browser/chunk-CTOEAJQK.js.map +0 -7
  138. package/www/browser/chunk-DEGQJKKZ.js +0 -409
  139. package/www/browser/chunk-DEGQJKKZ.js.map +0 -1
  140. package/www/browser/chunk-DIJX2663.js +0 -1166
  141. package/www/browser/chunk-DIJX2663.js.map +0 -1
  142. package/www/browser/chunk-E4XD4GLT.js +0 -427
  143. package/www/browser/chunk-E4XD4GLT.js.map +0 -1
  144. package/www/browser/chunk-EQOY6A3M.js +0 -212
  145. package/www/browser/chunk-EQOY6A3M.js.map +0 -1
  146. package/www/browser/chunk-ETTBRXVA.js +0 -2643
  147. package/www/browser/chunk-ETTBRXVA.js.map +0 -1
  148. package/www/browser/chunk-FLSUSPBD.js +0 -5569
  149. package/www/browser/chunk-FLSUSPBD.js.map +0 -1
  150. package/www/browser/chunk-FZNHBEAZ.js +0 -102
  151. package/www/browser/chunk-FZNHBEAZ.js.map +0 -1
  152. package/www/browser/chunk-GJC7CZIJ.js +0 -361
  153. package/www/browser/chunk-GJC7CZIJ.js.map +0 -7
  154. package/www/browser/chunk-GMCNMOTD.js +0 -844
  155. package/www/browser/chunk-GMCNMOTD.js.map +0 -7
  156. package/www/browser/chunk-H43HGCRW.js +0 -198
  157. package/www/browser/chunk-H43HGCRW.js.map +0 -7
  158. package/www/browser/chunk-J447GBHM.js +0 -160
  159. package/www/browser/chunk-J447GBHM.js.map +0 -1
  160. package/www/browser/chunk-JN3VOWP7.js +0 -384
  161. package/www/browser/chunk-JN3VOWP7.js.map +0 -1
  162. package/www/browser/chunk-KSHAGY2M.js +0 -399
  163. package/www/browser/chunk-KSHAGY2M.js.map +0 -7
  164. package/www/browser/chunk-KV72AKOD.js +0 -59
  165. package/www/browser/chunk-KV72AKOD.js.map +0 -7
  166. package/www/browser/chunk-LAVMY2SJ.js +0 -26
  167. package/www/browser/chunk-LAVMY2SJ.js.map +0 -7
  168. package/www/browser/chunk-LLRVGHG5.js +0 -73
  169. package/www/browser/chunk-LLRVGHG5.js.map +0 -7
  170. package/www/browser/chunk-LPME4AJ3.js +0 -196
  171. package/www/browser/chunk-LPME4AJ3.js.map +0 -1
  172. package/www/browser/chunk-LVPSURVU.js +0 -4615
  173. package/www/browser/chunk-LVPSURVU.js.map +0 -1
  174. package/www/browser/chunk-MMPO7QLO.js +0 -4146
  175. package/www/browser/chunk-MMPO7QLO.js.map +0 -7
  176. package/www/browser/chunk-O7LB6VFM.js +0 -1953
  177. package/www/browser/chunk-O7LB6VFM.js.map +0 -1
  178. package/www/browser/chunk-P5CWA4FO.js +0 -685
  179. package/www/browser/chunk-P5CWA4FO.js.map +0 -1
  180. package/www/browser/chunk-RBWIWNTL.js +0 -203
  181. package/www/browser/chunk-RBWIWNTL.js.map +0 -7
  182. package/www/browser/chunk-RUXJCM3V.js +0 -26199
  183. package/www/browser/chunk-RUXJCM3V.js.map +0 -1
  184. package/www/browser/chunk-S77VVYUZ.js +0 -168
  185. package/www/browser/chunk-S77VVYUZ.js.map +0 -1
  186. package/www/browser/chunk-SCXPYFOB.js +0 -4316
  187. package/www/browser/chunk-SCXPYFOB.js.map +0 -1
  188. package/www/browser/chunk-SS73S33S.js +0 -471
  189. package/www/browser/chunk-SS73S33S.js.map +0 -7
  190. package/www/browser/chunk-T6UAOWNP.js +0 -600
  191. package/www/browser/chunk-T6UAOWNP.js.map +0 -1
  192. package/www/browser/chunk-TEW4MY4J.js +0 -148
  193. package/www/browser/chunk-TEW4MY4J.js.map +0 -7
  194. package/www/browser/chunk-TVORF3SF.js +0 -82
  195. package/www/browser/chunk-TVORF3SF.js.map +0 -7
  196. package/www/browser/chunk-UAN42EUZ.js +0 -2147
  197. package/www/browser/chunk-UAN42EUZ.js.map +0 -1
  198. package/www/browser/chunk-ULOHDK7Y.js +0 -1
  199. package/www/browser/chunk-ULOHDK7Y.js.map +0 -7
  200. package/www/browser/chunk-UYJ3FVRV.js +0 -3978
  201. package/www/browser/chunk-UYJ3FVRV.js.map +0 -1
  202. package/www/browser/chunk-VXHZMSDM.js +0 -5509
  203. package/www/browser/chunk-VXHZMSDM.js.map +0 -1
  204. package/www/browser/chunk-VYNQPZQO.js +0 -281
  205. package/www/browser/chunk-VYNQPZQO.js.map +0 -1
  206. package/www/browser/chunk-W3J23PZI.js +0 -9213
  207. package/www/browser/chunk-W3J23PZI.js.map +0 -1
  208. package/www/browser/chunk-W5HGHCQT.js +0 -1642
  209. package/www/browser/chunk-W5HGHCQT.js.map +0 -7
  210. package/www/browser/chunk-XF5H7E4L.js +0 -4723
  211. package/www/browser/chunk-XF5H7E4L.js.map +0 -1
  212. package/www/browser/chunk-XNFNEBMY.js +0 -398
  213. package/www/browser/chunk-XNFNEBMY.js.map +0 -7
  214. package/www/browser/chunk-XQY5SPGI.js +0 -30811
  215. package/www/browser/chunk-XQY5SPGI.js.map +0 -1
  216. package/www/browser/chunk-Y7JBZHNK.js +0 -514
  217. package/www/browser/chunk-Y7JBZHNK.js.map +0 -1
  218. package/www/browser/chunk-YWHRP4X3.js +0 -406
  219. package/www/browser/chunk-YWHRP4X3.js.map +0 -1
  220. package/www/browser/chunk-Z7FJIV62.js +0 -95
  221. package/www/browser/chunk-Z7FJIV62.js.map +0 -7
  222. package/www/browser/chunk-ZBZHXS46.js +0 -1674
  223. package/www/browser/chunk-ZBZHXS46.js.map +0 -1
  224. package/www/browser/chunk-ZZA5NVAI.js +0 -735
  225. package/www/browser/chunk-ZZA5NVAI.js.map +0 -1
  226. package/www/browser/collection-modal.component.css.map +0 -7
  227. package/www/browser/collection-tree-item.component.css.map +0 -7
  228. package/www/browser/collection-tree.component.css.map +0 -7
  229. package/www/browser/config-change-bar-component.css.map +0 -7
  230. package/www/browser/config-item-component.css.map +0 -7
  231. package/www/browser/config-nav-component.css.map +0 -7
  232. package/www/browser/config-section-component.css.map +0 -7
  233. package/www/browser/create-summary-aside.component.css.map +0 -7
  234. package/www/browser/curl-actions.component.css.map +0 -7
  235. package/www/browser/dark.css.map +0 -7
  236. package/www/browser/dashboard-canvas.component.css.map +0 -7
  237. package/www/browser/dashboard.component.css.map +0 -7
  238. package/www/browser/default.css.map +0 -7
  239. package/www/browser/detail-item-card.component.css.map +0 -7
  240. package/www/browser/ellipsis-text.component.css.map +0 -7
  241. package/www/browser/env-modal.component.css.map +0 -7
  242. package/www/browser/env-picker.component.css.map +0 -7
  243. package/www/browser/feedback.component.css.map +0 -7
  244. package/www/browser/fs-explorer.component.css.map +0 -7
  245. package/www/browser/git-import-modal.component.css.map +0 -7
  246. package/www/browser/hub-v2-personal-token-modal.component.css.map +0 -7
  247. package/www/browser/issue-action-area.component.css.map +0 -7
  248. package/www/browser/issue-add-participants-dialog.component.css.map +0 -7
  249. package/www/browser/issue-assign-dialog.component.css.map +0 -7
  250. package/www/browser/issue-attachment-area.component.css.map +0 -7
  251. package/www/browser/issue-base-info-area.component.css.map +0 -7
  252. package/www/browser/issue-branches.component.css.map +0 -7
  253. package/www/browser/issue-close-dialog.component.css.map +0 -7
  254. package/www/browser/issue-collaborators-panel.component.css.map +0 -7
  255. package/www/browser/issue-comment-editor.component.css.map +0 -7
  256. package/www/browser/issue-create-branch-dialog.component.css.map +0 -7
  257. package/www/browser/issue-description-area.component.css.map +0 -7
  258. package/www/browser/issue-detail.component.css.map +0 -7
  259. package/www/browser/issue-resolve-dialog.component.css.map +0 -7
  260. package/www/browser/issue-start-own-branch-dialog.component.css.map +0 -7
  261. package/www/browser/issues-list-table.component.css.map +0 -7
  262. package/www/browser/issues.component.css.map +0 -7
  263. package/www/browser/kill-port-widget.component.css.map +0 -7
  264. package/www/browser/kv-table.component.css.map +0 -7
  265. package/www/browser/layout-footer.component.css.map +0 -7
  266. package/www/browser/layout-header.component.css.map +0 -7
  267. package/www/browser/layout-menu.component.css.map +0 -7
  268. package/www/browser/layout-project-nav.component.css.map +0 -7
  269. package/www/browser/layout-sidebar.component.css.map +0 -7
  270. package/www/browser/layout.component.css.map +0 -7
  271. package/www/browser/less-viewport-component.css.map +0 -7
  272. package/www/browser/main.js +0 -1872
  273. package/www/browser/main.js.map +0 -1
  274. package/www/browser/markdown-viewer.component.css.map +0 -7
  275. package/www/browser/news-feed-widget.component.css.map +0 -7
  276. package/www/browser/ng-devtool.component.css.map +0 -7
  277. package/www/browser/nginx-config-editor.component.css.map +0 -7
  278. package/www/browser/nginx-log-viewer.component.css.map +0 -7
  279. package/www/browser/nginx-secondary-logs-tab.component.css.map +0 -7
  280. package/www/browser/nginx-secondary-perf-tab.component.css.map +0 -7
  281. package/www/browser/nginx-secondary-settings-tab.component.css.map +0 -7
  282. package/www/browser/nginx-secondary-ssl-tab.component.css.map +0 -7
  283. package/www/browser/nginx-secondary-test-tab.component.css.map +0 -7
  284. package/www/browser/nginx-secondary-traffic-tab.component.css.map +0 -7
  285. package/www/browser/nginx-secondary-upstream-tab.component.css.map +0 -7
  286. package/www/browser/nginx-section-card.component.css.map +0 -7
  287. package/www/browser/nginx-server-drawer.component.css.map +0 -7
  288. package/www/browser/nginx-server-list.component.css.map +0 -7
  289. package/www/browser/nginx-stat-card.component.css.map +0 -7
  290. package/www/browser/nginx.component.css.map +0 -7
  291. package/www/browser/page-layout.component.css.map +0 -7
  292. package/www/browser/pick-workspace-modal.component.css.map +0 -7
  293. package/www/browser/polyfills.js +0 -26584
  294. package/www/browser/polyfills.js.map +0 -7
  295. package/www/browser/project-conf.component.css.map +0 -7
  296. package/www/browser/project-create-modal.component.css.map +0 -7
  297. package/www/browser/project-create.component.css.map +0 -7
  298. package/www/browser/project-deps.component.css.map +0 -7
  299. package/www/browser/project-edit-modal.component.css.map +0 -7
  300. package/www/browser/project-import.component.css.map +0 -7
  301. package/www/browser/project-item-popover.component.css.map +0 -7
  302. package/www/browser/project-item.component.css.map +0 -7
  303. package/www/browser/project-list.component.css.map +0 -7
  304. package/www/browser/projects.component.css.map +0 -7
  305. package/www/browser/quick-task-widget.component.css.map +0 -7
  306. package/www/browser/rd-action-area.component.css.map +0 -7
  307. package/www/browser/rd-advance-stage-dialog.component.css.map +0 -7
  308. package/www/browser/rd-block-dialog.component.css.map +0 -7
  309. package/www/browser/rd-create-dialog.component.css.map +0 -7
  310. package/www/browser/rd-detail.component.css.map +0 -7
  311. package/www/browser/rd-item-card.component.css.map +0 -7
  312. package/www/browser/rd-list-board.component.css.map +0 -7
  313. package/www/browser/rd-list-table.component.css.map +0 -7
  314. package/www/browser/rd.component.css.map +0 -7
  315. package/www/browser/request-collections.component.css.map +0 -7
  316. package/www/browser/request-editor.component.css.map +0 -7
  317. package/www/browser/request-list-item.component.css.map +0 -7
  318. package/www/browser/request-list.component.css.map +0 -7
  319. package/www/browser/request-tabs-bar.component.css.map +0 -7
  320. package/www/browser/request-tabs.component.css.map +0 -7
  321. package/www/browser/request-urlbar.component.css.map +0 -7
  322. package/www/browser/response-viewer.component.css.map +0 -7
  323. package/www/browser/scripts.js +0 -245
  324. package/www/browser/scripts.js.map +0 -7
  325. package/www/browser/setting.component.css.map +0 -7
  326. package/www/browser/sprite-conf-modal.component.css.map +0 -7
  327. package/www/browser/sprite-icons-panel-component.css.map +0 -7
  328. package/www/browser/sprite-images-panel-component.css.map +0 -7
  329. package/www/browser/sprite-result-tabs.component.css.map +0 -7
  330. package/www/browser/sprite-viewport-component.css.map +0 -7
  331. package/www/browser/sprite.component.css.map +0 -7
  332. package/www/browser/step-advance.component.css.map +0 -7
  333. package/www/browser/step-basic.component.css.map +0 -7
  334. package/www/browser/step-config.component.css.map +0 -7
  335. package/www/browser/step-features.component.css.map +0 -7
  336. package/www/browser/step-preset.component.css.map +0 -7
  337. package/www/browser/step-summary-aside.component.css.map +0 -7
  338. package/www/browser/styles.css +0 -258
  339. package/www/browser/styles.css.map +0 -7
  340. package/www/browser/system-log.component.css.map +0 -7
  341. package/www/browser/task-actions.component.css.map +0 -7
  342. package/www/browser/task-console.component.css.map +0 -7
  343. package/www/browser/task-header.component.css.map +0 -7
  344. package/www/browser/task-list.component.css.map +0 -7
  345. package/www/browser/tasks.component.css.map +0 -7
  346. package/www/browser/terminal-view.component.css.map +0 -7
  347. package/www/browser/welcome-widget.component.css.map +0 -7
  348. package/www/browser/widget-base.component.css.map +0 -7
  349. package/www/browser/widget-host.component.css.map +0 -7
@@ -0,0 +1,2 @@
1
+ import{E as ft,Ea as zi,G as _i,Ga as yt,H as Ci,Ha as zt,Ia as we,Ja as Se,L as se,Pa as bt,Qa as wt,S as vi,Sa as St,Ta as Tt,U as mt,Wa as Pt,Za as bi,_a as wi,a as ze,ba as Di,cb as Si,d as We,da as ut,e as be,f as ai,g as li,gb as Ti,h as dt,ha as _t,i as A,ia as Ct,k as ci,l as ht,m as di,p as hi,r as pt,ra as vt,s as pi,t as gi,ta as Dt,u as oe,ua as yi,v as gt,w as fi,x as mi,y as ui}from"./chunk-3CM4SKDO.js";import{c as ri,d as at,f as ye,g as lt,h as ct}from"./chunk-HFZLJHYR.js";import{$b as ni,Ac as B,B as Ut,Ba as K,Bb as Le,Ca as me,Da as Xe,Fb as M,Fc as J,G as Kt,Gb as X,Gc as ee,Ha as Je,Hb as I,Hc as ve,Ib as tt,Ic as De,Jb as Fe,Jc as te,K as qt,Kb as it,L as Ne,Lb as G,Lc as ie,M as pe,Oa as Ae,Pa as Xt,Ra as q,S as $,Ub as j,Wb as b,Xa as Jt,Xc as He,Yb as w,_b as ii,_c as si,a as he,ac as oi,ad as st,bc as C,bd as rt,c as jt,cc as _,da as ge,dc as v,ea as Qt,ec as O,fa as x,g as Z,ha as Yt,i as Ye,ic as ue,jb as Q,jc as _e,l as p,lc as N,m as Zt,na as fe,nb as m,nc as nt,oa as U,p as $t,qa as L,rc as P,sa as c,sb as g,sc as ot,tb as Y,uc as f,ud as ne,vb as ei,wb as k,xb as et,xc as Be,ya as E,yb as ti,yc as Ce,yd as u,za as R,zc as F,zd as Ve}from"./chunk-4BRW6LCZ.js";var Pi=class o{static formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(i,e=0,t="B",n){if(!(_t(i)&&_t(e)&&e%1===0&&e>=0))return i;let s=i,r=t;for(;r!=="B";)s*=1024,r=o.formats[r].prev;if(n){let a=o.formats[n],l=Ct(o.calculateResult(a,s),e);return o.formatResult(l,n)}for(let a in o.formats)if(o.formats.hasOwnProperty(a)){let l=o.formats[a];if(s<l.max){let d=Ct(o.calculateResult(l,s),e);return o.formatResult(d,a)}}}static formatResult(i,e){return`${i} ${e}`}static calculateResult(i,e){let t=i.prev?o.formats[i.prev]:void 0;return t?e/t.max:e}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=tt({name:"nzBytes",type:o,pure:!0})},Et=(()=>{class o{transform(e,t="px"){return typeof e=="number"?`${e}${t}`:e}static \u0275fac=function(t){return new(t||o)};static \u0275pipe=tt({name:"nzToCssUnit",type:o,pure:!0})}return o})();var Rt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=X({type:o});static \u0275inj=U({})}return o})();function Mt(o){let i=o.cloneNode(!0),e=i.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();i.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return t==="canvas"?ki(o,i):(t==="input"||t==="select"||t==="textarea")&&xi(o,i),Ri("canvas",o,i,ki),Ri("input, textarea, select",o,i,xi),i}function Ri(o,i,e,t){let n=i.querySelectorAll(o);if(n.length){let s=e.querySelectorAll(o);for(let r=0;r<n.length;r++)t(n[r],s[r])}}var Tn=0;function xi(o,i){i.type!=="file"&&(i.value=o.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${Tn++}`)}function ki(o,i){let e=i.getContext("2d");if(e)try{e.drawImage(o,0,0)}catch{}}function Bt(o){let i=o.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function It(o,i,e){let{top:t,bottom:n,left:s,right:r}=o;return e>=t&&e<=n&&i>=s&&i<=r}function Pn(o,i){let e=i.left<o.left,t=i.left+i.width>o.right,n=i.top<o.top,s=i.top+i.height>o.bottom;return e||t||n||s}function Ee(o,i,e){o.top+=i,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function Mi(o,i,e,t){let{top:n,right:s,bottom:r,left:a,width:l,height:d}=o,h=l*i,D=d*i;return t>n-D&&t<r+D&&e>a-h&&e<s+h}var Ge=class{_document;positions=new Map;constructor(i){this._document=i}clear(){this.positions.clear()}cache(i){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),i.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Bt(e)})})}handleScroll(i){let e=be(i),t=this.positions.get(e);if(!t)return null;let n=t.scrollPosition,s,r;if(e===this._document){let d=this.getViewportScrollPosition();s=d.top,r=d.left}else s=e.scrollTop,r=e.scrollLeft;let a=n.top-s,l=n.left-r;return this.positions.forEach((d,h)=>{d.clientRect&&e!==h&&e.contains(h)&&Ee(d.clientRect,a,l)}),n.top=s,n.left=r,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function ji(o,i){let e=o.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let t=i.createElement("div");return e.forEach(n=>t.appendChild(n)),t}function Ht(o,i,e){for(let t in i)if(i.hasOwnProperty(t)){let n=i[t];n?o.setProperty(t,n,e?.has(t)?"important":""):o.removeProperty(t)}return o}function re(o,i){let e=i?"":"none";Ht(o.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Ii(o,i,e){Ht(o.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function je(o,i){return i&&i!="none"?o+" "+i:o}function Oi(o,i){o.style.width=`${i.width}px`,o.style.height=`${i.height}px`,o.style.transform=Re(i.left,i.top)}function Re(o,i){return`translate3d(${Math.round(o)}px, ${Math.round(i)}px, 0)`}function Ni(o){let i=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*i}function En(o){let i=getComputedStyle(o),e=xt(i,"transition-property"),t=e.find(a=>a==="transform"||a==="all");if(!t)return 0;let n=e.indexOf(t),s=xt(i,"transition-duration"),r=xt(i,"transition-delay");return Ni(s[n])+Ni(r[n])}function xt(o,i){return o.getPropertyValue(i).split(",").map(t=>t.trim())}var Rn=new Set(["position"]),Ot=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(i,e,t,n,s,r,a,l,d,h){this._document=i,this._rootElement=e,this._direction=t,this._initialDomRect=n,this._previewTemplate=s,this._previewClass=r,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=d,this._renderer=h}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),Ai(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(i){this._preview.style.transform=i}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(i){this._preview.classList.add(i)}getTransitionDuration(){return En(this._preview)}addEventListener(i,e){return this._renderer.listen(this._preview,i,e)}_createPreview(){let i=this._previewTemplate,e=this._previewClass,t=i?i.template:null,n;if(t&&i){let s=i.matchSize?this._initialDomRect:null,r=i.viewContainer.createEmbeddedView(t,i.context);r.detectChanges(),n=ji(r,this._document),this._previewEmbeddedView=r,i.matchSize?Oi(n,s):n.style.transform=Re(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=Mt(this._rootElement),Oi(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return Ht(n.style,{"pointer-events":"none",margin:Ai(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Rn),re(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(s=>n.classList.add(s)):n.classList.add(e)),n}};function Ai(o){return"showPopover"in o}var xn={passive:!0},Li={passive:!1},kn={passive:!1,capture:!0},Mn=800,Fi="cdk-drag-placeholder",Bi=new Set(["position"]),Nt=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Je(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new p;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Z.EMPTY;_pointerUpSubscription=Z.EMPTY;_scrollSubscription=Z.EMPTY;_resizeSubscription=Z.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(i){i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(e=>re(e,i)))}_disabled=!1;beforeStarted=new p;started=new p;released=new p;ended=new p;entered=new p;exited=new p;dropped=new p;moved=this._moveEvents;data;constrainPosition;constructor(i,e,t,n,s,r,a){this._config=e,this._document=t,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=r,this._renderer=a,this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new Ge(t),r.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(t=>A(t)),this._handles.forEach(t=>re(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){let e=A(i);if(e!==this._rootElement){this._removeRootElementListeners();let t=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"mousedown",this._pointerDown,Li),t.listen(e,"touchstart",this._pointerDown,xn),t.listen(e,"dragstart",this._nativeDragStart,Li)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?A(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Pn(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let i=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),t=0,n=0;e.left<i.left?t=i.left-e.left:e.right>i.right&&(t=i.right-e.right),e.top<i.top?n=i.top-e.top:e.bottom>i.bottom&&(n=i.bottom-e.bottom);let s=this._activeTransform.x,r=this._activeTransform.y,a=s+t,l=r+n;this._rootElement.style.transform=Re(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),re(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),re(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){let i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){let i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=i=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,i)}else this.disabled||this._initializeDragSequence(this._rootElement,i)};_pointerMove=i=>{let e=this._getPointerPositionOnPage(i);if(!this._hasStartedDragging()){let n=Math.abs(e.x-this._pickupPositionOnPage.x),s=Math.abs(e.y-this._pickupPositionOnPage.y);if(n+s>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(i),l=this._dropContainer;if(!a){this._endDragSequence(i);return}(!l||!l.isDragging()&&!l.isReceiving())&&(i.cancelable&&i.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(i)))}return}i.cancelable&&i.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let n=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,s=this._activeTransform;s.x=t.x-n.x+this._passiveTransform.x,s.y=t.y-n.y+this._passiveTransform.y,this._applyRootElementTransform(s.x,s.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:i,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=i=>{this._endDragSequence(i)};_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){Te(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",In,kn)}),t){let n=this._rootElement,s=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");s.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new Ot(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(s,e)),Ii(n,!1,Bi),this._document.body.appendChild(s.replaceChild(r,n)),this.started.next({source:this,event:i}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),n=Te(e),s=!n&&e.button!==0,r=this._rootElement,a=be(e),l=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+Mn>Date.now(),d=n?wi(e):bi(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),t||s||l||d)return;if(this._handles.length){let T=r.style;this._rootElementTapHighlight=T.webkitTapHighlightColor||"",T.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(T=>this._updateOnScroll(T)),this._boundaryElement&&(this._boundaryRect=Bt(this._boundaryElement));let h=this._previewTemplate;this._pickupPositionInElement=h&&h.template&&!h.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let D=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:D.x,y:D.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Ii(this._rootElement,!0,Bi),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),n=this._getPointerPositionOnPage(i),s=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n,event:i}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s,dropPoint:n,event:i}),e.drop(this,t,this._initialIndex,this._initialContainer,r,s,n,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:t,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{let r=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(r+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(s,this._dropContainer,a),this._dropContainer=s,this._dropContainer.enter(this,i,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,n),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let i=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let n=a=>{(!a||this._preview&&be(a)===this._preview.element&&a.propertyName==="transform")&&(r(),t(),clearTimeout(s))},s=setTimeout(n,e*1.5),r=this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let i=this._placeholderTemplate,e=i?i.template:null,t;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),t=ji(this._placeholderRef,this._document)):t=Mt(this._rootElement),t.style.pointerEvents="none",t.classList.add(Fi),t}_getPointerPositionInElement(i,e,t){let n=e===this._rootElement?null:e,s=n?n.getBoundingClientRect():i,r=Te(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition(),l=r.pageX-s.left-a.left,d=r.pageY-s.top-a.top;return{x:s.left-i.left+l,y:s.top-i.top+d}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),t=Te(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,n=t.pageX-e.left,s=t.pageY-e.top;if(this._ownerSVGElement){let r=this._ownerSVGElement.getScreenCTM();if(r){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=s,a.matrixTransform(r.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(i){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:n}=this.constrainPosition?this.constrainPosition(i,this,this._initialDomRect,this._pickupPositionInElement):i;if(this.lockAxis==="x"||e==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:s,y:r}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:d}=this._getPreviewRect(),h=a.top+r,D=a.bottom-(d-r),T=a.left+s,ce=a.right-(l-s);t=Hi(t,T,ce),n=Hi(n,h,D)}return{x:t,y:n}}_updatePointerDirectionDelta(i){let{x:e,y:t}=i,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),a=Math.abs(t-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=t>s.y?1:-1,s.y=t),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,re(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let t=1/this.scale,n=Re(i*t,e*t),s=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=s.transform&&s.transform!="none"?s.transform:""),s.transform=je(n,this._initialTransform)}_applyPreviewTransform(i,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,n=Re(i,e);this._preview.setTransform(je(n,t))}_getDragDistance(i){let e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(i===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||t.width===0&&t.height===0)return;let s=n.left-t.left,r=t.right-n.right,a=n.top-t.top,l=t.bottom-n.bottom;n.width>t.width?(s>0&&(i+=s),r>0&&(i-=r)):i=0,n.height>t.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){let e=this.dragStartDelay;return typeof e=="number"?e:Te(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let t=be(i);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ee(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=We(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){let t=this._previewContainer||"global";if(t==="parent")return i;if(t==="global"){let n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return A(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=i=>{if(this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&i.preventDefault()}else this.disabled||i.preventDefault()};_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}_conditionallyInsertAnchor(i,e,t){if(i===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let n=this._anchor??=Mt(this._placeholder);n.classList.remove(Fi),n.classList.add("cdk-drag-anchor"),n.style.transform="",t?t.before(n):A(e.element).appendChild(n)}}};function Hi(o,i,e){return Math.max(i,Math.min(e,o))}function Te(o){return o.type[0]==="t"}function In(o){o.preventDefault()}function Zi(o,i,e){let t=Vi(i,o.length-1),n=Vi(e,o.length-1);if(t===n)return;let s=o[t],r=n<t?-1:1;for(let a=t;a!==n;a+=r)o[a]=o[a+r];o[n]=s}function Vi(o,i){return Math.max(0,Math.min(i,o))}var Ze=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(i){this._dragDropRegistry=i}_previousSwap={drag:null,delta:0,overlaps:!1};start(i){this.withItems(i)}sort(i,e,t,n){let s=this._itemPositions,r=this._getItemIndexFromPointerPosition(i,e,t,n);if(r===-1&&s.length>0)return null;let a=this.orientation==="horizontal",l=s.findIndex(z=>z.drag===i),d=s[r],h=s[l].clientRect,D=d.clientRect,T=l>r?1:-1,ce=this._getItemOffsetPx(h,D,T),Ke=this._getSiblingOffsetPx(l,s,T),qe=s.slice();return Zi(s,l,r),s.forEach((z,Qe)=>{if(qe[Qe]===z)return;let Me=z.drag===i,de=Me?ce:Ke,Ie=Me?i.getPlaceholderElement():z.drag.getRootElement();z.offset+=de;let Oe=Math.round(z.offset*(1/z.drag.scale));a?(Ie.style.transform=je(`translate3d(${Oe}px, 0, 0)`,z.initialTransform),Ee(z.clientRect,0,de)):(Ie.style.transform=je(`translate3d(0, ${Oe}px, 0)`,z.initialTransform),Ee(z.clientRect,de,0))}),this._previousSwap.overlaps=It(D,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:l,currentIndex:r}}enter(i,e,t,n){let s=n==null||n<0?this._getItemIndexFromPointerPosition(i,e,t):n,r=this._activeDraggables,a=r.indexOf(i),l=i.getPlaceholderElement(),d=r[s];if(d===i&&(d=r[s+1]),!d&&(s==null||s===-1||s<r.length-1)&&this._shouldEnterAsFirstChild(e,t)&&(d=r[0]),a>-1&&r.splice(a,1),d&&!this._dragDropRegistry.isDragging(d)){let h=d.getRootElement();h.parentElement.insertBefore(l,h),r.splice(s,0,i)}else this._element.appendChild(l),r.push(i);l.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables?.forEach(i=>{let e=i.getRootElement();if(e){let t=this._itemPositions.find(n=>n.drag===i)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return this._getVisualItemPositions().findIndex(e=>e.drag===i)}getItemAtIndex(i){return this._getVisualItemPositions()[i]?.drag||null}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:t})=>{Ee(t,i,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(i){this._element=i}_cacheItemPositions(){let i=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Bt(t)}}).sort((e,t)=>i?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(i,e,t){let n=this.orientation==="horizontal",s=n?e.left-i.left:e.top-i.top;return t===-1&&(s+=n?e.width-i.width:e.height-i.height),s}_getSiblingOffsetPx(i,e,t){let n=this.orientation==="horizontal",s=e[i].clientRect,r=e[i+t*-1],a=s[n?"width":"height"]*t;if(r){let l=n?"left":"top",d=n?"right":"bottom";t===-1?a-=r.clientRect[l]-s[d]:a+=s[l]-r.clientRect[d]}return a}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,n=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let r=t[t.length-1].clientRect;return n?i>=r.right:e>=r.bottom}else{let r=t[0].clientRect;return n?i<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(i,e,t,n){let s=this.orientation==="horizontal",r=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===i)return!1;if(n){let d=s?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return s?e>=Math.floor(l.left)&&e<Math.floor(l.right):t>=Math.floor(l.top)&&t<Math.floor(l.bottom)});return r===-1||!this._sortPredicate(r,i)?-1:r}},At=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(i,e){this._document=i,this._dragDropRegistry=e}start(i){let e=this._element.childNodes;this._relatedNodes=[];for(let t=0;t<e.length;t++){let n=e[t];this._relatedNodes.push([n,n.nextSibling])}this.withItems(i)}sort(i,e,t,n){let s=this._getItemIndexFromPointerPosition(i,e,t),r=this._previousSwap;if(s===-1||this._activeItems[s]===i)return null;let a=this._activeItems[s];if(r.drag===a&&r.overlaps&&r.deltaX===n.x&&r.deltaY===n.y)return null;let l=this.getItemIndex(i),d=i.getPlaceholderElement(),h=a.getRootElement();s>l?h.after(d):h.before(d),Zi(this._activeItems,l,s);let D=this._getRootNode().elementFromPoint(e,t);return r.deltaX=n.x,r.deltaY=n.y,r.drag=a,r.overlaps=h===D||h.contains(D),{previousIndex:l,currentIndex:s}}enter(i,e,t,n){let s=this._activeItems.indexOf(i);s>-1&&this._activeItems.splice(s,1);let r=n==null||n<0?this._getItemIndexFromPointerPosition(i,e,t):n;r===-1&&(r=this._getClosestItemIndexToPointer(i,e,t));let a=this._activeItems[r];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(r,0,i),a.getRootElement().before(i.getPlaceholderElement())):(this._activeItems.push(i),this._element.appendChild(i.getPlaceholderElement()))}withItems(i){this._activeItems=i.slice()}withSortPredicate(i){this._sortPredicate=i}reset(){let i=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[n,s]=this._relatedNodes[t];n.parentNode===i&&n.nextSibling!==s&&(s===null?i.appendChild(n):s.parentNode===i&&i.insertBefore(n,s))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(i){return this._activeItems.indexOf(i)}getItemAtIndex(i){return this._activeItems[i]||null}updateOnScroll(){this._activeItems.forEach(i=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(i){i!==this._element&&(this._element=i,this._rootNode=void 0)}_getItemIndexFromPointerPosition(i,e,t){let n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),s=n?this._activeItems.findIndex(r=>{let a=r.getRootElement();return n===a||a.contains(n)}):-1;return s===-1||!this._sortPredicate(s,i)?-1:s}_getRootNode(){return this._rootNode||(this._rootNode=We(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(i,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let n=1/0,s=-1;for(let r=0;r<this._activeItems.length;r++){let a=this._activeItems[r];if(a!==i){let{x:l,y:d}=a.getRootElement().getBoundingClientRect(),h=Math.hypot(e-l,t-d);h<n&&(n=h,s=r)}}return s}},Wi=.05,$i=.05,S=(function(o){return o[o.NONE=0]="NONE",o[o.UP=1]="UP",o[o.DOWN=2]="DOWN",o})(S||{}),y=(function(o){return o[o.NONE=0]="NONE",o[o.LEFT=1]="LEFT",o[o.RIGHT=2]="RIGHT",o})(y||{}),Lt=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new p;entered=new p;exited=new p;dropped=new p;sorted=new p;receivingStarted=new p;receivingStopped=new p;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Z.EMPTY;_verticalScrollDirection=S.NONE;_horizontalScrollDirection=y.NONE;_scrollNode;_stopScrollTimers=new p;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(i,e,t,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s;let r=this.element=A(i);this._document=t,this.withOrientation("vertical").withElementContainer(r),e.registerDropContainer(this),this._parentPositions=new Ge(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,t,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,t,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,t,n,s,r,a,l={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:t,container:this,previousContainer:n,isPointerOverContainer:s,distance:r,dropPoint:a,event:l})}withItems(i){let e=this._draggables;return this._draggables=i,i.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(n=>n.isDragging()).every(n=>i.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._direction=i,this._sortStrategy instanceof Ze&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new At(this._document,this._dragDropRegistry);else{let e=new Ze(this._dragDropRegistry);e.direction=this._direction,e.orientation=i,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(i){let e=this._container;return this._scrollableElements=i.indexOf(e)===-1?[e,...i]:i.slice(),this}withElementContainer(i){if(i===this._container)return this;let e=A(this.element),t=this._scrollableElements.indexOf(this._container),n=this._scrollableElements.indexOf(i);return t>-1&&this._scrollableElements.splice(t,1),n>-1&&this._scrollableElements.splice(n,1),this._sortStrategy&&this._sortStrategy.withElementContainer(i),this._cachedShadowRoot=null,this._scrollableElements.unshift(i),this._container=i,this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}getItemAtIndex(i){return this._isDragging?this._sortStrategy.getItemAtIndex(i):this._draggables[i]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,t,n){if(this.sortingDisabled||!this._domRect||!Mi(this._domRect,Wi,e,t))return;let s=this._sortStrategy.sort(i,e,t,n);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let t,n=S.NONE,s=y.NONE;if(this._parentPositions.positions.forEach((r,a)=>{a===this._document||!r.clientRect||t||Mi(r.clientRect,Wi,i,e)&&([n,s]=On(a,r.clientRect,this._direction,i,e),(n||s)&&(t=a))}),!n&&!s){let{width:r,height:a}=this._viewportRuler.getViewportSize(),l={width:r,height:a,top:0,right:r,bottom:a,left:0};n=Ui(l,e),s=Ki(l,i),t=window}t&&(n!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=t,(n||s)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let i=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let i=this._container.style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),qt(0,$t).pipe(x(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===S.UP?i.scrollBy(0,-e):this._verticalScrollDirection===S.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===y.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===y.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&It(this._domRect,i,e)}_getSiblingContainerFromPosition(i,e,t){return this._siblings.find(n=>n._canReceive(i,e,t))}_canReceive(i,e,t){if(!this._domRect||!It(this._domRect,e,t)||!this.enterPredicate(i,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,t);return n?n===this._container||this._container.contains(n):!1}_startReceiving(i,e){let t=this._activeSiblings;!t.has(i)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(t.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let i=We(this._container);this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}};function Ui(o,i){let{top:e,bottom:t,height:n}=o,s=n*$i;return i>=e-s&&i<=e+s?S.UP:i>=t-s&&i<=t+s?S.DOWN:S.NONE}function Ki(o,i){let{left:e,right:t,width:n}=o,s=n*$i;return i>=e-s&&i<=e+s?y.LEFT:i>=t-s&&i<=t+s?y.RIGHT:y.NONE}function On(o,i,e,t,n){let s=Ui(i,n),r=Ki(i,t),a=S.NONE,l=y.NONE;if(s){let d=o.scrollTop;s===S.UP?d>0&&(a=S.UP):o.scrollHeight-d>o.clientHeight&&(a=S.DOWN)}if(r){let d=o.scrollLeft;e==="rtl"?r===y.RIGHT?d<0&&(l=y.RIGHT):o.scrollWidth+d>o.clientWidth&&(l=y.LEFT):r===y.LEFT?d>0&&(l=y.LEFT):o.scrollWidth-d>o.clientWidth&&(l=y.RIGHT)}return[a,l]}var Pe={capture:!0},kt={passive:!1,capture:!0},Nn=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,n){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
2
+ `],encapsulation:2,changeDetection:0})}return o})(),Vt=(()=>{class o{_ngZone=c(Y);_document=c(me);_styleLoader=c(ai);_renderer=c(et).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new p;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Je([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new p;pointerUp=new p;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,kt)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(Nn),this._activeDragInstances.update(n=>[...n,e]),this._activeDragInstances().length===1)){let n=t.type.startsWith("touch"),s=a=>this.pointerUp.next(a),r=[["scroll",a=>this._scroll.next(a),Pe],["selectstart",this._preventDefaultWhileDragging,kt]];n?r.push(["touchend",s,Pe],["touchcancel",s,Pe]):r.push(["mouseup",s,Pe]),n||r.push(["mousemove",a=>this.pointerMove.next(a),kt]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=r.map(([a,l,d])=>this._renderer.listen(this._document,a,l,d))})}}stopDragging(e){this._activeDragInstances.update(t=>{let n=t.indexOf(e);return n>-1?(t.splice(n,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new Ye(n=>this._ngZone.runOutsideAngular(()=>{let s=this._renderer.listen(e,"scroll",r=>{this._activeDragInstances().length&&n.next(r)},Pe);return()=>{s()}}))),Ne(...t)}registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||o)};static \u0275prov=fe({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),An={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Wt=(()=>{class o{_document=c(me);_ngZone=c(Y);_viewportRuler=c(di);_dragDropRegistry=c(Vt);_renderer=c(et).createRenderer(null,null);constructor(){}createDrag(e,t=An){return new Nt(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Lt(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=fe({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ft=new L("CDK_DRAG_PARENT");var qi=new L("CdkDragHandle"),Qi=(()=>{class o{element=c(q);_parentDrag=c(Ft,{optional:!0,skipSelf:!0});_dragDropRegistry=c(Vt);_stateChanges=new p;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let t=this._dragDropRegistry.getDragDirectiveForNode(e);if(t){this._parentDrag=t,t._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",u]},features:[He([{provide:qi,useExisting:o}])]})}return o})(),Yi=new L("CDK_DRAG_CONFIG"),Xi=new L("CdkDropList"),Ji=(()=>{class o{element=c(q);dropContainer=c(Xi,{optional:!0,skipSelf:!0});_ngZone=c(Y);_viewContainerRef=c(Le);_dir=c(ze,{optional:!0});_changeDetectorRef=c(ne);_selfHandle=c(qi,{optional:!0,self:!0});_parentDrag=c(Ft,{optional:!0,skipSelf:!0});_dragDropRegistry=c(Vt);_destroyed=new p;_handles=new Zt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new g;released=new g;ended=new g;entered=new g;exited=new g;dropped=new g;moved=new Ye(e=>{let t=this._dragRef.moved.pipe(Ut(n=>({source:this,pointerPosition:n.pointerPosition,event:n.event,delta:n.delta,distance:n.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=c(K);constructor(){let e=this.dropContainer,t=c(Yi,{optional:!0}),n=c(Wt);this._dragRef=n.createDrag(this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(x(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){ei(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),n=t.indexOf(e);n>-1&&(t.splice(n,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):A(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,n=this.dragStartDelay,s=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof n=="object"&&n?n:dt(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(r).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe($(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let n=this._dragDropRegistry.getDragDirectiveForNode(t);if(n){e.withParent(n._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:n,constrainPosition:s,previewClass:r,boundaryElement:a,draggingDisabled:l,rootElementSelector:d,previewContainer:h}=e;this.disabled=l??!1,this.dragStartDelay=n||0,this.lockAxis=t||null,s&&(this.constrainPosition=s),r&&(this.previewClass=r),a&&(this.boundaryElement=a),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}_setupHandlesListener(){this._handles.pipe(Yt(e=>{let t=e.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Qt(e=>Ne(...e.map(t=>t._stateChanges.pipe(ge(t))))),x(this._destroyed)).subscribe(e=>{let t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,n){t&2&&ee("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",u],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Ve]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[He([{provide:Ft,useExisting:o}]),Ae]})}return o})(),Gi=new L("CdkDropListGroup");var Lo=(()=>{class o{element=c(q);_changeDetectorRef=c(ne);_scrollDispatcher=c(ci);_dir=c(ze,{optional:!0});_group=c(Gi,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new p;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=c(fi).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new g;entered=new g;exited=new g;sorted=new g;_unsortedItems=new Set;constructor(){let e=c(Wt),t=c(Yi,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,t&&this._assignDefaults(t),this._dropListRef.enterPredicate=(n,s)=>this.enterPredicate(n.data,s.data),this._dropListRef.sortPredicate=(n,s,r)=>this.sortPredicate(n,s.data,r.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),o._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let t=this._latestSortedRefs.indexOf(e._dragRef);t>-1&&(this._latestSortedRefs.splice(t,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=o._dropLists.indexOf(this);e>-1&&o._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ge(this._dir.value),x(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{let t=li(this.connectedTo).map(n=>{if(typeof n=="string"){let s=o._dropLists.find(r=>r.id===n);return s}return n});if(this._group&&this._group._items.forEach(n=>{t.indexOf(n)===-1&&t.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(s=>s.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=dt(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(t.filter(n=>n&&n!==this).map(n=>n._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),Ne(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:t,draggingDisabled:n,sortingDisabled:s,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=n??!1,this.sortingDisabled=s??!1,this.autoScrollDisabled=r??!1,this.orientation=a||"vertical",this.lockAxis=t||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,n){t&2&&(j("id",n.id),ee("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",u],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",u],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",u],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",u]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[He([{provide:Gi,useValue:void 0},{provide:Xi,useExisting:o}])]})}return o})();var Fo=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=X({type:o});static \u0275inj=U({providers:[Wt],imports:[hi]})}return o})();var Fn=["nz-modal-close",""];function Bn(o,i){if(o&1&&(ue(0),O(1,"nz-icon",2),_e()),o&2){let e=i.$implicit;m(),C("nzType",e)}}var on=["modalElement"];function Hn(o,i){if(o&1){let e=N();_(0,"button",16),P("click",function(){E(e);let n=f();return R(n.onCloseClick())}),v()}}function Vn(o,i){if(o&1&&(ue(0),O(1,"span",12),_e()),o&2){let e=f();m(),C("innerHTML",e.config.nzTitle,Q)}}function Wn(o,i){}function Gn(o,i){if(o&1&&O(0,"div",12),o&2){let e=f();C("innerHTML",e.config.nzContent,Q)}}function jn(o,i){if(o&1){let e=N();_(0,"button",17),P("click",function(){E(e);let n=f();return R(n.onCancel())}),te(1),v()}if(o&2){let e=f();C("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),j("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),m(),ie(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function Zn(o,i){if(o&1){let e=N();_(0,"button",18),P("click",function(){E(e);let n=f();return R(n.onOk())}),te(1),v()}if(o&2){let e=f();C("nzType",e.config.nzOkType)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled)("nzDanger",e.config.nzOkDanger),j("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),m(),ie(" ",e.config.nzOkText||e.locale.okText," ")}}var $n=["nz-modal-footer",""],Un=(o,i)=>({$implicit:o,modalRef:i});function Kn(o,i){if(o&1){let e=N();_(0,"button",3),P("click",function(){let n=E(e).$implicit,s=f(4);return R(s.onButtonClick(n))}),te(1),v()}if(o&2){let e=i.$implicit,t=f(4);C("hidden",!t.getButtonCallableProp(e,"show"))("nzLoading",t.getButtonCallableProp(e,"loading"))("disabled",t.getButtonCallableProp(e,"disabled"))("nzType",e.type)("nzDanger",e.danger)("nzShape",e.shape)("nzSize",e.size)("nzGhost",e.ghost),m(),ie(" ",e.label," ")}}function qn(o,i){if(o&1&&ni(0,Kn,2,9,"button",2,ii),o&2){let e=f(3);oi(e.buttons)}}function Qn(o,i){if(o&1&&O(0,"div",1),o&2){let e=f(3);C("innerHTML",e.config.nzFooter,Q)}}function Yn(o,i){if(o&1&&(ue(0),b(1,qn,2,0)(2,Qn,1,1,"div",1),_e()),o&2){let e=f(2);m(),w(e.buttonsFooter?1:2)}}function Xn(o,i){if(o&1&&G(0,Yn,3,1,"ng-container",0),o&2){let e=f();C("nzStringTemplateOutlet",e.config.nzFooter)("nzStringTemplateOutletContext",si(2,Un,e.config.nzData,e.modalRef))}}function Jn(o,i){if(o&1){let e=N();_(0,"button",6),P("click",function(){E(e);let n=f(2);return R(n.onCancel())}),te(1),v()}if(o&2){let e=f(2);C("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),j("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),m(),ie(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function eo(o,i){if(o&1){let e=N();_(0,"button",7),P("click",function(){E(e);let n=f(2);return R(n.onOk())}),te(1),v()}if(o&2){let e=f(2);C("nzType",e.config.nzOkType)("nzDanger",e.config.nzOkDanger)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled),j("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),m(),ie(" ",e.config.nzOkText||e.locale.okText," ")}}function to(o,i){if(o&1&&(b(0,Jn,2,4,"button",4),b(1,eo,2,6,"button",5)),o&2){let e=f();w(e.config.nzCancelText!==null?0:-1),m(),w(e.config.nzOkText!==null?1:-1)}}var io=["nz-modal-title",""];function no(o,i){if(o&1&&(ue(0),O(1,"div",2),_e()),o&2){let e=f();m(),C("innerHTML",e.config.nzTitle,Q)}}function oo(o,i){if(o&1){let e=N();_(0,"button",9),P("click",function(){E(e);let n=f();return R(n.onCloseClick())}),v()}}function so(o,i){if(o&1&&O(0,"div",10),o&2){let e=f();J("cursor",e.config.nzDraggable?"move":"auto")}}function ro(o,i){}function ao(o,i){if(o&1&&O(0,"div",7),o&2){let e=f();C("innerHTML",e.config.nzContent,Q)}}function lo(o,i){if(o&1){let e=N();_(0,"div",11),P("cancelTriggered",function(){E(e);let n=f();return R(n.onCloseClick())})("okTriggered",function(){E(e);let n=f();return R(n.onOkClick())}),v()}if(o&2){let e=f();C("modalRef",e.modalRef)}}var en=()=>{},W=class{nzCentered=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzDraggable=!1;nzNoAnimation=!1;nzAutofocus="auto";nzMask;nzMaskClosable;nzKeyboard=!0;nzZIndex=1e3;nzWidth=520;nzCloseIcon="close";nzOkType="primary";nzOkDanger=!1;nzModalType="default";nzOnCancel=en;nzOnOk=en;nzData;nzMaskStyle;nzBodyStyle;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzFooter;nzCancelText;nzOkText;nzContent;nzCloseOnNavigation;nzViewContainerRef;nzAfterOpen;nzAfterClose;nzIconType="question-circle";nzDirection},H={enter:"ant-zoom-enter",enterActive:"ant-zoom-enter-active",leave:"ant-zoom-leave",leaveActive:"ant-zoom-leave-active"},ae={enter:"ant-fade-enter",enterActive:"ant-fade-enter-active",leave:"ant-fade-leave",leaveActive:"ant-fade-leave-active"},$e="ant-modal-mask",Ue="modal",co=new L(""),sn={modalContainer:ri("modalContainer",[lt("void, exit",ye({})),lt("enter",ye({})),ct("* => enter",at(".24s",ye({}))),ct("* => void, * => exit",at(".2s",ye({})))])},Gt=(()=>{class o{config=c(W);static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["nzModalCloseBuiltin"],attrs:Fn,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-close-icon",3,"nzType"]],template:function(t,n){t&1&&(_(0,"span",0),G(1,Bn,2,1,"ng-container",1),v()),t&2&&(m(),C("nzStringTemplateOutlet",n.config.nzCloseIcon))},dependencies:[zt,yt,Se,we],encapsulation:2,changeDetection:0})}return o})();function ho(o,i){return he(he({},i),o)}function ke(o,i,e){return typeof o>"u"?typeof i>"u"?e:i:o}function tn(o){let{nzCentered:i,nzMask:e,nzMaskClosable:t,nzClosable:n,nzOkLoading:s,nzOkDisabled:r,nzCancelDisabled:a,nzCancelLoading:l,nzKeyboard:d,nzNoAnimation:h,nzDraggable:D,nzContent:T,nzFooter:ce,nzZIndex:Ke,nzWidth:qe,nzWrapClassName:z,nzClassName:Qe,nzStyle:Me,nzTitle:de,nzCloseIcon:Ie,nzMaskStyle:Oe,nzBodyStyle:pn,nzOkText:gn,nzCancelText:fn,nzOkType:mn,nzOkDanger:un,nzIconType:_n,nzModalType:Cn,nzOnOk:vn,nzOnCancel:Dn,nzAfterOpen:yn,nzAfterClose:zn,nzCloseOnNavigation:bn,nzAutofocus:wn}=o;return{nzCentered:i,nzMask:e,nzMaskClosable:t,nzDraggable:D,nzClosable:n,nzOkLoading:s,nzOkDisabled:r,nzCancelDisabled:a,nzCancelLoading:l,nzKeyboard:d,nzNoAnimation:h,nzContent:T,nzFooter:ce,nzZIndex:Ke,nzWidth:qe,nzWrapClassName:z,nzClassName:Qe,nzStyle:Me,nzTitle:de,nzCloseIcon:Ie,nzMaskStyle:Oe,nzBodyStyle:pn,nzOkText:gn,nzCancelText:fn,nzOkType:mn,nzOkDanger:un,nzIconType:_n,nzModalType:Cn,nzOnOk:vn,nzOnCancel:Dn,nzAfterOpen:yn,nzAfterClose:zn,nzCloseOnNavigation:bn,nzAutofocus:wn}}function nn(){throw Error("Attempting to attach modal content after content is already attached")}var rn=(()=>{class o extends gi{document=c(me);cdr=c(ne);config=c(W);ngZone=c(Y);host=c(q);focusTrapFactory=c(Si);render=c(ti);overlayRef=c(ft);nzConfigService=c(Dt);animationType=c(Jt,{optional:!0});destroyRef=c(Xe);portalOutlet;modalElementRef;animationStateChanged=new g;containerClick=new g;cancelTriggered=new g;okTriggered=new g;state="enter";modalRef;isStringContent=!1;dir="ltr";elementFocusedBeforeModalWasOpened=null;focusTrap;mouseDown=!1;oldMaskStyle=null;get showMask(){let e=this.nzConfigService.getConfigForComponent(Ue)||{};return!!ke(this.config.nzMask,e.nzMask,!0)}get maskClosable(){let e=this.nzConfigService.getConfigForComponent(Ue)||{};return!!ke(this.config.nzMaskClosable,e.nzMaskClosable,!0)}constructor(){super(),this.dir=this.overlayRef.getDirection(),this.isStringContent=typeof this.config.nzContent=="string",yi(Ue,()=>this.updateMaskClassname()),this.destroyRef.onDestroy(()=>{this.setMaskExitAnimationClass(!0)})}onContainerClick(e){e.target===e.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(e){return this.portalOutlet.hasAttached()&&nn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this.portalOutlet.hasAttached()&&nn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(e)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||this.animationType==="NoopAnimations"}setModalTransformOrigin(){let e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){let t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),n=Di(this.elementFocusedBeforeModalWasOpened),s=n.left+t.width/2,r=n.top+t.height/2,a=`${s-e.offsetLeft}px ${r-e.offsetTop}px 0px`;this.render.setStyle(e,"transform-origin",a)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Ti(()=>this.host.nativeElement.focus())))}trapFocus(){let e=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{let t=this.document.activeElement;t!==e&&!e.contains(t)&&e.focus()}}restoreFocus(){let e=this.elementFocusedBeforeModalWasOpened;if(e&&typeof e.focus=="function"){let t=this.document.activeElement,n=this.host.nativeElement;(!t||t===this.document.body||t===n||n.contains(t))&&e.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();let e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add(H.enter),e.classList.add(H.enterActive),t&&(t.classList.add(ae.enter),t.classList.add(ae.enterActive))}setExitAnimationClass(){let e=this.modalElementRef.nativeElement;e.classList.add(H.leave),e.classList.add(H.leaveActive),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(e=!1){let t=this.overlayRef.backdropElement;if(t){if(this.animationDisabled()||e){t.classList.remove($e);return}t.classList.add(ae.leave),t.classList.add(ae.leaveActive)}}cleanAnimationClass(){if(this.animationDisabled())return;let e=this.overlayRef.backdropElement,t=this.modalElementRef.nativeElement;e&&(e.classList.remove(ae.enter),e.classList.remove(ae.enterActive)),t.classList.remove(H.enter),t.classList.remove(H.enterActive),t.classList.remove(H.leave),t.classList.remove(H.leaveActive)}setZIndexForBackdrop(){let e=this.overlayRef.backdropElement;e&&mt(this.config.nzZIndex)&&this.render.setStyle(e,"z-index",this.config.nzZIndex)}bindBackdropStyle(){let e=this.overlayRef.backdropElement;if(e){if(this.oldMaskStyle){let t=this.oldMaskStyle;Object.keys(t).forEach(n=>{this.render.removeStyle(e,n)}),this.oldMaskStyle=null}if(this.setZIndexForBackdrop(),typeof this.config.nzMaskStyle=="object"&&Object.keys(this.config.nzMaskStyle).length){let t=he({},this.config.nzMaskStyle);Object.keys(t).forEach(n=>{this.render.setStyle(e,n,t[n])}),this.oldMaskStyle=t}}}updateMaskClassname(){let e=this.overlayRef.backdropElement;e&&(this.showMask?e.classList.add($e):e.classList.remove($e))}onAnimationDone(e){e.toState==="enter"?this.trapFocus():e.toState==="exit"&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(e)}onAnimationStart(e){e.toState==="enter"?(this.setEnterAnimationClass(),this.bindBackdropStyle()):e.toState==="exit"&&this.setExitAnimationClass(),this.animationStateChanged.emit(e)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}setupMouseListeners(e){vt(this.host.nativeElement,"mouseup").pipe(se(this.destroyRef)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),vt(e.nativeElement,"mousedown").pipe(se(this.destroyRef)).subscribe(()=>{this.mouseDown=!0})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,features:[Fe]})}return o})(),an=(()=>{class o extends rn{i18n=c(Pt);set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}cancelTriggered=new g;okTriggered=new g;locale;constructor(){super(),this.i18n.localeChange.pipe(se()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,n){if(t&1&&(Ce(oe,7),Ce(on,7)),t&2){let s;F(s=B())&&(n._portalOutlet=s.first),F(s=B())&&(n._modalElementRef=s.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,n){t&1&&(ot("@modalContainer.start",function(r){return n.onAnimationStart(r)})("@modalContainer.done",function(r){return n.onAnimationDone(r)}),P("click",function(r){return n.onContainerClick(r)})),t&2&&(nt("@.disabled",n.config.nzNoAnimation)("@modalContainer",n.state),De(n.config.nzWrapClassName?"ant-modal-wrap "+n.config.nzWrapClassName:"ant-modal-wrap"),J("z-index",n.config.nzZIndex),ee("ant-modal-wrap-rtl",n.dir==="rtl")("ant-modal-centered",n.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[it([ht]),Fe],decls:17,vars:16,consts:[["modalElement",""],["role","document",1,"ant-modal"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],[3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(t,n){t&1&&(_(0,"div",1,0),st(2,"nzToCssUnit"),_(3,"div",2),b(4,Hn,1,0,"button",3),_(5,"div",4)(6,"div",5)(7,"div",6),O(8,"nz-icon",7),_(9,"span",8),G(10,Vn,2,1,"ng-container",9),v(),_(11,"div",10),G(12,Wn,0,0,"ng-template",11),b(13,Gn,1,1,"div",12),v()(),_(14,"div",13),b(15,jn,2,4,"button",14),b(16,Zn,2,6,"button",15),v()()()()()),t&2&&(ve(n.config.nzStyle),De(n.config.nzClassName),J("width",rt(2,14,n.config==null?null:n.config.nzWidth)),m(4),w(n.config.nzClosable?4:-1),m(),ve(n.config.nzBodyStyle),m(3),C("nzType",n.config.nzIconType),m(2),C("nzStringTemplateOutlet",n.config.nzTitle),m(3),w(n.isStringContent?13:-1),m(2),w(n.config.nzCancelText!==null?15:-1),m(),w(n.config.nzOkText!==null?16:-1))},dependencies:[Rt,zt,yt,Gt,Se,we,gt,oe,Tt,St,bt,wt,Et],encapsulation:2,data:{animation:[sn.modalContainer]}})}return o})(),ln=(()=>{class o{i18n=c(Pt);config=c(W);buttonsFooter=!1;buttons=[];locale;cancelTriggered=new g;okTriggered=new g;modalRef;constructor(){Array.isArray(this.config.nzFooter)&&(this.buttonsFooter=!0,this.buttons=this.config.nzFooter.map(po)),this.i18n.localeChange.pipe(se()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(e,t){let n=e[t],s=this.modalRef.getContentComponent();return typeof n=="function"?n.apply(e,s&&[s]):n}onButtonClick(e){if(!this.getButtonCallableProp(e,"loading")){let n=this.getButtonCallableProp(e,"onClick");e.autoLoading&&ut(n)&&(e.loading=!0,n.then(()=>e.loading=!1).catch(s=>{throw e.loading=!1,s}))}}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalFooterBuiltin"],attrs:$n,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(t,n){t&1&&b(0,Xn,1,5,"ng-container")(1,to,2,2),t&2&&w(n.config.nzFooter?0:1)},dependencies:[Se,we,Tt,St,bt,wt],encapsulation:2})}return o})();function po(o){return he({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},o)}var cn=(()=>{class o{config=c(W);static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["nzModalTitleBuiltin"],attrs:io,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,n){t&1&&(_(0,"div",0),G(1,no,2,1,"ng-container",1),v()),t&2&&(m(),C("nzStringTemplateOutlet",n.config.nzTitle))},dependencies:[Se,we],encapsulation:2,changeDetection:0})}return o})(),dn=(()=>{class o extends rn{set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Xt(o)))(n||o)}})();static \u0275cmp=M({type:o,selectors:[["nz-modal-container"]],viewQuery:function(t,n){if(t&1&&(Ce(oe,7),Ce(on,7)),t&2){let s;F(s=B())&&(n._portalOutlet=s.first),F(s=B())&&(n._modalElementRef=s.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,n){t&1&&(ot("@modalContainer.start",function(r){return n.onAnimationStart(r)})("@modalContainer.done",function(r){return n.onAnimationDone(r)}),P("click",function(r){return n.onContainerClick(r)})),t&2&&(nt("@.disabled",n.config.nzNoAnimation)("@modalContainer",n.state),De(n.config.nzWrapClassName?"ant-modal-wrap "+n.config.nzWrapClassName:"ant-modal-wrap"),J("z-index",n.config.nzZIndex),ee("ant-modal-wrap-rtl",n.dir==="rtl")("ant-modal-centered",n.config.nzCentered))},exportAs:["nzModalContainer"],features:[it([ht]),Fe],decls:10,vars:15,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(t,n){t&1&&(_(0,"div",1,0),st(2,"nzToCssUnit"),_(3,"div",2),b(4,oo,1,0,"button",3),b(5,so,1,2,"div",4),_(6,"div",5),G(7,ro,0,0,"ng-template",6),b(8,ao,1,1,"div",7),v(),b(9,lo,1,1,"div",8),v()()),t&2&&(ve(n.config.nzStyle),De(n.config.nzClassName),J("width",rt(2,13,n.config==null?null:n.config.nzWidth)),C("cdkDragDisabled",!n.config.nzDraggable),m(4),w(n.config.nzClosable?4:-1),m(),w(n.config.nzTitle?5:-1),m(),ve(n.config.nzBodyStyle),m(2),w(n.isStringContent?8:-1),m(),w(n.config.nzFooter!==null?9:-1))},dependencies:[Gt,cn,gt,oe,ln,Rt,Ji,Qi,Et],encapsulation:2,data:{animation:[sn.modalContainer]}})}return o})(),xe={OPEN:0,CLOSING:1,CLOSED:2},V={CANCEL:"cancel",OK:"ok"},le=class{overlayRef;config;containerInstance;componentInstance=null;componentRef=null;result;state=xe.OPEN;afterClose=new p;afterOpen=new p;closeTimeout;destroy$=new p;constructor(i,e,t){this.overlayRef=i,this.config=e,this.containerInstance=t,t.animationStateChanged.pipe(pe(n=>n.phaseName==="done"&&n.toState==="enter"),$(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),e.nzAfterOpen instanceof g&&e.nzAfterOpen.emit()}),t.animationStateChanged.pipe(pe(n=>n.phaseName==="done"&&n.toState==="exit"),$(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),t.containerClick.pipe(x(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger(V.CANCEL)}),i.keydownEvents().pipe(pe(n=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&n.keyCode===27&&!mi(n))).subscribe(n=>{n.preventDefault(),this.trigger(V.CANCEL)}),t.cancelTriggered.pipe(x(this.destroy$)).subscribe(()=>this.trigger(V.CANCEL)),t.okTriggered.pipe(x(this.destroy$)).subscribe(()=>this.trigger(V.OK)),i.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),e.nzAfterClose instanceof g&&e.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(i){this.close(i)}triggerOk(){return this.trigger(V.OK)}triggerCancel(){return this.trigger(V.CANCEL)}close(i){this.state===xe.OPEN&&(this.result=i,this.containerInstance.animationStateChanged.pipe(pe(e=>e.phaseName==="start"),$(1)).subscribe(e=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},e.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=xe.CLOSING)}updateConfig(i){Object.assign(this.config,i),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}async trigger(i){if(this.state===xe.CLOSING)return;let e={[V.OK]:{trigger:this.config.nzOnOk,loadingKey:"nzOkLoading"},[V.CANCEL]:{trigger:this.config.nzOnCancel,loadingKey:"nzCancelLoading"}},{trigger:t,loadingKey:n}=e[i];if(!this.config[n]){if(t instanceof g)t.emit(this.getContentComponent());else if(typeof t=="function"){let s=t(this.getContentComponent());if(ut(s)){this.config[n]=!0;let r=!1;try{r=await s}finally{this.config[n]=!1,this.closeWhitResult(r)}}else this.closeWhitResult(s)}}}closeWhitResult(i){i!==!1&&this.close(i)}_finishDialogClose(){this.state=xe.CLOSED,this.overlayRef.dispose(),this.destroy$.next()}},hn=(()=>{class o{injector=c(K);nzConfigService=c(Dt);directionality=c(ze);parentModal=c(o,{skipSelf:!0,optional:!0});openModalsAtThisLevel=[];afterAllClosedAtThisLevel=new p;get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){let e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel}afterAllClose=Kt(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(ge(void 0)));create(e){return this.open(e.nzContent,e)}closeAll(){this.closeModals(this.openModals)}confirm(e={},t="confirm"){return"nzFooter"in e&&vi(`The Confirm-Modal doesn't support "nzFooter", this property will be ignored.`),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=!1),e.nzModalType="confirm",e.nzClassName=`ant-modal-confirm ant-modal-confirm-${t} ${e.nzClassName||""}`,this.create(e)}info(e={}){return this.confirmFactory(e,"info")}success(e={}){return this.confirmFactory(e,"success")}error(e={}){return this.confirmFactory(e,"error")}warning(e={}){return this.confirmFactory(e,"warning")}open(e,t){let n=ho(t||{},new W),s=this.createOverlay(n),r=this.attachModalContainer(s,n),a=this.attachModalContent(e,r,s,n);return r.modalRef=a,zi(s,t?.nzZIndex),this.openModals.push(a),a.afterClose.subscribe(()=>this.removeOpenModal(a)),a}removeOpenModal(e){let t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next())}closeModals(e){let t=e.length;for(;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(e){let t=this.nzConfigService.getConfigForComponent(Ue)||{};return Ci(this.injector,{hasBackdrop:!0,scrollStrategy:ui(this.injector),backdropClass:ke(e.nzMask,t.nzMask,!0)?$e:"",positionStrategy:_i(this.injector),disposeOnNavigation:ke(e.nzCloseOnNavigation,t.nzCloseOnNavigation,!0),direction:ke(e.nzDirection,t.nzDirection,this.directionality.value)})}attachModalContainer(e,t){let n=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector,s=K.create({parent:n||this.injector,providers:[{provide:ft,useValue:e},{provide:W,useValue:t}]}),r=t.nzModalType==="confirm"?an:dn,a=new pt(r,t.nzViewContainerRef,s);return e.attach(a).instance}attachModalContent(e,t,n,s){let r=new le(n,s,t);if(e instanceof k)t.attachTemplatePortal(new pi(e,null,{$implicit:s.nzData,modalRef:r}));else if(mt(e)&&typeof e!="string"){let a=this.createInjector(r,s),l=t.attachComponentPortal(new pt(e,s.nzViewContainerRef,a));r.componentRef=l,r.componentInstance=l.instance}else t.attachStringContent();return r}createInjector(e,t){let n=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector;return K.create({parent:n||this.injector,providers:[{provide:le,useValue:e},{provide:co,useValue:t.nzData}]})}confirmFactory(e={},t){let n={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"};return"nzIconType"in e||(e.nzIconType=n[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=fe({token:o,factory:o.\u0275fac})}return o})(),go=(()=>{class o{templateRef=c(k);static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]})}return o})(),fo=(()=>{class o{templateRef=c(k);nzModalRef=c(le,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzFooter:this.templateRef})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]})}return o})(),mo=(()=>{class o{templateRef=c(k);nzModalRef=c(le,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzTitle:this.templateRef})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=I({type:o,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]})}return o})(),ws=(()=>{class o{cdr=c(ne);modal=c(hn);viewContainerRef=c(Le);destroyRef=c(Xe);nzMask;nzMaskClosable;nzCloseOnNavigation;nzVisible=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzKeyboard=!0;nzNoAnimation=!1;nzCentered=!1;nzDraggable=!1;nzContent;nzFooter;nzZIndex=1e3;nzWidth=520;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzCloseIcon="close";nzMaskStyle;nzBodyStyle;nzOkText;nzCancelText;nzOkType="primary";nzOkDanger=!1;nzIconType="question-circle";nzModalType="default";nzAutofocus="auto";nzOnOk=new g;nzOnCancel=new g;nzAfterOpen=new g;nzAfterClose=new g;nzVisibleChange=new g;set modalTitle(e){e&&this.setTitleWithTemplate(e)}contentFromContentChild;set modalFooter(e){e&&this.setFooterWithTemplate(e)}modalRef=null;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(){this.destroyRef.onDestroy(()=>{this.modalRef?._finishDialogClose()})}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){let e=this.getConfig();this.modalRef=this.modal.create(e),this.modalRef.afterClose.asObservable().pipe(se(this.destroyRef)).subscribe(()=>{this.close()})}}close(e){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(e),this.modalRef=null)}destroy(e){this.close(e)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(e){this.nzTitle=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(e){this.nzFooter=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){let e=tn(this);return e.nzViewContainerRef=this.viewContainerRef,e.nzContent=this.nzContent||this.contentFromContentChild,e}ngOnChanges(e){let s=e,{nzVisible:t}=s,n=jt(s,["nzVisible"]);Object.keys(n).length&&this.modalRef&&this.modalRef.updateConfig(tn(this)),t&&(this.nzVisible?this.open():this.close())}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=M({type:o,selectors:[["nz-modal"]],contentQueries:function(t,n,s){if(t&1&&(Be(s,mo,7,k),Be(s,go,7,k),Be(s,fo,7,k)),t&2){let r;F(r=B())&&(n.modalTitle=r.first),F(r=B())&&(n.contentFromContentChild=r.first),F(r=B())&&(n.modalFooter=r.first)}},inputs:{nzMask:[2,"nzMask","nzMask",u],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",u],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",u],nzVisible:[2,"nzVisible","nzVisible",u],nzClosable:[2,"nzClosable","nzClosable",u],nzOkLoading:[2,"nzOkLoading","nzOkLoading",u],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",u],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",u],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",u],nzKeyboard:[2,"nzKeyboard","nzKeyboard",u],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",u],nzCentered:[2,"nzCentered","nzCentered",u],nzDraggable:[2,"nzDraggable","nzDraggable",u],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",Ve],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",u],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[Ae],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}return o})(),Ss=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=X({type:o});static \u0275inj=U({providers:[hn],imports:[Gt,ln,cn,dn,an]})}return o})();export{Qi as a,Ji as b,Lo as c,Fo as d,co as e,le as f,hn as g,go as h,fo as i,mo as j,ws as k,Ss as l};
@@ -0,0 +1,11 @@
1
+ import{j as on}from"./chunk-AMXRL4GR.js";import{f as nn}from"./chunk-ZTDLWBW5.js";import{e as sn}from"./chunk-DIJPUYIA.js";import{a as rn,b as Ie}from"./chunk-QJP5F735.js";import{a as an}from"./chunk-UJKK4A7Y.js";import"./chunk-75W3GVSO.js";import"./chunk-OZCK4XVV.js";import"./chunk-AELTP6YN.js";import{f as tn}from"./chunk-FXCG34QS.js";import{d as De,e as Ne,f as Se}from"./chunk-3XNNQFWR.js";import{e as Kt,g as Jt,h as Gt}from"./chunk-YNW4HEJO.js";import{g as $t,h as At,i as Lt,k as Qt,l as Wt}from"./chunk-4X42HB6N.js";import{d as Xt,k as Yt,m as en,o as yn}from"./chunk-2NZJ7CN2.js";import{Fb as Me,Ga as ee,Ha as $,Hb as re,Ia as et,Ja as tt,L as B,Lb as se,Na as Ft,Oa as Rt,Pa as ze,Qa as ve,Sa as Ee,Ta as be,Vb as le,Wa as Te,Wb as Ut,Xb as we,_b as Zt,a as Ot,ac as ce,c as Pt,cc as Ht,dc as Z,gb as jt,gc as nt,hb as Bt,ic as me,la as Xe,ma as Vt,ra as Ye,ta as kt,tb as qt,va as ae}from"./chunk-3CM4SKDO.js";import"./chunk-HFZLJHYR.js";import{h as Ge}from"./chunk-WUA5JFDD.js";import{i as It,n as O}from"./chunk-KRYMOHYF.js";import{$b as N,Ac as U,Ba as Ct,Bb as xt,Ca as gt,Da as _e,Ec as Mt,Fb as w,Fc as ye,Gb as Q,Gc as de,Ha as I,Hb as zt,Jc as m,Kc as V,Lb as J,Lc as F,Oa as Ue,Oc as Ze,Pc as He,Qc as Ke,Ra as he,Ub as vt,Wb as y,X as ut,Yb as x,Yc as Y,Zb as Et,Zc as wt,a as H,ac as S,b as K,bc as f,cc as s,dc as l,dd as Dt,e as hn,ea as qe,ec as T,f as We,g as dt,ic as G,id as j,jc as X,jd as Nt,lc as v,m as mt,na as ft,nb as p,oa as L,od as Je,r as ie,rc as C,s as P,sa as u,sb as b,tb as _t,uc as r,ud as xe,vb as ht,vc as bt,wc as Tt,ya as _,yb as yt,yc as W,yd as oe,z as ge,za as h,zc as q,zd as St}from"./chunk-4BRW6LCZ.js";var it=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=zt({type:t,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(i,o){i&2&&ye("border","0")("background","transparent")("padding","0")("line-height","inherit")}})}return t})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({})}return t})();function vn(t,n){if(t&1&&(G(0),T(1,"nz-icon",2),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}var En=["textarea"];function bn(t,n){if(t&1){let e=v();s(0,"textarea",2,0),C("blur",function(){_(e);let o=r();return h(o.confirm())}),l(),s(2,"button",3),C("click",function(){_(e);let o=r();return h(o.confirm())}),T(3,"nz-icon",4),l()}}function Tn(t,n){if(t&1&&(G(0),T(1,"nz-icon",7),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}function Mn(t,n){if(t&1){let e=v();s(0,"button",5),C("click",function(){_(e);let o=r();return h(o.onClick())}),J(1,Tn,2,1,"ng-container",6),l()}if(t&2){let e=r();f("nzTooltipTitle",e.tooltip===null?null:e.tooltip||(e.locale==null?null:e.locale.edit)),p(),f("nzStringTemplateOutlet",e.icon)}}var wn=["ellipsisContainer"],Dn=["expandable"],Nn=["contentTemplate"],Sn=["*"],In=t=>({content:t});function On(t,n){t&1&&Tt(0)}function Pn(t,n){if(t&1&&(y(0,On,1,0),m(1)),t&2){let e=n.content;x(e?-1:0),p(),F(" ",e," ")}}function Vn(t,n){}function kn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Fn(t,n){if(t&1&&(J(0,Vn,0,0,"ng-template",5),y(1,kn,1,1)),t&2){let e=r(2),i=Mt(1);f("ngTemplateOutlet",i)("ngTemplateOutletContext",wt(3,In,e.nzContent)),p(),x(e.nzSuffix?1:-1)}}function Rn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.ellipsisStr," ")}}function jn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Bn(t,n){if(t&1){let e=v();s(0,"a",7,2),C("click",function(){_(e);let o=r(3);return h(o.onExpand())}),m(2),l()}if(t&2){let e=r(3);p(2),F(" ",e.locale==null?null:e.locale.expand," ")}}function $n(t,n){if(t&1&&(T(0,"span",null,1),y(2,Rn,1,1),y(3,jn,1,1),y(4,Bn,3,1,"a",6)),t&2){let e=r(2);p(2),x(e.isEllipsis?2:-1),p(),x(e.nzSuffix?3:-1),p(),x(e.nzExpandable&&e.isEllipsis?4:-1)}}function An(t,n){if(t&1&&y(0,Fn,2,5)(1,$n,5,3),t&2){let e=r();x(e.expanded||!e.hasOperationsWithEllipsis&&e.nzEllipsisRows===1&&!e.hasEllipsisObservers||e.canCssEllipsis||e.nzSuffix&&e.expanded?0:1)}}function Ln(t,n){if(t&1){let e=v();s(0,"nz-text-edit",8),C("endEditing",function(o){_(e);let a=r();return h(a.onEndEditing(o))})("startEditing",function(){_(e);let o=r();return h(o.onStartEditing())}),l()}if(t&2){let e=r();f("text",e.nzContent)("icon",e.nzEditIcon)("tooltip",e.nzEditTooltip)}}function Qn(t,n){if(t&1){let e=v();s(0,"nz-text-copy",9),C("textCopy",function(o){_(e);let a=r();return h(a.onTextCopy(o))}),l()}if(t&2){let e=r();f("text",e.copyText)("tooltips",e.nzCopyTooltips)("icons",e.nzCopyIcons)}}var at=(()=>{class t{cdr=u(xe);clipboard=u(an);i18n=u(Te);destroyRef=u(_e);copied=!1;copyId;locale;nativeElement=u(he).nativeElement;copyTooltip=null;copedTooltip=null;copyIcon="copy";copedIcon="check";text;tooltips;icons=["copy","check"];textCopy=new b;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.copyId)})}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(e){let{tooltips:i,icons:o}=e;i&&this.updateTooltips(),o&&this.updateIcons()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();let e=this.text;this.textCopy.emit(e),this.clipboard.copy(e),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(this.tooltips===null)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){let[e,i]=this.tooltips;this.copyTooltip=e||this.locale?.copy,this.copedTooltip=i||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){let[e,i]=this.icons;this.copyIcon=e,this.copedIcon=i,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[Ue],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&(s(0,"button",0),C("click",function(){return o.onClick()}),J(1,vn,2,1,"ng-container",1),l()),i&2&&(de("ant-typography-copy-success",o.copied),f("nzTooltipTitle",o.copied?o.copedTooltip:o.copyTooltip),p(),f("nzStringTemplateOutlet",o.copied?o.copedIcon:o.copyIcon))},dependencies:[me,nt,ot,it,$,ee,tt,et],encapsulation:2,changeDetection:0})}return t})(),rt=(()=>{class t{ngZone=u(_t);cdr=u(xe);i18n=u(Te);destroyRef=u(_e);editing=!1;locale;text;icon="edit";tooltip;startEditing=new b;endEditing=new b(!0);set textarea(e){this.textarea$.next(e)}autosizeDirective;beforeText;currentText;nativeElement=u(he).nativeElement;textarea$=new mt(null);injector=u(Ct);ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"keydown")),B(this.destroyRef)).subscribe(e=>{e.keyCode!==27&&e.keyCode!==13||this.ngZone.run(()=>{e.keyCode===27?this.onCancel():this.onEnter(e),this.cdr.markForCheck()})}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"input")),B(this.destroyRef)).subscribe(e=>{this.currentText=e.target.value})}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onEnter(e){e.stopPropagation(),e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){let{injector:e}=this;ht(()=>{this.textarea$.pipe(ut(i=>i!=null),B(this.destroyRef)).subscribe(i=>{i.nativeElement.focus(),i.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-edit"]],viewQuery:function(i,o){if(i&1&&(W(En,5),W(we,5)),i&2){let a;q(a=U())&&(o.textarea=a.first),q(a=U())&&(o.autosizeDirective=a.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:1,consts:[["textarea",""],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&y(0,bn,4,0)(1,Mn,2,2,"button",1),i&2&&x(o.editing?0:1)},dependencies:[Z,ce,we,ot,it,$,ee,me,nt,tt,et],encapsulation:2,changeDetection:0})}return t})(),Wn="typography",qn="ant-typography-expand",Un=(()=>{var k;let t,n=[],e=[],i,o=[],a=[],E,D=[],z=[],R,fe=[],Ce=[],lt,ct=[],pt=[];return k=class{_nzModuleName=Wn;nzConfigService=u(kt);el=u(he).nativeElement;cdr=u(xe);viewContainerRef=u(xt);renderer=u(yt);platform=u(Pt);i18n=u(Te);resizeService=u(qt);directionality=u(Ot);document=u(gt);destroyRef=u(_e);nzCopyable=!1;nzEditable=!1;nzDisabled=!1;nzExpandable=!1;nzEllipsis=!1;nzCopyTooltips=P(this,n,void 0);nzCopyIcons=(P(this,e),P(this,o,["copy","check"]));nzEditTooltip=(P(this,a),P(this,D,void 0));nzEditIcon=(P(this,z),P(this,fe,"edit"));nzContent=P(this,Ce);nzEllipsisRows=P(this,ct,1);nzType=P(this,pt);nzCopyText;nzSuffix;nzContentChange=new b;nzCopy=new b;nzExpandChange=new b;nzOnEllipsis=new b;textEditRef;textCopyRef;ellipsisContainer;expandableBtn;contentTemplate;locale;expandableBtnElementCache=null;editing=!1;ellipsisText;cssEllipsis=!1;isEllipsis=!0;expanded=!1;ellipsisStr="...";dir="ltr";get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}viewInit=!1;requestId=-1;windowResizeSubscription=dt.EMPTY;get copyText(){return typeof this.nzCopyText=="string"?this.nzCopyText:this.nzContent}constructor(){this.destroyRef.onDestroy(()=>{this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()})}onTextCopy(g){this.nzCopy.emit(g)}onStartEditing(){this.editing=!0}onEndEditing(g){this.editing=!1,this.nzContentChange.emit(g),this.nzContent===g&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers?!1:this.nzEllipsisRows===1?Xe("textOverflow"):Xe("webkitLineClamp")}renderOnNextFrame(){Bt(this.requestId),!(!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser)&&(this.requestId=jt(()=>this.syncEllipsis()))}getOriginContentViewRef(){let g=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return g.detectChanges(),{viewRef:g,removeView:()=>this.viewContainerRef.remove(this.viewContainerRef.indexOf(g))}}syncEllipsis(){if(this.cssEllipsis)return;let{viewRef:g,removeView:d}=this.getOriginContentViewRef(),c=[this.textCopyRef,this.textEditRef].filter(ne=>ne&&ne.nativeElement).map(ne=>ne.nativeElement),M=this.getExpandableBtnElement();M&&c.push(M);let{contentNodes:Le,text:Qe,ellipsis:pe}=Vt(this.el,this.nzEllipsisRows,g.rootNodes,c,this.ellipsisStr,this.nzSuffix);d(),this.ellipsisText=Qe,pe!==this.isEllipsis&&(this.isEllipsis=pe,this.nzOnEllipsis.emit(pe));let te=this.ellipsisContainer.nativeElement;for(;te.firstChild;)this.renderer.removeChild(te,te.firstChild);Le.forEach(ne=>{this.renderer.appendChild(te,ne.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){let g=this.locale?this.locale.expand:"",d=this.expandableBtnElementCache;if(!d||d.innerText===g){let c=this.document.createElement("a");c.className=qn,c.innerText=g,this.expandableBtnElementCache=c}return this.expandableBtnElementCache}else return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.connect().pipe(B(this.destroyRef)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe(B(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(g){let{nzCopyable:d,nzEditable:c,nzExpandable:M,nzEllipsis:Le,nzContent:Qe,nzEllipsisRows:pe,nzSuffix:te}=g;(d||c||M||Le||Qe||pe||te)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ae()],i=[ae()],E=[ae()],R=[ae()],lt=[ae()],ie(null,null,t,{kind:"field",name:"nzCopyTooltips",static:!1,private:!1,access:{has:d=>"nzCopyTooltips"in d,get:d=>d.nzCopyTooltips,set:(d,c)=>{d.nzCopyTooltips=c}},metadata:g},n,e),ie(null,null,i,{kind:"field",name:"nzCopyIcons",static:!1,private:!1,access:{has:d=>"nzCopyIcons"in d,get:d=>d.nzCopyIcons,set:(d,c)=>{d.nzCopyIcons=c}},metadata:g},o,a),ie(null,null,E,{kind:"field",name:"nzEditTooltip",static:!1,private:!1,access:{has:d=>"nzEditTooltip"in d,get:d=>d.nzEditTooltip,set:(d,c)=>{d.nzEditTooltip=c}},metadata:g},D,z),ie(null,null,R,{kind:"field",name:"nzEditIcon",static:!1,private:!1,access:{has:d=>"nzEditIcon"in d,get:d=>d.nzEditIcon,set:(d,c)=>{d.nzEditIcon=c}},metadata:g},fe,Ce),ie(null,null,lt,{kind:"field",name:"nzEllipsisRows",static:!1,private:!1,access:{has:d=>"nzEllipsisRows"in d,get:d=>d.nzEllipsisRows,set:(d,c)=>{d.nzEllipsisRows=c}},metadata:g},ct,pt),g&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),We(k,"\u0275fac",function(d){return new(d||k)}),We(k,"\u0275cmp",w({type:k,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(d,c){if(d&1&&(W(rt,5),W(at,5),W(wn,5),W(Dn,5),W(Nn,5)),d&2){let M;q(M=U())&&(c.textEditRef=M.first),q(M=U())&&(c.textCopyRef=M.first),q(M=U())&&(c.ellipsisContainer=M.first),q(M=U())&&(c.expandableBtn=M.first),q(M=U())&&(c.contentTemplate=M.first)}},hostVars:26,hostBindings:function(d,c){d&2&&(ye("-webkit-line-clamp",c.canCssEllipsis&&c.nzEllipsisRows>1?c.nzEllipsisRows:null),de("ant-typography",!c.editing)("ant-typography-rtl",c.dir==="rtl")("ant-typography-edit-content",c.editing)("ant-typography-secondary",c.nzType==="secondary")("ant-typography-warning",c.nzType==="warning")("ant-typography-danger",c.nzType==="danger")("ant-typography-success",c.nzType==="success")("ant-typography-disabled",c.nzDisabled)("ant-typography-ellipsis",c.nzEllipsis&&!c.expanded)("ant-typography-single-line",c.nzEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-single-line",c.canCssEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-multiple-line",c.canCssEllipsis&&c.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",oe],nzEditable:[2,"nzEditable","nzEditable",oe],nzDisabled:[2,"nzDisabled","nzDisabled",oe],nzExpandable:[2,"nzExpandable","nzExpandable",oe],nzEllipsis:[2,"nzEllipsis","nzEllipsis",oe],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",St],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[Ue],ngContentSelectors:Sn,decls:5,vars:3,consts:[["contentTemplate",""],["ellipsisContainer",""],["expandable",""],[3,"text","icon","tooltip"],[3,"text","tooltips","icons"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-typography-expand"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(d,c){d&1&&(bt(),J(0,Pn,2,2,"ng-template",null,0,Dt),y(2,An,2,1),y(3,Ln,1,3,"nz-text-edit",3),y(4,Qn,1,3,"nz-text-copy",4)),d&2&&(p(2),x(c.editing?-1:2),p(),x(c.nzEditable?3:-1),p(),x(c.nzCopyable&&!c.editing?4:-1))},dependencies:[It,rt,at],encapsulation:2,changeDetection:0})),k})(),pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Un,at,rt]})}return t})();var ue=hn(yn());function Jn(t,n){if(t&1){let e=v();s(0,"div",0)(1,"span",1),m(2,"\u6709\u672A\u4FDD\u5B58\u66F4\u6539"),l(),s(3,"button",2),C("click",function(){_(e);let o=r();return h(o.diff.emit())}),m(4,"Diff"),l(),s(5,"button",2),C("click",function(){_(e);let o=r();return h(o.reset.emit())}),m(6,"\u91CD\u7F6E"),l(),s(7,"button",3),C("click",function(){_(e);let o=r();return h(o.save.emit())}),m(8,"\u4FDD\u5B58"),l()()}}var Oe=class t{dirty=!1;diff=new b;reset=new b;save=new b;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-change-bar-component"]],inputs:{dirty:"dirty"},outputs:{diff:"diff",reset:"reset",save:"save"},decls:1,vars:1,consts:[[1,"change-bar"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,i){e&1&&y(0,Jn,9,0,"div",0),e&2&&x(i.dirty?0:-1)},dependencies:[O,be,Ee,ze,ve],styles:[".change-bar[_ngcontent-%COMP%]{width:100%;padding:10px 20px;display:flex;justify-content:flex-end;align-items:center;gap:10px;box-shadow:0 -2px 8px #0000000f;background:var(--app-component-bg);border:1px solid var(--app-border-color)}.hint[_ngcontent-%COMP%]{margin-right:auto;opacity:.75}"]})};var Gn=(t,n)=>n.id;function Xn(t,n){if(t&1){let e=v();s(0,"div",6),C("click",function(){let o=_(e).$implicit,a=r();return h(a.selectDomain(o))}),s(1,"div",7)(2,"div",8),T(3,"nz-icon",9),l(),s(4,"div",10)(5,"div",11),m(6),l(),s(7,"div",12),m(8),l()()()()}if(t&2){let e=n.$implicit,i=r();de("active",e.id===i.activeDomainId()),p(3),f("nzType",e.icon||"setting"),p(3),V(e.label),p(2),V(e.description)}}var Ve=class t{keyword=I("");nodes=Je([]);activeDomainId=Je("");domainSelect=new b;selectDomain(n){this.domainSelect.emit(n.id)}filtered=j(()=>{let n=this.keyword().trim().toLowerCase();return n?this.nodes().map(e=>K(H({},e),{children:(e.children??[]).filter(i=>(i.label??"").toLowerCase().includes(n)||(i.relPath??"").toLowerCase().includes(n))})).filter(e=>(e.children?.length??0)>0):this.nodes()});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-nav-component"]],inputs:{nodes:[1,"nodes"],activeDomainId:[1,"activeDomainId"]},outputs:{domainSelect:"domainSelect"},decls:8,vars:1,consts:[[1,"list"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","",3,"ngModelChange","ngModel"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],[1,"row"],[1,"icon"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],[1,"info"],[1,"name"],[1,"description"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),T(3,"nz-icon",2),s(4,"input",3),C("ngModelChange",function(a){return i.keyword.set(a)}),l()()(),s(5,"div",4),N(6,Xn,9,5,"div",5,Gn),l()()),e&2&&(p(4),f("ngModel",i.keyword()),p(2),S(i.filtered()))},dependencies:[O,le,Me,re,se,Z,ce,Ht,Zt,$,ee],styles:[".list[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;height:0;display:flex;flex-direction:column;gap:8px;padding:8px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%]{background:var(--app-primary-2)}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function ke(t,n){return n.split(".").reduce((e,i)=>e?e[i]:void 0,t)}function mn(t,n,e){let i=n.split("."),o=i.pop(),a=t;for(let E of i)a[E]??={},a=a[E];a[o]=e}function un(t){return t.sort((n,e)=>(n.domain?.nav?.order??0)-(e.domain?.nav?.order??0)).map(n=>({id:n.domain.id,type:"domain",label:n.domain.label,icon:n.domain.icon,description:n.domain.description,children:(n.docs??[]).map(e=>({id:e.spec.id,type:"doc",label:e.spec.title,docId:e.spec.id,relPath:e.chosen?.relPath,codec:e.chosen?.codec,exists:e.exists}))}))}var fn=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function Fe(t,n,e,i=""){if(e===void 0)return[];if(!fn(e))return[{scope:t,target:n,path:i||"/",value:e}];let o=[],a=Object.keys(e);if(a.length===0)return o.push({scope:t,target:n,path:i||"/",value:{}}),o;for(let E of a){let D=i?`${i}.${E}`:E,z=e[E];fn(z)?o.push(...Fe(t,n,z,D)):o.push({scope:t,target:n,path:D,value:z})}return o}var Cn=(t,n)=>n.value,ei=(t,n)=>n.key;function ti(t,n){if(t&1&&(s(0,"div",3),m(1),l()),t&2){let e=r();p(),F(" ",e.item.desc," ")}}function ni(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function ii(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function oi(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r();p(),V(e.value)}}function ai(t,n){if(t&1&&(s(0,"nz-space",6),T(1,"nz-icon",9),s(2,"span"),m(3),l()()),t&2){let e=r();p(3),V(e.value)}}function ri(t,n){if(t&1){let e=v();s(0,"nz-switch",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function si(t,n){if(t&1&&T(0,"nz-option",11),t&2){let e=n.$implicit;f("nzValue",e.value)("nzLabel",e.label)}}function li(t,n){if(t&1){let e=v();s(0,"nz-select",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),N(1,si,1,2,"nz-option",11,Cn),l()}if(t&2){let e=r();f("ngModel",e.value),p(),S(e.options)}}function ci(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r().$index;p(),V(e+1)}}function pi(t,n){t&1&&T(0,"nz-icon",12)}function di(t,n){if(t&1&&(T(0,"nz-icon",9),s(1,"span"),m(2),l(),y(3,pi,1,0,"nz-icon",12)),t&2){let e=n.$implicit,i=r().$implicit,o=r(3);p(2),F(" ",i==null?null:i[e.key]," "),p(),x(e!==o.arrayFields()[o.arrayFields().length-1]?3:-1)}}function mi(t,n){if(t&1&&(s(0,"nz-space"),y(1,ci,2,1,"span"),N(2,di,4,2,null,null,ei),l()),t&2){let e=r(3);p(),x(e.arrayValue().length>1?1:-1),p(),S(e.arrayFields())}}function ui(t,n){if(t&1&&N(0,mi,4,1,"nz-space",null,Et),t&2){let e=r(2);S(e.arrayValue())}}function fi(t,n){t&1&&(s(0,"span"),m(1,"\u6570\u7EC4\u7C7B\u578B\u914D\u7F6E\u9879\uFF0C\u6682\u4E0D\u652F\u6301\u8868\u5355\u7F16\u8F91"),l())}function Ci(t,n){if(t&1&&y(0,ui,2,0)(1,fi,2,0,"span"),t&2){let e=r();x(e.isArrayObjectEditor()?0:1)}}function gi(t,n){if(t&1&&(s(0,"nz-space")(1,"span",2),m(2),l(),s(3,"span",14),m(4),l()()),t&2){let e=n.$implicit;p(2),F("",e.label,":"),p(2),V(e.value)}}function _i(t,n){if(t&1&&(s(0,"div",13),N(1,gi,5,2,"nz-space",null,Cn),l()),t&2){let e=r(2);p(),S(e.objectKv())}}function hi(t,n){if(t&1&&y(0,_i,3,0,"div",13),t&2){let e=r();x(e.isObjectEditor()?0:-1)}}var Re=class t{item;value;valueChange=new b;options=[];emit(n){this.valueChange.emit(n)}isObjectEditor(){return this.item?.type==="object"}objectKv(){let n=this.value??{};return Object.values(n).map((e,i)=>typeof e=="string"?{label:Object.keys(n)[i],value:e}:{label:Object.keys(n)[i],value:JSON.stringify(e)})}isArrayObjectEditor(){return this.item?.type==="array"&&this.item?.item?.type==="object"&&Array.isArray(this.item?.item?.fields)&&this.item.item.fields.length>0}arrayFields(){return this.item?.item?.fields??[]}arrayValue(){return Array.isArray(this.value)?this.value:[]}addRow(){let n=this.arrayFields(),e={};for(let o of n)o.key&&(e[o.key]=o.default??"");let i=[...this.arrayValue(),e];this.emit(i)}removeRow(n){let i=this.arrayValue().filter((o,a)=>a!==n);this.emit(i)}updateCell(n,e,i){let a=this.arrayValue().map((E,D)=>D!==n?E:K(H({},E??{}),{[e]:i}));this.emit(a)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-item-component"]],inputs:{item:"item",value:"value",options:"options"},outputs:{valueChange:"valueChange"},decls:14,vars:3,consts:[[1,"config-item"],[1,"meta"],[1,"label"],[1,"desc"],[1,"control"],["nz-input","",3,"ngModel"],["nzAlign","center"],[3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],["nzType","file","nzTheme","fill"],[3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nzType","arrow-right","nzTheme","outline"],[1,"kv"],[1,"value"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3),l(),y(4,ti,2,1,"div",3),l(),s(5,"div",4),y(6,ni,1,1,"input",5)(7,ii,1,1,"input",5)(8,oi,2,1,"span")(9,ai,4,1,"nz-space",6)(10,ri,1,1,"nz-switch",7)(11,li,3,1,"nz-select",7)(12,Ci,2,1)(13,hi,1,1),l()()),e&2){let o;p(3),V(i.item.label),p(),x(i.item.desc?4:-1),p(2),x((o=i.item.type)==="input"?6:o==="path"?7:o==="string"?8:o==="file"?9:o==="boolean"?10:o==="select"?11:o==="array"?12:o==="object"?13:-1)}},dependencies:[O,le,Me,re,se,$,ee,Ie,rn,Z,ce,Se,De,Ne,Rt,Ft,on],styles:[".config-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.config-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-2)}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;opacity:.75}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:4px;opacity:.55}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%]{min-width:200px;max-width:600px;width:60%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] input[nz-input][_ngcontent-%COMP%], .config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] .kv[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}"]})};var st=()=>[],yi=(t,n)=>n.id,gn=(t,n)=>n.key;function xi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(5);return h(E.onValueChange(o,a))}),l()}if(t&2){let e=n.$implicit,i=r(2).$implicit,o=r(3);f("item",e)("options",e.options||o.options[e.optionsRef==null?null:e.optionsRef.key]||Y(3,st))("value",o.getChild(e,i))}}function zi(t,n){if(t&1&&N(0,xi,1,4,"app-config-item-component",4,gn),t&2){let e=r().$implicit;S(e.children)}}function vi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(3);return h(E.onValueChange(o,a))}),l(),y(1,zi,2,0)}if(t&2){let e=n.$implicit,i=r(3);f("item",e)("options",e.options||i.options[e.optionsRef==null?null:e.optionsRef.key]||Y(4,st))("value",i.get(e)),p(),x(e.children!=null&&e.children.length?1:-1)}}function Ei(t,n){if(t&1&&(s(0,"section",1)(1,"h3",2),m(2),l(),N(3,vi,2,5,null,null,gn),l()),t&2){let e=n.$implicit;vt("id",e.id),p(2),V(e.label),p(),S(e.items)}}function bi(t,n){if(t&1&&N(0,Ei,5,2,"section",1,yi),t&2){let e=r().schema.sections||Y(0,st);S(e)}}function Ti(t,n){t&1&&(s(0,"div",0),m(1," \u8BE5\u914D\u7F6E\u6682\u4E0D\u652F\u6301\u8868\u5355\u6A21\u5F0F\uFF08\u53EF\u5207\u6362 Raw / \u6216\u7A0D\u540E\u5B9E\u73B0 provider\uFF09 "),l())}var je=class t{schema;vm;options={};vmChange=new b;get(n){let e=ke(this.vm,n.key);return e??n.default}getChild(n,e){let i=this.get(e);if(i==null||i==="")return n.default;let o=this.resolveDynamicPath(n.key,e.key,i),a=ke(this.vm,o);return a??n.default}onValueChange(n,e){let i=this.resolvePathForWrite(e);this.update(i,n)}resolvePathForWrite(n){let e=n.key||"",i=e.match(/<([^>]+)>/);if(!i)return e;let o=i[1],a=ke(this.vm,o);return this.resolveDynamicPath(e,o,a)}resolveDynamicPath(n,e,i){let o=`<${e}>`;return n.replace(o,String(i??""))}update(n,e){let i=structuredClone(this.vm);mn(i,n,e),this.vmChange.emit(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-section-component"]],inputs:{schema:"schema",vm:"vm",options:"options"},outputs:{vmChange:"vmChange"},decls:2,vars:1,consts:[[1,"empty"],[1,"section"],[1,"section-title"],[3,"valueChange","item","options","value"],[3,"item","options","value"]],template:function(e,i){e&1&&y(0,bi,2,1)(1,Ti,2,0,"div",0),e&2&&x(i.schema?0:1)},dependencies:[O,Re],styles:[".section[_ngcontent-%COMP%]{padding:0}.section[_ngcontent-%COMP%]:last-child{border-bottom:none}.section-title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:24px;opacity:.85;font-weight:500;padding:0 16px}.empty[_ngcontent-%COMP%]{padding:12px 14px}"]})};var Be=class t{api=u(Yt);getCatalog(n){return this.api.get(`/api/config/catalog/${n}`)}openInEditor(n,e){return this.api.post(`/api/config/openInEditor/${n}/${encodeURIComponent(e)}`,{})}writeDomainSchema(n,e,i){return this.api.post(`/api/config/writeSchema/${n}/${e}`,{vm:i})}getDomainSchemas(n,e){return this.api.get(`/api/config/getDomainSchema/${n}/${e}`)}diffDomainSchema(n,e,i){return this.api.post(`/api/config/diffSchema/${n}/${e}`,{vm:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mi=["class","component"],wi=()=>({}),Di=()=>[],Ni=(t,n)=>n.docId;function Si(t,n){if(t&1&&T(0,"nz-option",13),t&2){let e=n.$implicit;f("nzLabel",e.title)("nzValue",e.docId)}}function Ii(t,n){if(t&1){let e=v();G(0),s(1,"div",11)(2,"label"),m(3,"\u9009\u62E9\u914D\u7F6E\u6587\u4EF6"),l(),s(4,"nz-select",12),Ke("ngModelChange",function(o){_(e);let a=r();return He(a.selectedDocId,o)||(a.selectedDocId=o),h(o)}),N(5,Si,1,2,"nz-option",13,Ni),l()(),X()}if(t&2){let e=r();p(4),Ze("ngModel",e.selectedDocId),p(),S(e.activeDocsMeta()||Y(1,Di))}}function Oi(t,n){if(t&1){let e=v();G(0),s(1,"button",14),C("click",function(){_(e);let o=r();return h(o.openConfig())}),m(2," \u6253\u5F00\u914D\u7F6E\u6587\u4EF6 "),l(),X()}if(t&2){let e=r();p(),f("disabled",!e.selectedDocId())}}var $e=class t{api=u(Be);projectContext=u(en);msg=u(Xt);modal=u($t);projectId=j(()=>this.projectContext.currentProjectId()||"");loading=I(!1);isModalVisible=I(!1);catalog=I(null);navNodes=j(()=>un(this.catalog()??[]));activeDomainId=I(null);selectedDocId=I(null);docStates=I({});domainSchema=I(null);domainVM=I(null);baselineDomainVM=I(null);activeDomain=j(()=>{let n=this.activeDomainId();return(this.catalog()??[]).find(e=>e.domain.id===n)??null});activeDocs=j(()=>this.activeDomain()?.docs??[]);activeDocsMeta=j(()=>{let n=this.activeDomain();return n?(n.docs??[]).map(e=>({docId:e.spec.id,title:e.spec.title,exists:e.exists,relPath:e.chosen?.relPath,codec:e.chosen?.codec})):[]});domainDirty=j(()=>{let n=this.baselineDomainVM(),e=this.domainVM();return!n||!e?!1:!ue.isEqual(n,e)});constructor(){Nt(()=>{this.projectId()&&this.getCatalog()})}getCatalog(){let n=this.projectId();n&&(this.loading.set(!0),this.api.getCatalog(n).subscribe({next:e=>{this.catalog.set(e);let i=e[0]?.domain?.id??"";i&&(this.activeDomainId.set(i),this.loadDomainSchema(i))},error:e=>{console.error(e),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u76EE\u5F55\u5931\u8D25")},complete:()=>this.loading.set(!1)}))}onDomainSelect(n){this.activeDomainId.set(n),n==="angular"?this.loadDomainSchema(n):this.domainVM.set(null)}async loadDomainSchema(n){let e=this.projectId();if(e){this.loading.set(!0);try{let i=await ge(this.api.getDomainSchemas(e,n));this.domainSchema.set(i),this.domainVM.set(i.vm),this.baselineDomainVM.set(ue.cloneDeep(i.vm))}catch(i){console.error(i),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u6A21\u578B\u5931\u8D25"),this.domainVM.set(null),this.baselineDomainVM.set(null)}finally{this.loading.set(!1)}}}async onDiff(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{let o=await ge(this.api.diffDomainSchema(n,e,i)),a=o?.docPatch??{},E=o?.filePatch??[],D=[];for(let[z,R]of Object.entries(a))D.push(...Fe("doc",z,R));for(let z of E)D.push(...Fe("file",z.relPath,z.patch));if(D.length===0){this.msg.info("\u6CA1\u6709\u53EF\u5199\u56DE\u7684\u53D8\u66F4");return}D.sort((z,R)=>{if(z.scope!==R.scope)return z.scope.localeCompare(R.scope);let fe=`${z.target}:${z.path}`,Ce=`${R.target}:${R.path}`;return fe.localeCompare(Ce)}),this.modal.create({nzTitle:"\u53D8\u66F4",nzContent:`
2
+ <div style="max-height:60vh; overflow:auto;">
3
+ ${D.map(z=>`
4
+ <div style="padding:8px 0; border-bottom:1px solid #f0f0f0;">
5
+ <div style="font-weight:600;">[${z.scope}] ${z.target}</div>
6
+ <div style="opacity:.85; margin-top:4px;">${z.path}</div>
7
+ <pre style="margin:6px 0;">after : ${this.safeStringify(z.value)}</pre>
8
+ </div>
9
+ `).join("")}
10
+ </div>
11
+ `,nzFooter:null,nzWidth:900})}catch(o){console.error(o),this.msg.error("\u751F\u6210 Diff \u5931\u8D25")}finally{this.loading.set(!1)}}}safeStringify(n){try{return JSON.stringify(n,null,2)}catch{return String(n)}}onReset(){let n=this.baselineDomainVM();n&&(this.domainVM.set(ue.cloneDeep(n)),this.msg.success("\u5DF2\u91CD\u7F6E\u4E3A\u672A\u4FEE\u6539\u72B6\u6001"))}onRawChange(n){let e=this.docStates(),i=e[n.docId];if(!i)return;let o=i.baselineRaw??"",a=n.raw!==o;this.docStates.set(K(H({},e),{[n.docId]:K(H({},i),{raw:n.raw,dirty:a})}))}onValuesChange(n){}async saveActive(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{await ge(this.api.writeDomainSchema(n,e,i)),this.msg.success("\u4FDD\u5B58\u6210\u529F"),await this.loadDomainSchema(e)}catch(o){console.error(o),this.msg.error("\u4FDD\u5B58\u5931\u8D25")}finally{this.loading.set(!1)}}}openConfig(){if(!this.selectedDocId()){this.msg.warning("\u8BF7\u5148\u9009\u62E9\u914D\u7F6E\u6587\u4EF6");return}this.api.openInEditor(this.projectId(),this.selectedDocId()).subscribe(n=>{this.msg.success("\u5DF2\u5728\u9ED8\u8BA4\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u8BE5\u914D\u7F6E\u6587\u4EF6"),this.isModalVisible.set(!1)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-project-conf",8,"component"]],attrs:Mi,decls:13,vars:11,consts:[[3,"title","loading"],["ngProjectAs","actions",5,["actions"]],["nz-button","","nzType","primary",3,"click"],[1,"panel"],[3,"domainSelect","nodes","activeDomainId"],[1,"content"],[3,"vmChange","schema","vm","options"],[3,"diff","reset","save","dirty"],["nzTitle","\u914D\u7F6E",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],["nzPlaceHolder","\u8BF7\u9009\u62E9\u914D\u7F6E\u6587\u4EF6",2,"width","100%",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nz-button","","nzType","primary",3,"click","disabled"]],template:function(e,i){if(e&1&&(s(0,"app-page-layout",0),G(1,1),s(2,"button",2),C("click",function(){return i.isModalVisible.set(!0)}),m(3,"\u6253\u5F00\u914D\u7F6E\u6587\u4EF6"),l(),T(4,"app-ng-devtool"),X(),s(5,"div",3)(6,"app-config-nav-component",4),C("domainSelect",function(a){return i.onDomainSelect(a)}),l(),s(7,"div",5)(8,"app-config-section-component",6),C("vmChange",function(a){return i.domainVM.set(a)}),l(),s(9,"app-config-change-bar-component",7),C("diff",function(){return i.onDiff()})("reset",function(){return i.onReset()})("save",function(){return i.saveActive()}),l()()()(),s(10,"nz-modal",8),Ke("nzVisibleChange",function(a){return He(i.isModalVisible,a)||(i.isModalVisible=a),a}),C("nzOnCancel",function(){return i.isModalVisible.set(!1)}),J(11,Ii,7,2,"ng-container",9)(12,Oi,3,1,"ng-container",10),l()),e&2){let o,a;f("title","\u9879\u76EE\u914D\u7F6E")("loading",i.loading()),p(6),f("nodes",i.navNodes())("activeDomainId",i.activeDomainId()??""),p(2),f("schema",(o=i.domainSchema())==null?null:o.schema)("vm",i.domainVM())("options",((a=i.domainSchema())==null?null:a.options)??Y(10,wi)),p(),f("dirty",i.domainDirty()),p(),Ze("nzVisible",i.isModalVisible),f("nzMaskClosable",!1)}},dependencies:[O,le,re,se,Ut,nn,tn,sn,Z,Se,De,Ne,Ie,be,Ee,ze,ve,pn,Jt,me,Gt,$,Ve,Oe,Wt,Qt,Lt,At,je,Kt],styles:[".panel[_ngcontent-%COMP%]{border-radius:10px;box-shadow:0 2px 8px #0000000f;display:flex}.panel[_ngcontent-%COMP%] app-config-nav-component[_ngcontent-%COMP%]{flex:0 0 300px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;padding:8px 16px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-section-component[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-change-bar-component[_ngcontent-%COMP%]{flex:0 0 auto;position:sticky;bottom:0}"]})};var Pi=[{path:"",component:$e}],Ae=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Ge.forChild(Pi),Ge]})};var _n=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[O,Ae]})};export{_n as ConfigurationModule};
@@ -0,0 +1 @@
1
+ import{a as Ae,b as Be}from"./chunk-QJP5F735.js";import{a as Te,c as Oe,f as Se,g as De,h as Ne,i as Ve,j as Ie}from"./chunk-FXCG34QS.js";import{g as me,h as ue,i as fe,k as he,l as ge}from"./chunk-4X42HB6N.js";import{e as Ee,i as Y,j as je,k as I,m as ke}from"./chunk-2NZJ7CN2.js";import{$b as Pe,Fb as _e,Ga as se,Ha as ae,Hb as ve,Lb as Ce,Pa as le,Qa as pe,Sa as ce,Ta as de,Vb as be,_b as xe,ac as ze,cc as Fe,dc as ye,gc as Me,ic as we}from"./chunk-3CM4SKDO.js";import{e as oe}from"./chunk-WUA5JFDD.js";import{n as re,u as Z}from"./chunk-KRYMOHYF.js";import{$b as T,B as q,Ec as H,Fb as X,Ha as g,Jc as y,Lb as ee,Lc as S,Mc as ie,Oc as D,Pc as N,Qc as V,Uc as ne,Wb as L,Yb as W,Zb as te,a as R,ac as O,b as $,bc as C,cc as s,dc as a,ec as f,ic as K,id as z,jc as G,lc as w,na as E,nb as l,rc as b,sa as v,uc as _,y as J,ya as m,za as u,zb as Q}from"./chunk-4BRW6LCZ.js";var j=class r{api=v(I);ls(e,t=!1){let i=new Z().set("path",e).set("showSystem",t?"1":"0");return this.api.get("/api/fs/ls",i)}mkdir(e,t){return this.api.post("/api/fs/mkdir",{path:e,name:t})}pathExists(e){let t=new Z().set("path",e);return this.api.get("/api/fs/path-exists",t).pipe(q(i=>i.exists))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var B=class r{fsApi=v(j);localState=v(je);path=g("D:\\");currentPath=g("");entries=g([]);reloading=g(!1);isEditingPath=g(!1);showSystemFolders=g(!1);isCreateFolderModalVisible=g(!1);newFolderName=g("");segments=z(()=>{let e=this.currentPath()||this.path()||"";return this.buildSegments(e)});isRoot=z(()=>{let e=(this.currentPath()||this.path()||"").trim();if(!e||/^\\\\[^\\]+\\[^\\]+$/.test(e.replaceAll("/","\\")))return!0;let t=e.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(t)?!0:e.replaceAll("\\","/")==="/"});canUp=z(()=>!this.reloading()&&!this.isRoot());favorites=g(this.normalizeFavorites(this.localState.get(Y.fs.explorer.favorites,[])));isCurFavorited=z(()=>{let e=this.normalizePath(this.currentPath()||this.path()||"");return e?this.favorites().some(t=>t.path===e):!1});toggleFavoriteCurrent(){let e=this.normalizePath(this.currentPath()||this.path()||"");if(!e)return;let t=this.favorites(),i=t.findIndex(o=>o.path===e),n;i>=0?n=t.slice(0,i).concat(t.slice(i+1)):n=[{path:e,label:this.buildFavoriteLabel(e),createdAt:Date.now()},...t],n=this.normalizeFavorites(n),this.favorites.set(n),this.persistFavorites(n)}openFavorite(e){e?.path&&(this.path.set(e.path),this.load())}removeFavorite(e){let t=this.normalizeFavorites(this.favorites().filter(i=>i.path!==e.path));this.favorites.set(t),this.persistFavorites(t)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(e){this.localState.set(Y.fs.explorer.favorites,e)}normalizeFavorites(e){let t=new Map;for(let i of e||[]){let n=this.normalizePath(i?.path||"");n&&t.set(n,{path:n,label:String(i?.label||this.buildFavoriteLabel(n)).trim(),createdAt:Number(i?.createdAt||Date.now())})}return Array.from(t.values()).sort((i,n)=>n.createdAt-i.createdAt)}buildFavoriteLabel(e){let t=e.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(t))return t.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(t))return t;if(/^\\\\/.test(t)){let o=t.split("\\").filter(Boolean);return o[o.length-1]||t}let i=e.replaceAll("\\","/");if(i==="/")return"/";let n=i.split("/").filter(Boolean);return n[n.length-1]||i}load(e=!1){let t=(this.path()||"").trim();if(!t)return;let i=(this.currentPath()||"").trim();if(i&&this.normalizePath(i)===this.normalizePath(t)&&this.entries().length&&!e){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(t,this.showSystemFolders()).subscribe({next:n=>{this.currentPath.set(n.path),this.entries.set(n.entries),this.path.set(n.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(e=>!e),this.load()}editPath(){this.isEditingPath.update(e=>!e)}open(e){e.type==="dir"&&(this.path.set(e.fullPath),this.load())}up(){if(!this.canUp())return;let e=(this.currentPath()||this.path()||"").trim();if(!e)return;let t=this.normalizePath(e),i=t.replaceAll("/","\\"),n=/^\\\\[^\\]+\\[^\\]+/.test(i),o=/^[a-zA-Z]:\\/.test(i),P=n||o?"\\":"/";if(n){let d=i.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!d)return;let p=`\\\\${d[1]}\\${d[2]}`;if(i===p)return;let F=i.lastIndexOf("\\"),k=F<=p.length?p:i.slice(0,F);if(this.normalizePath(k)===this.normalizePath(this.currentPath()))return;this.path.set(k),this.load();return}if(o){let d=i.lastIndexOf("\\");if(d<=2){let F=`${i.slice(0,2)}\\`;if(this.normalizePath(F)===this.normalizePath(this.currentPath()))return;this.path.set(F),this.load();return}let p=i.slice(0,d);if(this.normalizePath(p)===this.normalizePath(this.currentPath()))return;this.path.set(p),this.load();return}let h=t.replaceAll("\\","/");if(h==="/")return;let x=h.lastIndexOf("/"),M=x<=0?"/":h.slice(0,x);this.normalizePath(M)!==this.normalizePath(this.currentPath())&&(this.path.set(M),this.load())}jumpTo(e){e.disabled||(this.path.set(e.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let e=(this.newFolderName()||"").trim();if(!e)return;let t=this.currentPath()||this.path();this.fsApi.mkdir(t,e).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(e){let t=(e||"").trim();if(!t)return[];let i=/^[a-zA-Z]:[\\/]/.test(t)||/^[a-zA-Z]:$/.test(t),n=i?"\\":"/",o=i?t.replaceAll("/","\\"):t.replaceAll("\\","/"),c=i?o.slice(0,2):"/",P=o;if(i){let p=o.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);p&&(c=p[1],P=p[2]||"")}else P=o.startsWith("/")?o.slice(1):o;let h=P.split(i?/[\\]+/:/[\/]+/).filter(Boolean),x=[],M=i?`${c}\\`:"/";x.push({key:"root",label:c,fullPath:M,disabled:h.length===0});let d=M;for(let p=0;p<h.length;p++){let F=h[p];d=d.endsWith(n)?d+F:d+n+F;let k=p===h.length-1,$e=k?d:d+n;x.push({key:`${p}-${F}`,label:F,fullPath:$e,disabled:k})}return x}normalizePath(e){let t=(e||"").trim();if(!t)return"";let i=/^\\\\[^\\]+\\[^\\]+/.test(t.replaceAll("/","\\")),n=/^[a-zA-Z]:([\\/]|$)/.test(t),o=i||n,c=o?t.replaceAll("/","\\"):t.replaceAll("\\","/");if(n){let P=c.slice(0,2);if(c===P||c===`${P}\\`)return`${P}\\`}return!o&&c==="/"?"/":(c=c.replace(/[\\\/]+$/,""),c)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var We=(r,e)=>e.path,Ke=(r,e)=>e.key;function Ge(r,e){if(r&1){let t=w();s(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),V("ngModelChange",function(n){m(t);let o=_();return N(o.fs.path,n)||(o.fs.path=n),u(n)}),b("keyup.enter",function(){m(t);let n=_();return u(n.fs.load())}),a(),s(3,"button",28),f(4,"nz-icon",29),a()()()}if(r&2){let t=_();l(2),D("ngModel",t.fs.path)}}function He(r,e){if(r&1){let t=w();s(0,"div",31)(1,"button",32),b("click",function(){let n=m(t).$implicit,o=_(2);return u(o.fs.jumpTo(n))}),y(2),a()()}if(r&2){let t=e.$implicit;l(2),S(" ",t.label," ")}}function Ze(r,e){if(r&1){let t=w();s(0,"div",7)(1,"div",30),T(2,He,3,1,"div",31,Ke),a(),s(4,"button",32),b("click",function(){m(t);let n=_();return u(n.fs.editPath())}),f(5,"nz-icon",33),a()()}if(r&2){let t=_();l(2),O(t.fs.segments())}}function Ye(r,e){if(r&1&&f(0,"nz-icon",38),r&2){let t=_().$implicit;C("nzType","proj:"+t.projectKind)}}function Je(r,e){if(r&1){let t=w();s(0,"div",34),b("click",function(){let n=m(t).$implicit,o=_();return u(o.fs.open(n))}),s(1,"div",35),f(2,"span",36),a(),s(3,"div",37),y(4),L(5,Ye,1,1,"nz-icon",38),a()()}if(r&2){let t=e.$implicit;l(2),C("nzType",t.type==="dir"?"folder":"file"),l(),C("title",ne(t.name)),l(),S(" ",t.name," "),l(),W(t.projectKind&&t.projectKind!="unknown"?5:-1)}}function qe(r,e){if(r&1){let t=w();s(0,"li",19),f(1,"nz-icon",39),s(2,"button",40),b("click",function(){let n=m(t).$implicit,o=_();return u(o.fs.openFavorite(n))}),y(3),a()()}if(r&2){let t=e.$implicit;l(2),C("nz-tooltip",t.path),l(),S(" ",t.label," ")}}function Qe(r,e){if(r&1){let t=w();K(0),s(1,"div",41)(2,"label"),y(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),a(),s(4,"nz-input-wrapper")(5,"input",42),V("ngModelChange",function(n){m(t);let o=_();return N(o.fs.newFolderName,n)||(o.fs.newFolderName=n),u(n)}),a(),f(6,"nz-icon",43)(7,"nz-icon",44),a(),s(8,"div",45),y(9),a()(),G()}if(r&2){let t=_();l(5),D("ngModel",t.fs.newFolderName),l(4),ie("",t.fs.currentPath(),"",t.fs.newFolderName())}}function Xe(r,e){if(r&1){let t=w();K(0),s(1,"button",46),b("click",function(){m(t);let n=_();return u(n.fs.isCreateFolderModalVisible.set(!1))}),y(2,"\u53D6\u6D88"),a(),s(3,"button",47),b("click",function(){m(t);let n=_();return u(n.fs.confirmCreateFolder())}),f(4,"nz-icon",48),y(5," \u521B\u5EFA "),a(),G()}if(r&2){let t=_();l(3),C("disabled",!t.fs.newFolderName().trim())}}var Ue=class r{constructor(e){this.fs=e}ngOnInit(){this.fs.load()}static \u0275fac=function(t){return new(t||r)(Q(B))};static \u0275cmp=X({type:r,selectors:[["app-fs-explorer"]],decls:35,vars:10,consts:[["collectMenu","nzDropdownMenu"],["moreMenu","nzDropdownMenu"],[1,"page"],[1,"toolbar"],["nz-button","","nz-tooltip","\u4E0A\u4E00\u5C42",3,"click","disabled"],["nzType","up","nzTheme","outline"],[1,"path-edit"],[1,"current-path"],["nz-button","","nzType","primary","nz-tooltip","\u5237\u65B0",3,"click","nzLoading"],["nzTheme","outline",3,"nzType"],["nz-button","","nz-tooltip","\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF",3,"click"],["nzType","star",3,"nzTheme"],["nz-button","","nz-tooltip","\u6536\u85CF\u7684\u6587\u4EF6\u5939","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","caret-down","nzTheme","outline"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click","nz-tooltip","\u66F4\u591A\u64CD\u4F5C",3,"nzDropdownMenu"],["nzType","more","nzTheme","outline"],[1,"folders"],[1,"folder-item"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"],["nzType","folder-add","nzTheme","fill",2,"font-size","16px"],["nzType","eye","nzTheme","fill",2,"font-size","16px"],[2,"margin-left","8px",3,"ngModel"],["nzTitle","\u65B0\u5EFA\u6587\u4EF6\u5939",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-input","","nzSize","small","placeholder","\u8F93\u5165\u6587\u4EF6\u5939\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5982 D:\\work \u6216 /Users/xx",3,"ngModelChange","keyup.enter","ngModel"],["nzInputSuffix","","nz-button","","nzType","link"],["nzInputSuffix","","nzType","edit","nzTheme","outline"],[1,"path-value"],[1,"path-part"],["nz-button","","nzType","link",3,"click"],["nzType","edit","nzTheme","outline"],[1,"folder-item",3,"click"],[1,"icon"],["nz-icon","",3,"nzType"],[1,"name",3,"title"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],["nzType","folder","nzTheme","fill"],["nz-button","","nzType","link",3,"click","nz-tooltip"],[1,"modal-body"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],["nzInputSuffix","","nzType","question-circle","nzTheme","outline","nz-tooltip","\u4F60\u53EF\u4EE5\u4F7F\u7528\u8DEF\u5F84\u5206\u9694\u7B26\u6765\u521B\u5EFA\u5D4C\u5957\u7684\u6587\u4EF6\u5939","nzTooltipTrigger","hover","nzTooltipPlacement","right"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","folder-add","nzTheme","fill"]],template:function(t,i){if(t&1){let n=w();s(0,"div",2)(1,"div",3)(2,"button",4),b("click",function(){return m(n),u(i.fs.up())}),f(3,"nz-icon",5),a(),L(4,Ge,5,1,"div",6)(5,Ze,6,0,"div",7),s(6,"button",8),b("click",function(){return m(n),u(i.fs.load(!0))}),f(7,"nz-icon",9),a(),s(8,"button",10),b("click",function(){return m(n),u(i.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),a(),s(10,"button",12),f(11,"nz-icon",13),a(),s(12,"button",14),f(13,"nz-icon",15),a()(),s(14,"div",16),T(15,Je,6,5,"div",17,te),a()(),s(17,"nz-dropdown-menu",null,0)(19,"ul",18),T(20,qe,4,2,"li",19,We),a()(),s(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),b("click",function(){return m(n),u(i.fs.openCreateFolderModal())}),f(26,"nz-icon",21),y(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),a(),s(28,"li",20),b("click",function(){return m(n),u(i.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),y(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),a()()(),s(32,"nz-modal",24),V("nzVisibleChange",function(c){return m(n),N(i.fs.isCreateFolderModalVisible,c)||(i.fs.isCreateFolderModalVisible=c),u(c)}),b("nzOnCancel",function(){return m(n),u(i.fs.isCreateFolderModalVisible.set(!1))}),ee(33,Qe,10,3,"ng-container",25)(34,Xe,6,1,"ng-container",26),a()}if(t&2){let n=H(18),o=H(23);l(2),C("disabled",!i.fs.canUp()),l(2),W(i.fs.isEditingPath()?4:5),l(2),C("nzLoading",i.fs.reloading()),l(),C("nzType",i.fs.reloading()?"loading":"reload"),l(2),C("nzTheme",i.fs.isCurFavorited()?"fill":"outline"),l(),C("nzDropdownMenu",n),l(2),C("nzDropdownMenu",o),l(3),O(i.fs.entries()),l(5),O(i.fs.favorites()),l(11),C("ngModel",i.fs.showSystemFolders()),l(),D("nzVisible",i.fs.isCreateFolderModalVisible),C("nzMaskClosable",!1)}},dependencies:[re,be,_e,ve,Ce,ye,ze,Fe,xe,Pe,de,ce,le,pe,ae,se,we,Me,Ie,Oe,Te,De,Ve,Ne,Se,Be,Ae,ge,he,fe,ue],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:16px 0;flex:0 0 auto}.folders[_ngcontent-%COMP%]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;position:relative}.current-path[_ngcontent-%COMP%]{min-width:0;flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;height:34px}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%] .path-part[_ngcontent-%COMP%]{flex:auto 0 0;border-left-width:2px;border-left-style:solid}.path-edit[_ngcontent-%COMP%]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;border:none;outline:none}.folder-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0 4px;flex:auto 0 0}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:100% 1 1;display:inline-flex;align-items:center;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;margin-left:4px}.modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.default [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000000d9}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#fff}html.default [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.dark [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffd9}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#141414}html.dark [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}"]})};var U=class r{api=v(I);fs=v(j);async checkPathExists(e){return await J(this.fs.pathExists(e))}detect(e){return this.api.post("/api/projects/detect",{rootPath:e})}async pickFolder(){return null}bootstrapByCli(e){return this.api.post("/api/projects/bootstrap/cli",{parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,packageManager:e.packageManager,overwriteIfExists:e.overwriteIfExists,skipOnboarding:e.skipOnboarding,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,cliFramework:e.cliFramework,cliTool:e.cliTool,cliArgs:e.cliArgs??[]})}bootstrapPickRoot(e){return this.api.post("/api/projects/bootstrap/pickRoot",e)}bootstrapByGit(e){return this.api.post("/api/projects/bootstrap/git",{repoUrl:e.repoUrl,parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,overwriteIfExists:e.overwriteIfExists,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,packageManager:e.packageManager,skipOnboarding:e.skipOnboarding??!0})}getProjectMembers(e){return this.api.hubRequestWithPrjId({projectId:e,path:"/members"})}list(){return this.api.get("/api/projects/list")}get(e){return this.api.get(`/api/projects/getInfo/${e}`)}check(e){return this.api.post("/api/projects/check",{rootPath:e})}createByPath(e){return this.api.post("/api/projects/create",e)}checkImport(e){return this.api.post("/api/projects/checkImport",{root:e})}importByPath(e){return this.api.post("/api/projects/import",e)}delete(e){return this.api.delete(`/api/projects/delete/${e}`)}update(e,t){return this.api.post(`/api/projects/update/${e}`,t)}setFavorite(e,t){return this.api.post(`/api/projects/favorite/${e}`,{isFavorite:t})}toggleFavorite(e){return this.api.post(`/api/projects/favorite/${e}/toggle`,{})}setLastOpened(e,t){return this.api.post(`/api/projects/lastOpened/${e}`,{timestamp:t})}openInEditor(e,t="code"){return this.api.post(`/api/projects/openInEditor/${e}`,{editor:t})}edit(e,t){return this.api.post(`/api/projects/edit/${e}`,t)}updateAssets(e,t){return this.api.post(`/api/projects/updateAssets/${e}`,{assets:t})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var Re=class r{modal=v(me);notify=v(Ee);projectService=v(U);projectContext=v(ke);router=v(oe);projects=z(()=>this.projectContext.projects());keyword=g("");isEditModalVisible=g(!1);isEditSaving=g(!1);editingProject=g(null);filteredProjects=z(()=>{let e=this.keyword().trim().toLowerCase();return e?this.projects().filter(t=>t.name.toLowerCase().includes(e)):this.projects()});favoriteProjects=z(()=>this.filteredProjects().filter(e=>e.isFavorite));moreProjects=z(()=>this.filteredProjects().filter(e=>!e.isFavorite));recentProjects=z(()=>this.projects().slice().sort((e,t)=>{let i=new Date(e.lastOpened||0).getTime();return new Date(t.lastOpened||0).getTime()-i}).slice(0,5));selectProject(e){this.projectContext.setCurrentProject(e);let t=Date.now();this.projectContext.patchProject($(R({},e),{lastOpened:t})),this.projectService.setLastOpened(e.id,t).subscribe(),this.router.navigate(["/dashboard"])}openInEditor(e){this.projectService.openInEditor(e).subscribe({next:()=>{console.log("Opened project in editor:",e),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(e){this.projectService.toggleFavorite(e).subscribe(t=>{this.projectContext.patchProject(t)})}getProjects(e){this.projectContext.loadProjects(e).subscribe()}setCurrentProjectById(e){this.projectContext.setCurrentProjectById(e)}isOpen(e){return this.projectContext.isOpen(e)}openEditModal(e){let t=e.env??{};this.editingProject.set({id:e.id,name:e.name??"",repoPageUrl:e.repoPageUrl??"",description:e.description??"",hubV2:{baseUrl:t.NGM_HUB_V2_BASE_URL||"http://192.168.1.31:7008",projectKey:t.NGM_HUB_V2_PROJECT_KEY||"",token:t.NGM_HUB_V2_TOKEN||""}}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditModalVisible.set(!1),this.editingProject.set(null)}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:e,name:t,description:i,repoPageUrl:n,hubV2:o}=this.editingProject();if(!e){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!t)return;let c=i?.trim(),P=n?.trim(),h={baseUrl:o.baseUrl.trim(),projectKey:o.projectKey.trim(),token:o.token.trim()},x=this.projectContext.getProjectById(e),M=x?.env??{};if(x&&x.name===t&&x.description===c&&x.repoPageUrl===P&&(M.NGM_HUB_V2_BASE_URL??"")===h.baseUrl&&(M.NGM_HUB_V2_PROJECT_KEY??"")===h.projectKey&&(M.NGM_HUB_V2_TOKEN??"")===h.token){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(e,{name:t,description:c,repoPageUrl:P}).subscribe({next:()=>{let d=$(R({},x?.env??{}),{NGM_HUB_V2_BASE_URL:h.baseUrl,NGM_HUB_V2_PROJECT_KEY:h.projectKey,NGM_HUB_V2_TOKEN:h.token});this.projectService.update(e,{env:d}).subscribe({next:p=>{this.projectContext.patchProject(p),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.isEditSaving.set(!1),this.closeEditModal()},error:p=>{this.notify.error(p?.message||"\u9879\u76EE\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25"),this.isEditSaving.set(!1)}})},error:d=>{this.notify.error(d?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)}})}deleteProject(e){this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664\u8BE5\u9879\u76EE\u5417\uFF1F",nzContent:"\u5220\u9664\u9879\u76EE\u53EA\u4F1A\u79FB\u9664\u9879\u76EE\u8BB0\u5F55\uFF0C\u4E0D\u4F1A\u5220\u9664\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u5939\u3002\u5982\u9700\u5220\u9664\u78C1\u76D8\u6587\u4EF6\uFF0C\u8BF7\u624B\u52A8\u64CD\u4F5C\u3002",nzOkText:"\u5220\u9664",nzCancelText:"\u53D6\u6D88",nzOkDanger:!0,nzOnOk:()=>{this.projectService.delete(e).subscribe({next:()=>{this.projectContext.removeProject(e),this.projectContext.currentProject()||this.notify.info("\u5F53\u524D\u6CA1\u6709\u9879\u76EE\uFF0C\u8BF7\u5148\u521B\u5EFA\u6216\u5BFC\u5165\u9879\u76EE"),this.notify.success("\u9879\u76EE\u5DF2\u5220\u9664")}})}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};export{j as a,B as b,Ue as c,U as d,Re as e};
@@ -0,0 +1 @@
1
+ import{Ia as C,Ja as x}from"./chunk-3CM4SKDO.js";import{Fb as z,Gb as l,Gc as T,Jc as D,Kc as g,Lb as s,Wb as p,Yb as m,bc as c,cc as v,dc as f,ic as u,jc as h,nb as a,oa as d,uc as o,yd as r}from"./chunk-4BRW6LCZ.js";function S(e,y){if(e&1&&(u(0),D(1),h()),e&2){let i=o(2);a(),g(i.nzText)}}function _(e,y){if(e&1&&(v(0,"span",0),s(1,S,2,1,"ng-container",1),f()),e&2){let i=o();a(),c("nzStringTemplateOutlet",i.nzText)}}var N=(()=>{class e{nzText;nzType="horizontal";nzOrientation="center";nzVariant="solid";nzSize;nzDashed=!1;nzPlain=!1;static \u0275fac=function(t){return new(t||e)};static \u0275cmp=z({type:e,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:22,hostBindings:function(t,n){t&2&&T("ant-divider-horizontal",n.nzType==="horizontal")("ant-divider-vertical",n.nzType==="vertical")("ant-divider-with-text",n.nzText)("ant-divider-plain",n.nzPlain)("ant-divider-with-text-left",n.nzText&&n.nzOrientation==="left")("ant-divider-with-text-right",n.nzText&&n.nzOrientation==="right")("ant-divider-with-text-center",n.nzText&&n.nzOrientation==="center")("ant-divider-dashed",n.nzDashed||n.nzVariant==="dashed")("ant-divider-dotted",n.nzVariant==="dotted")("ant-divider-sm",n.nzSize==="small")("ant-divider-md",n.nzSize==="middle")},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzVariant:"nzVariant",nzSize:"nzSize",nzDashed:[2,"nzDashed","nzDashed",r],nzPlain:[2,"nzPlain","nzPlain",r]},exportAs:["nzDivider"],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(t,n){t&1&&p(0,_,2,1,"span",0),t&2&&m(n.nzText?0:-1)},dependencies:[x,C],encapsulation:2,changeDetection:0})}return e})(),j=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=l({type:e});static \u0275inj=d({imports:[N]})}return e})();export{N as a,j as b};
@@ -0,0 +1 @@
1
+ import{$a as O,Cb as C,L as o,a as R,ra as P,zb as T}from"./chunk-3CM4SKDO.js";import{Ac as j,Da as l,Fb as c,Gb as w,Gc as a,Oa as F,Ra as N,Ub as E,Xc as b,fc as p,gc as f,hc as M,l as y,ma as u,mc as A,n as d,na as k,nb as h,oa as S,sa as s,tb as B,ud as g,vc as m,wc as z,yc as V,yd as r,zc as $}from"./chunk-4BRW6LCZ.js";var I=["*"],G=["inputElement"],Q=["nz-radio",""],D=(()=>{class n{selected$=new d(1);touched$=new y;disabled$=new d(1);name$=new d(1);touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac})}return n})(),se=(()=>{class n{cdr=s(g);nzRadioService=s(D);directionality=s(R);destroyRef=s(l);value=null;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};nzDisabled=!1;nzButtonStyle="outline";nzSize="default";nzName=null;dir="ltr";ngOnInit(){this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{this.value!==e&&(this.value=e,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(o(this.destroyRef)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDisabled:t,nzName:i}=e;t&&this.nzRadioService.setDisabled(this.nzDisabled),i&&this.nzRadioService.setName(this.nzName)}writeValue(e){this.value=e,this.nzRadioService.select(e),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(t,i){t&2&&a("ant-radio-group-large",i.nzSize==="large")("ant-radio-group-small",i.nzSize==="small")("ant-radio-group-solid",i.nzButtonStyle==="solid")("ant-radio-group-rtl",i.dir==="rtl")},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",r],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[b([D,{provide:C,useExisting:u(()=>n),multi:!0}]),F],ngContentSelectors:I,decls:1,vars:0,template:function(t,i){t&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),oe=(()=>{class n{directionality=s(R);nzRadioService=s(D,{optional:!0});ngZone=s(B);elementRef=s(N);cdr=s(g);focusMonitor=s(O);destroyRef=s(l);nzFormStatusService=s(T,{optional:!0});isNgModel=!1;isNzDisableFirstChange=!0;isChecked=!1;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=!1;nzAutoFocus=!1;isRadioButton=!1;dir="ltr";focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef)})}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(o(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(o(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{let t=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&t!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(o(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setupClickListener(){P(this.elementRef.nativeElement,"click").pipe(o(this.destroyRef)).subscribe(e=>{e.stopPropagation(),e.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(t,i){if(t&1&&V(G,7),t&2){let v;$(v=j())&&(i.inputElement=v.first)}},hostVars:18,hostBindings:function(t,i){t&2&&a("ant-radio-wrapper-in-form-item",!!i.nzFormStatusService)("ant-radio-wrapper",!i.isRadioButton)("ant-radio-button-wrapper",i.isRadioButton)("ant-radio-wrapper-checked",i.isChecked&&!i.isRadioButton)("ant-radio-button-wrapper-checked",i.isChecked&&i.isRadioButton)("ant-radio-wrapper-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button-wrapper-disabled",i.nzDisabled&&i.isRadioButton)("ant-radio-wrapper-rtl",!i.isRadioButton&&i.dir==="rtl")("ant-radio-button-wrapper-rtl",i.isRadioButton&&i.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",r],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",r],isRadioButton:[2,"nz-radio-button","isRadioButton",r]},exportAs:["nzRadio"],features:[b([{provide:C,useExisting:u(()=>n),multi:!0}])],attrs:Q,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(t,i){t&1&&(m(),p(0,"span"),M(1,"input",1,0)(3,"span"),f(),p(4,"span"),z(5),f()),t&2&&(a("ant-radio",!i.isRadioButton)("ant-radio-checked",i.isChecked&&!i.isRadioButton)("ant-radio-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button",i.isRadioButton)("ant-radio-button-checked",i.isChecked&&i.isRadioButton)("ant-radio-button-disabled",i.nzDisabled&&i.isRadioButton),h(),a("ant-radio-input",!i.isRadioButton)("ant-radio-button-input",i.isRadioButton),A("disabled",i.nzDisabled)("checked",i.isChecked),E("autofocus",i.nzAutoFocus?"autofocus":null)("name",i.name),h(2),a("ant-radio-inner",!i.isRadioButton)("ant-radio-button-inner",i.isRadioButton))},encapsulation:2,changeDetection:0})}return n})(),ae=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=S({})}return n})();export{se as a,oe as b,ae as c};