@yinuo-ngm/server 1.0.20 → 1.0.22

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 (113) hide show
  1. package/lib/app.js +0 -4
  2. package/lib/env.js +5 -1
  3. package/lib/plugins/success-handle.plugin.js +1 -1
  4. package/lib/plugins/ws/topics/nginx.ws.js +1 -1
  5. package/lib/plugins/ws/ws.context.js +3 -1
  6. package/lib/plugins/ws/ws.plugin.js +14 -2
  7. package/lib/routes/api-client/collection.routes.js +35 -35
  8. package/lib/routes/api-client/env.routes.js +12 -8
  9. package/lib/routes/api-client/history.routes.js +10 -5
  10. package/lib/routes/api-client/request.routes.js +14 -8
  11. package/lib/routes/api-client/route-mappers.d.ts +7 -0
  12. package/lib/routes/api-client/route-mappers.js +78 -0
  13. package/lib/routes/api-client/send.routes.js +12 -8
  14. package/lib/routes/config.routes.js +73 -49
  15. package/lib/routes/deps.route.js +47 -5
  16. package/lib/routes/index.js +5 -3
  17. package/lib/routes/nginx/nginx-config.routes.js +3 -3
  18. package/lib/routes/nginx/nginx-lifecycle.routes.js +14 -13
  19. package/lib/routes/nginx/nginx-module.routes.js +6 -6
  20. package/lib/routes/nginx/nginx-route.context.d.ts +16 -1
  21. package/lib/routes/nginx/nginx-route.context.js +136 -1
  22. package/lib/routes/nginx/nginx-server.routes.js +5 -5
  23. package/lib/routes/node-runtime.routes.d.ts +2 -0
  24. package/lib/routes/node-runtime.routes.js +69 -0
  25. package/lib/routes/project.routes.js +117 -13
  26. package/lib/routes/sprite/sprite-browse.routes.d.ts +2 -0
  27. package/lib/routes/sprite/sprite-browse.routes.js +137 -0
  28. package/lib/routes/sprite/sprite-quick.utils.d.ts +19 -0
  29. package/lib/routes/sprite/sprite-quick.utils.js +247 -0
  30. package/lib/routes/sprite/sprite.routes.d.ts +2 -0
  31. package/lib/routes/sprite/sprite.routes.js +212 -0
  32. package/lib/routes/sprite-browse.routes.js +17 -11
  33. package/lib/routes/sprite.routes.d.ts +1 -1
  34. package/lib/routes/sprite.routes.js +68 -11
  35. package/lib/routes/svn.routes.js +48 -14
  36. package/lib/routes/task.routes.js +99 -7
  37. package/package.json +7 -7
  38. package/www/3rdpartylicenses.txt +5 -5
  39. package/www/browser/{chunk-OZCK4XVV.js → chunk-2VJVGBXG.js} +1 -1
  40. package/www/browser/{chunk-FL6GDGHW.js → chunk-3ODVU46S.js} +1 -1
  41. package/www/browser/chunk-442QFABJ.js +1 -0
  42. package/www/browser/{chunk-WD2EKZQC.js → chunk-6J6G7JEP.js} +1 -1
  43. package/www/browser/{chunk-7U44RF5F.js → chunk-6UFDNETG.js} +1 -1
  44. package/www/browser/{chunk-75W3GVSO.js → chunk-7AKVG375.js} +1 -1
  45. package/www/browser/chunk-7GLWEFTM.js +1 -0
  46. package/www/browser/{chunk-DIJPUYIA.js → chunk-7QR6RHLA.js} +1 -1
  47. package/www/browser/{chunk-HJTXXSMC.js → chunk-CO3CQHKV.js} +1 -1
  48. package/www/browser/{chunk-3XNNQFWR.js → chunk-CPJTSA6E.js} +1 -1
  49. package/www/browser/chunk-DENFXXOY.js +1 -0
  50. package/www/browser/{chunk-HDNG236Q.js → chunk-HC5KLPHD.js} +1 -1
  51. package/www/browser/chunk-HJAP6WBI.js +1 -0
  52. package/www/browser/{chunk-N2PELLMM.js → chunk-JM6DCZP6.js} +7 -7
  53. package/www/browser/chunk-K6C5ZIV2.js +20 -0
  54. package/www/browser/chunk-M6NZ6C2R.js +2 -0
  55. package/www/browser/{chunk-RGOYDY7H.js → chunk-MBPB43C6.js} +1 -1
  56. package/www/browser/chunk-MPLGMTLT.js +3 -0
  57. package/www/browser/chunk-NNOWADVM.js +1 -0
  58. package/www/browser/{chunk-M4QRBV3K.js → chunk-NREWZQVN.js} +1 -1
  59. package/www/browser/{chunk-6YYNHZ2A.js → chunk-OUGN4APK.js} +1 -1
  60. package/www/browser/chunk-PB2LGZNW.js +1 -0
  61. package/www/browser/chunk-PDI3HSSH.js +4 -0
  62. package/www/browser/chunk-PUG3VNTI.js +3 -0
  63. package/www/browser/{chunk-QJP5F735.js → chunk-PY3AUTHC.js} +1 -1
  64. package/www/browser/{chunk-3M56F2S2.js → chunk-R4HSZU2J.js} +1 -1
  65. package/www/browser/{chunk-DE6E23ET.js → chunk-RKK4I2RT.js} +1 -1
  66. package/www/browser/chunk-RMIYLAEM.js +1 -0
  67. package/www/browser/chunk-RZA3IFQV.js +2 -0
  68. package/www/browser/{chunk-K7PESFPY.js → chunk-SD2HFD54.js} +1 -1
  69. package/www/browser/{chunk-BTQIUVTQ.js → chunk-SEJGGBE2.js} +1 -1
  70. package/www/browser/chunk-SSCUT2GF.js +1 -0
  71. package/www/browser/chunk-TCBOC5FF.js +1 -0
  72. package/www/browser/{chunk-AZ6SIMYH.js → chunk-TS5ZQYYY.js} +1 -1
  73. package/www/browser/chunk-TVJHI463.js +1 -0
  74. package/www/browser/{chunk-YNW4HEJO.js → chunk-TXAXE73U.js} +17 -17
  75. package/www/browser/{chunk-4X42HB6N.js → chunk-U2YWR3HF.js} +1 -1
  76. package/www/browser/{chunk-D2ODDESN.js → chunk-U3EUR236.js} +1 -1
  77. package/www/browser/chunk-UKCMUTYL.js +1 -0
  78. package/www/browser/{chunk-DLGJD6YU.js → chunk-UPOORT3S.js} +1 -1
  79. package/www/browser/chunk-VW3S7C2Z.js +1 -0
  80. package/www/browser/chunk-VZYJ3MSW.js +15 -0
  81. package/www/browser/{chunk-AELTP6YN.js → chunk-WCHN62X6.js} +1 -1
  82. package/www/browser/chunk-WWIPELAV.js +1 -0
  83. package/www/browser/{chunk-B3C35ET3.js → chunk-WYNERG74.js} +1 -1
  84. package/www/browser/{chunk-ZTDLWBW5.js → chunk-XJDJL3TQ.js} +1 -1
  85. package/www/browser/{chunk-EEDA5U4V.js → chunk-YV6QPLF5.js} +1 -1
  86. package/www/browser/{chunk-ONXBYGIG.js → chunk-YVRGRFK2.js} +1 -1
  87. package/www/browser/index.html +1 -1
  88. package/www/browser/main-7GYUOEJY.js +38 -0
  89. package/lib/plugins/api-client.plugin.d.ts +0 -3
  90. package/lib/plugins/api-client.plugin.js +0 -55
  91. package/lib/plugins/nginx.binding.store.d.ts +0 -4
  92. package/lib/plugins/nginx.binding.store.js +0 -39
  93. package/lib/plugins/nginx.plugin.d.ts +0 -3
  94. package/lib/plugins/nginx.plugin.js +0 -23
  95. package/www/browser/chunk-2L7NUOMX.js +0 -2
  96. package/www/browser/chunk-2NZJ7CN2.js +0 -20
  97. package/www/browser/chunk-3CM4SKDO.js +0 -15
  98. package/www/browser/chunk-3OHBKMAA.js +0 -1
  99. package/www/browser/chunk-4LBSLURA.js +0 -1
  100. package/www/browser/chunk-5DYX4DUX.js +0 -11
  101. package/www/browser/chunk-6SYVDN5L.js +0 -1
  102. package/www/browser/chunk-AMXRL4GR.js +0 -1
  103. package/www/browser/chunk-AV2ZODEH.js +0 -1
  104. package/www/browser/chunk-CN5J4WNO.js +0 -1
  105. package/www/browser/chunk-FK6Z4HLL.js +0 -1
  106. package/www/browser/chunk-FXCG34QS.js +0 -1
  107. package/www/browser/chunk-H5HGMOE6.js +0 -1
  108. package/www/browser/chunk-HB3HECPD.js +0 -1
  109. package/www/browser/chunk-HUMCWAKJ.js +0 -3
  110. package/www/browser/chunk-IKB3EQCP.js +0 -2
  111. package/www/browser/chunk-OSBDR36P.js +0 -1
  112. package/www/browser/chunk-XLFHB7RS.js +0 -3
  113. package/www/browser/main-N64WJCHX.js +0 -34
@@ -4,51 +4,85 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = svnRoutes;
7
- const errors_1 = require("@yinuo-ngm/errors");
8
7
  const node_path_1 = __importDefault(require("node:path"));
9
8
  const env_1 = require("../env");
9
+ const errors_1 = require("@yinuo-ngm/errors");
10
+ function toSvnSyncResultDto(result) {
11
+ return {
12
+ ok: result.ok,
13
+ projectId: result.projectId,
14
+ sourceId: result.sourceId,
15
+ mode: result.mode,
16
+ updatedAt: result.updatedAt,
17
+ desiredUrl: result.desiredUrl,
18
+ currentUrl: result.currentUrl,
19
+ stdout: result.stdout,
20
+ stderr: result.stderr,
21
+ };
22
+ }
23
+ function toSvnRuntimeDto(runtime) {
24
+ return {
25
+ projectId: runtime.projectId,
26
+ sourceId: runtime.sourceId,
27
+ lastSyncAt: runtime.lastSyncAt,
28
+ lastSyncMode: runtime.lastSyncMode,
29
+ desiredUrl: runtime.desiredUrl,
30
+ currentUrl: runtime.currentUrl,
31
+ lastStdout: runtime.lastStdout,
32
+ lastStderr: runtime.lastStderr,
33
+ };
34
+ }
35
+ function resolveSources(assets, body) {
36
+ const includeIcons = !body?.types?.length || body.types.includes("icons");
37
+ const includeImages = !body?.types?.length || body.types.includes("images");
38
+ const list = [];
39
+ if (includeIcons && assets.iconsSvn?.kind === "svn")
40
+ list.push(assets.iconsSvn);
41
+ if (includeImages && assets.cutImageSvn?.kind === "svn")
42
+ list.push(assets.cutImageSvn);
43
+ return list;
44
+ }
10
45
  async function svnRoutes(fastify) {
46
+ const svnSync = fastify.core.svnSync;
11
47
  fastify.post("/sync/:projectId", async (req) => {
12
48
  const { projectId } = req.params;
13
49
  const p = await fastify.core.project.get(projectId);
14
50
  const assets = p.assets;
15
51
  if (!assets) {
16
- throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, 'Project assets are required for SVN sync');
17
- ;
52
+ throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, "Project assets are required for SVN sync");
18
53
  }
19
54
  const { iconsSvn, cutImageSvn } = assets;
20
- const svnSources = [iconsSvn, cutImageSvn].filter(s => s && s.kind === "svn");
55
+ const svnSources = resolveSources({ iconsSvn, cutImageSvn }, req.body);
21
56
  const results = [];
22
57
  for (const s of svnSources) {
23
58
  let localDir = s.localDir;
24
59
  if (!localDir) {
25
- localDir = node_path_1.default.join(env_1.env.dataDir, 'svn', projectId, s.label || s.id);
60
+ localDir = node_path_1.default.join(env_1.env.dataDir, "svn", projectId, s.label || s.id);
26
61
  }
27
- const r = await fastify.core.svnSync.sync(projectId, s.id, localDir, s.url);
28
- results.push(r);
62
+ const r = await svnSync.sync(projectId, s.id, localDir, s.url);
63
+ results.push(toSvnSyncResultDto(r));
29
64
  }
30
65
  return results;
31
66
  });
32
67
  fastify.get("/runtime/:projectId", async (req) => {
33
68
  const { projectId } = req.params;
34
- const runtimes = await fastify.core.svnSync.getRuntimeByProjectId(projectId);
35
- return runtimes;
69
+ const runtimes = await svnSync.getRuntimeByProjectId(projectId);
70
+ return runtimes.map(toSvnRuntimeDto);
36
71
  });
37
72
  fastify.post("/sync/stream/:projectId", async (req) => {
38
73
  const { projectId } = req.params;
39
74
  const assets = (await fastify.core.project.get(projectId)).assets;
40
75
  if (!assets) {
41
- throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, 'Project assets are required for SVN sync');
42
- ;
76
+ throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, "Project assets are required for SVN sync");
43
77
  }
44
78
  const { iconsSvn, cutImageSvn } = assets;
45
- const svnSources = [iconsSvn, cutImageSvn].filter(s => s && s.kind === "svn");
79
+ const svnSources = resolveSources({ iconsSvn, cutImageSvn }, req.body);
46
80
  for (const s of svnSources) {
47
81
  let localDir = s.localDir;
48
82
  if (!localDir) {
49
- localDir = node_path_1.default.join(env_1.env.dataDir, 'svn', projectId, s.label || s.id);
83
+ localDir = node_path_1.default.join(env_1.env.dataDir, "svn", projectId, s.label || s.id);
50
84
  }
51
- await fastify.core.svnSync.syncWithStream(projectId, s.id, localDir, s.url);
85
+ await svnSync.syncWithStream(projectId, s.id, localDir, s.url);
52
86
  }
53
87
  return { message: "SVN sync started" };
54
88
  });
@@ -2,6 +2,55 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = taskRoutes;
4
4
  const errors_1 = require("@yinuo-ngm/errors");
5
+ function toTaskDefinitionDto(spec) {
6
+ return {
7
+ id: spec.id,
8
+ projectId: spec.projectId,
9
+ projectRoot: spec.projectRoot,
10
+ projectName: spec.projectName,
11
+ name: spec.name,
12
+ kind: spec.kind,
13
+ description: spec.description,
14
+ command: spec.command,
15
+ displayCommand: spec.displayCommand,
16
+ file: spec.file,
17
+ args: spec.args,
18
+ runnable: spec.runnable,
19
+ views: spec.views,
20
+ capabilities: spec.capabilities,
21
+ };
22
+ }
23
+ function toTaskRuntimeDto(runtime) {
24
+ return {
25
+ taskId: runtime.taskId,
26
+ projectId: runtime.projectId,
27
+ name: runtime.name,
28
+ runId: runtime.runId,
29
+ status: runtime.status,
30
+ pid: runtime.pid,
31
+ startedAt: runtime.startedAt,
32
+ stoppedAt: runtime.stoppedAt,
33
+ exitCode: runtime.exitCode,
34
+ signal: runtime.signal,
35
+ lastError: runtime.lastError,
36
+ urls: runtime.urls,
37
+ lastOutputAt: runtime.lastOutputAt,
38
+ readyAt: runtime.readyAt,
39
+ rebuildDurationMs: runtime.rebuildDurationMs,
40
+ warningsCount: runtime.warningsCount,
41
+ errorsCount: runtime.errorsCount,
42
+ };
43
+ }
44
+ function toTaskRowDto(row) {
45
+ return {
46
+ spec: toTaskDefinitionDto(row.spec),
47
+ runtime: row.runtime ? toTaskRuntimeDto(row.runtime) : undefined,
48
+ };
49
+ }
50
+ function limitFromQuery(query) {
51
+ const limit = Number(query?.limit);
52
+ return Math.min(Math.max(Number.isFinite(limit) ? limit : 20, 1), 100);
53
+ }
5
54
  async function ensureSpecs(fastify, projectId) {
6
55
  const specs = await fastify.core.task.listSpecsByProject(projectId);
7
56
  if (specs.length === 0) {
@@ -12,39 +61,82 @@ async function taskRoutes(fastify) {
12
61
  fastify.get("/list/:projectId", async (req) => {
13
62
  const { projectId } = req.params;
14
63
  await ensureSpecs(fastify, projectId);
15
- return fastify.core.task.listViewsByProject(projectId);
64
+ const rows = await fastify.core.task.listViewsByProject(projectId);
65
+ return rows.map(toTaskRowDto);
16
66
  });
17
67
  fastify.post("/refresh/:projectId", async (req) => {
18
68
  const { projectId } = req.params;
19
- return await fastify.core.task.refreshByProject(projectId);
69
+ const rows = await fastify.core.task.refreshByProject(projectId);
70
+ return rows.map(toTaskRowDto);
20
71
  });
21
72
  fastify.post("/start", async (req) => {
22
73
  const body = req.body;
23
74
  const taskId = body?.taskId?.trim();
24
75
  if (!taskId)
25
76
  throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
26
- return await fastify.core.task.start(taskId);
77
+ const runtime = await fastify.core.task.start(taskId);
78
+ return toTaskRuntimeDto(runtime);
27
79
  });
28
80
  fastify.post("/stop", async (req) => {
29
81
  const body = req.body;
30
82
  const taskId = body?.taskId?.trim();
31
83
  if (!taskId)
32
84
  throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
33
- return await fastify.core.task.stop(taskId);
85
+ const runtime = await fastify.core.task.stop(taskId);
86
+ return toTaskRuntimeDto(runtime);
34
87
  });
35
88
  fastify.post("/restart", async (req) => {
36
89
  const body = req.body;
37
90
  const taskId = body?.taskId?.trim();
38
91
  if (!taskId)
39
92
  throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
40
- return await fastify.core.task.restart(taskId);
93
+ const runtime = await fastify.core.task.restart(taskId);
94
+ return toTaskRuntimeDto(runtime);
41
95
  });
42
96
  fastify.get("/status/:taskId", async (req) => {
43
97
  const { taskId } = req.params;
44
- return await fastify.core.task.status(taskId);
98
+ const runtime = await fastify.core.task.status(taskId);
99
+ return toTaskRuntimeDto(runtime);
45
100
  });
46
101
  fastify.get("/active", async () => {
47
- return await fastify.core.task.listActive();
102
+ const runtimes = await fastify.core.task.listActive();
103
+ return runtimes.map(toTaskRuntimeDto);
104
+ });
105
+ fastify.get("/report/run/:runId", async (req) => {
106
+ const { runId } = req.params;
107
+ return await fastify.core.task.getReportByRunId(runId);
108
+ });
109
+ fastify.get("/report/latest/:taskId", async (req) => {
110
+ const { taskId } = req.params;
111
+ return await fastify.core.task.getLatestReportByTaskId(taskId);
112
+ });
113
+ fastify.get("/report/history/task/:taskId", async (req) => {
114
+ const { taskId } = req.params;
115
+ return await fastify.core.task.listReportsByTaskId(taskId, limitFromQuery(req.query));
116
+ });
117
+ fastify.get("/report/history/project/:projectId", async (req) => {
118
+ const { projectId } = req.params;
119
+ return await fastify.core.task.listReportsByProjectId(projectId, limitFromQuery(req.query));
120
+ });
121
+ fastify.get("/report/summary/task/:taskId", async (req) => {
122
+ const { taskId } = req.params;
123
+ return await fastify.core.task.listReportSummariesByTaskId(taskId, limitFromQuery(req.query));
124
+ });
125
+ fastify.get("/report/summary/project/:projectId", async (req) => {
126
+ const { projectId } = req.params;
127
+ return await fastify.core.task.listReportSummariesByProjectId(projectId, limitFromQuery(req.query));
128
+ });
129
+ fastify.get("/diagnostics/run/:runId", async (req) => {
130
+ const { runId } = req.params;
131
+ return await fastify.core.task.getDiagnosticsByRunId(runId);
132
+ });
133
+ fastify.get("/diagnostics/latest/:taskId", async (req) => {
134
+ const { taskId } = req.params;
135
+ return await fastify.core.task.getLatestDiagnosticsByTaskId(taskId);
136
+ });
137
+ fastify.get("/dashboard/:taskId", async (req) => {
138
+ const { taskId } = req.params;
139
+ return await fastify.core.task.getDashboardByTaskId(taskId);
48
140
  });
49
141
  fastify.get("/log/run/:runId", async (req) => {
50
142
  const { runId } = req.params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yinuo-ngm/server",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "a server package for Yinuo NG Manager",
5
5
  "author": "ZhangJing <892295834@qq.com>",
6
6
  "license": "ISC",
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@fastify/static": "^9.0.0",
30
30
  "@fastify/websocket": "^11.2.0",
31
- "@yinuo-ngm/api": "^0.1.6",
32
- "@yinuo-ngm/core": "^0.1.12",
33
- "@yinuo-ngm/errors": "^1.0.1",
34
- "@yinuo-ngm/nginx": "^0.1.3",
35
- "@yinuo-ngm/protocol": "^0.1.1",
31
+ "@yinuo-ngm/api": "^0.1.8",
32
+ "@yinuo-ngm/core": "^0.1.14",
33
+ "@yinuo-ngm/errors": "^1.0.2",
34
+ "@yinuo-ngm/nginx": "^0.1.4",
35
+ "@yinuo-ngm/protocol": "^0.1.3",
36
36
  "fastify": "^5.6.2",
37
37
  "fastify-plugin": "^5.1.0",
38
38
  "launch-editor": "^2.12.0",
@@ -43,5 +43,5 @@
43
43
  "@types/mime-types": "^3.0.1",
44
44
  "tsx": "^4.21.0"
45
45
  },
46
- "gitHead": "ac0934e4e703cea5f39264927676bcdbca8577a2"
46
+ "gitHead": "f64135f6db80de6928bc0b83c29c26e408e9fcfb"
47
47
  }
@@ -1,9 +1,4 @@
1
1
 
2
- --------------------------------------------------------------------------------
3
- Package: ng-zorro-antd
4
- License: "MIT"
5
-
6
-
7
2
  --------------------------------------------------------------------------------
8
3
  Package: dayjs
9
4
  License: "MIT"
@@ -30,6 +25,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
26
  SOFTWARE.
32
27
 
28
+ --------------------------------------------------------------------------------
29
+ Package: ng-zorro-antd
30
+ License: "MIT"
31
+
32
+
33
33
  --------------------------------------------------------------------------------
34
34
  Package: @angular/common
35
35
  License: "MIT"
@@ -1 +1 @@
1
- import{$a as w,Cb as S,Db as re,Hb as ce,L as a,Lb as ae,M as oe,Vb as ue,a as N,i as ie,ra as F,zb as se}from"./chunk-3CM4SKDO.js";import{$b as B,Ac as K,Da as u,Fb as f,Gb as O,Gc as g,Ha as T,Jc as X,Lc as J,Ra as p,Ub as L,Xc as v,ac as Q,bc as R,cc as m,dc as l,ec as Z,hd as M,i as A,id as Y,jd as ee,kd as ne,l as d,lc as $,ma as h,na as D,nb as x,oa as y,od as k,qa as j,rc as H,sa as o,sb as b,tb as P,uc as E,ud as te,vb as W,vc as z,wc as C,ya as G,yc as U,yd as c,za as _,zc as q}from"./chunk-4BRW6LCZ.js";var I=["*"],be=["inputElement"],fe=["nz-checkbox",""],me=(i,r)=>r.value;function ze(i,r){if(i&1&&(m(0,"label",0),X(1),l()),i&2){let e=r.$implicit,n=E(2);R("nzValue",e.value)("nzName",n.nzName())("nzDisabled",e.disabled||n.finalDisabled()),x(),J(" ",e.label," ")}}function Ce(i,r){if(i&1&&B(0,ze,2,4,"label",0,me),i&2){let e=E();Q(e.normalizedOptions())}}var ge=(()=>{class i{nzOnChange=new b;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(n=>n.nzChecked).map(n=>n.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:I,decls:1,vars:0,template:function(n,t){n&1&&(z(),C(0))},encapsulation:2,changeDetection:0})}return i})(),le=new j(""),de=(()=>{class i{ngZone=o(P);elementRef=o(p);cdr=o(te);focusMonitor=o(w);directionality=o(N);destroyRef=o(u);checkboxGroupComponent=o(le,{optional:!0});nzFormStatusService=o(se,{optional:!0});nzCheckboxWrapperComponent=o(ge,{optional:!0});dir="ltr";destroy$=new d;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new b;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=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.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&ee(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,F(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),F(this.inputElement.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["","nz-checkbox",""]],viewQuery:function(n,t){if(n&1&&U(be,7),n&2){let s;q(s=K())&&(t.inputElement=s.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-item",!!t.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!t.nzFormStatusService)("ant-checkbox-wrapper-checked",t.nzChecked)("ant-checkbox-wrapper-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",t.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0}])],attrs:fe,ngContentSelectors:I,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(n,t){if(n&1){let s=$();z(),m(0,"span",1)(1,"input",2,0),H("ngModelChange",function(he){return G(s),_(t.innerCheckedChange(he))}),l(),Z(3,"span",3),l(),m(4,"span"),C(5),l()}n&2&&(g("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",t.nzIndeterminate),x(),R("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled||((t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled())??!1)),L("autofocus",t.nzAutoFocus?"autofocus":null)("id",t.nzId)("name",t.nzName||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.nzName())))},dependencies:[ue,re,ce,ae],encapsulation:2,changeDetection:0})}return i})(),ve=(()=>{class i{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=o(N);nzName=k(null);nzDisabled=k(!1,{transform:c});nzOptions=k([]);value=T(null);finalDisabled=ne(()=>this.nzDisabled());dir=oe(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=Y(()=>ke(this.nzOptions()));constructor(){let e=o(p),n=o(w),t=o(u);W(()=>{n.monitor(e,!0).pipe(a(t)).subscribe(s=>{s||this.onTouched()}),t.onDestroy(()=>{n.stopMonitoring(e)})})}writeValue(e){M(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){M(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,n){this.finalDisabled()||(this.value.update(t=>n?t?.concat(e)||[e]:t?.filter(s=>s!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-rtl",t.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0},{provide:le,useExisting:h(()=>i)}])],ngContentSelectors:I,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(n,t){n&1&&(z(),C(0,0,null,Ce,2,0))},dependencies:[de],encapsulation:2,changeDetection:0})}return i})();function ke(i){return i.map(r=>typeof r=="string"||typeof r=="number"?{label:`${r}`,value:r}:r)}var Te=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=O({type:i});static \u0275inj=y({imports:[de,ve]})}return i})();var De=(()=>{class i{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xe=(()=>{class i{nzResizeObserverFactory=o(De);destroyRef=o(u);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,n)=>this.cleanupObserver(n)))}observe(e){let n=ie(e);return new A(t=>{let V=this.observeElement(n).subscribe(t);return()=>{V.unsubscribe(),this.unobserveElement(n)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let n=new d,t=this.nzResizeObserverFactory.create(s=>n.next(s));t&&t.observe(e),this.observedElements.set(e,{observer:t,stream:n,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:n,stream:t}=this.observedElements.get(e);n&&n.disconnect(),t.complete(),this.observedElements.delete(e)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{de as a,Te as b,Xe as c};
1
+ import{Ab as S,Bb as re,Fb as ce,Jb as ae,L as a,M as oe,Tb as ue,Za as w,a as N,i as ie,pa as F,xb as se}from"./chunk-VZYJ3MSW.js";import{$b as B,Ac as K,Da as u,Fb as f,Gb as O,Gc as g,Ha as T,Jc as X,Lc as J,Ra as p,Ub as L,Xc as v,ac as Q,bc as R,cc as m,dc as l,ec as Z,hd as M,i as A,id as Y,jd as ee,kd as ne,l as d,lc as $,ma as h,na as D,nb as x,oa as y,od as k,qa as j,rc as H,sa as o,sb as b,tb as P,uc as E,ud as te,vb as W,vc as z,wc as C,ya as G,yc as U,yd as c,za as _,zc as q}from"./chunk-4BRW6LCZ.js";var I=["*"],be=["inputElement"],fe=["nz-checkbox",""],me=(i,r)=>r.value;function ze(i,r){if(i&1&&(m(0,"label",0),X(1),l()),i&2){let e=r.$implicit,n=E(2);R("nzValue",e.value)("nzName",n.nzName())("nzDisabled",e.disabled||n.finalDisabled()),x(),J(" ",e.label," ")}}function Ce(i,r){if(i&1&&B(0,ze,2,4,"label",0,me),i&2){let e=E();Q(e.normalizedOptions())}}var ge=(()=>{class i{nzOnChange=new b;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(n=>n.nzChecked).map(n=>n.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:I,decls:1,vars:0,template:function(n,t){n&1&&(z(),C(0))},encapsulation:2,changeDetection:0})}return i})(),le=new j(""),de=(()=>{class i{ngZone=o(P);elementRef=o(p);cdr=o(te);focusMonitor=o(w);directionality=o(N);destroyRef=o(u);checkboxGroupComponent=o(le,{optional:!0});nzFormStatusService=o(se,{optional:!0});nzCheckboxWrapperComponent=o(ge,{optional:!0});dir="ltr";destroy$=new d;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new b;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=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.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&ee(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,F(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),F(this.inputElement.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["","nz-checkbox",""]],viewQuery:function(n,t){if(n&1&&U(be,7),n&2){let s;q(s=K())&&(t.inputElement=s.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-item",!!t.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!t.nzFormStatusService)("ant-checkbox-wrapper-checked",t.nzChecked)("ant-checkbox-wrapper-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",t.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0}])],attrs:fe,ngContentSelectors:I,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(n,t){if(n&1){let s=$();z(),m(0,"span",1)(1,"input",2,0),H("ngModelChange",function(he){return G(s),_(t.innerCheckedChange(he))}),l(),Z(3,"span",3),l(),m(4,"span"),C(5),l()}n&2&&(g("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",t.nzIndeterminate),x(),R("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled||((t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled())??!1)),L("autofocus",t.nzAutoFocus?"autofocus":null)("id",t.nzId)("name",t.nzName||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.nzName())))},dependencies:[ue,re,ce,ae],encapsulation:2,changeDetection:0})}return i})(),ve=(()=>{class i{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=o(N);nzName=k(null);nzDisabled=k(!1,{transform:c});nzOptions=k([]);value=T(null);finalDisabled=ne(()=>this.nzDisabled());dir=oe(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=Y(()=>ke(this.nzOptions()));constructor(){let e=o(p),n=o(w),t=o(u);W(()=>{n.monitor(e,!0).pipe(a(t)).subscribe(s=>{s||this.onTouched()}),t.onDestroy(()=>{n.stopMonitoring(e)})})}writeValue(e){M(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){M(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,n){this.finalDisabled()||(this.value.update(t=>n?t?.concat(e)||[e]:t?.filter(s=>s!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-rtl",t.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0},{provide:le,useExisting:h(()=>i)}])],ngContentSelectors:I,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(n,t){n&1&&(z(),C(0,0,null,Ce,2,0))},dependencies:[de],encapsulation:2,changeDetection:0})}return i})();function ke(i){return i.map(r=>typeof r=="string"||typeof r=="number"?{label:`${r}`,value:r}:r)}var Te=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=O({type:i});static \u0275inj=y({imports:[de,ve]})}return i})();var De=(()=>{class i{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xe=(()=>{class i{nzResizeObserverFactory=o(De);destroyRef=o(u);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,n)=>this.cleanupObserver(n)))}observe(e){let n=ie(e);return new A(t=>{let V=this.observeElement(n).subscribe(t);return()=>{V.unsubscribe(),this.unobserveElement(n)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let n=new d,t=this.nzResizeObserverFactory.create(s=>n.next(s));t&&t.observe(e),this.observedElements.set(e,{observer:t,stream:n,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:n,stream:t}=this.observedElements.get(e);n&&n.disconnect(),t.complete(),this.observedElements.delete(e)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{de as a,Te as b,Xe as c};
@@ -1 +1 @@
1
- import{a as A,b as D}from"./chunk-HDNG236Q.js";import{Ga as T,Ha as b,Na as y,Oa as k,Pa as x,Qa as S,Sa as E,Ta as v}from"./chunk-3CM4SKDO.js";import{Fb as _,Jc as a,Wb as d,Yb as g,cc as i,dc as o,ec as s,lc as z,nb as C,rc as c,sb as f,uc as l,ya as m,za as u}from"./chunk-4BRW6LCZ.js";function F(n,p){if(n&1){let t=z();i(0,"button",2),c("click",function(){m(t);let r=l();return u(r.toggle.emit())}),s(1,"span",3),a(2," \u8FD0\u884C "),o()}}function N(n,p){n&1&&(i(0,"button",1),s(1,"span",4),a(2," \u505C\u6B62\u4E2D... "),o())}function B(n,p){if(n&1){let t=z();i(0,"button",5),c("nzOnConfirm",function(){m(t);let r=l();return u(r.stopTask())}),s(1,"span",6),a(2," \u505C\u6B62 "),o(),i(3,"button",7),c("nzOnConfirm",function(){m(t);let r=l();return u(r.restart.emit())}),s(4,"span",8),a(5," \u91CD\u542F "),o()}}var w=class n{isRunning=!1;isStopping=!1;isStartable=!1;toggle=new f;restart=new f;stopTask(){this.toggle.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["app-task-actions"]],inputs:{isRunning:"isRunning",isStopping:"isStopping",isStartable:"isStartable"},outputs:{toggle:"toggle",restart:"restart"},decls:4,vars:1,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","primary","nzDanger",""],["nz-button","","nzType","primary",3,"click"],["nz-icon","","nzType","play-circle"],["nz-icon","","nzType","loading"],["nz-button","","nzType","primary","nzDanger","","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u505C\u6B62\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","pause"],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u91CD\u542F\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","sync"]],template:function(t,e){t&1&&(i(0,"nz-space"),d(1,F,3,0,"button",0)(2,N,3,0,"button",1)(3,B,6,0),o()),t&2&&(C(),g(e.isStartable?1:e.isStopping?2:e.isRunning?3:-1))},dependencies:[k,y,v,E,x,S,b,T,D,A],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center;position:relative}"]})};export{w as a};
1
+ import{a as A,b as D}from"./chunk-HC5KLPHD.js";import{Ea as T,Fa as b,La as y,Ma as k,Na as x,Oa as S,Qa as E,Ra as v}from"./chunk-VZYJ3MSW.js";import{Fb as _,Jc as a,Wb as d,Yb as g,cc as i,dc as o,ec as s,lc as z,nb as C,rc as c,sb as f,uc as l,ya as m,za as u}from"./chunk-4BRW6LCZ.js";function F(n,p){if(n&1){let t=z();i(0,"button",2),c("click",function(){m(t);let r=l();return u(r.toggle.emit())}),s(1,"span",3),a(2," \u8FD0\u884C "),o()}}function N(n,p){n&1&&(i(0,"button",1),s(1,"span",4),a(2," \u505C\u6B62\u4E2D... "),o())}function B(n,p){if(n&1){let t=z();i(0,"button",5),c("nzOnConfirm",function(){m(t);let r=l();return u(r.stopTask())}),s(1,"span",6),a(2," \u505C\u6B62 "),o(),i(3,"button",7),c("nzOnConfirm",function(){m(t);let r=l();return u(r.restart.emit())}),s(4,"span",8),a(5," \u91CD\u542F "),o()}}var w=class n{isRunning=!1;isStopping=!1;isStartable=!1;toggle=new f;restart=new f;stopTask(){this.toggle.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["app-task-actions"]],inputs:{isRunning:"isRunning",isStopping:"isStopping",isStartable:"isStartable"},outputs:{toggle:"toggle",restart:"restart"},decls:4,vars:1,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","primary","nzDanger",""],["nz-button","","nzType","primary",3,"click"],["nz-icon","","nzType","play-circle"],["nz-icon","","nzType","loading"],["nz-button","","nzType","primary","nzDanger","","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u505C\u6B62\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","pause"],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u91CD\u542F\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","sync"]],template:function(t,e){t&1&&(i(0,"nz-space"),d(1,F,3,0,"button",0)(2,N,3,0,"button",1)(3,B,6,0),o()),t&2&&(C(),g(e.isStartable?1:e.isStopping?2:e.isRunning?3:-1))},dependencies:[k,y,v,E,x,S,b,T,D,A],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center;position:relative}"]})};export{w as a};
@@ -0,0 +1 @@
1
+ import{k as c}from"./chunk-K6C5ZIV2.js";import{u as r}from"./chunk-KRYMOHYF.js";import{Ha as a,m,na as i,sa as k}from"./chunk-4BRW6LCZ.js";var R=class e{api=k(c);refresh(t){return this.api.post(`/api/tasks/refresh/${t}`,{})}refreshProjectScripts(t){return this.api.post(`/api/projects/refreshScripts/${t}`,{})}getViews(t){return this.api.get(`/api/tasks/list/${t}`)}getStatus(t){return this.api.get(`/api/tasks/status/${t}`)}start(t){let s={taskId:t};return this.api.post("/api/tasks/start",s)}stop(t){let s={taskId:t};return this.api.post("/api/tasks/stop",s)}restart(t){let s={taskId:t};return this.api.post("/api/tasks/restart",s)}active(){return this.api.get("/api/tasks/active")}getRunLog(t,s=200){let n=new r().set("tail",s.toString());return this.api.get(`/api/tasks/log/run/${t}`,n)}getLatestReport(t){return this.api.get(`/api/tasks/report/latest/${t}`)}getLatestDiagnostics(t){return this.api.get(`/api/tasks/diagnostics/latest/${t}`)}getReportSummariesByTask(t,s=10){let n=new r().set("limit",String(s));return this.api.get(`/api/tasks/report/summary/task/${t}`,n)}getDashboard(t){return this.api.get(`/api/tasks/dashboard/${t}`)}getSyslog(t=200){let s=new r().set("tail",t.toString());return this.api.get("/api/tasks/syslog",s)}static \u0275fac=function(s){return new(s||e)};static \u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})};var T=class e{statusByTask=new Map;sigByTask=new Map;runtimeByTask=new Map;runningCountByProject=new Map;totalRunningCount=a(0);totalRunningCountSignal(){return this.totalRunningCount}setRuntime(t){let s=this.norm(t.taskId),n=this.norm(t.projectId);if(!s||!n)return;let h=this.ensureTaskSignal(s)(),o=this.isBusy(h.status),d=this.isBusy(t.status),u=this.toStatus(t);if(this.ensureTaskSubject(s).next(u),this.ensureTaskSignal(s).set(u),this.ensureRuntimeSignal(s).set(t),o!==d){let p=this.ensureProjectCount(n),g=p();p.set(o?Math.max(0,g-1):g+1);let l=this.totalRunningCount();this.totalRunningCount.set(o?Math.max(0,l-1):l+1)}}status$(t){return this.ensureTaskSubject(t).asObservable()}statusSignal(t){return this.ensureTaskSignal(t)}runtimeSignal(t){return this.ensureRuntimeSignal(t)}hasRunning(t){return this.ensureProjectCount(t)()>0}runningCountSignal(t){return this.ensureProjectCount(t)}snapshot(t){return this.ensureTaskSignal(t)()}toStatus(t){switch(t.status){case"idle":return{status:"idle"};case"running":return{status:"running",pid:t.pid,startedAt:t.startedAt};case"stopping":return{status:"stopping"};case"failed":return{status:"failed",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};case"success":return{status:"success",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};case"stopped":return{status:"stopped",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};default:return{status:"idle"}}}isBusy(t){return t==="running"||t==="stopping"}norm(t){return(t??"").trim()}ensureTaskSubject(t){let s=this.norm(t);return this.statusByTask.has(s)||this.statusByTask.set(s,new m({status:"idle"})),this.statusByTask.get(s)}ensureTaskSignal(t){let s=this.norm(t);return this.sigByTask.has(s)||this.sigByTask.set(s,a({status:"idle"})),this.sigByTask.get(s)}ensureProjectCount(t){let s=this.norm(t);return this.runningCountByProject.has(s)||this.runningCountByProject.set(s,a(0)),this.runningCountByProject.get(s)}ensureRuntimeSignal(t){let s=this.norm(t);return this.runtimeByTask.has(s)||this.runtimeByTask.set(s,a(void 0)),this.runtimeByTask.get(s)}static \u0275fac=function(s){return new(s||e)};static \u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})};export{R as a,T as b};
@@ -1 +1 @@
1
- import{$ as b,D as Ee,Ea as Fe,G as Ie,Ga as Pe,H as q,Ha as Ve,Ia as je,Ja as We,L as P,W as G,a as Te,cb as $e,jb as Be,l as Ne,r as U,s as ke,sb as Qe,ta as Ae,u as F,v as Me,va as D,y as Se}from"./chunk-3CM4SKDO.js";import{i as Re}from"./chunk-KRYMOHYF.js";import{Ac as S,Ba as N,Bb as ze,Ca as me,Da as pe,Fb as Ce,Fc as E,Gb as _e,Gc as K,Hb as ge,Hc as L,Ic as xe,Jb as ye,Jc as I,Kc as A,Lb as C,Na as fe,Oa as he,Vc as be,Wb as m,Yb as p,bc as f,c as se,cc as h,dc as u,dd as De,ec as ve,f as j,fa as W,ic as O,jc as x,kc as we,l as T,lc as X,na as le,nb as o,oa as ce,qa as de,r as w,rc as Y,s as z,sa as l,sb as k,uc as r,ud as H,wb as Q,xc as Oe,ya as $,yb as ue,yc as Z,yd as g,za as B,zc as M}from"./chunk-4BRW6LCZ.js";var Ke=["drawerTemplate"];function Le(t,a){if(t&1){let e=X();h(0,"div",9),Y("click",function(){$(e);let _=r(2);return B(_.maskClick())}),u()}if(t&2){let e=r(2);L(e.nzMaskStyle),f("@drawerMaskMotion",void 0)}}function He(t,a){if(t&1&&(O(0),ve(1,"nz-icon",17),x()),t&2){let e=a.$implicit;o(),f("nzType",e)}}function Ue(t,a){if(t&1){let e=X();h(0,"button",15),Y("click",function(){$(e);let _=r(3);return B(_.closeClick())}),C(1,He,2,1,"ng-container",16),u()}if(t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzCloseIcon)}}function qe(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzTitle)}}function Ge(t,a){if(t&1&&(h(0,"div",13),C(1,qe,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzTitle)}}function Je(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzExtra)}}function et(t,a){if(t&1&&(h(0,"div",14),C(1,Je,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzExtra)}}function tt(t,a){if(t&1&&(h(0,"div",10)(1,"div",11),m(2,Ue,2,1,"button",12),m(3,Ge,2,1,"div",13),u(),m(4,et,2,1,"div",14),u()),t&2){let e=r(2);K("ant-drawer-header-close-only",!e.nzTitle),o(2),p(e.nzClosable?2:-1),o(),p(e.nzTitle?3:-1),o(),p(e.nzExtra?4:-1)}}function nt(t,a){}function it(t,a){t&1&&we(0)}function at(t,a){if(t&1&&C(0,it,1,0,"ng-container",18),t&2){let e=r(3);f("ngTemplateOutlet",e.nzContent)("ngTemplateOutletContext",e.templateContext)}}function ot(t,a){if(t&1&&m(0,at,1,2,"ng-container"),t&2){let e=r(2);p(e.isTemplateRef(e.nzContent)?0:-1)}}function rt(t,a){}function st(t,a){if(t&1&&C(0,rt,0,0,"ng-template",19),t&2){let e=r(3);f("ngTemplateOutlet",e.contentFromContentChild)}}function lt(t,a){if(t&1&&m(0,st,1,1,null,19),t&2){let e=r(2);p(e.contentFromContentChild&&(e.isOpen||e.inAnimation)?0:-1)}}function ct(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(3);o(),A(e.nzFooter)}}function dt(t,a){if(t&1&&(h(0,"div",8),C(1,ct,2,1,"ng-container",16),u()),t&2){let e=r(2);o(),f("nzStringTemplateOutlet",e.nzFooter)}}function mt(t,a){if(t&1&&(h(0,"div",1),m(1,Le,1,3,"div",2),h(2,"div")(3,"div",3)(4,"div",4),m(5,tt,5,5,"div",5),h(6,"div",6),C(7,nt,0,0,"ng-template",7),m(8,ot,1,1)(9,lt,1,1),u(),m(10,dt,2,1,"div",8),u()()()()),t&2){let e=r();E("transform",e.offsetTransform)("transition",e.placementChanging?"none":null)("z-index",e.nzZIndex),K("ant-drawer-rtl",e.dir==="rtl")("ant-drawer-open",e.isOpen)("no-mask",!e.nzMask)("ant-drawer-top",e.nzPlacement==="top")("ant-drawer-bottom",e.nzPlacement==="bottom")("ant-drawer-right",e.nzPlacement==="right")("ant-drawer-left",e.nzPlacement==="left"),f("nzNoAnimation",e.nzNoAnimation),o(),p(e.nzMask&&e.isOpen?1:-1),o(),xe(be("ant-drawer-content-wrapper ",e.nzWrapClassName)),E("width",e.width)("height",e.height)("transform",e.transform)("transition",e.placementChanging?"none":null),o(2),E("height",e.isLeftOrRight?"100%":null),o(),p(e.nzTitle||e.nzClosable?5:-1),o(),L(e.nzBodyStyle),o(2),p(e.nzContent?8:9),o(2),p(e.nzFooter?10:-1)}}var pt=(()=>{class t{templateRef=l(Q);static \u0275fac=function(c){return new(c||t)};static \u0275dir=ge({type:t,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]})}return t})(),Xe=378,Ye=736,ft=new de(""),V=class{},ht=300,ut="drawer",Ze=(()=>{var d;let t=V,a,e=[],c=[],_,v=[],R=[],ee,te=[],ne=[],ie,ae=[],oe=[];return d=class extends t{cdr=l(H);nzConfigService=l(Ae);renderer=l(ue);injector=l(N);changeDetectorRef=l(H);focusTrapFactory=l($e);viewContainerRef=l(ze);overlayKeyboardDispatcher=l(Ee);directionality=l(Te);destroyRef=l(pe);_nzModuleName=ut;nzContent;nzCloseIcon="close";nzClosable=!0;nzMaskClosable=z(this,e,!0);nzMask=(z(this,c),z(this,v,!0));nzCloseOnNavigation=(z(this,R),z(this,te,!0));nzNoAnimation=(z(this,ne),!1);nzKeyboard=!0;nzTitle;nzExtra;nzFooter;nzPlacement="right";nzSize="default";nzMaskStyle={};nzBodyStyle={};nzWrapClassName;nzWidth;nzHeight;nzZIndex=1e3;nzOffsetX=0;nzOffsetY=0;componentInstance=null;componentRef=null;set nzVisible(i){this.isOpen=i}get nzVisible(){return this.isOpen}nzOnViewInit=new k;nzOnClose=new k;nzVisibleChange=new k;drawerTemplate;bodyPortalOutlet;contentFromContentChild;previouslyFocusedElement;placementChanging=!1;placementChangeTimeoutId;nzContentParams;nzData;overlayRef;portal;focusTrap;isOpen=!1;inAnimation=!1;templateContext={$implicit:void 0,drawerRef:this};isTemplateRef=G;get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){if(this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzWidth===void 0?b(i):b(this.nzWidth)}return null}get height(){if(!this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzHeight===void 0?b(i):b(this.nzHeight)}return null}get isLeftOrRight(){return this.nzPlacement==="left"||this.nzPlacement==="right"}nzAfterOpen=new T;nzAfterClose=new T;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}get isNzContentTemplateRef(){return G(this.nzContent)}nzDirection=z(this,ae,void 0);dir=(z(this,oe),"ltr");document=l(me);constructor(){super(),this.destroyRef.onDestroy(()=>{clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()})}ngOnInit(){this.directionality.change?.pipe(P(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzData||this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(i){let{nzPlacement:n,nzVisible:s}=i;s&&(i.nzVisible.currentValue?this.open():this.close()),n&&!n.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}getAnimationDuration(){return this.nzNoAnimation?0:ht}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(i){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(i),this.nzAfterClose.complete(),this.componentInstance=null,this.componentRef=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof fe){let i=N.create({parent:this.injector,providers:[{provide:V,useValue:this},{provide:ft,useValue:this.nzData}]}),n=new U(this.nzContent,null,i);this.componentRef=this.bodyPortalOutlet.attachComponentPortal(n),this.componentInstance=this.componentRef.instance,Object.assign(this.componentRef.instance,this.nzData||this.nzContentParams),this.componentRef.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ke(this.drawerTemplate,this.viewContainerRef),this.overlayRef=q(this.injector,{disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:Ie(this.injector),scrollStrategy:Se(this.injector)}),Fe(this.overlayRef,this.nzZIndex)),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(P(this.destroyRef)).subscribe(i=>{i.keyCode===27&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe(P(this.destroyRef)).subscribe(()=>{this.close(),this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.blur=="function"&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.focus=="function"&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=void 0),this.focusTrap&&this.focusTrap.destroy()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;a=[D()],_=[D()],ee=[D()],ie=[D()],w(null,null,a,{kind:"field",name:"nzMaskClosable",static:!1,private:!1,access:{has:n=>"nzMaskClosable"in n,get:n=>n.nzMaskClosable,set:(n,s)=>{n.nzMaskClosable=s}},metadata:i},e,c),w(null,null,_,{kind:"field",name:"nzMask",static:!1,private:!1,access:{has:n=>"nzMask"in n,get:n=>n.nzMask,set:(n,s)=>{n.nzMask=s}},metadata:i},v,R),w(null,null,ee,{kind:"field",name:"nzCloseOnNavigation",static:!1,private:!1,access:{has:n=>"nzCloseOnNavigation"in n,get:n=>n.nzCloseOnNavigation,set:(n,s)=>{n.nzCloseOnNavigation=s}},metadata:i},te,ne),w(null,null,ie,{kind:"field",name:"nzDirection",static:!1,private:!1,access:{has:n=>"nzDirection"in n,get:n=>n.nzDirection,set:(n,s)=>{n.nzDirection=s}},metadata:i},ae,oe),i&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),j(d,"\u0275fac",function(n){return new(n||d)}),j(d,"\u0275cmp",Ce({type:d,selectors:[["nz-drawer"]],contentQueries:function(n,s,y){if(n&1&&Oe(y,pt,7,Q),n&2){let re;M(re=S())&&(s.contentFromContentChild=re.first)}},viewQuery:function(n,s){if(n&1&&(Z(Ke,7),Z(F,5)),n&2){let y;M(y=S())&&(s.drawerTemplate=y.first),M(y=S())&&(s.bodyPortalOutlet=y.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:[2,"nzClosable","nzClosable",g],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",g],nzMask:[2,"nzMask","nzMask",g],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",g],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",g],nzKeyboard:[2,"nzKeyboard","nzKeyboard",g],nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:[2,"nzVisible","nzVisible",g]},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[ye,he],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],[1,"ant-drawer-mask",3,"style"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[1,"ant-drawer-header",3,"ant-drawer-header-close-only"],["cdkScrollable","",1,"ant-drawer-body"],["cdkPortalOutlet",""],[1,"ant-drawer-footer"],[1,"ant-drawer-mask",3,"click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close",1,"ant-drawer-close"],[1,"ant-drawer-title"],[1,"ant-drawer-extra"],["aria-label","Close",1,"ant-drawer-close",3,"click"],[4,"nzStringTemplateOutlet"],[3,"nzType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(n,s){n&1&&C(0,mt,11,40,"ng-template",null,0,De)},dependencies:[Qe,We,je,Ve,Pe,Me,F,Re,Ne],encapsulation:2,data:{animation:[Be]},changeDetection:0})),d})(),J=class{overlayRef;options;drawerRef;unsubscribe$=new T;constructor(a,e){this.overlayRef=a,this.options=e;let v=this.options,{nzOnCancel:c}=v,_=se(v,["nzOnCancel"]);this.drawerRef=this.overlayRef.attach(new U(Ze)).instance,this.updateOptions(_),this.drawerRef.savePreviouslyFocusedElement(),this.drawerRef.nzOnViewInit.pipe(W(this.unsubscribe$)).subscribe(()=>{this.drawerRef.open()}),this.drawerRef.nzOnClose.subscribe(()=>{c?c().then(R=>{R!==!1&&this.drawerRef.close()}):this.drawerRef.close()}),this.drawerRef.afterClose.pipe(W(this.unsubscribe$)).subscribe(()=>{this.overlayRef.dispose(),this.drawerRef=null,this.unsubscribe$.next(),this.unsubscribe$.complete()})}getInstance(){return this.drawerRef}updateOptions(a){Object.assign(this.drawerRef,a)}},zt=(()=>{class t{injector=l(N);create(e){return new J(q(this.injector),e).getInstance()}static \u0275fac=function(c){return new(c||t)};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),Lt=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=_e({type:t});static \u0275inj=ce({providers:[zt],imports:[Ze]})}return t})();export{pt as a,Ze as b,Lt as c};
1
+ import{$ as b,Ca as Fe,D as Ee,Ea as Pe,Fa as Ve,G as Ie,Ga as je,H as q,Ha as We,L as P,W as G,a as Te,ab as $e,hb as Be,l as Ne,qb as Qe,r as U,ra as Ae,s as ke,ta as D,u as F,v as Me,y as Se}from"./chunk-VZYJ3MSW.js";import{i as Re}from"./chunk-KRYMOHYF.js";import{Ac as S,Ba as N,Bb as ze,Ca as me,Da as pe,Fb as Ce,Fc as E,Gb as _e,Gc as K,Hb as ge,Hc as L,Ic as xe,Jb as ye,Jc as I,Kc as A,Lb as C,Na as fe,Oa as he,Vc as be,Wb as m,Yb as p,bc as f,c as se,cc as h,dc as u,dd as De,ec as ve,f as j,fa as W,ic as O,jc as x,kc as we,l as T,lc as X,na as le,nb as o,oa as ce,qa as de,r as w,rc as Y,s as z,sa as l,sb as k,uc as r,ud as H,wb as Q,xc as Oe,ya as $,yb as ue,yc as Z,yd as g,za as B,zc as M}from"./chunk-4BRW6LCZ.js";var Ke=["drawerTemplate"];function Le(t,a){if(t&1){let e=X();h(0,"div",9),Y("click",function(){$(e);let _=r(2);return B(_.maskClick())}),u()}if(t&2){let e=r(2);L(e.nzMaskStyle),f("@drawerMaskMotion",void 0)}}function He(t,a){if(t&1&&(O(0),ve(1,"nz-icon",17),x()),t&2){let e=a.$implicit;o(),f("nzType",e)}}function Ue(t,a){if(t&1){let e=X();h(0,"button",15),Y("click",function(){$(e);let _=r(3);return B(_.closeClick())}),C(1,He,2,1,"ng-container",16),u()}if(t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzCloseIcon)}}function qe(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzTitle)}}function Ge(t,a){if(t&1&&(h(0,"div",13),C(1,qe,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzTitle)}}function Je(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzExtra)}}function et(t,a){if(t&1&&(h(0,"div",14),C(1,Je,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzExtra)}}function tt(t,a){if(t&1&&(h(0,"div",10)(1,"div",11),m(2,Ue,2,1,"button",12),m(3,Ge,2,1,"div",13),u(),m(4,et,2,1,"div",14),u()),t&2){let e=r(2);K("ant-drawer-header-close-only",!e.nzTitle),o(2),p(e.nzClosable?2:-1),o(),p(e.nzTitle?3:-1),o(),p(e.nzExtra?4:-1)}}function nt(t,a){}function it(t,a){t&1&&we(0)}function at(t,a){if(t&1&&C(0,it,1,0,"ng-container",18),t&2){let e=r(3);f("ngTemplateOutlet",e.nzContent)("ngTemplateOutletContext",e.templateContext)}}function ot(t,a){if(t&1&&m(0,at,1,2,"ng-container"),t&2){let e=r(2);p(e.isTemplateRef(e.nzContent)?0:-1)}}function rt(t,a){}function st(t,a){if(t&1&&C(0,rt,0,0,"ng-template",19),t&2){let e=r(3);f("ngTemplateOutlet",e.contentFromContentChild)}}function lt(t,a){if(t&1&&m(0,st,1,1,null,19),t&2){let e=r(2);p(e.contentFromContentChild&&(e.isOpen||e.inAnimation)?0:-1)}}function ct(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(3);o(),A(e.nzFooter)}}function dt(t,a){if(t&1&&(h(0,"div",8),C(1,ct,2,1,"ng-container",16),u()),t&2){let e=r(2);o(),f("nzStringTemplateOutlet",e.nzFooter)}}function mt(t,a){if(t&1&&(h(0,"div",1),m(1,Le,1,3,"div",2),h(2,"div")(3,"div",3)(4,"div",4),m(5,tt,5,5,"div",5),h(6,"div",6),C(7,nt,0,0,"ng-template",7),m(8,ot,1,1)(9,lt,1,1),u(),m(10,dt,2,1,"div",8),u()()()()),t&2){let e=r();E("transform",e.offsetTransform)("transition",e.placementChanging?"none":null)("z-index",e.nzZIndex),K("ant-drawer-rtl",e.dir==="rtl")("ant-drawer-open",e.isOpen)("no-mask",!e.nzMask)("ant-drawer-top",e.nzPlacement==="top")("ant-drawer-bottom",e.nzPlacement==="bottom")("ant-drawer-right",e.nzPlacement==="right")("ant-drawer-left",e.nzPlacement==="left"),f("nzNoAnimation",e.nzNoAnimation),o(),p(e.nzMask&&e.isOpen?1:-1),o(),xe(be("ant-drawer-content-wrapper ",e.nzWrapClassName)),E("width",e.width)("height",e.height)("transform",e.transform)("transition",e.placementChanging?"none":null),o(2),E("height",e.isLeftOrRight?"100%":null),o(),p(e.nzTitle||e.nzClosable?5:-1),o(),L(e.nzBodyStyle),o(2),p(e.nzContent?8:9),o(2),p(e.nzFooter?10:-1)}}var pt=(()=>{class t{templateRef=l(Q);static \u0275fac=function(c){return new(c||t)};static \u0275dir=ge({type:t,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]})}return t})(),Xe=378,Ye=736,ft=new de(""),V=class{},ht=300,ut="drawer",Ze=(()=>{var d;let t=V,a,e=[],c=[],_,v=[],R=[],ee,te=[],ne=[],ie,ae=[],oe=[];return d=class extends t{cdr=l(H);nzConfigService=l(Ae);renderer=l(ue);injector=l(N);changeDetectorRef=l(H);focusTrapFactory=l($e);viewContainerRef=l(ze);overlayKeyboardDispatcher=l(Ee);directionality=l(Te);destroyRef=l(pe);_nzModuleName=ut;nzContent;nzCloseIcon="close";nzClosable=!0;nzMaskClosable=z(this,e,!0);nzMask=(z(this,c),z(this,v,!0));nzCloseOnNavigation=(z(this,R),z(this,te,!0));nzNoAnimation=(z(this,ne),!1);nzKeyboard=!0;nzTitle;nzExtra;nzFooter;nzPlacement="right";nzSize="default";nzMaskStyle={};nzBodyStyle={};nzWrapClassName;nzWidth;nzHeight;nzZIndex=1e3;nzOffsetX=0;nzOffsetY=0;componentInstance=null;componentRef=null;set nzVisible(i){this.isOpen=i}get nzVisible(){return this.isOpen}nzOnViewInit=new k;nzOnClose=new k;nzVisibleChange=new k;drawerTemplate;bodyPortalOutlet;contentFromContentChild;previouslyFocusedElement;placementChanging=!1;placementChangeTimeoutId;nzContentParams;nzData;overlayRef;portal;focusTrap;isOpen=!1;inAnimation=!1;templateContext={$implicit:void 0,drawerRef:this};isTemplateRef=G;get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){if(this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzWidth===void 0?b(i):b(this.nzWidth)}return null}get height(){if(!this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzHeight===void 0?b(i):b(this.nzHeight)}return null}get isLeftOrRight(){return this.nzPlacement==="left"||this.nzPlacement==="right"}nzAfterOpen=new T;nzAfterClose=new T;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}get isNzContentTemplateRef(){return G(this.nzContent)}nzDirection=z(this,ae,void 0);dir=(z(this,oe),"ltr");document=l(me);constructor(){super(),this.destroyRef.onDestroy(()=>{clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()})}ngOnInit(){this.directionality.change?.pipe(P(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzData||this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(i){let{nzPlacement:n,nzVisible:s}=i;s&&(i.nzVisible.currentValue?this.open():this.close()),n&&!n.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}getAnimationDuration(){return this.nzNoAnimation?0:ht}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(i){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(i),this.nzAfterClose.complete(),this.componentInstance=null,this.componentRef=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof fe){let i=N.create({parent:this.injector,providers:[{provide:V,useValue:this},{provide:ft,useValue:this.nzData}]}),n=new U(this.nzContent,null,i);this.componentRef=this.bodyPortalOutlet.attachComponentPortal(n),this.componentInstance=this.componentRef.instance,Object.assign(this.componentRef.instance,this.nzData||this.nzContentParams),this.componentRef.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ke(this.drawerTemplate,this.viewContainerRef),this.overlayRef=q(this.injector,{disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:Ie(this.injector),scrollStrategy:Se(this.injector)}),Fe(this.overlayRef,this.nzZIndex)),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(P(this.destroyRef)).subscribe(i=>{i.keyCode===27&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe(P(this.destroyRef)).subscribe(()=>{this.close(),this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.blur=="function"&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.focus=="function"&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=void 0),this.focusTrap&&this.focusTrap.destroy()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;a=[D()],_=[D()],ee=[D()],ie=[D()],w(null,null,a,{kind:"field",name:"nzMaskClosable",static:!1,private:!1,access:{has:n=>"nzMaskClosable"in n,get:n=>n.nzMaskClosable,set:(n,s)=>{n.nzMaskClosable=s}},metadata:i},e,c),w(null,null,_,{kind:"field",name:"nzMask",static:!1,private:!1,access:{has:n=>"nzMask"in n,get:n=>n.nzMask,set:(n,s)=>{n.nzMask=s}},metadata:i},v,R),w(null,null,ee,{kind:"field",name:"nzCloseOnNavigation",static:!1,private:!1,access:{has:n=>"nzCloseOnNavigation"in n,get:n=>n.nzCloseOnNavigation,set:(n,s)=>{n.nzCloseOnNavigation=s}},metadata:i},te,ne),w(null,null,ie,{kind:"field",name:"nzDirection",static:!1,private:!1,access:{has:n=>"nzDirection"in n,get:n=>n.nzDirection,set:(n,s)=>{n.nzDirection=s}},metadata:i},ae,oe),i&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),j(d,"\u0275fac",function(n){return new(n||d)}),j(d,"\u0275cmp",Ce({type:d,selectors:[["nz-drawer"]],contentQueries:function(n,s,y){if(n&1&&Oe(y,pt,7,Q),n&2){let re;M(re=S())&&(s.contentFromContentChild=re.first)}},viewQuery:function(n,s){if(n&1&&(Z(Ke,7),Z(F,5)),n&2){let y;M(y=S())&&(s.drawerTemplate=y.first),M(y=S())&&(s.bodyPortalOutlet=y.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:[2,"nzClosable","nzClosable",g],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",g],nzMask:[2,"nzMask","nzMask",g],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",g],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",g],nzKeyboard:[2,"nzKeyboard","nzKeyboard",g],nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:[2,"nzVisible","nzVisible",g]},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[ye,he],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],[1,"ant-drawer-mask",3,"style"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[1,"ant-drawer-header",3,"ant-drawer-header-close-only"],["cdkScrollable","",1,"ant-drawer-body"],["cdkPortalOutlet",""],[1,"ant-drawer-footer"],[1,"ant-drawer-mask",3,"click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close",1,"ant-drawer-close"],[1,"ant-drawer-title"],[1,"ant-drawer-extra"],["aria-label","Close",1,"ant-drawer-close",3,"click"],[4,"nzStringTemplateOutlet"],[3,"nzType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(n,s){n&1&&C(0,mt,11,40,"ng-template",null,0,De)},dependencies:[Qe,We,je,Ve,Pe,Me,F,Re,Ne],encapsulation:2,data:{animation:[Be]},changeDetection:0})),d})(),J=class{overlayRef;options;drawerRef;unsubscribe$=new T;constructor(a,e){this.overlayRef=a,this.options=e;let v=this.options,{nzOnCancel:c}=v,_=se(v,["nzOnCancel"]);this.drawerRef=this.overlayRef.attach(new U(Ze)).instance,this.updateOptions(_),this.drawerRef.savePreviouslyFocusedElement(),this.drawerRef.nzOnViewInit.pipe(W(this.unsubscribe$)).subscribe(()=>{this.drawerRef.open()}),this.drawerRef.nzOnClose.subscribe(()=>{c?c().then(R=>{R!==!1&&this.drawerRef.close()}):this.drawerRef.close()}),this.drawerRef.afterClose.pipe(W(this.unsubscribe$)).subscribe(()=>{this.overlayRef.dispose(),this.drawerRef=null,this.unsubscribe$.next(),this.unsubscribe$.complete()})}getInstance(){return this.drawerRef}updateOptions(a){Object.assign(this.drawerRef,a)}},zt=(()=>{class t{injector=l(N);create(e){return new J(q(this.injector),e).getInstance()}static \u0275fac=function(c){return new(c||t)};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),Lt=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=_e({type:t});static \u0275inj=ce({providers:[zt],imports:[Ze]})}return t})();export{pt as a,Ze as b,Lt as c};
@@ -1,4 +1,4 @@
1
- import{M as je}from"./chunk-3CM4SKDO.js";import{A as Me,p as E,w as Ne}from"./chunk-KRYMOHYF.js";import{B as ue,Bb as $e,Fb as K,Gb as Ae,Gc as Pe,J as de,Jc as Ce,Kc as Le,L as ge,Oa as Se,Ra as Re,T as fe,V as me,Wa as Te,a as f,b as O,ba as ke,ea as xe,fa as be,fc as Oe,gc as _e,ib as Q,id as De,l as D,na as we,nb as Ee,oa as ye,qa as _,ra as R,sb as N,tc as ze,u as pe,vc as Ie,wc as ve,zb as M}from"./chunk-4BRW6LCZ.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=J();function We(r){A=r}var C={exec:()=>null};function g(r,e=""){let i=typeof r=="string"?r:r.source,n={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),n},getRegex:()=>new RegExp(i,e)};return n}var lt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},at=/^(?:[ \t]*(?:\n|$))+/,ot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ke=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ut=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ne).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),mt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),re={blockquote:mt,code:ot,def:dt,fences:ct,heading:ht,hr:L,html:ft,lheading:Ke,list:gt,newline:at,paragraph:Xe,table:C,text:ut},Be=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),kt=O(f({},re),{lheading:pt,table:Be,paragraph:g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),xt=O(f({},re),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ee).replace("hr",L).replace("heading",` *#{1,6} *[^
1
+ import{M as je}from"./chunk-VZYJ3MSW.js";import{A as Me,p as E,w as Ne}from"./chunk-KRYMOHYF.js";import{B as ue,Bb as $e,Fb as K,Gb as Ae,Gc as Pe,J as de,Jc as Ce,Kc as Le,L as ge,Oa as Se,Ra as Re,T as fe,V as me,Wa as Te,a as f,b as O,ba as ke,ea as xe,fa as be,fc as Oe,gc as _e,ib as Q,id as De,l as D,na as we,nb as Ee,oa as ye,qa as _,ra as R,sb as N,tc as ze,u as pe,vc as Ie,wc as ve,zb as M}from"./chunk-4BRW6LCZ.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=J();function We(r){A=r}var C={exec:()=>null};function g(r,e=""){let i=typeof r=="string"?r:r.source,n={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),n},getRegex:()=>new RegExp(i,e)};return n}var lt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},at=/^(?:[ \t]*(?:\n|$))+/,ot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ke=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ut=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ne).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),mt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),re={blockquote:mt,code:ot,def:dt,fences:ct,heading:ht,hr:L,html:ft,lheading:Ke,list:gt,newline:at,paragraph:Xe,table:C,text:ut},Be=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),kt=O(f({},re),{lheading:pt,table:Be,paragraph:g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),xt=O(f({},re),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ee).replace("hr",L).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Ke).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),bt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ge=/^( {2,}|\\)\n(?!\s*$)/,yt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,H=/[\p{P}\p{S}]/u,ie=/[\s\p{P}\p{S}]/u,Ve=/[^\s\p{P}\p{S}]/u,St=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ie).getRegex(),Je=/(?!~)[\p{P}\p{S}]/u,Rt=/(?!~)[\s\p{P}\p{S}]/u,Tt=/(?:[^\s\p{P}\p{S}]|~)/u,Et=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",lt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ye=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$t=g(Ye,"u").replace(/punct/g,H).getRegex(),At=g(Ye,"u").replace(/punct/g,Je).getRegex(),et="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ot=g(et,"gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),_t=g(et,"gu").replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,Rt).replace(/punct/g,Je).getRegex(),zt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),It=g(/\\(punct)/,"gu").replace(/punct/g,H).getRegex(),vt=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pt=g(ne).replace("(?:-->|$)","-->").getRegex(),Ct=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),B=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lt=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",B).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",B).replace("ref",te).getRegex(),nt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),Dt=g("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",nt).getRegex(),Fe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:C,anyPunctuation:It,autolink:vt,blockSkip:Et,br:Ge,code:wt,del:C,emStrongLDelim:$t,emStrongRDelimAst:Ot,emStrongRDelimUnd:zt,escape:bt,link:Lt,nolink:nt,punctuation:St,reflink:tt,reflinkSearch:Dt,tag:Ct,text:yt,url:C},Nt=O(f({},se),{link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",B).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B).getRegex()}),X=O(f({},se),{emStrongRDelimAst:_t,emStrongLDelim:At,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fe).getRegex()}),Mt=O(f({},X),{br:g(Ge).replace("{2,}","*").getRegex(),text:g(X.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),j={normal:re,gfm:kt,pedantic:xt},I={normal:se,gfm:X,breaks:Mt,pedantic:Nt},jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qe=r=>jt[r];function S(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,qe)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,qe);return r}function He(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function Ze(r,e){let i=r.replace(b.findPipe,(l,s,o)=>{let a=!1,h=s;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),n=i.split(b.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;t<n.length;t++)n[t]=n[t].trim().replace(b.slashPipe,"|");return n}function v(r,e,i){let n=r.length;if(n===0)return"";let t=0;for(;t<n;){let l=r.charAt(n-t-1);if(l===e&&!i)t++;else if(l!==e&&i)t++;else break}return r.slice(0,n-t)}function Bt(r,e){if(r.indexOf(e[1])===-1)return-1;let i=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])i++;else if(r[n]===e[1]&&(i--,i<0))return n;return i>0?-2:-1}function Ue(r,e,i,n,t){let l=e.href,s=e.title||null,o=r[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let a={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,a}function Ft(r,e,i){let n=r.match(i.other.indentCodeCompensation);if(n===null)return e;let t=n[1];return e.split(`
3
3
  `).map(l=>{let s=l.match(i.other.beginningSpace);if(s===null)return l;let[o]=s;return o.length>=t.length?l.slice(t.length):l}).join(`
4
4
  `)}var F=class{options;rules;lexer;constructor(r){this.options=r||A}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:v(i,`
@@ -1 +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};
1
+ import{Ab as C,L as o,Za as O,a as R,pa as P,xb as T}from"./chunk-VZYJ3MSW.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};