@imenam/mcp-feature-analyzer 1.0.34 → 1.0.36

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 (105) hide show
  1. package/README.md +22 -5
  2. package/dist/shared/question-thread.d.ts +19 -0
  3. package/dist/shared/question-thread.js +19 -0
  4. package/dist/shared/schemas/analysis.schema.d.ts +43 -1
  5. package/dist/shared/schemas/analysis.schema.js +13 -1
  6. package/dist/shared/schemas/api.schema.d.ts +14 -0
  7. package/dist/shared/schemas/api.schema.js +9 -0
  8. package/dist/shared/schemas/ipc.schema.d.ts +1 -1
  9. package/dist/shared/schemas/ipc.schema.js +1 -0
  10. package/dist/src/cli/manager-bundle.d.ts +32 -0
  11. package/dist/src/cli/manager-bundle.js +273 -0
  12. package/dist/src/cli/migrate-to-manager.d.ts +1 -0
  13. package/dist/src/cli/migrate-to-manager.js +24 -0
  14. package/dist/src/core/analysis-store.d.ts +7 -0
  15. package/dist/src/core/analysis-store.js +24 -0
  16. package/dist/src/core/invariants.js +11 -2
  17. package/dist/src/core/migrate.d.ts +2 -0
  18. package/dist/src/core/migrate.js +22 -0
  19. package/dist/src/core/notifications.d.ts +11 -2
  20. package/dist/src/core/notifications.js +17 -5
  21. package/dist/src/core/review-actions.d.ts +10 -4
  22. package/dist/src/core/review-actions.js +40 -10
  23. package/dist/src/gui-worker.js +7 -1
  24. package/dist/src/index.js +15 -4
  25. package/dist/src/tools/get-analysis.js +9 -4
  26. package/dist/src/tools/notifications.js +2 -0
  27. package/gui/dist/assets/{angular-html-C_Umbo_o.js → angular-html-D6ybriip.js} +1 -1
  28. package/gui/dist/assets/{angular-ts-BS5NFEKQ.js → angular-ts-CZyN0KhI.js} +1 -1
  29. package/gui/dist/assets/{apl-BXNp6RaU.js → apl-Dl58kWHo.js} +1 -1
  30. package/gui/dist/assets/{astro-1di0oIiS.js → astro-DtlnFSUO.js} +1 -1
  31. package/gui/dist/assets/{blade-bFPOELdA.js → blade-DmJ0_rHH.js} +1 -1
  32. package/gui/dist/assets/{c-BLZ_xWbb.js → c-mC1a3Brk.js} +1 -1
  33. package/gui/dist/assets/{chapel-C_HSM6Pq.js → chapel-BzC5d5Li.js} +1 -1
  34. package/gui/dist/assets/{cobol-DXoz67hJ.js → cobol-BbiEwu_G.js} +1 -1
  35. package/gui/dist/assets/{coffee-DlhFbGsO.js → coffee-DE8QSbI2.js} +1 -1
  36. package/gui/dist/assets/{cpp-BaCMyKr2.js → cpp-Bb3xCuxM.js} +1 -1
  37. package/gui/dist/assets/{crystal-CJURYNNT.js → crystal-Dh_G4EEb.js} +1 -1
  38. package/gui/dist/assets/{css-CX_LiCz_.js → css-CMxAsymy.js} +1 -1
  39. package/gui/dist/assets/{edge-CTUGxEgV.js → edge-CniFTb1m.js} +1 -1
  40. package/gui/dist/assets/{elixir-CQwEci3v.js → elixir-ZmJWOMj1.js} +1 -1
  41. package/gui/dist/assets/{elm-BkLKshkr.js → elm-DJRxZUyP.js} +1 -1
  42. package/gui/dist/assets/{erb-1YN1e0vJ.js → erb-BMzBpztO.js} +1 -1
  43. package/gui/dist/assets/{git-rebase-BKS3kIrK.js → git-rebase-CA-NBf_5.js} +1 -1
  44. package/gui/dist/assets/{glimmer-js-CcF_d66k.js → glimmer-js-BhxckZg7.js} +1 -1
  45. package/gui/dist/assets/{glimmer-ts-CY0XDie9.js → glimmer-ts-p7xbN2k1.js} +1 -1
  46. package/gui/dist/assets/{glsl-DccBV_n0.js → glsl-CL99TffA.js} +1 -1
  47. package/gui/dist/assets/{graphql-C2PFH9th.js → graphql-D7Xxg-E7.js} +1 -1
  48. package/gui/dist/assets/{hack-BCI4tEad.js → hack-CUAoLdpX.js} +1 -1
  49. package/gui/dist/assets/{haml-QnmUImKG.js → haml-BXkO6kY5.js} +1 -1
  50. package/gui/dist/assets/{handlebars-CPd4ATQH.js → handlebars-exD0x3TF.js} +1 -1
  51. package/gui/dist/assets/{html-BgGOZsTs.js → html-DHD04EW_.js} +1 -1
  52. package/gui/dist/assets/{html-derivative-DtSxVTSr.js → html-derivative-Bml0cGZy.js} +1 -1
  53. package/gui/dist/assets/{http-VJ1JqsCP.js → http-DMmIRhh5.js} +1 -1
  54. package/gui/dist/assets/{hurl-Byqf3Q4J.js → hurl-DjxNKi3W.js} +1 -1
  55. package/gui/dist/assets/{index-BG2CQy-I.css → index-CUoeDKLH.css} +1 -1
  56. package/gui/dist/assets/{index-D1uZtbvJ.js → index-CsPG2ntk.js} +18 -18
  57. package/gui/dist/assets/{java-B_nJOiTG.js → java-D8DlwLKl.js} +1 -1
  58. package/gui/dist/assets/{javascript-DffeUEnj.js → javascript-DbeJguaR.js} +1 -1
  59. package/gui/dist/assets/{jinja-M0zKdCfa.js → jinja-DZkHuHjU.js} +1 -1
  60. package/gui/dist/assets/{jison-BT0-M0gS.js → jison-CKOOVBcn.js} +1 -1
  61. package/gui/dist/assets/{json-DmyuI1nx.js → json-C_pcKqnE.js} +1 -1
  62. package/gui/dist/assets/{jsx-rE32VeXB.js → jsx-CCems14W.js} +1 -1
  63. package/gui/dist/assets/{julia-DjyTg-6t.js → julia-B67yrJEc.js} +1 -1
  64. package/gui/dist/assets/{just-CK65S3r8.js → just-0ieSYSY9.js} +1 -1
  65. package/gui/dist/assets/{latex-94zewxls.js → latex-CL5phIW-.js} +1 -1
  66. package/gui/dist/assets/{liquid-Dl0qLBwx.js → liquid-CLwqJshL.js} +1 -1
  67. package/gui/dist/assets/{lua-CjD63HfG.js → lua-BpN0_IRI.js} +1 -1
  68. package/gui/dist/assets/{marko-CBzovuJ1.js → marko-CSJfqvxX.js} +1 -1
  69. package/gui/dist/assets/{mdc-B89wcoMe.js → mdc-DiIWpMwC.js} +1 -1
  70. package/gui/dist/assets/{nginx-BtCSV7rr.js → nginx-CjkEKhVl.js} +1 -1
  71. package/gui/dist/assets/{nim-BT2sttEd.js → nim-BWOltqk2.js} +1 -1
  72. package/gui/dist/assets/{org-DyhV0u0R.js → org-D6h3yJk4.js} +1 -1
  73. package/gui/dist/assets/{perl-B0H1z4iL.js → perl-Qm7miafA.js} +1 -1
  74. package/gui/dist/assets/{php-BPT4W6n1.js → php-CtR6lR9E.js} +1 -1
  75. package/gui/dist/assets/{pug-BoCt7RDl.js → pug-xYcJQRn0.js} +1 -1
  76. package/gui/dist/assets/{qml-Cb4Cd08W.js → qml-Bf-2A8LG.js} +1 -1
  77. package/gui/dist/assets/{r-fe_4bIGN.js → r-DjTBoq9t.js} +1 -1
  78. package/gui/dist/assets/{razor-dDhRcZ_O.js → razor-jwcmZNf0.js} +1 -1
  79. package/gui/dist/assets/{regexp-B7rcDdRa.js → regexp-CTtG2g8b.js} +1 -1
  80. package/gui/dist/assets/{rst-DjeWGJRw.js → rst-F-HSIpRG.js} +1 -1
  81. package/gui/dist/assets/{ruby-Dx3POAAI.js → ruby-DyI3kCSP.js} +1 -1
  82. package/gui/dist/assets/{sas-CZOq7qCQ.js → sas-CX6vfJC8.js} +1 -1
  83. package/gui/dist/assets/{scss-DhFtC8D4.js → scss-pSu9IXx-.js} +1 -1
  84. package/gui/dist/assets/{shellscript-Djdriz3m.js → shellscript-BLPw4gsk.js} +1 -1
  85. package/gui/dist/assets/{shellsession-Dkak5s2P.js → shellsession-CqcUPQe7.js} +1 -1
  86. package/gui/dist/assets/{soy-CqlitY2w.js → soy-7ilJpWXu.js} +1 -1
  87. package/gui/dist/assets/{sql-BrLHRKP1.js → sql-DLj5IRs-.js} +1 -1
  88. package/gui/dist/assets/{stata-CZpBofQo.js → stata-DZAwA8QB.js} +1 -1
  89. package/gui/dist/assets/{surrealql-DI5AQTqZ.js → surrealql-DjH0RD4_.js} +1 -1
  90. package/gui/dist/assets/{svelte-U4k0rBt4.js → svelte-CwMYMY9c.js} +1 -1
  91. package/gui/dist/assets/{templ-jjK4_r-Y.js → templ-Yp0HSBmI.js} +1 -1
  92. package/gui/dist/assets/{tex-BwNS-MeE.js → tex-2lbf_Uq9.js} +1 -1
  93. package/gui/dist/assets/{ts-tags-CJ1vUXbL.js → ts-tags-B3HKcZ-U.js} +1 -1
  94. package/gui/dist/assets/{tsx-BwmOEMnR.js → tsx-BoZ28JHl.js} +1 -1
  95. package/gui/dist/assets/{twig-hj02oBmU.js → twig-BTqVjw0Y.js} +1 -1
  96. package/gui/dist/assets/{typescript-BnHEhDG5.js → typescript-H8La8DxN.js} +1 -1
  97. package/gui/dist/assets/{typst-9zNH6XOp.js → typst-LpLhjBbD.js} +1 -1
  98. package/gui/dist/assets/{vue-wqTzy8u9.js → vue-BK8HizoK.js} +1 -1
  99. package/gui/dist/assets/{vue-html-unwCMN4c.js → vue-html-yvbIAfmy.js} +1 -1
  100. package/gui/dist/assets/{vue-vine-C-RiGvWN.js → vue-vine-M85qnu2-.js} +1 -1
  101. package/gui/dist/assets/{xml-2pQenJRT.js → xml-Bt1Y75of.js} +1 -1
  102. package/gui/dist/assets/{xsl-B_MbLqZj.js → xsl-di2-gHQj.js} +1 -1
  103. package/gui/dist/assets/{yaml-COm5VSZw.js → yaml-43tUHb7f.js} +1 -1
  104. package/gui/dist/index.html +2 -2
  105. package/package.json +3 -1
@@ -94,6 +94,13 @@ export declare class AnalysisStore {
94
94
  replaceSnapshot(id: string, editor: Editor, snapshot: ComputedSnapshot, options?: MutateOptions): ReplaceSnapshotResult;
95
95
  /** Supprime l'analyse et son snapshot de diff. */
96
96
  delete(id: string): void;
97
+ /**
98
+ * Copie chaque analyse et son snapshot de diff dans `<targetDir>/analyses` et
99
+ * `<targetDir>/diffs`, fichiers tels quels. Chaque paire est copiée sous le
100
+ * verrou de l'analyse : elle est cohérente même pendant qu'un autre processus
101
+ * écrit. Renvoie le nombre d'analyses copiées.
102
+ */
103
+ copyTo(targetDir: string): number;
97
104
  }
98
105
  /**
99
106
  * Renseigne les liens de suivi des résumés : `followUpOf` (analyse suivie),
@@ -367,6 +367,30 @@ export class AnalysisStore {
367
367
  this.snapshotCache.delete(id);
368
368
  });
369
369
  }
370
+ /**
371
+ * Copie chaque analyse et son snapshot de diff dans `<targetDir>/analyses` et
372
+ * `<targetDir>/diffs`, fichiers tels quels. Chaque paire est copiée sous le
373
+ * verrou de l'analyse : elle est cohérente même pendant qu'un autre processus
374
+ * écrit. Renvoie le nombre d'analyses copiées.
375
+ */
376
+ copyTo(targetDir) {
377
+ const analysesDir = path.join(targetDir, "analyses");
378
+ const diffsDir = path.join(targetDir, "diffs");
379
+ fs.mkdirSync(analysesDir, { recursive: true });
380
+ fs.mkdirSync(diffsDir, { recursive: true });
381
+ let count = 0;
382
+ for (const id of this.ids()) {
383
+ this.withLock(id, () => {
384
+ if (!fs.existsSync(this.analysisPath(id)))
385
+ return;
386
+ fs.copyFileSync(this.analysisPath(id), path.join(analysesDir, `${id}.json`));
387
+ if (fs.existsSync(this.snapshotPath(id)))
388
+ fs.copyFileSync(this.snapshotPath(id), path.join(diffsDir, `${id}.json`));
389
+ count++;
390
+ });
391
+ }
392
+ return count;
393
+ }
370
394
  }
371
395
  /**
372
396
  * Renseigne les liens de suivi des résumés : `followUpOf` (analyse suivie),
@@ -1,3 +1,4 @@
1
+ import { questionExchanges } from "../../shared/question-thread.js";
1
2
  import { AnalysisError } from "./errors.js";
2
3
  /** Identifiants présents plusieurs fois dans `ids`. */
3
4
  function duplicates(ids) {
@@ -152,8 +153,16 @@ export function findInvariantViolations(analysis) {
152
153
  if (note.question !== null && selectedNotes.has(note.id)) {
153
154
  problems.push(`review selects note "${note.id}", a question already sent to the agent`);
154
155
  }
155
- if (note.question !== null && note.question.answer === null && note.question.answerSeenAt !== null) {
156
- problems.push(`question "${note.id}" has an answer read date but no answer`);
156
+ if (note.question !== null) {
157
+ const exchanges = questionExchanges({ ...note, question: note.question });
158
+ exchanges.forEach((exchange, index) => {
159
+ if (exchange.answer === null && exchange.answerSeenAt !== null) {
160
+ problems.push(`question "${note.id}" has an answer read date but no answer (message ${index + 1})`);
161
+ }
162
+ if (exchange.answer === null && index < exchanges.length - 1) {
163
+ problems.push(`question "${note.id}" has a follow-up after an unanswered message (message ${index + 1})`);
164
+ }
165
+ });
157
166
  }
158
167
  }
159
168
  if (review.state === "submitted" && (review.decision === null || review.submittedAt === null)) {
@@ -32,6 +32,8 @@ export declare const addFollowUpOf: MigrationStep;
32
32
  export declare const addFileClassifications: MigrationStep;
33
33
  /** Ajoute `question` à null aux remarques qui n'en ont pas : elles sont transmises en fin de revue. */
34
34
  export declare const addNoteQuestions: MigrationStep;
35
+ /** Ajoute une liste de relances vide aux questions qui n'en ont pas. */
36
+ export declare const addQuestionFollowUps: MigrationStep;
35
37
  /** Étapes appliquées aux analyses (`analyses/<id>.json`), dans l'ordre. */
36
38
  export declare const ANALYSIS_MIGRATIONS: readonly MigrationStep[];
37
39
  /** Étapes appliquées aux snapshots de diff (`diffs/<id>.json`), dans l'ordre. */
@@ -101,6 +101,27 @@ export const addNoteQuestions = (doc) => {
101
101
  return null;
102
102
  return { ...doc, notes: notes.map((note) => (missing(note) ? { ...note, question: null } : note)) };
103
103
  };
104
+ /** Ajoute une liste de relances vide aux questions qui n'en ont pas. */
105
+ export const addQuestionFollowUps = (doc) => {
106
+ if (!Array.isArray(doc.notes))
107
+ return null;
108
+ const notes = doc.notes;
109
+ const missing = (note) => {
110
+ const question = !!note && typeof note === "object" ? note.question : null;
111
+ return !!question && typeof question === "object" && question.followUps === undefined;
112
+ };
113
+ if (!notes.some(missing))
114
+ return null;
115
+ return {
116
+ ...doc,
117
+ notes: notes.map((note) => {
118
+ if (!missing(note))
119
+ return note;
120
+ const raw = note;
121
+ return { ...raw, question: { ...raw.question, followUps: [] } };
122
+ }),
123
+ };
124
+ };
104
125
  /** Étapes appliquées aux analyses (`analyses/<id>.json`), dans l'ordre. */
105
126
  export const ANALYSIS_MIGRATIONS = [
106
127
  addProject,
@@ -112,6 +133,7 @@ export const ANALYSIS_MIGRATIONS = [
112
133
  addFollowUpOf,
113
134
  addFileClassifications,
114
135
  addNoteQuestions,
136
+ addQuestionFollowUps,
115
137
  ];
116
138
  /** Étapes appliquées aux snapshots de diff (`diffs/<id>.json`), dans l'ordre. */
117
139
  export const SNAPSHOT_MIGRATIONS = [];
@@ -3,7 +3,15 @@ import { AnalysisStore } from "./analysis-store.js";
3
3
  /** Durée maximale d'un Monitor côté hôte. */
4
4
  export declare const MONITOR_TIMEOUT_MS = 1800000;
5
5
  export declare const WATCHER_BEAT_MS = 5000;
6
- /** Question envoyée tout de suite à l'agent par le relecteur, pas encore répondue. */
6
+ /** Échange précédent d'une relance : la question d'origine et la dernière réponse de l'agent. */
7
+ export interface FollowUpContext {
8
+ question: string;
9
+ lastAnswer: string;
10
+ }
11
+ /**
12
+ * Dernier message du relecteur sur une question, pas encore répondu : la question
13
+ * elle-même, ou une relance après une réponse de l'agent (`followUp`).
14
+ */
7
15
  export interface QuestionAsked {
8
16
  kind: "question";
9
17
  analysisId: string;
@@ -11,7 +19,8 @@ export interface QuestionAsked {
11
19
  questionId: string;
12
20
  location: NoteLocation | null;
13
21
  text: string;
14
- /** Instant où la question a été envoyée. */
22
+ followUp: FollowUpContext | null;
23
+ /** Instant où ce message a été envoyé. */
15
24
  eventMs: number;
16
25
  }
17
26
  /** Revue soumise par le relecteur. */
@@ -1,6 +1,7 @@
1
1
  import fs from "fs";
2
2
  import os from "os";
3
3
  import path from "path";
4
+ import { questionExchanges } from "../../shared/question-thread.js";
4
5
  import { noteLocationText } from "../../shared/text.js";
5
6
  import { AnalysisStore, writeJsonAtomic } from "./analysis-store.js";
6
7
  import { AnalysisError } from "./errors.js";
@@ -14,16 +15,22 @@ const BACKOFF_MAX_MS = 30_000;
14
15
  function eventsOf(analysis) {
15
16
  const events = [];
16
17
  for (const note of analysis.notes) {
17
- if (note.question === null || note.question.answer !== null)
18
+ if (note.question === null)
18
19
  continue;
20
+ const exchanges = questionExchanges({ ...note, question: note.question });
21
+ const last = exchanges[exchanges.length - 1];
22
+ if (last.answer !== null)
23
+ continue;
24
+ const previous = exchanges[exchanges.length - 2];
19
25
  events.push({
20
26
  kind: "question",
21
27
  analysisId: analysis.id,
22
28
  title: analysis.title,
23
29
  questionId: note.id,
24
30
  location: note.location,
25
- text: note.text,
26
- eventMs: Date.parse(note.question.askedAt),
31
+ text: last.text,
32
+ followUp: previous?.answer ? { question: note.text, lastAnswer: previous.answer.text } : null,
33
+ eventMs: Date.parse(last.askedAt),
27
34
  });
28
35
  }
29
36
  const review = analysis.review;
@@ -117,8 +124,13 @@ export function formatEvent(event) {
117
124
  const origin = `[feature-analyzer] "${oneLine(event.title, 80)}" (${event.analysisId})`;
118
125
  if (event.kind === "question") {
119
126
  const where = event.location ? ` on ${noteLocationText(event.location)}` : "";
120
- return (`${origin} — the reviewer asks you${where}: ${oneLine(event.text, 1000)} — ` +
121
- `answer with answer_question, analysis_id ${event.analysisId}, question_id ${event.questionId}`);
127
+ const answerWith = `answer with answer_question, analysis_id ${event.analysisId}, question_id ${event.questionId}`;
128
+ if (event.followUp) {
129
+ return (`${origin} — the reviewer follows up on question ${event.questionId}${where} ` +
130
+ `(question: "${oneLine(event.followUp.question, 300)}"; your last answer: "${oneLine(event.followUp.lastAnswer, 300)}"): ` +
131
+ `${oneLine(event.text, 1000)} — ${answerWith}`);
132
+ }
133
+ return `${origin} — the reviewer asks you${where}: ${oneLine(event.text, 1000)} — ${answerWith}`;
122
134
  }
123
135
  return (`${origin} — the reviewer submitted the review and ${DECISION_TEXT[event.decision]} ` +
124
136
  `(${event.findingCount} finding(s) and ${event.noteCount} note(s) selected) — ` +
@@ -1,5 +1,5 @@
1
1
  import type { Analysis, Editor } from "../../shared/schemas/analysis.schema.js";
2
- import type { AddNoteBody, DeleteNoteBody, MarkAnswerSeenBody, MarkProcessedBody, SetFileLevelBody, SetFileReviewedBody, SetFindingStatusBody, SubmitReviewBody, UpdateNoteBody } from "../../shared/schemas/api.schema.js";
2
+ import type { AddNoteBody, DeleteNoteBody, MarkAnswerSeenBody, MarkProcessedBody, ReplyToQuestionBody, SetFileLevelBody, SetFileReviewedBody, SetFindingStatusBody, SubmitReviewBody, UpdateNoteBody } from "../../shared/schemas/api.schema.js";
3
3
  import type { AnalysisStore, MutateOptions } from "./analysis-store.js";
4
4
  /**
5
5
  * Modifications faites par le relecteur depuis la GUI. Chacune passe par
@@ -28,11 +28,17 @@ export declare function setFindingStatus(store: AnalysisStore, analysisId: strin
28
28
  * revue et ne repasse donc pas une revue soumise en attente.
29
29
  */
30
30
  export declare function addNote(store: AnalysisStore, analysisId: string, body: AddNoteBody): Analysis;
31
- /** Enregistre que le relecteur a lu la réponse de l'agent à une question. */
31
+ /** Enregistre que le relecteur a lu les réponses de l'agent à une question, relances comprises. */
32
32
  export declare function markAnswerSeen(store: AnalysisStore, analysisId: string, noteId: string, body: MarkAnswerSeenBody): Analysis;
33
33
  /**
34
- * Enregistre la réponse de l'agent à une question du relecteur. Refusé pour une
35
- * remarque qui n'est pas une question ou une question déjà répondue.
34
+ * Ajoute une relance du relecteur à une question : refusé tant que l'agent n'a pas
35
+ * répondu au dernier message. Comme la question, la relance laisse une revue soumise en l'état.
36
+ */
37
+ export declare function replyToQuestion(store: AnalysisStore, analysisId: string, noteId: string, body: ReplyToQuestionBody): Analysis;
38
+ /**
39
+ * Enregistre la réponse de l'agent au dernier message du relecteur sur une question :
40
+ * la question elle-même, ou sa dernière relance. Refusé pour une remarque qui n'est pas
41
+ * une question, ou quand ce dernier message a déjà sa réponse.
36
42
  */
37
43
  export declare function answerQuestion(store: AnalysisStore, analysisId: string, noteId: string, answer: string): Analysis;
38
44
  /** Remplace le texte d'une remarque ; une question déjà envoyée à l'agent ne change plus. */
@@ -1,4 +1,5 @@
1
1
  import { buildAgentPrompt } from "../../shared/prompt.js";
2
+ import { lastExchange, questionExchanges } from "../../shared/question-thread.js";
2
3
  import { recordSubmission, reopenSubmittedReview } from "../../shared/review-state.js";
3
4
  import { AnalysisError, NotFoundError } from "./errors.js";
4
5
  import { itemId } from "./ids.js";
@@ -71,7 +72,7 @@ export function addNote(store, analysisId, body) {
71
72
  throw new NotFoundError(`Finding "${findingId}" not found in analysis "${analysisId}".`);
72
73
  }
73
74
  const now = new Date().toISOString();
74
- const question = body.askAgent ? { askedAt: now, answer: null, answerSeenAt: null } : null;
75
+ const question = body.askAgent ? { askedAt: now, answer: null, answerSeenAt: null, followUps: [] } : null;
75
76
  if (question === null)
76
77
  reopenSubmittedReview(draft);
77
78
  draft.notes.push({
@@ -84,7 +85,7 @@ export function addNote(store, analysisId, body) {
84
85
  });
85
86
  }, { baseRevision: body.baseRevision });
86
87
  }
87
- /** Enregistre que le relecteur a lu la réponse de l'agent à une question. */
88
+ /** Enregistre que le relecteur a lu les réponses de l'agent à une question, relances comprises. */
88
89
  export function markAnswerSeen(store, analysisId, noteId, body) {
89
90
  return store.mutate(analysisId, "user", (draft) => {
90
91
  const note = draft.notes.find((entry) => entry.id === noteId);
@@ -94,14 +95,36 @@ export function markAnswerSeen(store, analysisId, noteId, body) {
94
95
  throw new AnalysisError(`Note "${noteId}" is not a question sent to the agent.`);
95
96
  if (note.question.answer === null)
96
97
  throw new AnalysisError(`The agent has not answered question "${noteId}" yet.`);
97
- if (note.question.answerSeenAt !== null)
98
- return;
99
- note.question.answerSeenAt = new Date().toISOString();
98
+ const now = new Date().toISOString();
99
+ if (note.question.answerSeenAt === null)
100
+ note.question.answerSeenAt = now;
101
+ for (const followUp of note.question.followUps) {
102
+ if (followUp.answer !== null && followUp.answerSeenAt === null)
103
+ followUp.answerSeenAt = now;
104
+ }
105
+ }, { baseRevision: body.baseRevision });
106
+ }
107
+ /**
108
+ * Ajoute une relance du relecteur à une question : refusé tant que l'agent n'a pas
109
+ * répondu au dernier message. Comme la question, la relance laisse une revue soumise en l'état.
110
+ */
111
+ export function replyToQuestion(store, analysisId, noteId, body) {
112
+ return store.mutate(analysisId, "user", (draft) => {
113
+ const note = draft.notes.find((entry) => entry.id === noteId);
114
+ if (!note)
115
+ throw new NotFoundError(`Note "${noteId}" not found in analysis "${analysisId}".`);
116
+ if (note.question === null)
117
+ throw new AnalysisError(`Note "${noteId}" is not a question sent to the agent.`);
118
+ if (lastExchange({ ...note, question: note.question }).answer === null) {
119
+ throw new AnalysisError(`The agent has not answered the last message of question "${noteId}" yet.`);
120
+ }
121
+ note.question.followUps.push({ text: body.text, askedAt: new Date().toISOString(), answer: null, answerSeenAt: null });
100
122
  }, { baseRevision: body.baseRevision });
101
123
  }
102
124
  /**
103
- * Enregistre la réponse de l'agent à une question du relecteur. Refusé pour une
104
- * remarque qui n'est pas une question ou une question déjà répondue.
125
+ * Enregistre la réponse de l'agent au dernier message du relecteur sur une question :
126
+ * la question elle-même, ou sa dernière relance. Refusé pour une remarque qui n'est pas
127
+ * une question, ou quand ce dernier message a déjà sa réponse.
105
128
  */
106
129
  export function answerQuestion(store, analysisId, noteId, answer) {
107
130
  return store.mutate(analysisId, "agent", (draft) => {
@@ -112,10 +135,17 @@ export function answerQuestion(store, analysisId, noteId, answer) {
112
135
  if (note.question === null) {
113
136
  throw new AnalysisError(`Note "${noteId}" is not a question: the reviewer keeps it for the end of the review, and get_review_feedback hands it to you once the review is submitted.`);
114
137
  }
115
- if (note.question.answer !== null) {
116
- throw new AnalysisError(`Question "${noteId}" was already answered at ${note.question.answer.at}.`);
138
+ const exchanges = questionExchanges({ ...note, question: note.question });
139
+ const last = exchanges[exchanges.length - 1];
140
+ if (last.answer !== null) {
141
+ throw new AnalysisError(`The last message of question "${noteId}" was already answered at ${last.answer.at}: wait for the reviewer to follow up.`);
117
142
  }
118
- note.question.answer = { text: answer, at: new Date().toISOString() };
143
+ const reply = { text: answer, at: new Date().toISOString() };
144
+ const followUp = note.question.followUps[note.question.followUps.length - 1];
145
+ if (followUp)
146
+ followUp.answer = reply;
147
+ else
148
+ note.question.answer = reply;
119
149
  });
120
150
  }
121
151
  /** Remplace le texte d'une remarque ; une question déjà envoyée à l'agent ne change plus. */
@@ -7,7 +7,7 @@ import fs from "fs";
7
7
  import { fileURLToPath } from "url";
8
8
  import { randomUUID } from "crypto";
9
9
  import { IPCMessageSchema, PUSHED_EVENT_TYPES } from "../shared/schemas/ipc.schema.js";
10
- import { AddNoteBodySchema, DeleteNoteBodySchema, MarkAnswerSeenBodySchema, MarkProcessedBodySchema, SetFileLevelBodySchema, SetFileReviewedBodySchema, SetFindingStatusBodySchema, SubmitReviewBodySchema, UpdateNoteBodySchema, } from "../shared/schemas/api.schema.js";
10
+ import { AddNoteBodySchema, DeleteNoteBodySchema, MarkAnswerSeenBodySchema, ReplyToQuestionBodySchema, MarkProcessedBodySchema, SetFileLevelBodySchema, SetFileReviewedBodySchema, SetFindingStatusBodySchema, SubmitReviewBodySchema, UpdateNoteBodySchema, } from "../shared/schemas/api.schema.js";
11
11
  import { resolveDataDir } from "./core/data-dir.js";
12
12
  import { resolveLogDir } from "./core/log-dir.js";
13
13
  import { watchedAnalyses } from "./core/notifications.js";
@@ -353,6 +353,12 @@ app.post("/api/analyses/:id/notes/:noteId/answer-seen", async (c) => {
353
353
  return read.response;
354
354
  return forward(c, "MARK_ANSWER_SEEN", { analysisId: c.req.param("id"), noteId: c.req.param("noteId"), body: read.body });
355
355
  });
356
+ app.post("/api/analyses/:id/notes/:noteId/replies", async (c) => {
357
+ const read = await readBody(c, ReplyToQuestionBodySchema);
358
+ if ("response" in read)
359
+ return read.response;
360
+ return forward(c, "REPLY_TO_QUESTION", { analysisId: c.req.param("id"), noteId: c.req.param("noteId"), body: read.body });
361
+ });
356
362
  /** Analyses suivies par un veilleur de notifications vivant ; chacune couvre aussi ses revues de suivi. */
357
363
  app.get("/api/watchers", (c) => c.json({ analysisIds: watchedAnalyses(dataDir) }));
358
364
  app.post("/api/analyses/:id/review", async (c) => {
package/dist/src/index.js CHANGED
@@ -16,9 +16,9 @@ import { DEFAULT_HEAD_REF, localRepo } from "./core/git.js";
16
16
  import { agentRepo } from "./core/agent-repo.js";
17
17
  import { EXEC_ARG, handleAgentExec } from "./core/gateway-exec.js";
18
18
  import { resolveRole } from "./core/role.js";
19
- import { addNote, deleteNote, markAnswerSeen, markProcessedByReviewer, setFileLevel, setFileReviewed, setFindingStatus, submitReview, updateNote, } from "./core/review-actions.js";
19
+ import { addNote, deleteNote, markAnswerSeen, replyToQuestion, markProcessedByReviewer, setFileLevel, setFileReviewed, setFindingStatus, submitReview, updateNote, } from "./core/review-actions.js";
20
20
  import { GUI_REQUEST_TYPES, IPCMessageSchema } from "../shared/schemas/ipc.schema.js";
21
- import { AddNoteRequestSchema, AnalysisRequestSchema, DeleteNoteRequestSchema, MarkAnswerSeenRequestSchema, SetFileLevelRequestSchema, SetFileReviewedRequestSchema, SetFindingStatusRequestSchema, SubmitReviewRequestSchema, MarkProcessedRequestSchema, UpdateNoteRequestSchema, } from "../shared/schemas/api.schema.js";
21
+ import { AddNoteRequestSchema, AnalysisRequestSchema, DeleteNoteRequestSchema, MarkAnswerSeenRequestSchema, ReplyToQuestionRequestSchema, SetFileLevelRequestSchema, SetFileReviewedRequestSchema, SetFindingStatusRequestSchema, SubmitReviewRequestSchema, MarkProcessedRequestSchema, UpdateNoteRequestSchema, } from "../shared/schemas/api.schema.js";
22
22
  import { ANALYSIS_MODES, DIAGRAM_KINDS, EXPLANATION_SIDES, FILE_LEVELS, FINDING_KINDS, NODE_SHAPES, NODE_STATUSES, SEVERITIES, } from "../shared/schemas/analysis.schema.js";
23
23
  import { errorResult, textResult } from "./tools/types.js";
24
24
  import { createAnalysis } from "./tools/create-analysis.js";
@@ -46,6 +46,10 @@ const __filename = fileURLToPath(import.meta.url);
46
46
  const __dirname = path.dirname(__filename);
47
47
  // Les flags CLI sont traités avant toute initialisation : ils s'exécutent dans le
48
48
  // répertoire de l'utilisateur, pas dans un serveur MCP.
49
+ if (process.argv.slice(2).includes("--migrate-to-manager")) {
50
+ const { runMigrateToManager } = await import("./cli/migrate-to-manager.js");
51
+ process.exit(await runMigrateToManager(process.argv.slice(2), process.cwd()));
52
+ }
49
53
  if (process.argv.slice(2).includes("--claude-setup-mcp")) {
50
54
  const argv = process.argv.slice(2);
51
55
  const { runSetupMcp, parseGuiExposure } = await import("./cli/setup-mcp.js");
@@ -121,7 +125,7 @@ Concepts:
121
125
  - An **explanation** describes what a block of added or removed code does and how it works, so that the reviewer understands it before judging it. It is not a finding: it judges nothing and asks for nothing. It is anchored on new-side lines (added code) or old-side lines (removed code), and shown in the diff above the lines it describes.
122
126
  - A **diagram** is a flow, layers or mindmap picture of the feature. You give nodes and links only; the GUI lays them out.
123
127
  - The **review** belongs to the reviewer: files marked reviewed, findings ignored, notes, and a submitted decision with a prompt for you.
124
- - A **question** is a note the reviewer sends you right away instead of keeping it for the end of the review. It stays in the review with your answer, but is never part of the submitted feedback: answer it with answer_question as soon as it reaches you.
128
+ - A **question** is a note the reviewer sends you right away instead of keeping it for the end of the review. It stays in the review with your answer, but is never part of the submitted feedback: answer it with answer_question as soon as it reaches you. After your answer, the reviewer may follow up on the same question: each follow-up reaches you the same way, with the question and your last answer, and you answer it with answer_question and the same question_id.
125
129
  - **Notifications**: enable_notifications hands you a watcher to arm with the Monitor tool; it announces the reviewer's questions and the submitted review of one analysis and of its follow-up reviews, and nothing of the other analyses.
126
130
  - A **follow-up review** is a new analysis created with follow_up_of: it reviews the fixes for the submitted feedback of an earlier analysis. Each analysis has at most one follow-up, so the rounds form a chain.
127
131
 
@@ -261,6 +265,12 @@ function handleGuiRequest(msg) {
261
265
  afterUserMutation(analysis.id);
262
266
  return { analysis };
263
267
  }
268
+ case "REPLY_TO_QUESTION": {
269
+ const request = parseRequest(ReplyToQuestionRequestSchema, msg.data);
270
+ const analysis = replyToQuestion(store, request.analysisId, request.noteId, request.body);
271
+ afterUserMutation(analysis.id);
272
+ return { analysis };
273
+ }
264
274
  case "SUBMIT_REVIEW": {
265
275
  const request = parseRequest(SubmitReviewRequestSchema, msg.data);
266
276
  const analysis = submitReview(store, request.analysisId, request.body);
@@ -829,7 +839,8 @@ const TOOLS = [
829
839
  {
830
840
  name: "answer_question",
831
841
  description: "Answer a question the reviewer sent you right away from the GUI (announced by the notification watcher, listed by get_analysis among the reviewer notes). " +
832
- "The reviewer reads the answer next to the question in the GUI. A question is answered once; it is never part of the submitted feedback.",
842
+ "The reviewer reads the answer next to the question in the GUI and may follow up on it: answer_question always answers the reviewer's last message on the question, the question itself or its latest follow-up. " +
843
+ "Each message gets one answer; a question is never part of the submitted feedback.",
833
844
  inputSchema: {
834
845
  type: "object",
835
846
  properties: {
@@ -1,6 +1,7 @@
1
1
  import { summarize } from "../core/analysis-store.js";
2
2
  import { analysisLinks } from "../core/follow-ups.js";
3
3
  import { diagramQuality } from "../../shared/diagram-quality.js";
4
+ import { questionExchanges } from "../../shared/question-thread.js";
4
5
  import { reviewProgress } from "../../shared/review-state.js";
5
6
  import { sortBySeverity } from "../../shared/severity.js";
6
7
  import { classificationLabel, fileLine, explanationLine, fileTotals, findingLine, followUpLines, noteLocationLabel, overviewLines, progressLabel, severityCountsLabel, snapshotLabel, } from "./format.js";
@@ -9,10 +10,14 @@ function noteLine(note) {
9
10
  const line = `${note.id} — ${noteLocationLabel(note)} — ${note.text.replace(/\n/g, " / ")}`;
10
11
  if (note.question === null)
11
12
  return line;
12
- const answer = note.question.answer;
13
- return answer === null
14
- ? `${line} — QUESTION sent at ${note.question.askedAt}, not answered yet: answer it with answer_question`
15
- : `${line} — QUESTION answered at ${answer.at}: ${answer.text.replace(/\n/g, " / ")}`;
13
+ const flat = (text) => text.replace(/\n/g, " / ");
14
+ const parts = questionExchanges({ ...note, question: note.question }).map((exchange, index) => {
15
+ const asked = index === 0 ? `QUESTION sent at ${exchange.askedAt}` : `FOLLOW-UP sent at ${exchange.askedAt}: ${flat(exchange.text)}`;
16
+ return exchange.answer === null
17
+ ? `${asked}, not answered yet: answer it with answer_question`
18
+ : `${asked}, answered at ${exchange.answer.at}: ${flat(exchange.answer.text)}`;
19
+ });
20
+ return `${line} — ${parts.join(" — ")}`;
16
21
  }
17
22
  function reviewLines(analysis) {
18
23
  const review = analysis.review;
@@ -72,6 +72,8 @@ export function enableNotifications(ctx, args) {
72
72
  "reviews, including the ones created later — and nothing else: the other reviews are left to their own agents.",
73
73
  "When the reviewer sends you a question from the GUI, a line gives the review, the location, the question and its",
74
74
  "question_id: answer it right away with answer_question; the reviewer reads the answer in the GUI.",
75
+ "The reviewer may then follow up on the same question: the line recalls the question and your last answer;",
76
+ "answer the follow-up with answer_question and the same question_id.",
75
77
  "When the reviewer submits the review, a line gives the decision: read the feedback with get_review_feedback.",
76
78
  "",
77
79
  "The host stops every monitor after 30 minutes at most. Each time it tells you this watcher expired, call",
@@ -1 +1 @@
1
- import{t as e}from"./index-D1uZtbvJ.js";import{t}from"./html-BgGOZsTs.js";var n=[Object.freeze(JSON.parse('{"injectionSelector":"L:text.html -comment","name":"angular-expression","patterns":[{"include":"#ngExpression"}],"repository":{"arrayLiteral":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"booleanLiteral":{"patterns":[{"match":"(?<![$.])\\\\btrue\\\\b(?!\\\\$)","name":"constant.language.boolean.true.ts"},{"match":"(?<![$.])\\\\bfalse\\\\b(?!\\\\$)","name":"constant.language.boolean.false.ts"}]},"expressionOperator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"entity.name.function.pipe.ng"}},"match":"((?<!\\\\|)\\\\|(?!\\\\|))\\\\s?([-$0-9A-Z_a-z]*)"},{"match":"(?<![$.])\\\\b(let)\\\\b(?!\\\\$)","name":"storage.type.ts"},{"match":"(?<![$.])\\\\b(await)\\\\b(?!\\\\$)","name":"keyword.control.flow.ts"},{"match":"(?<![$.])\\\\bdelete\\\\b(?!\\\\$)","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$.])\\\\bin\\\\b(?!\\\\$)","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$.])\\\\bof\\\\b(?!\\\\$)","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$.])\\\\bif\\\\b(?!\\\\$)","name":"keyword.control.if.ts"},{"match":"(?<![$.])\\\\belse\\\\b(?!\\\\$)","name":"keyword.control.else.ts"},{"match":"(?<![$.])\\\\bthen\\\\b(?!\\\\$)","name":"keyword.control.then.ts"},{"match":"(?<![$.])\\\\binstanceof\\\\b(?!\\\\$)","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$.])\\\\bnew\\\\b(?!\\\\$)","name":"keyword.operator.new.ts"},{"match":"(?<![$.])\\\\bvoid\\\\b(?!\\\\$)","name":"keyword.operator.expression.void.ts"},{"begin":"(?<![$.])\\\\bas\\\\b(?!\\\\$)","beginCaptures":{"0":{"name":"storage.type.as.ts"}},"end":"(?=$|[]\\"\'),:;}])","patterns":[{"include":"#type"}]},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"match":"!|&&|\\\\?\\\\?|\\\\|\\\\|","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"captures":{"1":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])\\\\s*(/)(?![*/])"},{"include":"#typeofOperator"}]},"functionCall":{"begin":"(?=(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","end":"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","patterns":[{"match":"\\\\?","name":"punctuation.accessor.ts"},{"match":"\\\\.","name":"punctuation.accessor.ts"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},{"include":"#parenExpression"}]},"functionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#decorator"},{"include":"#parameterName"},{"include":"#variableInitializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.object.property.ts"},"3":{"name":"variable.other.object.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"entity.name.function.ts"}},"match":"(?:([!?]?\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"variable.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"constant.other.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"constant.character.other"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"literal":{"name":"literal.ts","patterns":[{"include":"#numericLiteral"},{"include":"#booleanLiteral"},{"include":"#nullLiteral"},{"include":"#undefinedLiteral"},{"include":"#numericConstantLiteral"},{"include":"#arrayLiteral"},{"include":"#thisLiteral"}]},"ngExpression":{"name":"meta.expression.ng","patterns":[{"include":"#string"},{"include":"#literal"},{"include":"#ternaryExpression"},{"include":"#expressionOperator"},{"include":"#functionCall"},{"include":"#identifiers"},{"include":"#parenExpression"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"},{"include":"#punctuationAccessor"}]},"nullLiteral":{"match":"(?<![$.])\\\\bnull\\\\b(?!\\\\$)","name":"constant.language.null.ts"},"numericConstantLiteral":{"patterns":[{"match":"(?<![$.])\\\\bNaN\\\\b(?!\\\\$)","name":"constant.language.nan.ts"},{"match":"(?<![$.])\\\\bInfinity\\\\b(?!\\\\$)","name":"constant.language.infinity.ts"}]},"numericLiteral":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])\\\\h+\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]+\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"match":"\\\\\\\\b(?<!\\\\$)0([Oo])?[0-7]+\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"meta.delimiter.decimal.period.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"meta.delimiter.decimal.period.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"meta.delimiter.decimal.period.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9]+(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)[Ee][-+]?[0-9]+\\\\b|\\\\B(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)\\\\B|\\\\B(\\\\.)[0-9]+\\\\b|\\\\b[0-9]+\\\\b(?!\\\\.))(?!\\\\$)"}]},"parameterName":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)"}]},"parenExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"punctuationAccessor":{"match":"(?:\\\\?|!?)\\\\.","name":"punctuation.accessor.ts"},"punctuationComma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuationSemicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstringDouble":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#stringCharacterEscape"}]},"qstringSingle":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#stringCharacterEscape"}]},"string":{"patterns":[{"include":"#qstringSingle"},{"include":"#qstringDouble"},{"include":"#templateLiteral"}]},"stringCharacterEscape":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"templateLiteral":{"patterns":[{"include":"#templateLiteralCall"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#templateLiteralSubstitutionElement"},{"include":"#stringCharacterEscape"}]}]},"templateLiteralCall":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#typeArguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#typeArguments"}]}]},"templateLiteralSubstitutionElement":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#ngExpression"}]},"ternaryExpression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#ngExpression"}]},"thisLiteral":{"match":"(?<![$.])\\\\bthis\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"name":"meta.type.ts","patterns":[{"include":"#string"},{"include":"#numericLiteral"},{"include":"#typeBuiltinLiterals"},{"include":"#typeTuple"},{"include":"#typeObject"},{"include":"#typeOperators"},{"include":"#typeFnTypeParameters"},{"include":"#typeParenOrFunctionParameters"},{"include":"#typeName"}]},"typeAnnotation":{"begin":":","beginCaptures":{"0":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=$|[]),;}]|//|\\")|(?==[^>])|(?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},"typeArguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#typeArgumentsBody"}]},"typeArgumentsBody":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuationComma"}]},"typeBuiltinLiterals":{"match":"(?<![$.])\\\\b(this|true|false|undefined|null)\\\\b(?!\\\\$)","name":"support.type.builtin.ts"},"typeFnTypeParameters":{"patterns":[{"captures":{"1":{"name":"keyword.control.new.ts"}},"match":"(?<![$.])\\\\b(new)\\\\b(?=\\\\s*<)","name":"meta.type.constructor.ts"},{"begin":"(?<![$.])\\\\b(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"(?<=>)\\\\s*(?=\\\\()","end":"(?<=\\\\))","include":"#typeofOperator","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]}]},"typeName":{"patterns":[{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*([!?]?\\\\.)"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"typeObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#typeObjectMembers"}]},"typeObjectMembers":{"patterns":[{"include":"#typeAnnotation"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"}]},"typeOperators":{"patterns":[{"include":"#typeofOperator"},{"match":"[\\\\&|]","name":"keyword.operator.type.ts"},{"match":"(?<![$.])\\\\bkeyof\\\\b(?!\\\\$)","name":"keyword.operator.expression.keyof.ts"}]},"typeParenOrFunctionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"include":"#type"},{"include":"#functionParameters"}]},"typeTuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},"typeofOperator":{"match":"(?<![$.])\\\\btypeof\\\\b(?!\\\\$)","name":"keyword.operator.expression.typeof.ts"},"undefinedLiteral":{"match":"(?<![$.])\\\\bundefined\\\\b(?!\\\\$)","name":"constant.language.undefined.ts"},"variableInitializer":{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|[]),;}])","patterns":[{"include":"#ngExpression"}]}},"scopeName":"expression.ng"}'))],r=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-let-declaration","patterns":[{"include":"#letDeclaration"}],"repository":{"letDeclaration":{"begin":"(@let)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)?","beginCaptures":{"1":{"name":"storage.type.ng"},"2":{"name":"variable.other.constant.ng"},"3":{"name":"keyword.operator.assignment.ng"}},"end":"(?<=;)","name":"meta.definition.variable.ng","patterns":[{"include":"#letInitializer"}]},"letInitializer":{"begin":"\\\\s*","beginCaptures":{"0":{"name":"keyword.operator.assignment.ng"}},"contentName":"meta.definition.variable.initializer.ng","end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ng"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.let.ng","embeddedLangs":["angular-expression"]}`)),i=[...n,r],a=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment","name":"angular-template","patterns":[{"include":"#interpolation"}],"repository":{"interpolation":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"expression.ng","end":"}}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.ng","embeddedLangs":["angular-expression"]}`)),o=[...n,a],s=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-template-blocks","patterns":[{"include":"#block"}],"repository":{"block":{"begin":"(@)(if|else if|else|defer|placeholder|loading|error|switch|case|default|for|empty)\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.block.kind.ng"}},"end":"(?<=})","name":"control.block.ng","patterns":[{"include":"#blockExpression"},{"include":"#blockBody"}]},"blockBody":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"control.block.body.ng","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"text.html.derivative.ng"},{"include":"template.ng"}]},"blockExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"contentName":"control.block.expression.ng","end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#blockExpressionOfClause"},{"include":"#blockExpressionLetBinding"},{"include":"#blockExpressionTrackClause"},{"include":"expression.ng"}]},"blockExpressionLetBinding":{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"storage.type.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionOfClause":{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(of)\\\\b","beginCaptures":{"1":{"name":"variable.other.constant.ng"},"2":{"name":"keyword.operator.expression.of.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionTrackClause":{"begin":"\\\\btrack\\\\b","beginCaptures":{"0":{"name":"keyword.control.track.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"transition":{"match":"@","name":"keyword.control.block.transition.ng"}},"scopeName":"template.blocks.ng","embeddedLangs":["angular-expression","angular-template"]}`)),c=[...n,...o,s],l=e({default:()=>d}),u=Object.freeze(JSON.parse(`{"displayName":"Angular HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"angular-html","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative.ng","embeddedLangs":["html","angular-expression","angular-let-declaration","angular-template","angular-template-blocks"]}`)),d=[...t,...n,...i,...o,...c,u];export{i as a,o as i,l as n,n as o,c as r,d as t};
1
+ import{t as e}from"./index-CsPG2ntk.js";import{t}from"./html-DHD04EW_.js";var n=[Object.freeze(JSON.parse('{"injectionSelector":"L:text.html -comment","name":"angular-expression","patterns":[{"include":"#ngExpression"}],"repository":{"arrayLiteral":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"booleanLiteral":{"patterns":[{"match":"(?<![$.])\\\\btrue\\\\b(?!\\\\$)","name":"constant.language.boolean.true.ts"},{"match":"(?<![$.])\\\\bfalse\\\\b(?!\\\\$)","name":"constant.language.boolean.false.ts"}]},"expressionOperator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"entity.name.function.pipe.ng"}},"match":"((?<!\\\\|)\\\\|(?!\\\\|))\\\\s?([-$0-9A-Z_a-z]*)"},{"match":"(?<![$.])\\\\b(let)\\\\b(?!\\\\$)","name":"storage.type.ts"},{"match":"(?<![$.])\\\\b(await)\\\\b(?!\\\\$)","name":"keyword.control.flow.ts"},{"match":"(?<![$.])\\\\bdelete\\\\b(?!\\\\$)","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$.])\\\\bin\\\\b(?!\\\\$)","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$.])\\\\bof\\\\b(?!\\\\$)","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$.])\\\\bif\\\\b(?!\\\\$)","name":"keyword.control.if.ts"},{"match":"(?<![$.])\\\\belse\\\\b(?!\\\\$)","name":"keyword.control.else.ts"},{"match":"(?<![$.])\\\\bthen\\\\b(?!\\\\$)","name":"keyword.control.then.ts"},{"match":"(?<![$.])\\\\binstanceof\\\\b(?!\\\\$)","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$.])\\\\bnew\\\\b(?!\\\\$)","name":"keyword.operator.new.ts"},{"match":"(?<![$.])\\\\bvoid\\\\b(?!\\\\$)","name":"keyword.operator.expression.void.ts"},{"begin":"(?<![$.])\\\\bas\\\\b(?!\\\\$)","beginCaptures":{"0":{"name":"storage.type.as.ts"}},"end":"(?=$|[]\\"\'),:;}])","patterns":[{"include":"#type"}]},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"match":"!|&&|\\\\?\\\\?|\\\\|\\\\|","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"captures":{"1":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])\\\\s*(/)(?![*/])"},{"include":"#typeofOperator"}]},"functionCall":{"begin":"(?=(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","end":"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","patterns":[{"match":"\\\\?","name":"punctuation.accessor.ts"},{"match":"\\\\.","name":"punctuation.accessor.ts"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},{"include":"#parenExpression"}]},"functionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#decorator"},{"include":"#parameterName"},{"include":"#variableInitializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.object.property.ts"},"3":{"name":"variable.other.object.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"entity.name.function.ts"}},"match":"(?:([!?]?\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"variable.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"constant.other.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"constant.character.other"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"literal":{"name":"literal.ts","patterns":[{"include":"#numericLiteral"},{"include":"#booleanLiteral"},{"include":"#nullLiteral"},{"include":"#undefinedLiteral"},{"include":"#numericConstantLiteral"},{"include":"#arrayLiteral"},{"include":"#thisLiteral"}]},"ngExpression":{"name":"meta.expression.ng","patterns":[{"include":"#string"},{"include":"#literal"},{"include":"#ternaryExpression"},{"include":"#expressionOperator"},{"include":"#functionCall"},{"include":"#identifiers"},{"include":"#parenExpression"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"},{"include":"#punctuationAccessor"}]},"nullLiteral":{"match":"(?<![$.])\\\\bnull\\\\b(?!\\\\$)","name":"constant.language.null.ts"},"numericConstantLiteral":{"patterns":[{"match":"(?<![$.])\\\\bNaN\\\\b(?!\\\\$)","name":"constant.language.nan.ts"},{"match":"(?<![$.])\\\\bInfinity\\\\b(?!\\\\$)","name":"constant.language.infinity.ts"}]},"numericLiteral":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])\\\\h+\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]+\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"match":"\\\\\\\\b(?<!\\\\$)0([Oo])?[0-7]+\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"meta.delimiter.decimal.period.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"meta.delimiter.decimal.period.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"meta.delimiter.decimal.period.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9]+(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)[Ee][-+]?[0-9]+\\\\b|\\\\B(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)\\\\B|\\\\B(\\\\.)[0-9]+\\\\b|\\\\b[0-9]+\\\\b(?!\\\\.))(?!\\\\$)"}]},"parameterName":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)"}]},"parenExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"punctuationAccessor":{"match":"(?:\\\\?|!?)\\\\.","name":"punctuation.accessor.ts"},"punctuationComma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuationSemicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstringDouble":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#stringCharacterEscape"}]},"qstringSingle":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#stringCharacterEscape"}]},"string":{"patterns":[{"include":"#qstringSingle"},{"include":"#qstringDouble"},{"include":"#templateLiteral"}]},"stringCharacterEscape":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"templateLiteral":{"patterns":[{"include":"#templateLiteralCall"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#templateLiteralSubstitutionElement"},{"include":"#stringCharacterEscape"}]}]},"templateLiteralCall":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#typeArguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#typeArguments"}]}]},"templateLiteralSubstitutionElement":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#ngExpression"}]},"ternaryExpression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#ngExpression"}]},"thisLiteral":{"match":"(?<![$.])\\\\bthis\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"name":"meta.type.ts","patterns":[{"include":"#string"},{"include":"#numericLiteral"},{"include":"#typeBuiltinLiterals"},{"include":"#typeTuple"},{"include":"#typeObject"},{"include":"#typeOperators"},{"include":"#typeFnTypeParameters"},{"include":"#typeParenOrFunctionParameters"},{"include":"#typeName"}]},"typeAnnotation":{"begin":":","beginCaptures":{"0":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=$|[]),;}]|//|\\")|(?==[^>])|(?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},"typeArguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#typeArgumentsBody"}]},"typeArgumentsBody":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuationComma"}]},"typeBuiltinLiterals":{"match":"(?<![$.])\\\\b(this|true|false|undefined|null)\\\\b(?!\\\\$)","name":"support.type.builtin.ts"},"typeFnTypeParameters":{"patterns":[{"captures":{"1":{"name":"keyword.control.new.ts"}},"match":"(?<![$.])\\\\b(new)\\\\b(?=\\\\s*<)","name":"meta.type.constructor.ts"},{"begin":"(?<![$.])\\\\b(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"(?<=>)\\\\s*(?=\\\\()","end":"(?<=\\\\))","include":"#typeofOperator","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]}]},"typeName":{"patterns":[{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*([!?]?\\\\.)"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"typeObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#typeObjectMembers"}]},"typeObjectMembers":{"patterns":[{"include":"#typeAnnotation"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"}]},"typeOperators":{"patterns":[{"include":"#typeofOperator"},{"match":"[\\\\&|]","name":"keyword.operator.type.ts"},{"match":"(?<![$.])\\\\bkeyof\\\\b(?!\\\\$)","name":"keyword.operator.expression.keyof.ts"}]},"typeParenOrFunctionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"include":"#type"},{"include":"#functionParameters"}]},"typeTuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},"typeofOperator":{"match":"(?<![$.])\\\\btypeof\\\\b(?!\\\\$)","name":"keyword.operator.expression.typeof.ts"},"undefinedLiteral":{"match":"(?<![$.])\\\\bundefined\\\\b(?!\\\\$)","name":"constant.language.undefined.ts"},"variableInitializer":{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|[]),;}])","patterns":[{"include":"#ngExpression"}]}},"scopeName":"expression.ng"}'))],r=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-let-declaration","patterns":[{"include":"#letDeclaration"}],"repository":{"letDeclaration":{"begin":"(@let)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)?","beginCaptures":{"1":{"name":"storage.type.ng"},"2":{"name":"variable.other.constant.ng"},"3":{"name":"keyword.operator.assignment.ng"}},"end":"(?<=;)","name":"meta.definition.variable.ng","patterns":[{"include":"#letInitializer"}]},"letInitializer":{"begin":"\\\\s*","beginCaptures":{"0":{"name":"keyword.operator.assignment.ng"}},"contentName":"meta.definition.variable.initializer.ng","end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ng"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.let.ng","embeddedLangs":["angular-expression"]}`)),i=[...n,r],a=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment","name":"angular-template","patterns":[{"include":"#interpolation"}],"repository":{"interpolation":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"expression.ng","end":"}}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.ng","embeddedLangs":["angular-expression"]}`)),o=[...n,a],s=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-template-blocks","patterns":[{"include":"#block"}],"repository":{"block":{"begin":"(@)(if|else if|else|defer|placeholder|loading|error|switch|case|default|for|empty)\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.block.kind.ng"}},"end":"(?<=})","name":"control.block.ng","patterns":[{"include":"#blockExpression"},{"include":"#blockBody"}]},"blockBody":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"control.block.body.ng","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"text.html.derivative.ng"},{"include":"template.ng"}]},"blockExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"contentName":"control.block.expression.ng","end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#blockExpressionOfClause"},{"include":"#blockExpressionLetBinding"},{"include":"#blockExpressionTrackClause"},{"include":"expression.ng"}]},"blockExpressionLetBinding":{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"storage.type.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionOfClause":{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(of)\\\\b","beginCaptures":{"1":{"name":"variable.other.constant.ng"},"2":{"name":"keyword.operator.expression.of.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionTrackClause":{"begin":"\\\\btrack\\\\b","beginCaptures":{"0":{"name":"keyword.control.track.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"transition":{"match":"@","name":"keyword.control.block.transition.ng"}},"scopeName":"template.blocks.ng","embeddedLangs":["angular-expression","angular-template"]}`)),c=[...n,...o,s],l=e({default:()=>d}),u=Object.freeze(JSON.parse(`{"displayName":"Angular HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"angular-html","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative.ng","embeddedLangs":["html","angular-expression","angular-let-declaration","angular-template","angular-template-blocks"]}`)),d=[...t,...n,...i,...o,...c,u];export{i as a,o as i,l as n,n as o,c as r,d as t};