daimon 0.4.3 → 0.5.0

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 (50) hide show
  1. package/CHANGELOG.md +177 -0
  2. package/dist/cli.js +67 -58
  3. package/dist/dashboard/3rdpartylicenses.txt +461 -0
  4. package/dist/dashboard/browser/chunk-3TYCIBMV.js +1 -0
  5. package/dist/dashboard/browser/chunk-5UAN6ETO.js +1 -0
  6. package/dist/dashboard/browser/chunk-AEERNAF7.js +1 -0
  7. package/dist/dashboard/browser/chunk-AX3RJNG4.js +1 -0
  8. package/dist/dashboard/browser/chunk-BADBUP5C.js +3 -0
  9. package/dist/dashboard/browser/chunk-BF6RQFHS.js +2 -0
  10. package/dist/dashboard/browser/chunk-C65CUT7O.js +4 -0
  11. package/dist/dashboard/browser/chunk-CNIZYK4A.js +1 -0
  12. package/dist/dashboard/browser/chunk-D4BFRQ63.js +4 -0
  13. package/dist/dashboard/browser/chunk-E235WGFQ.js +3 -0
  14. package/dist/dashboard/browser/chunk-F2EDJ6FT.js +4 -0
  15. package/dist/dashboard/browser/chunk-HFAARBWL.js +1 -0
  16. package/dist/dashboard/browser/chunk-HFJ25UTJ.js +4 -0
  17. package/dist/dashboard/browser/chunk-JX3IOOXU.js +4 -0
  18. package/dist/dashboard/browser/chunk-LQNYSOSZ.js +1 -0
  19. package/dist/dashboard/browser/chunk-MBVVV35N.js +1 -0
  20. package/dist/dashboard/browser/chunk-NC2VPB4Y.js +2 -0
  21. package/dist/dashboard/browser/chunk-NXNVIINH.js +1 -0
  22. package/dist/dashboard/browser/chunk-Q7R63OUT.js +3 -0
  23. package/dist/dashboard/browser/chunk-QLKOKZDG.js +9 -0
  24. package/dist/dashboard/browser/chunk-QQSPJIPQ.js +1 -0
  25. package/dist/dashboard/browser/chunk-SCAIGUJL.js +6 -0
  26. package/dist/dashboard/browser/chunk-SLQ2WBUA.js +1 -0
  27. package/dist/dashboard/browser/chunk-TSB6OOH2.js +6 -0
  28. package/dist/dashboard/browser/chunk-WAN7TQQW.js +1 -0
  29. package/dist/dashboard/browser/chunk-WWUKM5OG.js +1 -0
  30. package/dist/dashboard/browser/chunk-ZVU34B5S.js +1 -0
  31. package/dist/dashboard/browser/chunk-ZYE3XQS4.js +2 -0
  32. package/dist/dashboard/browser/index.html +15 -0
  33. package/dist/dashboard/browser/main-Z6L5VPBT.js +4 -0
  34. package/dist/dashboard/browser/styles-SIPYJLMG.css +1 -0
  35. package/dist/dashboard/prerendered-routes.json +3 -0
  36. package/dist/main.js +49 -44
  37. package/dist/mcp.js +2 -2
  38. package/package.json +5 -4
  39. package/src/templates/claude/skill.md.tmpl +23 -31
  40. package/src/dashboard.html +0 -451
  41. package/src/templates/claude/commands/doctor.md.tmpl +0 -10
  42. package/src/templates/claude/commands/errors.md.tmpl +0 -10
  43. package/src/templates/claude/commands/logs.md.tmpl +0 -10
  44. package/src/templates/claude/commands/restart.md.tmpl +0 -10
  45. package/src/templates/claude/commands/start.md.tmpl +0 -12
  46. package/src/templates/claude/commands/status.md.tmpl +0 -10
  47. package/src/templates/claude/commands/stop.md.tmpl +0 -10
  48. package/src/templates/claude/commands/up.md.tmpl +0 -10
  49. package/src/templates/claude/commands/wait.md.tmpl +0 -10
  50. package/src/templates/claude/commands/why.md.tmpl +0 -10
@@ -0,0 +1,461 @@
1
+
2
+ --------------------------------------------------------------------------------
3
+ Package: @angular/material
4
+ License: "MIT"
5
+
6
+ The MIT License
7
+
8
+ Copyright (c) 2025 Google LLC.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ --------------------------------------------------------------------------------
29
+ Package: @angular/platform-browser
30
+ License: "MIT"
31
+
32
+ The MIT License
33
+
34
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
35
+
36
+ Permission is hereby granted, free of charge, to any person obtaining a copy
37
+ of this software and associated documentation files (the "Software"), to deal
38
+ in the Software without restriction, including without limitation the rights
39
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40
+ copies of the Software, and to permit persons to whom the Software is
41
+ furnished to do so, subject to the following conditions:
42
+
43
+ The above copyright notice and this permission notice shall be included in
44
+ all copies or substantial portions of the Software.
45
+
46
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52
+ THE SOFTWARE.
53
+
54
+ --------------------------------------------------------------------------------
55
+ Package: @angular/cdk
56
+ License: "MIT"
57
+
58
+ The MIT License
59
+
60
+ Copyright (c) 2025 Google LLC.
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in
70
+ all copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
78
+ THE SOFTWARE.
79
+
80
+ --------------------------------------------------------------------------------
81
+ Package: @angular/animations
82
+ License: "MIT"
83
+
84
+ The MIT License
85
+
86
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
87
+
88
+ Permission is hereby granted, free of charge, to any person obtaining a copy
89
+ of this software and associated documentation files (the "Software"), to deal
90
+ in the Software without restriction, including without limitation the rights
91
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
92
+ copies of the Software, and to permit persons to whom the Software is
93
+ furnished to do so, subject to the following conditions:
94
+
95
+ The above copyright notice and this permission notice shall be included in
96
+ all copies or substantial portions of the Software.
97
+
98
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
99
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
100
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
101
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
102
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
103
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
104
+ THE SOFTWARE.
105
+
106
+ --------------------------------------------------------------------------------
107
+ Package: @kurkle/color
108
+ License: "MIT"
109
+
110
+ The MIT License (MIT)
111
+
112
+ Copyright (c) 2018-2024 Jukka Kurkela
113
+
114
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
115
+
116
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
117
+
118
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
119
+
120
+ --------------------------------------------------------------------------------
121
+ Package: chart.js
122
+ License: "MIT"
123
+
124
+ The MIT License (MIT)
125
+
126
+ Copyright (c) 2014-2024 Chart.js Contributors
127
+
128
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
129
+
130
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
131
+
132
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
133
+
134
+ --------------------------------------------------------------------------------
135
+ Package: @angular/forms
136
+ License: "MIT"
137
+
138
+ The MIT License
139
+
140
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
141
+
142
+ Permission is hereby granted, free of charge, to any person obtaining a copy
143
+ of this software and associated documentation files (the "Software"), to deal
144
+ in the Software without restriction, including without limitation the rights
145
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
146
+ copies of the Software, and to permit persons to whom the Software is
147
+ furnished to do so, subject to the following conditions:
148
+
149
+ The above copyright notice and this permission notice shall be included in
150
+ all copies or substantial portions of the Software.
151
+
152
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
153
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
154
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
155
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
156
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
157
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
158
+ THE SOFTWARE.
159
+
160
+ --------------------------------------------------------------------------------
161
+ Package: @angular/router
162
+ License: "MIT"
163
+
164
+ The MIT License
165
+
166
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
167
+
168
+ Permission is hereby granted, free of charge, to any person obtaining a copy
169
+ of this software and associated documentation files (the "Software"), to deal
170
+ in the Software without restriction, including without limitation the rights
171
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
172
+ copies of the Software, and to permit persons to whom the Software is
173
+ furnished to do so, subject to the following conditions:
174
+
175
+ The above copyright notice and this permission notice shall be included in
176
+ all copies or substantial portions of the Software.
177
+
178
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
180
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
181
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
182
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
184
+ THE SOFTWARE.
185
+
186
+ --------------------------------------------------------------------------------
187
+ Package: @angular/common
188
+ License: "MIT"
189
+
190
+ The MIT License
191
+
192
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
193
+
194
+ Permission is hereby granted, free of charge, to any person obtaining a copy
195
+ of this software and associated documentation files (the "Software"), to deal
196
+ in the Software without restriction, including without limitation the rights
197
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
198
+ copies of the Software, and to permit persons to whom the Software is
199
+ furnished to do so, subject to the following conditions:
200
+
201
+ The above copyright notice and this permission notice shall be included in
202
+ all copies or substantial portions of the Software.
203
+
204
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
205
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
206
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
207
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
208
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
209
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
210
+ THE SOFTWARE.
211
+
212
+ --------------------------------------------------------------------------------
213
+ Package: rxjs
214
+ License: "Apache-2.0"
215
+
216
+ Apache License
217
+ Version 2.0, January 2004
218
+ http://www.apache.org/licenses/
219
+
220
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
221
+
222
+ 1. Definitions.
223
+
224
+ "License" shall mean the terms and conditions for use, reproduction,
225
+ and distribution as defined by Sections 1 through 9 of this document.
226
+
227
+ "Licensor" shall mean the copyright owner or entity authorized by
228
+ the copyright owner that is granting the License.
229
+
230
+ "Legal Entity" shall mean the union of the acting entity and all
231
+ other entities that control, are controlled by, or are under common
232
+ control with that entity. For the purposes of this definition,
233
+ "control" means (i) the power, direct or indirect, to cause the
234
+ direction or management of such entity, whether by contract or
235
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
236
+ outstanding shares, or (iii) beneficial ownership of such entity.
237
+
238
+ "You" (or "Your") shall mean an individual or Legal Entity
239
+ exercising permissions granted by this License.
240
+
241
+ "Source" form shall mean the preferred form for making modifications,
242
+ including but not limited to software source code, documentation
243
+ source, and configuration files.
244
+
245
+ "Object" form shall mean any form resulting from mechanical
246
+ transformation or translation of a Source form, including but
247
+ not limited to compiled object code, generated documentation,
248
+ and conversions to other media types.
249
+
250
+ "Work" shall mean the work of authorship, whether in Source or
251
+ Object form, made available under the License, as indicated by a
252
+ copyright notice that is included in or attached to the work
253
+ (an example is provided in the Appendix below).
254
+
255
+ "Derivative Works" shall mean any work, whether in Source or Object
256
+ form, that is based on (or derived from) the Work and for which the
257
+ editorial revisions, annotations, elaborations, or other modifications
258
+ represent, as a whole, an original work of authorship. For the purposes
259
+ of this License, Derivative Works shall not include works that remain
260
+ separable from, or merely link (or bind by name) to the interfaces of,
261
+ the Work and Derivative Works thereof.
262
+
263
+ "Contribution" shall mean any work of authorship, including
264
+ the original version of the Work and any modifications or additions
265
+ to that Work or Derivative Works thereof, that is intentionally
266
+ submitted to Licensor for inclusion in the Work by the copyright owner
267
+ or by an individual or Legal Entity authorized to submit on behalf of
268
+ the copyright owner. For the purposes of this definition, "submitted"
269
+ means any form of electronic, verbal, or written communication sent
270
+ to the Licensor or its representatives, including but not limited to
271
+ communication on electronic mailing lists, source code control systems,
272
+ and issue tracking systems that are managed by, or on behalf of, the
273
+ Licensor for the purpose of discussing and improving the Work, but
274
+ excluding communication that is conspicuously marked or otherwise
275
+ designated in writing by the copyright owner as "Not a Contribution."
276
+
277
+ "Contributor" shall mean Licensor and any individual or Legal Entity
278
+ on behalf of whom a Contribution has been received by Licensor and
279
+ subsequently incorporated within the Work.
280
+
281
+ 2. Grant of Copyright License. Subject to the terms and conditions of
282
+ this License, each Contributor hereby grants to You a perpetual,
283
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
284
+ copyright license to reproduce, prepare Derivative Works of,
285
+ publicly display, publicly perform, sublicense, and distribute the
286
+ Work and such Derivative Works in Source or Object form.
287
+
288
+ 3. Grant of Patent License. Subject to the terms and conditions of
289
+ this License, each Contributor hereby grants to You a perpetual,
290
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
291
+ (except as stated in this section) patent license to make, have made,
292
+ use, offer to sell, sell, import, and otherwise transfer the Work,
293
+ where such license applies only to those patent claims licensable
294
+ by such Contributor that are necessarily infringed by their
295
+ Contribution(s) alone or by combination of their Contribution(s)
296
+ with the Work to which such Contribution(s) was submitted. If You
297
+ institute patent litigation against any entity (including a
298
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
299
+ or a Contribution incorporated within the Work constitutes direct
300
+ or contributory patent infringement, then any patent licenses
301
+ granted to You under this License for that Work shall terminate
302
+ as of the date such litigation is filed.
303
+
304
+ 4. Redistribution. You may reproduce and distribute copies of the
305
+ Work or Derivative Works thereof in any medium, with or without
306
+ modifications, and in Source or Object form, provided that You
307
+ meet the following conditions:
308
+
309
+ (a) You must give any other recipients of the Work or
310
+ Derivative Works a copy of this License; and
311
+
312
+ (b) You must cause any modified files to carry prominent notices
313
+ stating that You changed the files; and
314
+
315
+ (c) You must retain, in the Source form of any Derivative Works
316
+ that You distribute, all copyright, patent, trademark, and
317
+ attribution notices from the Source form of the Work,
318
+ excluding those notices that do not pertain to any part of
319
+ the Derivative Works; and
320
+
321
+ (d) If the Work includes a "NOTICE" text file as part of its
322
+ distribution, then any Derivative Works that You distribute must
323
+ include a readable copy of the attribution notices contained
324
+ within such NOTICE file, excluding those notices that do not
325
+ pertain to any part of the Derivative Works, in at least one
326
+ of the following places: within a NOTICE text file distributed
327
+ as part of the Derivative Works; within the Source form or
328
+ documentation, if provided along with the Derivative Works; or,
329
+ within a display generated by the Derivative Works, if and
330
+ wherever such third-party notices normally appear. The contents
331
+ of the NOTICE file are for informational purposes only and
332
+ do not modify the License. You may add Your own attribution
333
+ notices within Derivative Works that You distribute, alongside
334
+ or as an addendum to the NOTICE text from the Work, provided
335
+ that such additional attribution notices cannot be construed
336
+ as modifying the License.
337
+
338
+ You may add Your own copyright statement to Your modifications and
339
+ may provide additional or different license terms and conditions
340
+ for use, reproduction, or distribution of Your modifications, or
341
+ for any such Derivative Works as a whole, provided Your use,
342
+ reproduction, and distribution of the Work otherwise complies with
343
+ the conditions stated in this License.
344
+
345
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
346
+ any Contribution intentionally submitted for inclusion in the Work
347
+ by You to the Licensor shall be under the terms and conditions of
348
+ this License, without any additional terms or conditions.
349
+ Notwithstanding the above, nothing herein shall supersede or modify
350
+ the terms of any separate license agreement you may have executed
351
+ with Licensor regarding such Contributions.
352
+
353
+ 6. Trademarks. This License does not grant permission to use the trade
354
+ names, trademarks, service marks, or product names of the Licensor,
355
+ except as required for reasonable and customary use in describing the
356
+ origin of the Work and reproducing the content of the NOTICE file.
357
+
358
+ 7. Disclaimer of Warranty. Unless required by applicable law or
359
+ agreed to in writing, Licensor provides the Work (and each
360
+ Contributor provides its Contributions) on an "AS IS" BASIS,
361
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
362
+ implied, including, without limitation, any warranties or conditions
363
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
364
+ PARTICULAR PURPOSE. You are solely responsible for determining the
365
+ appropriateness of using or redistributing the Work and assume any
366
+ risks associated with Your exercise of permissions under this License.
367
+
368
+ 8. Limitation of Liability. In no event and under no legal theory,
369
+ whether in tort (including negligence), contract, or otherwise,
370
+ unless required by applicable law (such as deliberate and grossly
371
+ negligent acts) or agreed to in writing, shall any Contributor be
372
+ liable to You for damages, including any direct, indirect, special,
373
+ incidental, or consequential damages of any character arising as a
374
+ result of this License or out of the use or inability to use the
375
+ Work (including but not limited to damages for loss of goodwill,
376
+ work stoppage, computer failure or malfunction, or any and all
377
+ other commercial damages or losses), even if such Contributor
378
+ has been advised of the possibility of such damages.
379
+
380
+ 9. Accepting Warranty or Additional Liability. While redistributing
381
+ the Work or Derivative Works thereof, You may choose to offer,
382
+ and charge a fee for, acceptance of support, warranty, indemnity,
383
+ or other liability obligations and/or rights consistent with this
384
+ License. However, in accepting such obligations, You may act only
385
+ on Your own behalf and on Your sole responsibility, not on behalf
386
+ of any other Contributor, and only if You agree to indemnify,
387
+ defend, and hold each Contributor harmless for any liability
388
+ incurred by, or claims asserted against, such Contributor by reason
389
+ of your accepting any such warranty or additional liability.
390
+
391
+ END OF TERMS AND CONDITIONS
392
+
393
+ APPENDIX: How to apply the Apache License to your work.
394
+
395
+ To apply the Apache License to your work, attach the following
396
+ boilerplate notice, with the fields enclosed by brackets "[]"
397
+ replaced with your own identifying information. (Don't include
398
+ the brackets!) The text should be enclosed in the appropriate
399
+ comment syntax for the file format. We also recommend that a
400
+ file or class name and description of purpose be included on the
401
+ same "printed page" as the copyright notice for easier
402
+ identification within third-party archives.
403
+
404
+ Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
405
+
406
+ Licensed under the Apache License, Version 2.0 (the "License");
407
+ you may not use this file except in compliance with the License.
408
+ You may obtain a copy of the License at
409
+
410
+ http://www.apache.org/licenses/LICENSE-2.0
411
+
412
+ Unless required by applicable law or agreed to in writing, software
413
+ distributed under the License is distributed on an "AS IS" BASIS,
414
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
415
+ See the License for the specific language governing permissions and
416
+ limitations under the License.
417
+
418
+
419
+ --------------------------------------------------------------------------------
420
+ Package: tslib
421
+ License: "0BSD"
422
+
423
+ Copyright (c) Microsoft Corporation.
424
+
425
+ Permission to use, copy, modify, and/or distribute this software for any
426
+ purpose with or without fee is hereby granted.
427
+
428
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
429
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
430
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
431
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
432
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
433
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
434
+ PERFORMANCE OF THIS SOFTWARE.
435
+ --------------------------------------------------------------------------------
436
+ Package: @angular/core
437
+ License: "MIT"
438
+
439
+ The MIT License
440
+
441
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
442
+
443
+ Permission is hereby granted, free of charge, to any person obtaining a copy
444
+ of this software and associated documentation files (the "Software"), to deal
445
+ in the Software without restriction, including without limitation the rights
446
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
447
+ copies of the Software, and to permit persons to whom the Software is
448
+ furnished to do so, subject to the following conditions:
449
+
450
+ The above copyright notice and this permission notice shall be included in
451
+ all copies or substantial portions of the Software.
452
+
453
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
454
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
455
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
456
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
457
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
458
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
459
+ THE SOFTWARE.
460
+
461
+ --------------------------------------------------------------------------------
@@ -0,0 +1 @@
1
+ import{$ as a,C as c,R as d,V as l,db as v,ea as u,f as b,i as n}from"./chunk-F2EDJ6FT.js";var i=class{_box;_destroyed=new n;_resizeSubject=new n;_resizeObserver;_elementObservables=new Map;constructor(r){this._box=r,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new b(e=>{let s=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(r,{box:this._box}),()=>{this._resizeObserver?.unobserve(r),s.unsubscribe(),this._elementObservables.delete(r)}}).pipe(c(e=>e.some(s=>s.target===r)),d({bufferSize:1,refCount:!0}),l(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},O=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=u(v);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,s){let o=s?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new i(o)),this._observers.get(o).observe(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{O as a};
@@ -0,0 +1 @@
1
+ import{a as X,b as Y,c as Z,d as ee,e as te,f as ne}from"./chunk-JX3IOOXU.js";import{a as Q,b as W}from"./chunk-ZYE3XQS4.js";import{a as L,b as q}from"./chunk-HFJ25UTJ.js";import{d as z,f as V,g as K}from"./chunk-TSB6OOH2.js";import{b as U,c as G,d as J}from"./chunk-NXNVIINH.js";import{c as $}from"./chunk-LQNYSOSZ.js";import{N as A,P as j,Q as B,i as N,ua as H}from"./chunk-QLKOKZDG.js";import{Ab as v,Bb as _,Db as E,Eb as h,Fb as b,Gb as y,Hb as a,Ib as o,Jb as x,Ob as R,Qb as C,Sb as p,Za as d,aa as F,ea as M,ec as r,fc as u,gc as P,ja as D,ka as O,ob as S,pb as I,s as T,ta as g,tc as w,zb as k}from"./chunk-F2EDJ6FT.js";var ie=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=I({type:n});static \u0275inj=F({imports:[A,A]})}return n})();var de=(n,e)=>e.name,se=(n,e)=>e.reason;function le(n,e){n&1&&(a(0,"div",7),x(1,"dm-skeleton",23)(2,"dm-skeleton",24)(3,"dm-skeleton",25),o())}function me(n,e){if(n&1&&(a(0,"div",26)(1,"span",27),r(2,"Connection"),o(),a(3,"span",28)(4,"span",29),x(5,"span",30),r(6),o()()(),a(7,"div",26)(8,"span",27),r(9,"Version"),o(),a(10,"span",28)(11,"dm-mono"),r(12),o()()(),a(13,"div",26)(14,"span",27),r(15,"API port"),o(),a(16,"span",28)(17,"dm-mono"),r(18),o()()(),a(19,"div",26)(20,"span",27),r(21,"Apps tracked"),o(),a(22,"span",28)(23,"dm-mono"),r(24),o()()()),n&2){let t=p();d(4),k("data-kind",t.api.connected()?"ok":"err"),d(2),P("",t.api.connected()?"connected":"disconnected"," "),d(6),u(t.daemonVersion()||"unknown"),d(6),u(t.daemonPort()||"-"),d(6),u(t.api.apps().length)}}function ce(n,e){n&1&&(a(0,"div",7),x(1,"dm-skeleton",31)(2,"dm-skeleton",25)(3,"dm-skeleton",32),o())}function pe(n,e){if(n&1&&(a(0,"dm-empty",8)(1,"dm-mono"),r(2,"daimon init --auto"),o()()),n&2){let t=p();y("title","No apps discovered")("hint",t.discovery().suggestion||"Run daimon init --auto in your workspace")}}function ue(n,e){if(n&1&&(a(0,"li")(1,"dm-mono"),r(2),o()()),n&2){let t=e.$implicit;d(2),u(t)}}function ge(n,e){if(n&1&&(a(0,"tr")(1,"td")(2,"dm-mono"),r(3),o()(),a(4,"td",37)(5,"dm-mono"),r(6),o()()()),n&2){let t=e.$implicit;d(3),u(t.reason),d(3),u(t.count)}}function fe(n,e){if(n&1&&(a(0,"div",33)(1,"div",27),r(2,"Rejected"),o(),a(3,"table",36)(4,"tbody"),h(5,ge,7,2,"tr",null,se),o()()()),n&2){let t=p(2);d(5),b(t.rejectedRows())}}function ve(n,e){if(n&1&&(a(0,"li")(1,"dm-mono"),r(2),o()()),n&2){let t=e.$implicit;d(2),u(t)}}function _e(n,e){if(n&1&&(a(0,"div",33)(1,"div",27),r(2,"Warnings"),o(),a(3,"ul",38),h(4,ve,3,1,"li",null,E),o()()),n&2){let t=p(2);d(4),b(t.discovery().warnings)}}function xe(n,e){if(n&1&&(a(0,"div",35),r(1),o()),n&2){let t=p(2);d(),u(t.discovery().suggestion)}}function ye(n,e){if(n&1&&(a(0,"div",26)(1,"span",27),r(2,"Apps found"),o(),a(3,"span",28)(4,"dm-mono"),r(5),o()()(),a(6,"div",26)(7,"span",27),r(8,"Scanned"),o(),a(9,"span",28)(10,"dm-mono"),r(11),o()()(),a(12,"div",33)(13,"div",27),r(14,"Search roots"),o(),a(15,"ul",34),h(16,ue,3,1,"li",null,E),o()(),v(18,fe,7,0,"div",33),v(19,_e,6,0,"div",33),v(20,xe,2,1,"div",35)),n&2){let t=p();d(5),u(t.discovery().appsFound),d(6),u(t.discovery().scanned),d(5),b(t.discovery().searchRoots),d(2),_(t.rejectedRows().length?18:-1),d(),_(t.discovery().warnings.length?19:-1),d(),_(t.discovery().suggestion?20:-1)}}function Ce(n,e){n&1&&(a(0,"div",9),r(1,"Discovery info unavailable."),o())}function he(n,e){n&1&&x(0,"mat-spinner",14)}function be(n,e){n&1&&(a(0,"mat-icon"),r(1,"play_arrow"),o())}function Me(n,e){n&1&&x(0,"mat-spinner",14)}function ke(n,e){n&1&&(a(0,"mat-icon"),r(1,"build"),o())}function Pe(n,e){if(n&1&&(a(0,"dm-mono"),r(1),o()),n&2){let t=p(2).$implicit,i=p();d(),u(i.state(t.name).detail)}}function we(n,e){if(n&1&&(a(0,"span"),r(1),o()),n&2){let t=p(2).$implicit,i=p();d(),u(i.state(t.name).detail)}}function De(n,e){if(n&1&&(a(0,"div",41),v(1,Pe,2,1,"dm-mono")(2,we,2,1,"span"),o()),n&2){let t=p().$implicit,i=p();d(),_(i.state(t.name).isPath?1:2)}}function Oe(n,e){n&1&&x(0,"mat-spinner",14)}function Se(n,e){n&1&&(a(0,"mat-icon"),r(1,"search"),o())}function Ee(n,e){n&1&&x(0,"mat-spinner",14)}function Ae(n,e){n&1&&(a(0,"mat-icon"),r(1,"build"),o())}function Te(n,e){if(n&1){let t=R();a(0,"mat-card",6)(1,"mat-card-header")(2,"mat-card-title"),r(3),o()(),a(4,"mat-card-content")(5,"div",39)(6,"div",40),r(7),o(),a(8,"span",29),x(9,"span",30),r(10),o()(),v(11,De,3,1,"div",41),o(),a(12,"mat-card-actions",42)(13,"button",13),C("click",function(){let s=D(t).$implicit,m=p();return O(m.runOne(s.name,!0))}),v(14,Oe,1,0,"mat-spinner",14)(15,Se,2,0,"mat-icon"),r(16," Dry-run "),o(),a(17,"button",43),C("click",function(){let s=D(t).$implicit,m=p();return O(m.runOne(s.name,!1))}),v(18,Ee,1,0,"mat-spinner",14)(19,Ae,2,0,"mat-icon"),r(20," Fix "),o()()()}if(n&2){let t=e.$implicit,i=p();d(3),u(t.title),d(4),u(t.description),d(),k("data-kind",i.state(t.name).status),d(2),P("",i.state(t.name).status," "),d(),_(i.state(t.name).detail?11:-1),d(2),y("disabled",i.busy(t.name)||i.busyAll()),d(),_(i.busy(t.name)==="dry"?14:15),d(3),y("disabled",i.busy(t.name)||i.busyAll()),d(),_(i.busy(t.name)==="fix"?18:19)}}function Fe(n,e){n&1&&x(0,"mat-spinner",14)}function Ie(n,e){n&1&&(a(0,"mat-icon"),r(1,"refresh"),o())}var Re=[{name:"orphan-daemon",title:"Orphan daemon",description:"Daemon may be running from the wrong cwd, ignoring your local daimon.config.json"},{name:"stale-lock",title:"Stale lock",description:"Lock file exists but the daemon process is dead"},{name:"missing-search-root",title:"Missing search root",description:"Current cwd has an nx/angular/vite project but isn\u2019t configured"},{name:"corrupt-history-db",title:"Corrupt history DB",description:"History SQLite DB failed quickCheck()"}],oe=class n{api=M(H);http=M(N);snack=M(L);routines=Re;results=g(new Map);results_lastIntent=g(new Map);errored=g(new Set);loading=g(!0);discovery=g(null);daemonVersion=g("");daemonPort=g(null);configLoaded=g(!1);overview=g(null);busyMap=g(new Map);busyAll=g(!1);busyAllKind=g(null);reloading=g(!1);rejectedRows=w(()=>{let e=this.discovery();return e?Object.entries(e.rejected||{}).map(([t,i])=>({reason:t,count:i})).sort((t,i)=>i.count-t.count):[]});subtitle=w(()=>{let e=this.results(),t=0;for(let i of e.values())i.detected&&t++;return this.loading()&&e.size===0?"Checking system health\u2026":e.size===0?"Run diagnostics to see if any routines need fixing.":t===0?"All checked routines look clean.":`${t} routine${t===1?"":"s"} need${t===1?"s":""} fixing`});tokenEstimate=w(()=>120+this.api.apps().length*34);async ngOnInit(){await this.refreshAll()}async refreshAll(){this.loading.set(!0);try{let[e,t,i]=await Promise.all([this.api.getConfig().catch(()=>null),this.api.discoveryExplain().catch(()=>null),T(this.http.get("/api/overview")).catch(()=>null)]);e&&e.config&&(this.configLoaded.set(!0),this.daemonPort.set(e.config.apiPort??e.config.api?.port??null)),this.discovery.set(t),this.overview.set(i),i?.version&&this.daemonVersion.set(i.version),this.api.apps().length||await this.api.refresh()}finally{this.loading.set(!1)}}state(e){let t=this.results().get(e),i=this.results_lastIntent().get(e),s=this.errored().has(e);if(!t)return{status:"unknown",detail:"",isPath:!1};let m;s?m="error":i==="fix"?m=t.detected?"fixed":"clean":m=t.detected?"detected":"clean";let f=t.description||"",c=/[\\/]/.test(f)||f.includes(":\\")||f.startsWith("/");return{status:m,detail:f,isPath:c}}busy(e){return this.busyMap().get(e)}async runOne(e,t){if(!t&&!window.confirm(`Run fix for "${e}"? This will modify daemon state.`))return;let i=t?"dry":"fix";this.setBusy(e,i);try{let s=await this.api.runAutoFix({dryRun:t,permitted:[e]});this.ingestResults(s,i);let m=this.results().get(e);m?this.snack.open(t?m.detected?`${e}: issue detected`:`${e}: clean`:m.detected?`${e}: fix applied`:`${e}: no action needed`,"OK",{duration:3500}):this.snack.open(`${e}: no result returned`,"OK",{duration:3e3})}catch(s){this.markError(e,s?.message||String(s)),this.snack.open(`${e} failed: ${s?.message||s}`,"Dismiss",{duration:5e3})}finally{this.setBusy(e,null)}}async runAllDry(){this.busyAll.set(!0),this.busyAllKind.set("dry");try{let e=await this.api.runAutoFix({dryRun:!0});this.ingestResults(e,"dry"),this.snack.open("Dry-run complete","OK",{duration:2500})}catch(e){this.snack.open(`Dry-run failed: ${e?.message||e}`,"Dismiss",{duration:5e3})}finally{this.busyAll.set(!1),this.busyAllKind.set(null)}}async fixAll(){if(window.confirm("Run every fix routine without dry-run? This will modify daemon state.")){this.busyAll.set(!0),this.busyAllKind.set("fix");try{let t=await this.api.runAutoFix({dryRun:!1});this.ingestResults(t,"fix"),this.snack.open("Fix-all complete","OK",{duration:2500})}catch(t){this.snack.open(`Fix-all failed: ${t?.message||t}`,"Dismiss",{duration:5e3})}finally{this.busyAll.set(!1),this.busyAllKind.set(null)}}}async reloadConfig(){this.reloading.set(!0);try{await this.api.reloadConfig(),this.snack.open("Config reloaded","OK",{duration:2500}),await this.refreshAll()}catch(e){this.snack.open(`Reload failed: ${e?.message||e}`,"Dismiss",{duration:5e3})}finally{this.reloading.set(!1)}}setBusy(e,t){this.busyMap.update(i=>{let s=new Map(i);return t===null?s.delete(e):s.set(e,t),s})}ingestResults(e,t){let i=Array.isArray(e?.ran)?e.ran:[],s=Array.isArray(e?.skipped)?e.skipped:[],m=Array.isArray(e?.errors)?e.errors:[];if(this.results.update(f=>{let c=new Map(f);for(let l of i)c.set(l.name,l);for(let l of s)c.set(l.name,l);for(let l of m){let ae=c.get(l.name);c.set(l.name,{name:l.name,detected:ae?.detected??!1,description:l.error||"error"})}return c}),this.errored.update(f=>{let c=new Set(f);for(let l of i)c.delete(l.name);for(let l of s)c.delete(l.name);for(let l of m)c.add(l.name);return c}),this.results_lastIntent.update(f=>{let c=new Map(f);for(let l of i)c.set(l.name,t);for(let l of s)c.set(l.name,t);for(let l of m)c.set(l.name,"fix");return c}),m.length)for(let f of m)this.markError(f.name,f.error)}markError(e,t){this.results.update(i=>{let s=new Map(i);return s.set(e,{name:e,detected:!1,description:t||"error"}),s}),this.results_lastIntent.update(i=>{let s=new Map(i);return s.set(e,"fix"),s}),this.errored.update(i=>{let s=new Set(i);return s.add(e),s})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["dm-doctor-page"]],decls:74,vars:11,consts:[[1,"dm-page-header"],[1,"dm-page-sub"],["mat-icon-button","","aria-label","Refresh",3,"click","disabled"],[1,"dm-section"],[1,"dm-section-title"],[1,"dm-grid-2"],[1,"dm-card"],[1,"dm-stack"],["icon","search_off",3,"title","hint"],[1,"dm-muted"],[1,"dm-banner"],[1,"dm-banner-text"],[1,"dm-banner-actions"],["mat-stroked-button","",3,"click","disabled"],["diameter","16"],["mat-flat-button","","color","warn",3,"click","disabled"],[1,"dm-quick"],["mat-stroked-button","","routerLink","/config"],["mat-stroked-button","","routerLink","/events"],[1,"dm-stat"],[1,"dm-stat-icon"],[1,"dm-stat-label"],[1,"dm-stat-value"],["height","1.25rem","width","60%"],["height","1rem","width","40%"],["height","1rem","width","50%"],[1,"dm-kv"],[1,"dm-k"],[1,"dm-v"],[1,"dm-pill"],[1,"dm-dot"],["height","1rem","width","70%"],["height","1rem","width","80%"],[1,"dm-block"],[1,"dm-list"],[1,"dm-callout"],[1,"dm-table"],[1,"dm-num"],[1,"dm-list","dm-warn"],[1,"dm-row-between"],[1,"dm-routine-desc"],[1,"dm-detail"],["align","end"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div")(2,"h1"),r(3,"Doctor"),o(),a(4,"div",1),r(5),o()(),a(6,"button",2),C("click",function(){return i.refreshAll()}),a(7,"mat-icon"),r(8,"refresh"),o()()(),a(9,"section",3)(10,"h2",4),r(11,"System overview"),o(),a(12,"div",5)(13,"mat-card",6)(14,"mat-card-header")(15,"mat-card-title"),r(16,"Daemon"),o()(),a(17,"mat-card-content"),v(18,le,4,0,"div",7)(19,me,25,5),o()(),a(20,"mat-card",6)(21,"mat-card-header")(22,"mat-card-title"),r(23,"Discovery"),o()(),a(24,"mat-card-content"),v(25,ce,4,0,"div",7)(26,pe,3,2,"dm-empty",8)(27,ye,21,5)(28,Ce,2,0,"div",9),o()()()(),a(29,"section",3)(30,"h2",4),r(31,"Auto-fix routines"),o(),a(32,"div",10)(33,"div",11),r(34,"Run diagnostics across every routine, or attempt all fixes in one go."),o(),a(35,"div",12)(36,"button",13),C("click",function(){return i.runAllDry()}),v(37,he,1,0,"mat-spinner",14)(38,be,2,0,"mat-icon"),r(39," Run all dry-run "),o(),a(40,"button",15),C("click",function(){return i.fixAll()}),v(41,Me,1,0,"mat-spinner",14)(42,ke,2,0,"mat-icon"),r(43," Fix everything (be careful) "),o()()(),a(44,"div",5),h(45,Te,21,9,"mat-card",6,de),o()(),a(47,"section",3)(48,"h2",4),r(49,"Quick links"),o(),a(50,"div",16)(51,"button",17)(52,"mat-icon"),r(53,"tune"),o(),r(54," Open Config editor "),o(),a(55,"button",18)(56,"mat-icon"),r(57,"timeline"),o(),r(58," View Events "),o(),a(59,"button",13),C("click",function(){return i.reloadConfig()}),v(60,Fe,1,0,"mat-spinner",14)(61,Ie,2,0,"mat-icon"),r(62," Reload config "),o(),a(63,"div",19)(64,"div",20)(65,"mat-icon"),r(66,"token"),o()(),a(67,"div")(68,"div",21),r(69,"API token footprint"),o(),a(70,"div",22)(71,"dm-mono"),r(72),o(),r(73," per Claude session"),o()()()()()),t&2&&(d(5),u(i.subtitle()),d(),y("disabled",i.loading()),d(12),_(i.loading()&&!i.configLoaded()?18:19),d(7),_(i.loading()&&!i.discovery()?25:i.discovery()&&i.discovery().appsFound===0?26:i.discovery()?27:28),d(11),y("disabled",i.busyAll()),d(),_(i.busyAll()&&i.busyAllKind()==="dry"?37:38),d(3),y("disabled",i.busyAll()),d(),_(i.busyAll()&&i.busyAllKind()==="fix"?41:42),d(4),b(i.routines),d(14),y("disabled",i.reloading()),d(),_(i.reloading()?60:61),d(12),P("~ ",i.tokenEstimate()," tokens"))},dependencies:[$,ne,X,ee,Z,te,Y,K,V,z,B,j,W,Q,q,ie,U,G,J],styles:["[_nghost-%COMP%]{display:block;max-width:1200px;margin:0 auto}.dm-section[_ngcontent-%COMP%]{margin-bottom:1.25rem}.dm-section-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font:500 .6875rem/1rem Roboto;color:var(--mat-sys-on-surface-variant);letter-spacing:.06em;text-transform:uppercase}.dm-grid-2[_ngcontent-%COMP%]{display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.dm-grid-2[_ngcontent-%COMP%]{grid-template-columns:1fr}}.dm-card[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container-low)}.dm-stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.dm-kv[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;padding:.35rem 0;border-bottom:1px solid var(--mat-sys-outline-variant)}.dm-kv[_ngcontent-%COMP%]:last-child{border-bottom:0}.dm-k[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.8125rem}.dm-v[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-block[_ngcontent-%COMP%]{margin-top:.75rem}.dm-block[_ngcontent-%COMP%] .dm-k[_ngcontent-%COMP%]{display:block;margin-bottom:.35rem}.dm-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.dm-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:.25rem .5rem;background:var(--mat-sys-surface-container);border-radius:6px;overflow-wrap:anywhere}.dm-warn[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.8125rem}.dm-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--mat-sys-outline-variant)}.dm-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.dm-num[_ngcontent-%COMP%]{text-align:right;color:var(--mat-sys-on-surface-variant)}.dm-callout[_ngcontent-%COMP%]{margin-top:.75rem;padding:.65rem .85rem;border-radius:10px;background:color-mix(in oklch,var(--mat-sys-tertiary) 12%,transparent);border:1px solid color-mix(in oklch,var(--mat-sys-tertiary) 28%,transparent);color:var(--mat-sys-on-surface);font-size:.875rem}.dm-muted[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.875rem}.dm-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;padding:2px 10px;border-radius:999px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);font:500 .75rem/1rem Roboto;letter-spacing:.025rem}.dm-pill[_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:999px;background:var(--mat-sys-outline)}.dm-pill[data-kind=ok][_ngcontent-%COMP%], .dm-pill[data-kind=clean][_ngcontent-%COMP%], .dm-pill[data-kind=fixed][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 12%,transparent);border-color:color-mix(in oklch,var(--mat-sys-primary) 28%,transparent)}.dm-pill[data-kind=ok][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=clean][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=fixed][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-primary)}.dm-pill[data-kind=detected][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-tertiary) 28%,transparent)}.dm-pill[data-kind=detected][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-tertiary)}.dm-pill[data-kind=err][_ngcontent-%COMP%], .dm-pill[data-kind=error][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-error) 30%,transparent);color:var(--mat-sys-error)}.dm-pill[data-kind=err][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=error][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-error)}.dm-banner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem .85rem;margin-bottom:.75rem;background:var(--mat-sys-surface-container);border:1px solid var(--mat-sys-outline-variant);border-radius:10px}.dm-banner-text[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface-variant)}.dm-banner-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media(max-width:700px){.dm-banner[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.dm-banner-actions[_ngcontent-%COMP%]{flex-wrap:wrap}}.dm-row-between[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.dm-routine-desc[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface-variant);flex:1}.dm-detail[_ngcontent-%COMP%]{margin-top:.75rem;padding:.5rem .65rem;background:var(--mat-sys-surface-container);border-radius:8px;font-size:.8125rem;overflow-wrap:anywhere}.dm-quick[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.dm-quick[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{justify-content:flex-start;padding:.5rem .75rem;height:auto;min-height:40px}.dm-stat[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;border:1px solid var(--mat-sys-outline-variant);border-radius:10px;background:var(--mat-sys-surface-container-low)}.dm-stat-icon[_ngcontent-%COMP%]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);color:var(--mat-sys-primary)}.dm-stat-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.dm-stat-label[_ngcontent-%COMP%]{font-size:.75rem;color:var(--mat-sys-on-surface-variant);text-transform:uppercase;letter-spacing:.025rem}.dm-stat-value[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface)}mat-spinner[_ngcontent-%COMP%]{display:inline-block;margin-right:.35rem}"],changeDetection:0})};export{oe as DoctorPageComponent};
@@ -0,0 +1 @@
1
+ import{$ as l,i as o}from"./chunk-F2EDJ6FT.js";var c=(()=>{class r{_listeners=[];notify(t,i){for(let n of this._listeners)n(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var h=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new o;constructor(e=!1,t,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,t&&t.length&&(e?t.forEach(s=>this._markSelected(s)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,i=new Set(e.map(s=>this._getConcreteValue(s)));e.forEach(s=>this._markSelected(s)),t.filter(s=>!i.has(this._getConcreteValue(s,i))).forEach(s=>this._unmarkSelected(s));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let i of t)if(this.compareWith(e,i))return i;return e}else return e}};export{c as a,h as b};
@@ -0,0 +1 @@
1
+ import{a as E,b as ot}from"./chunk-Q7R63OUT.js";import{a as X,b as Y}from"./chunk-NC2VPB4Y.js";import{a as rt,b as st,c as mt,e as lt,f as dt}from"./chunk-JX3IOOXU.js";import{g as U}from"./chunk-TSB6OOH2.js";import{a as et,b as nt,c as it,d as at}from"./chunk-NXNVIINH.js";import{b as Z,c as G}from"./chunk-LQNYSOSZ.js";import{P as J,Q as K,f as j,ua as tt}from"./chunk-QLKOKZDG.js";import{Ab as d,Bb as c,Cb as W,Eb as x,Fb as b,Gb as h,Hb as a,Ib as i,Jb as g,Kb as $,Lb as z,Mb as B,Sb as l,Wb as M,Xb as P,Yb as S,Za as s,ea as O,ec as r,fc as p,gc as f,hc as V,ob as k,oc as q,ta as _,tc as y,za as T,zb as H}from"./chunk-F2EDJ6FT.js";var ft=["canvas"],ct=["chart"],_t=e=>["/history",e],ht=(e,n)=>n.name,Ct=(e,n)=>n.ts;function yt(e,n){if(e&1&&g(0,"dm-status-pill",7),e&2){let t=n;h("status",t.status)("health",t.health)}}function vt(e,n){if(e&1&&(a(0,"span",5),r(1,"\xB7"),i(),a(2,"dm-mono")(3,"span",6),r(4),i()(),d(5,yt,1,2,"dm-status-pill",7)),e&2){let t,o=l();s(4),p(o.name),s(),c((t=o.currentApp())?5:-1,t)}}function xt(e,n){e&1&&(a(0,"a",3)(1,"mat-icon"),r(2,"arrow_back"),i(),r(3," All apps "),i())}function bt(e,n){e&1&&(a(0,"span"),r(1,"Compile-time history across all apps"),i())}function Mt(e,n){e&1&&(a(0,"div",4),g(1,"dm-skeleton",8)(2,"dm-skeleton",8)(3,"dm-skeleton",8),i())}function Pt(e,n){e&1&&g(0,"dm-empty",9)}function St(e,n){if(e&1&&g(0,"dm-status-pill",7),e&2){let t=n;h("status",t.status)("health",t.health)}}function Et(e,n){if(e&1&&(g(0,"dm-history-spark",15),a(1,"div",16)(2,"span",17)(3,"span",18),r(4,"count"),i(),a(5,"span",19)(6,"dm-mono"),r(7),i()()(),a(8,"span",17)(9,"span",18),r(10,"p50"),i(),a(11,"span",19)(12,"dm-mono"),r(13),i()()(),a(14,"span",17)(15,"span",18),r(16,"p95"),i(),a(17,"span",19)(18,"dm-mono"),r(19),i()()()()),e&2){let t=l().$implicit;h("samples",t.samples),s(7),p(t.stats.count),s(6),f("",t.stats.p50," ms"),s(6),f("",t.stats.p95," ms")}}function wt(e,n){e&1&&(a(0,"div",14),r(1,"no data"),i())}function Ot(e,n){if(e&1&&(a(0,"a",11)(1,"div",12)(2,"dm-mono")(3,"span",13),r(4),i()(),d(5,St,1,2,"dm-status-pill",7),i(),d(6,Et,20,4)(7,wt,2,0,"div",14),i()),e&2){let t,o=n.$implicit,m=l(3);h("routerLink",q(4,_t,o.name)),s(4),p(o.name),s(),c((t=m.byName(o.name))?5:-1,t),s(),c(o.samples.length?6:7)}}function Tt(e,n){if(e&1&&(a(0,"div",10),x(1,Ot,8,6,"a",11,ht),i()),e&2){let t=l(2);s(),b(t.overview())}}function kt(e,n){if(e&1&&d(0,Pt,1,0,"dm-empty",9)(1,Tt,3,0,"div",10),e&2){let t=l();c(t.overview().length===0?0:1)}}function Ht(e,n){e&1&&g(0,"dm-empty",9)}function It(e,n){if(e&1&&(a(0,"tr")(1,"td")(2,"span",32),r(3),i()(),a(4,"td",31)(5,"dm-mono"),r(6),i()()()),e&2){let t=n.$implicit,o=l(3);s(2),h("matTooltip",o.absTime(t.ts)),s(),p(o.relTime(t.ts)),s(3),f("",t.ms," ms")}}function Dt(e,n){if(e&1&&(a(0,"div",23)(1,"div",24)(2,"div",25),r(3,"count"),i(),a(4,"div",26)(5,"dm-mono"),r(6),i()()(),a(7,"div",24)(8,"div",25),r(9,"p50"),i(),a(10,"div",26)(11,"dm-mono"),r(12),i()()(),a(13,"div",24)(14,"div",25),r(15,"p95"),i(),a(16,"div",26)(17,"dm-mono"),r(18),i()()(),a(19,"div",24)(20,"div",25),r(21,"slowest"),i(),a(22,"div",26)(23,"dm-mono"),r(24),i()()(),a(25,"div",24)(26,"div",25),r(27,"fastest"),i(),a(28,"div",26)(29,"dm-mono"),r(30),i()()()(),a(31,"mat-card",27)(32,"mat-card-header")(33,"mat-card-title"),r(34,"Compile time (ms)"),i()(),a(35,"mat-card-content")(36,"div",28),g(37,"canvas",null,0),i()()(),a(39,"mat-card",29)(40,"mat-card-header")(41,"mat-card-title"),r(42,"Recent compiles"),i()(),a(43,"mat-card-content")(44,"table",30)(45,"thead")(46,"tr")(47,"th"),r(48,"time"),i(),a(49,"th",31),r(50,"duration"),i()()(),a(51,"tbody"),x(52,It,7,3,"tr",null,Ct),i()()()()),e&2){let t=l(2);s(6),p(t.stats().count),s(6),f("",t.stats().p50," ms"),s(6),f("",t.stats().p95," ms"),s(6),f("",t.stats().slowest," ms"),s(6),f("",t.stats().fastest," ms"),s(22),b(t.recent())}}function Rt(e,n){e&1&&g(0,"dm-skeleton",21)}function Nt(e,n){e&1&&(a(0,"div",22),r(1,"No state transitions recorded."),i())}function Lt(e,n){if(e&1&&(a(0,"span",5),r(1,"\xB7"),i(),a(2,"span",40),r(3),i()),e&2){let t=l();s(3),p(t.message)}}function At(e,n){if(e&1&&(a(0,"div",33)(1,"div",35)(2,"span",36),r(3),i(),a(4,"mat-icon",37),r(5,"arrow_forward"),i(),a(6,"span",38),r(7),i()(),a(8,"div",39)(9,"dm-mono"),r(10),i(),d(11,Lt,4,1),i()()),e&2){let t=n,o=l(3);s(3),p(t.from||"\u2014"),s(3),H("data-to",t.to),s(),p(t.to||"\u2014"),s(3),p(o.fmtTs(t.ts)),s(),c(t.message?11:-1)}}function Ft(e,n){if(e&1&&(a(0,"span",5),r(1,"\xB7"),i(),a(2,"span")(3,"dm-mono"),r(4),i()()),e&2){let t=l().$implicit;s(4),V("",t.from||"\u2014"," \u2192 ",t.to||"\u2014")}}function Qt(e,n){if(e&1&&(a(0,"span",5),r(1,"\xB7"),i(),a(2,"span"),r(3),i()),e&2){let t=l().$implicit;s(3),p(t.message)}}function Wt(e,n){if(e&1&&(a(0,"li"),g(1,"span",41),a(2,"div",42)(3,"div",43)(4,"strong"),r(5),i(),d(6,Ft,5,2),i(),a(7,"div",44)(8,"dm-mono"),r(9),i(),d(10,Qt,4,1),i()()()),e&2){let t=n.$implicit,o=l(4);s(),H("data-kind",t.type),s(4),p(t.type),s(),c(t.from||t.to?6:-1),s(3),p(o.fmtTs(t.ts)),s(),c(t.message?10:-1)}}function $t(e,n){if(e&1&&(a(0,"ol",34),x(1,Wt,11,5,"li",null,W),i()),e&2){let t=l(3);s(),b(t.priorEvents())}}function zt(e,n){if(e&1&&(d(0,At,12,5,"div",33),d(1,$t,3,0,"ol",34)),e&2){let t,o=l(2);c((t=(t=o.why())==null?null:t.lastTransition)?0:-1,t),s(),c(o.priorEvents().length?1:-1)}}function Bt(e,n){if(e&1&&(d(0,Ht,1,0,"dm-empty",9)(1,Dt,54,5),a(2,"mat-card",20)(3,"mat-card-header")(4,"mat-card-title"),r(5,"Why"),i()(),a(6,"mat-card-content"),d(7,Rt,1,0,"dm-skeleton",21)(8,Nt,2,0,"div",22)(9,zt,2,2),i()()),e&2){let t=l();c(t.samples().length===0?0:1),s(7),c(t.whyLoading()?7:t.why()?9:8)}}E.register(...ot);function pt(e,n){if(e.length===0)return 0;let t=Math.min(e.length-1,Math.max(0,Math.floor(n/100*(e.length-1))));return e[t]}function I(e){if(e.length===0)return{count:0,p50:0,p95:0,slowest:0,fastest:0};let n=e.map(t=>t.ms).slice().sort((t,o)=>t-o);return{count:e.length,p50:pt(n,50),p95:pt(n,95),slowest:n[n.length-1],fastest:n[0]}}function Vt(e,n=Date.now()){let t=Math.max(0,n-e),o=Math.floor(t/1e3);if(o<5)return"just now";if(o<60)return o+"s ago";let m=Math.floor(o/60);if(m<60)return m+"m ago";let u=Math.floor(m/60);return u<24?u+"h ago":Math.floor(u/24)+"d ago"}function qt(e){return e?new Date(e).toLocaleString():"\u2014"}function v(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}var D=class e{samples=[];canvasRef;chart;ngAfterViewInit(){let n=matchMedia("(prefers-reduced-motion: reduce)").matches,t=v("--mat-sys-primary")||"var(--mat-sys-primary)",o={type:"line",data:{labels:this.samples.map((m,u)=>u),datasets:[{data:this.samples.map(m=>m.ms),borderColor:t,backgroundColor:"transparent",borderWidth:1.4,tension:.3,pointRadius:0,fill:!1}]},options:{responsive:!0,maintainAspectRatio:!1,animation:n?!1:{duration:200},plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1}}}};this.chart=new E(this.canvasRef.nativeElement,o)}ngOnChanges(n){n.samples&&this.chart&&(this.chart.data.labels=this.samples.map((t,o)=>o),this.chart.data.datasets[0].data=this.samples.map(t=>t.ms),this.chart.update("none"))}ngOnDestroy(){this.chart?.destroy()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=k({type:e,selectors:[["dm-history-spark"]],viewQuery:function(t,o){if(t&1&&M(ft,7),t&2){let m;P(m=S())&&(o.canvasRef=m.first)}},inputs:{samples:"samples"},features:[T],decls:3,vars:0,consts:[["canvas",""],[1,"dm-spark-box"]],template:function(t,o){t&1&&($(0,"div",1),B(1,"canvas",null,0),z())},styles:["[_nghost-%COMP%]{display:block}.dm-spark-box[_ngcontent-%COMP%]{position:relative;height:56px}"],changeDetection:0})},ut=class e{name="";api=O(tt);router=O(Z);chartCanvas;chartCanvases;loading=_(!0);samples=_([]);overview=_([]);why=_(null);whyLoading=_(!1);stats=y(()=>I(this.samples()));recent=y(()=>this.samples().slice().sort((n,t)=>t.ts-n.ts).slice(0,20));priorEvents=y(()=>{let n=this.why();return Array.isArray(n?.priorEvents)?n.priorEvents:[]});currentApp=y(()=>this.name?this.api.byName(this.name):void 0);chart;refreshTimer;nowTick;tick=_(0);byName(n){return this.api.byName(n)}ngOnInit(){this.load(),this.refreshTimer=setInterval(()=>{this.load(!0)},1e4),this.nowTick=setInterval(()=>this.tick.update(n=>n+1),3e4)}ngOnChanges(n){"name"in n&&!n.name.firstChange&&(this.destroyChart(),this.load())}ngOnDestroy(){this.destroyChart(),this.refreshTimer&&clearInterval(this.refreshTimer),this.nowTick&&clearInterval(this.nowTick)}destroyChart(){this.chart?.destroy(),this.chart=void 0}async load(n=!1){n||this.loading.set(!0);try{if(this.name){let[t,o]=await Promise.all([this.api.getCompileTimes(this.name,200),this.fetchWhy(this.name)]);this.samples.set(Array.isArray(t)?t:[]),this.why.set(o),queueMicrotask(()=>this.renderChart())}else{this.api.apps().length===0&&await this.api.refresh();let o=this.api.apps(),m=await Promise.all(o.map(async u=>{let C=await this.api.getCompileTimes(u.name,100);return{name:u.name,samples:C,stats:I(C)}}));this.overview.set(m)}}finally{n||this.loading.set(!1)}}async fetchWhy(n){this.whyLoading.set(!0);try{return await this.api.getHistoryWhy(n)}finally{this.whyLoading.set(!1)}}renderChart(){let n=this.chartCanvas?.nativeElement??this.chartCanvases?.first?.nativeElement;if(!n)return;let t=this.samples();if(t.length===0){this.destroyChart();return}let o=matchMedia("(prefers-reduced-motion: reduce)").matches,m=v("--mat-sys-primary")||"var(--mat-sys-primary)",u=v("--mat-sys-tertiary")||"var(--mat-sys-tertiary)",C=v("--mat-sys-error")||"var(--mat-sys-error)",R=v("--mat-sys-outline-variant")||"rgba(120,120,120,0.3)",N=t.map(w=>new Date(w.ts).toLocaleTimeString()),L=t.map(w=>w.ms),A=I(t),F=new Array(t.length).fill(A.p50),Q=new Array(t.length).fill(A.p95);if(this.chart){this.chart.data.labels=N,this.chart.data.datasets[0].data=L,this.chart.data.datasets[1].data=F,this.chart.data.datasets[2].data=Q,this.chart.update("none");return}let gt={type:"line",data:{labels:N,datasets:[{label:"ms",data:L,borderColor:m,backgroundColor:"transparent",borderWidth:1.6,tension:.25,pointRadius:0,fill:!1},{label:"p50",data:F,borderColor:u,borderDash:[4,4],borderWidth:1,pointRadius:0,fill:!1},{label:"p95",data:Q,borderColor:C,borderDash:[4,4],borderWidth:1,pointRadius:0,fill:!1}]},options:{responsive:!0,maintainAspectRatio:!1,animation:o?!1:{duration:200},plugins:{legend:{position:"bottom",labels:{boxWidth:12}}},scales:{x:{ticks:{maxTicksLimit:6,autoSkip:!0},grid:{color:R}},y:{beginAtZero:!0,title:{display:!0,text:"ms"},grid:{color:R}}}}};this.chart=new E(n,gt)}relTime(n){return this.tick(),Vt(n)}absTime(n){return new Date(n).toLocaleString()}fmtTs(n){return qt(n)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=k({type:e,selectors:[["dm-history-page"]],viewQuery:function(t,o){if(t&1&&(M(ct,5),M(ct,5)),t&2){let m;P(m=S())&&(o.chartCanvas=m.first),P(m=S())&&(o.chartCanvases=m)}},inputs:{name:"name"},features:[T],decls:11,vars:3,consts:[["chart",""],[1,"dm-page-header"],[1,"dm-page-sub"],["routerLink","/history",1,"dm-back"],[1,"dm-skel-grid"],[1,"dm-sep"],[1,"dm-app"],[3,"status","health"],["height","8rem"],["icon","query_stats","title","No compile data yet","hint","Compile times appear here as the app builds"],[1,"dm-grid"],[1,"dm-card",3,"routerLink"],[1,"dm-card-head"],[1,"dm-card-name"],[1,"dm-card-empty"],[3,"samples"],[1,"dm-card-foot"],[1,"dm-foot-cell"],[1,"dm-foot-label"],[1,"dm-foot-value"],[1,"dm-why-card"],["height","3rem"],[1,"dm-why-empty"],[1,"dm-stats"],[1,"dm-tile"],[1,"dm-tile-label"],[1,"dm-tile-value"],[1,"dm-chart-card"],[1,"dm-chart-box"],[1,"dm-table-card"],[1,"dm-table"],[1,"dm-num"],[3,"matTooltip"],[1,"dm-transition"],[1,"dm-timeline"],[1,"dm-transition-arrow"],[1,"dm-transition-from"],[1,"dm-transition-icon"],[1,"dm-transition-to"],[1,"dm-transition-meta"],[1,"dm-transition-msg"],[1,"dm-timeline-dot"],[1,"dm-timeline-body"],[1,"dm-timeline-head"],[1,"dm-timeline-meta"]],template:function(t,o){t&1&&(a(0,"div",1)(1,"div")(2,"h1"),r(3," History "),d(4,vt,6,2),i(),a(5,"div",2),d(6,xt,4,0,"a",3)(7,bt,2,0,"span"),i()()(),d(8,Mt,4,0,"div",4)(9,kt,2,1)(10,Bt,10,2)),t&2&&(s(4),c(o.name?4:-1),s(2),c(o.name?6:7),s(2),c(o.loading()?8:o.name?10:9))},dependencies:[j,G,dt,rt,mt,lt,st,U,K,J,Y,X,et,it,nt,at,D],styles:["[_nghost-%COMP%]{display:block}.dm-page-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.dm-sep[_ngcontent-%COMP%]{color:var(--mat-sys-outline);margin:0 .15rem}.dm-app[_ngcontent-%COMP%]{color:var(--mat-sys-primary);font-weight:500}.dm-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;color:var(--mat-sys-primary);text-decoration:none}.dm-back[_ngcontent-%COMP%]:hover{text-decoration:underline}.dm-skel-grid[_ngcontent-%COMP%], .dm-grid[_ngcontent-%COMP%]{display:grid;gap:1rem}.dm-skel-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}.dm-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}.dm-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1rem;border-radius:14px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container-lowest);color:inherit;text-decoration:none;transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease}.dm-card[_ngcontent-%COMP%]:hover{border-color:color-mix(in oklch,var(--mat-sys-primary) 40%,var(--mat-sys-outline-variant));box-shadow:var(--mat-sys-level1)}.dm-card-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.dm-card-name[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);font-weight:500}.dm-card-foot[_ngcontent-%COMP%]{display:flex;gap:1rem}.dm-foot-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dm-foot-label[_ngcontent-%COMP%], .dm-tile-label[_ngcontent-%COMP%], .dm-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.04rem;color:var(--mat-sys-on-surface-variant)}.dm-foot-value[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-card-empty[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.875rem;padding:1rem 0}.dm-stats[_ngcontent-%COMP%]{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));margin-bottom:1rem}.dm-tile[_ngcontent-%COMP%]{padding:.85rem 1rem;border-radius:12px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container-lowest)}.dm-tile-value[_ngcontent-%COMP%]{font:400 1.5rem/2rem Roboto;color:var(--mat-sys-on-surface);margin-top:.25rem}.dm-chart-card[_ngcontent-%COMP%]{margin-bottom:1rem}.dm-chart-box[_ngcontent-%COMP%]{position:relative;height:320px}.dm-table-card[_ngcontent-%COMP%]{margin-bottom:1rem}.dm-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.dm-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dm-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:.55rem .75rem;border-bottom:1px solid var(--mat-sys-outline-variant);font-size:.875rem}.dm-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:color-mix(in oklch,var(--mat-sys-primary) 6%,transparent)}.dm-num[_ngcontent-%COMP%]{text-align:right}.dm-why-empty[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.875rem}.dm-transition[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;padding:.75rem 1rem;border-radius:10px;background:var(--mat-sys-surface-container);margin-bottom:1rem}.dm-transition-arrow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font:500 1rem/1.5rem Roboto}.dm-transition-from[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-transition-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px;color:var(--mat-sys-outline)}.dm-transition-to[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.dm-transition-to[data-to=error][_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-transition-to[data-to=stopped][_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-transition-meta[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.8125rem}.dm-transition-msg[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-timeline[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0 0 0 1rem;border-left:2px solid var(--mat-sys-outline-variant)}.dm-timeline[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;padding:.5rem 0 .5rem .75rem}.dm-timeline-dot[_ngcontent-%COMP%]{position:absolute;left:-1.42rem;top:.9rem;width:10px;height:10px;border-radius:999px;background:var(--mat-sys-outline);box-shadow:0 0 0 3px var(--mat-sys-surface)}.dm-timeline-dot[data-kind=status][_ngcontent-%COMP%]{background:var(--mat-sys-primary)}.dm-timeline-dot[data-kind=error][_ngcontent-%COMP%]{background:var(--mat-sys-error)}.dm-timeline-dot[data-kind=health][_ngcontent-%COMP%]{background:var(--mat-sys-tertiary)}.dm-timeline-head[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface)}.dm-timeline-meta[_ngcontent-%COMP%]{font-size:.75rem;color:var(--mat-sys-on-surface-variant);margin-top:.15rem}"],changeDetection:0})};export{ut as HistoryPageComponent,D as HistorySparkComponent};
@@ -0,0 +1,3 @@
1
+ import{a as M}from"./chunk-AEERNAF7.js";import{$ as pe,F as C,G as oe,N as se,U as re,W as de,Y as le,aa as ce,u as ae,w as ie}from"./chunk-QLKOKZDG.js";import{Ab as K,Ac as E,B as F,Bb as X,C as c,Ca as P,Dc as h,Ec as ne,Gb as k,Hb as G,I as R,Ib as I,Kb as b,Lb as H,Mb as Y,Qb as J,T as z,Tb as S,Ub as d,Vb as $,Wb as O,Xb as y,Yb as _,Za as m,aa as u,bc as ee,ca as l,cb as r,cc as v,d as g,db as V,ea as i,fb as B,hb as q,i as A,kb as U,la as j,m as N,nc as w,oa as L,ob as T,pb as x,qb as p,rb as W,sb as Z,ta as Q,vc as te,za as D,zb as f}from"./chunk-F2EDJ6FT.js";var me=new l("CdkAccordion");var he=(()=>{class n{accordion=i(me,{optional:!0,skipSelf:!0});_changeDetectorRef=i(E);_expansionDispatcher=i(M);_openCloseAllSubscription=g.EMPTY;closed=new r;opened=new r;destroyed=new r;expandedChange=new r;id=i(C).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",h],disabled:[2,"disabled","disabled",h]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[w([{provide:me,useValue:void 0}])]})}return n})(),ge=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=x({type:n});static \u0275inj=u({})}return n})();var we=["body"],Ee=["bodyWrapper"],Ce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Me=["mat-expansion-panel-header","*","mat-action-row"];function Ae(n,be){}var De=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Pe=["mat-panel-title","mat-panel-description","*"];function Te(n,be){n&1&&(b(0,"span",1),j(),b(1,"svg",2),Y(2,"path",3),H()())}var ue=new l("MAT_ACCORDION"),xe=new l("MAT_EXPANSION_PANEL"),ke=(()=>{class n{_template=i(B);_expansionPanel=i(xe,{optional:!0});constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]})}return n})(),fe=new l("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ie=(()=>{class n extends he{_viewContainerRef=i(U);_animationsDisabled=re();_document=i(L);_ngZone=i(V);_elementRef=i(P);_renderer=i(q);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new r;afterCollapse=new r;_inputChanges=new A;accordion=i(ue,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=i(C).getId("mat-expansion-panel-header-");constructor(){super();let e=i(fe,{optional:!0});this._expansionDispatcher=i(M),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(z(null),c(()=>this.expanded&&!this._portal),R(1)).subscribe(()=>{this._portal=new le(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=T({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,a,s){if(t&1&&$(s,ke,5),t&2){let o;y(o=_())&&(a._lazyContent=o.first)}},viewQuery:function(t,a){if(t&1&&(O(we,5),O(Ee,5)),t&2){let s;y(s=_())&&(a._body=s.first),y(s=_())&&(a._bodyWrapper=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,a){t&2&&v("mat-expanded",a.expanded)("mat-expansion-panel-spacing",a._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",h],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[w([{provide:ue,useValue:void 0},{provide:xe,useExisting:n}]),W,D],ngContentSelectors:Me,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,a){t&1&&(S(Ce),d(0),G(1,"div",2,0)(3,"div",3,1)(5,"div",4),d(6,1),Z(7,Ae,0,0,"ng-template",5),I(),d(8,2),I()()),t&2&&(m(),f("inert",a.expanded?null:""),m(2),k("id",a.id),f("aria-labelledby",a._headerId),m(4),k("cdkPortalOutlet",a._portal))},dependencies:[pe],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}
2
+ `],encapsulation:2,changeDetection:0})}return n})();var ht=(()=>{class n{panel=i(Ie,{host:!0});_element=i(P);_focusMonitor=i(ae);_changeDetectorRef=i(E);_parentChangeSubscription=g.EMPTY;constructor(){i(ie).load(de);let e=this.panel,t=i(fe,{optional:!0}),a=i(new te("tabindex"),{optional:!0}),s=e.accordion?e.accordion._stateChanges.pipe(c(o=>!!(o.hideToggle||o.togglePosition))):N;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=F(e.opened,e.closed,s,e._inputChanges.pipe(c(o=>!!(o.hideToggle||o.disabled||o.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(c(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),t&&(this.expandedHeight=t.expandedHeight,this.collapsedHeight=t.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:oe(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=T({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(t,a){t&1&&J("click",function(){return a._toggle()})("keydown",function(o){return a._keydown(o)}),t&2&&(f("id",a.panel._headerId)("tabindex",a.disabled?-1:a.tabIndex)("aria-controls",a._getPanelId())("aria-expanded",a._isExpanded())("aria-disabled",a.panel.disabled),ee("height",a._getHeaderHeight()),v("mat-expanded",a._isExpanded())("mat-expansion-toggle-indicator-after",a._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",a._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ne(e)]},ngContentSelectors:Pe,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,a){t&1&&(S(De),b(0,"span",0),d(1),d(2,1),d(3,2),H(),K(4,Te,3,0,"span",1)),t&2&&(v("mat-content-hide-toggle",!a._showToggle()),m(4),X(a._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}
3
+ `],encapsulation:2,changeDetection:0})}return n})(),gt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return n})(),ut=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return n})();var xt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=x({type:n});static \u0275inj=u({imports:[se,ge,ce]})}return n})();export{Ie as a,ht as b,gt as c,ut as d,xt as e};