@mxtommy/kip 3.9.0-beta.2 → 3.9.0-beta.21

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 (178) hide show
  1. package/.github/copilot-instructions.md +1 -1
  2. package/.github/instructions/angular.instructions.md +46 -0
  3. package/README.md +49 -12
  4. package/package.json +2 -4
  5. package/public/3rdpartylicenses.txt +77 -77
  6. package/public/app-help.component.css.map +7 -0
  7. package/public/app.component.css.map +7 -0
  8. package/public/assets/help-docs/configuration.md +4 -4
  9. package/public/assets/help-docs/dashboards.md +4 -2
  10. package/public/assets/svg/icons.svg +1 -1
  11. package/public/boolean-control-config.component.css.map +7 -0
  12. package/public/boolean-multicontrol-options.component.css.map +7 -0
  13. package/public/chunk-3EWIS24B.js +5237 -0
  14. package/public/chunk-3EWIS24B.js.map +1 -0
  15. package/public/chunk-3VR3EA35.js +1022 -0
  16. package/public/chunk-3VR3EA35.js.map +1 -0
  17. package/public/chunk-63ILPRXC.js +2091 -0
  18. package/public/chunk-63ILPRXC.js.map +1 -0
  19. package/public/chunk-65ZWQBS6.js +3102 -0
  20. package/public/chunk-65ZWQBS6.js.map +1 -0
  21. package/public/chunk-B3LKEWZP.js +4950 -0
  22. package/public/chunk-B3LKEWZP.js.map +1 -0
  23. package/public/chunk-BIBIW64D.js +16773 -0
  24. package/public/chunk-BIBIW64D.js.map +1 -0
  25. package/public/chunk-BM53SC5N.js +77 -0
  26. package/public/chunk-BM53SC5N.js.map +7 -0
  27. package/public/chunk-D7ILNFDM.js +3059 -0
  28. package/public/chunk-D7ILNFDM.js.map +1 -0
  29. package/public/chunk-E24UNLSJ.js +2228 -0
  30. package/public/chunk-E24UNLSJ.js.map +1 -0
  31. package/public/chunk-J42S2ELC.js +5927 -0
  32. package/public/chunk-J42S2ELC.js.map +1 -0
  33. package/public/chunk-KC22A6VH.js +17 -0
  34. package/public/chunk-KC22A6VH.js.map +7 -0
  35. package/public/chunk-MCEJWZB2.js +116 -0
  36. package/public/chunk-MCEJWZB2.js.map +1 -0
  37. package/public/chunk-NBF6SE6O.js +89 -0
  38. package/public/chunk-NBF6SE6O.js.map +7 -0
  39. package/public/chunk-QC7VGVAR.js +343 -0
  40. package/public/chunk-QC7VGVAR.js.map +7 -0
  41. package/public/chunk-SDOP6T56.js +42377 -0
  42. package/public/chunk-SDOP6T56.js.map +1 -0
  43. package/public/chunk-U2DCSTRY.js +159 -0
  44. package/public/chunk-U2DCSTRY.js.map +7 -0
  45. package/public/chunk-UHVNAEXC.js +4752 -0
  46. package/public/chunk-UHVNAEXC.js.map +1 -0
  47. package/public/chunk-UQYTD5AC.js +2723 -0
  48. package/public/chunk-UQYTD5AC.js.map +1 -0
  49. package/public/chunk-XSABJ5NZ.js +272 -0
  50. package/public/chunk-XSABJ5NZ.js.map +7 -0
  51. package/public/chunk-Y6N6O2IP.js +19852 -0
  52. package/public/chunk-Y6N6O2IP.js.map +1 -0
  53. package/public/chunk-YGJLBLOX.js +2708 -0
  54. package/public/chunk-YGJLBLOX.js.map +1 -0
  55. package/public/chunk-YT33DHC3.js +591 -0
  56. package/public/chunk-YT33DHC3.js.map +7 -0
  57. package/public/chunk-YZXYVP72.js +4934 -0
  58. package/public/chunk-YZXYVP72.js.map +1 -0
  59. package/public/chunk-ZEHRDSTB.js +13727 -0
  60. package/public/chunk-ZEHRDSTB.js.map +1 -0
  61. package/public/config.component.css.map +7 -0
  62. package/public/dashboard-scroller.component.css.map +7 -0
  63. package/public/dashboard.component.css.map +7 -0
  64. package/public/dashboards-editor.component.css.map +7 -0
  65. package/public/data-inspector-row.component.css.map +7 -0
  66. package/public/data-inspector.component.css.map +7 -0
  67. package/public/dataset-chart-options.component.css.map +7 -0
  68. package/public/datasets.component.css.map +7 -0
  69. package/public/dialog-confirmation.component.css.map +7 -0
  70. package/public/dialog-dashboard-page-editor.component.css.map +7 -0
  71. package/public/dialog-frame.component.css.map +7 -0
  72. package/public/dialog-name.component.css.map +7 -0
  73. package/public/display-chart-options.component.css.map +7 -0
  74. package/public/display.component.css.map +7 -0
  75. package/public/gauge-steel.component.css.map +7 -0
  76. package/public/home.component.css.map +7 -0
  77. package/public/index.html +19 -17
  78. package/public/main.js +36423 -0
  79. package/public/main.js.map +1 -0
  80. package/public/menu-actions.component.css.map +7 -0
  81. package/public/menu-notifications.component.css.map +7 -0
  82. package/public/minichart.component.css.map +7 -0
  83. package/public/modal-user-credential.component.css.map +7 -0
  84. package/public/modal-widget-config.component.css.map +7 -0
  85. package/public/notification-badge.component.css.map +7 -0
  86. package/public/page-header.component.css.map +7 -0
  87. package/public/path-control-config.component.css.map +7 -0
  88. package/public/paths-options.component.css.map +7 -0
  89. package/public/polyfills.js +4422 -0
  90. package/public/polyfills.js.map +1 -0
  91. package/public/select-autopilot.component.css.map +7 -0
  92. package/public/select-icon.component.css.map +7 -0
  93. package/public/settings.component.css.map +7 -0
  94. package/public/signalk.component.css.map +7 -0
  95. package/public/styles.css +1651 -0
  96. package/public/styles.css.map +7 -0
  97. package/public/svg-autopilot.component.css.map +7 -0
  98. package/public/svg-racesteer.component.css.map +7 -0
  99. package/public/svg-simple-linear-gauge.component.css.map +7 -0
  100. package/public/svg-windsteer.component.css.map +7 -0
  101. package/public/tile-large-icon.component.css.map +7 -0
  102. package/public/units.component.css.map +7 -0
  103. package/public/upgrade-config.component.css.map +7 -0
  104. package/public/widget-autopilot.component.css.map +7 -0
  105. package/public/widget-boolean-switch.component.css.map +7 -0
  106. package/public/widget-datetime.component.css.map +7 -0
  107. package/public/widget-freeboardsk.component.css.map +7 -0
  108. package/public/widget-gauge-ng-compass.component.css.map +7 -0
  109. package/public/widget-gauge-ng-linear.component.css.map +7 -0
  110. package/public/widget-gauge-ng-radial.component.css.map +7 -0
  111. package/public/widget-gauge-steel.component.css.map +7 -0
  112. package/public/widget-horizon.component.css.map +7 -0
  113. package/public/widget-host.component.css.map +7 -0
  114. package/public/widget-iframe.component.css.map +7 -0
  115. package/public/widget-label.component.css.map +7 -0
  116. package/public/widget-list-card.component.css.map +7 -0
  117. package/public/widget-numeric.component.css.map +7 -0
  118. package/public/widget-position.component.css.map +7 -0
  119. package/public/widget-race-timer.component.css.map +7 -0
  120. package/public/widget-racer-line.component.css.map +7 -0
  121. package/public/widget-racer-timer.component.css.map +7 -0
  122. package/public/widget-simple-linear.component.css.map +7 -0
  123. package/public/widget-slider.component.css.map +7 -0
  124. package/public/widget-text.component.css.map +7 -0
  125. package/public/widget-title.component.css.map +7 -0
  126. package/public/widget-tutorial.component.css.map +7 -0
  127. package/public/widgets-list.component.css.map +7 -0
  128. package/public/assets/hammer.min.js +0 -7
  129. package/public/chunk-2YVW3TBK.js +0 -2
  130. package/public/chunk-35L7BBBD.js +0 -15
  131. package/public/chunk-3LEMFOCV.js +0 -3
  132. package/public/chunk-3LJAKLLW.js +0 -1
  133. package/public/chunk-4JJLPUET.js +0 -60
  134. package/public/chunk-CBUY7NMR.js +0 -2
  135. package/public/chunk-CQXWGD3T.js +0 -2
  136. package/public/chunk-EUFDL4TJ.js +0 -6
  137. package/public/chunk-FBFTGVZ6.js +0 -1
  138. package/public/chunk-HCXH72CD.js +0 -5
  139. package/public/chunk-JY3WVS7C.js +0 -2
  140. package/public/chunk-KTDDP73O.js +0 -2
  141. package/public/chunk-NMEZOCU2.js +0 -1
  142. package/public/chunk-NS2FPVWM.js +0 -4
  143. package/public/chunk-OSYHJB4F.js +0 -11
  144. package/public/chunk-PKNLASTF.js +0 -4
  145. package/public/chunk-Q2Y75POI.js +0 -1
  146. package/public/chunk-RRTCHHRC.js +0 -3
  147. package/public/chunk-TA4GACKT.js +0 -4
  148. package/public/chunk-TXPLRBW5.js +0 -2
  149. package/public/chunk-VHFBF47T.js +0 -1
  150. package/public/chunk-VYUMZVH2.js +0 -2
  151. package/public/chunk-XRGAX4LS.js +0 -2
  152. package/public/chunk-YNJRIFUM.js +0 -1
  153. package/public/chunk-ZBCOJLI4.js +0 -6
  154. package/public/main-XM5EHMUE.js +0 -50
  155. package/public/polyfills-KH22MU6U.js +0 -2
  156. package/public/styles-RECKN66R.css +0 -1
  157. /package/public/media/{KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP-ILKS6RVC.woff2 → KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2} +0 -0
  158. /package/public/media/{KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ-MJ3CERJ6.woff2 → KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2} +0 -0
  159. /package/public/media/{KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP-UW3XWY7P.woff2 → KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2} +0 -0
  160. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP-U3JTBV4H.woff2 → KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2} +0 -0
  161. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP-36ULTGLY.woff2 → KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2} +0 -0
  162. /package/public/media/{KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP-5NJLO2HW.woff2 → KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2} +0 -0
  163. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP-2EL65J2O.woff2 → KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2} +0 -0
  164. /package/public/media/{KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP-XWLWMQVU.woff2 → KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2} +0 -0
  165. /package/public/media/{KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ-PWGJWDFE.woff2 → KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2} +0 -0
  166. /package/public/media/{KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP-ITB7NUJC.woff2 → KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2} +0 -0
  167. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP-32PLHKPQ.woff2 → KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2} +0 -0
  168. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP-QPSNQEDD.woff2 → KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2} +0 -0
  169. /package/public/media/{KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP-JKBSJZY3.woff2 → KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2} +0 -0
  170. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP-OG5AHRIX.woff2 → KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2} +0 -0
  171. /package/public/media/{KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz-PPTELUJT.woff2 → KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2} +0 -0
  172. /package/public/media/{KFOmCnqEu92Fr1Mu4mxKKTU1Kg-SNGEW7FX.woff2 → KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2} +0 -0
  173. /package/public/media/{KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz-DRL4U32S.woff2 → KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2} +0 -0
  174. /package/public/media/{KFOmCnqEu92Fr1Mu72xKKTU1Kvnz-PRJ7OQMU.woff2 → KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2} +0 -0
  175. /package/public/media/{KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz-HW6RMPJ3.woff2 → KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2} +0 -0
  176. /package/public/media/{KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz-KZD6JQRT.woff2 → KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2} +0 -0
  177. /package/public/media/{KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz-Z72STTMG.woff2 → KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2} +0 -0
  178. /package/public/media/{flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ-CN2J7AYH.woff2 → flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2} +0 -0
@@ -0,0 +1,2091 @@
1
+ import {
2
+ UniqueSelectionDispatcher,
3
+ _MatInternalFormField
4
+ } from "./chunk-65ZWQBS6.js";
5
+ import {
6
+ AppSettingsService,
7
+ DataService,
8
+ NG_VALIDATORS,
9
+ NG_VALUE_ACCESSOR,
10
+ UUID,
11
+ cloneDeep_default
12
+ } from "./chunk-BIBIW64D.js";
13
+ import {
14
+ ChangeDetectionStrategy,
15
+ ChangeDetectorRef,
16
+ Component,
17
+ ContentChildren,
18
+ Directive,
19
+ ElementRef,
20
+ EventEmitter,
21
+ FocusMonitor,
22
+ HostAttributeToken,
23
+ Injectable,
24
+ InjectionToken,
25
+ Injector,
26
+ Input,
27
+ MatCommonModule,
28
+ MatRipple,
29
+ MatRippleModule,
30
+ NgModule,
31
+ NgZone,
32
+ Output,
33
+ Renderer2,
34
+ ReplaySubject,
35
+ ViewChild,
36
+ ViewEncapsulation,
37
+ _CdkPrivateStyleLoader,
38
+ _IdGenerator,
39
+ _StructuralStylesLoader,
40
+ _animationsDisabled,
41
+ afterNextRender,
42
+ booleanAttribute,
43
+ concat,
44
+ forwardRef,
45
+ from,
46
+ inject,
47
+ interval,
48
+ numberAttribute,
49
+ setClassMetadata,
50
+ signal,
51
+ skip,
52
+ withLatestFrom,
53
+ ɵɵNgOnChangesFeature,
54
+ ɵɵProvidersFeature,
55
+ ɵɵadvance,
56
+ ɵɵattribute,
57
+ ɵɵclassMap,
58
+ ɵɵclassProp,
59
+ ɵɵcontentQuery,
60
+ ɵɵdefineComponent,
61
+ ɵɵdefineDirective,
62
+ ɵɵdefineInjectable,
63
+ ɵɵdefineInjector,
64
+ ɵɵdefineNgModule,
65
+ ɵɵdomProperty,
66
+ ɵɵelement,
67
+ ɵɵelementEnd,
68
+ ɵɵelementStart,
69
+ ɵɵgetCurrentView,
70
+ ɵɵlistener,
71
+ ɵɵloadQuery,
72
+ ɵɵnamespaceHTML,
73
+ ɵɵnamespaceSVG,
74
+ ɵɵprojection,
75
+ ɵɵprojectionDef,
76
+ ɵɵproperty,
77
+ ɵɵqueryRefresh,
78
+ ɵɵreference,
79
+ ɵɵresetView,
80
+ ɵɵrestoreView,
81
+ ɵɵviewQuery
82
+ } from "./chunk-SDOP6T56.js";
83
+
84
+ // node_modules/@angular/material/fesm2022/checkbox.mjs
85
+ var _c0 = ["input"];
86
+ var _c1 = ["label"];
87
+ var _c2 = ["*"];
88
+ var MAT_CHECKBOX_DEFAULT_OPTIONS = new InjectionToken("mat-checkbox-default-options", {
89
+ providedIn: "root",
90
+ factory: MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY
91
+ });
92
+ function MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY() {
93
+ return {
94
+ color: "accent",
95
+ clickAction: "check-indeterminate",
96
+ disabledInteractive: false
97
+ };
98
+ }
99
+ var TransitionCheckState;
100
+ (function(TransitionCheckState2) {
101
+ TransitionCheckState2[TransitionCheckState2["Init"] = 0] = "Init";
102
+ TransitionCheckState2[TransitionCheckState2["Checked"] = 1] = "Checked";
103
+ TransitionCheckState2[TransitionCheckState2["Unchecked"] = 2] = "Unchecked";
104
+ TransitionCheckState2[TransitionCheckState2["Indeterminate"] = 3] = "Indeterminate";
105
+ })(TransitionCheckState || (TransitionCheckState = {}));
106
+ var MatCheckboxChange = class {
107
+ /** The source checkbox of the event. */
108
+ source;
109
+ /** The new `checked` value of the checkbox. */
110
+ checked;
111
+ };
112
+ var defaults = MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY();
113
+ var MatCheckbox = class _MatCheckbox {
114
+ _elementRef = inject(ElementRef);
115
+ _changeDetectorRef = inject(ChangeDetectorRef);
116
+ _ngZone = inject(NgZone);
117
+ _animationsDisabled = _animationsDisabled();
118
+ _options = inject(MAT_CHECKBOX_DEFAULT_OPTIONS, {
119
+ optional: true
120
+ });
121
+ /** Focuses the checkbox. */
122
+ focus() {
123
+ this._inputElement.nativeElement.focus();
124
+ }
125
+ /** Creates the change event that will be emitted by the checkbox. */
126
+ _createChangeEvent(isChecked) {
127
+ const event = new MatCheckboxChange();
128
+ event.source = this;
129
+ event.checked = isChecked;
130
+ return event;
131
+ }
132
+ /** Gets the element on which to add the animation CSS classes. */
133
+ _getAnimationTargetElement() {
134
+ return this._inputElement?.nativeElement;
135
+ }
136
+ /** CSS classes to add when transitioning between the different checkbox states. */
137
+ _animationClasses = {
138
+ uncheckedToChecked: "mdc-checkbox--anim-unchecked-checked",
139
+ uncheckedToIndeterminate: "mdc-checkbox--anim-unchecked-indeterminate",
140
+ checkedToUnchecked: "mdc-checkbox--anim-checked-unchecked",
141
+ checkedToIndeterminate: "mdc-checkbox--anim-checked-indeterminate",
142
+ indeterminateToChecked: "mdc-checkbox--anim-indeterminate-checked",
143
+ indeterminateToUnchecked: "mdc-checkbox--anim-indeterminate-unchecked"
144
+ };
145
+ /**
146
+ * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will
147
+ * take precedence so this may be omitted.
148
+ */
149
+ ariaLabel = "";
150
+ /**
151
+ * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
152
+ */
153
+ ariaLabelledby = null;
154
+ /** The 'aria-describedby' attribute is read after the element's label and field type. */
155
+ ariaDescribedby;
156
+ /**
157
+ * Users can specify the `aria-expanded` attribute which will be forwarded to the input element
158
+ */
159
+ ariaExpanded;
160
+ /**
161
+ * Users can specify the `aria-controls` attribute which will be forwarded to the input element
162
+ */
163
+ ariaControls;
164
+ /** Users can specify the `aria-owns` attribute which will be forwarded to the input element */
165
+ ariaOwns;
166
+ _uniqueId;
167
+ /** A unique id for the checkbox input. If none is supplied, it will be auto-generated. */
168
+ id;
169
+ /** Returns the unique id for the visual hidden input. */
170
+ get inputId() {
171
+ return `${this.id || this._uniqueId}-input`;
172
+ }
173
+ /** Whether the checkbox is required. */
174
+ required;
175
+ /** Whether the label should appear after or before the checkbox. Defaults to 'after' */
176
+ labelPosition = "after";
177
+ /** Name value will be applied to the input element if present */
178
+ name = null;
179
+ /** Event emitted when the checkbox's `checked` value changes. */
180
+ change = new EventEmitter();
181
+ /** Event emitted when the checkbox's `indeterminate` value changes. */
182
+ indeterminateChange = new EventEmitter();
183
+ /** The value attribute of the native input element */
184
+ value;
185
+ /** Whether the checkbox has a ripple. */
186
+ disableRipple;
187
+ /** The native `<input type="checkbox">` element */
188
+ _inputElement;
189
+ /** The native `<label>` element */
190
+ _labelElement;
191
+ /** Tabindex for the checkbox. */
192
+ tabIndex;
193
+ // TODO(crisbeto): this should be a ThemePalette, but some internal apps were abusing
194
+ // the lack of type checking previously and assigning random strings.
195
+ /**
196
+ * Theme color of the checkbox. This API is supported in M2 themes only, it
197
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/checkbox/styling.
198
+ *
199
+ * For information on applying color variants in M3, see
200
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
201
+ */
202
+ color;
203
+ /** Whether the checkbox should remain interactive when it is disabled. */
204
+ disabledInteractive;
205
+ /**
206
+ * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.
207
+ * @docs-private
208
+ */
209
+ _onTouched = () => {
210
+ };
211
+ _currentAnimationClass = "";
212
+ _currentCheckState = TransitionCheckState.Init;
213
+ _controlValueAccessorChangeFn = () => {
214
+ };
215
+ _validatorChangeFn = () => {
216
+ };
217
+ constructor() {
218
+ inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
219
+ const tabIndex = inject(new HostAttributeToken("tabindex"), {
220
+ optional: true
221
+ });
222
+ this._options = this._options || defaults;
223
+ this.color = this._options.color || defaults.color;
224
+ this.tabIndex = tabIndex == null ? 0 : parseInt(tabIndex) || 0;
225
+ this.id = this._uniqueId = inject(_IdGenerator).getId("mat-mdc-checkbox-");
226
+ this.disabledInteractive = this._options?.disabledInteractive ?? false;
227
+ }
228
+ ngOnChanges(changes) {
229
+ if (changes["required"]) {
230
+ this._validatorChangeFn();
231
+ }
232
+ }
233
+ ngAfterViewInit() {
234
+ this._syncIndeterminate(this.indeterminate);
235
+ }
236
+ /** Whether the checkbox is checked. */
237
+ get checked() {
238
+ return this._checked;
239
+ }
240
+ set checked(value) {
241
+ if (value != this.checked) {
242
+ this._checked = value;
243
+ this._changeDetectorRef.markForCheck();
244
+ }
245
+ }
246
+ _checked = false;
247
+ /** Whether the checkbox is disabled. */
248
+ get disabled() {
249
+ return this._disabled;
250
+ }
251
+ set disabled(value) {
252
+ if (value !== this.disabled) {
253
+ this._disabled = value;
254
+ this._changeDetectorRef.markForCheck();
255
+ }
256
+ }
257
+ _disabled = false;
258
+ /**
259
+ * Whether the checkbox is indeterminate. This is also known as "mixed" mode and can be used to
260
+ * represent a checkbox with three states, e.g. a checkbox that represents a nested list of
261
+ * checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately
262
+ * set to false.
263
+ */
264
+ get indeterminate() {
265
+ return this._indeterminate();
266
+ }
267
+ set indeterminate(value) {
268
+ const changed = value != this._indeterminate();
269
+ this._indeterminate.set(value);
270
+ if (changed) {
271
+ if (value) {
272
+ this._transitionCheckState(TransitionCheckState.Indeterminate);
273
+ } else {
274
+ this._transitionCheckState(this.checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
275
+ }
276
+ this.indeterminateChange.emit(value);
277
+ }
278
+ this._syncIndeterminate(value);
279
+ }
280
+ _indeterminate = signal(false);
281
+ _isRippleDisabled() {
282
+ return this.disableRipple || this.disabled;
283
+ }
284
+ /** Method being called whenever the label text changes. */
285
+ _onLabelTextChange() {
286
+ this._changeDetectorRef.detectChanges();
287
+ }
288
+ // Implemented as part of ControlValueAccessor.
289
+ writeValue(value) {
290
+ this.checked = !!value;
291
+ }
292
+ // Implemented as part of ControlValueAccessor.
293
+ registerOnChange(fn) {
294
+ this._controlValueAccessorChangeFn = fn;
295
+ }
296
+ // Implemented as part of ControlValueAccessor.
297
+ registerOnTouched(fn) {
298
+ this._onTouched = fn;
299
+ }
300
+ // Implemented as part of ControlValueAccessor.
301
+ setDisabledState(isDisabled) {
302
+ this.disabled = isDisabled;
303
+ }
304
+ // Implemented as a part of Validator.
305
+ validate(control) {
306
+ return this.required && control.value !== true ? {
307
+ "required": true
308
+ } : null;
309
+ }
310
+ // Implemented as a part of Validator.
311
+ registerOnValidatorChange(fn) {
312
+ this._validatorChangeFn = fn;
313
+ }
314
+ _transitionCheckState(newState) {
315
+ let oldState = this._currentCheckState;
316
+ let element = this._getAnimationTargetElement();
317
+ if (oldState === newState || !element) {
318
+ return;
319
+ }
320
+ if (this._currentAnimationClass) {
321
+ element.classList.remove(this._currentAnimationClass);
322
+ }
323
+ this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);
324
+ this._currentCheckState = newState;
325
+ if (this._currentAnimationClass.length > 0) {
326
+ element.classList.add(this._currentAnimationClass);
327
+ const animationClass = this._currentAnimationClass;
328
+ this._ngZone.runOutsideAngular(() => {
329
+ setTimeout(() => {
330
+ element.classList.remove(animationClass);
331
+ }, 1e3);
332
+ });
333
+ }
334
+ }
335
+ _emitChangeEvent() {
336
+ this._controlValueAccessorChangeFn(this.checked);
337
+ this.change.emit(this._createChangeEvent(this.checked));
338
+ if (this._inputElement) {
339
+ this._inputElement.nativeElement.checked = this.checked;
340
+ }
341
+ }
342
+ /** Toggles the `checked` state of the checkbox. */
343
+ toggle() {
344
+ this.checked = !this.checked;
345
+ this._controlValueAccessorChangeFn(this.checked);
346
+ }
347
+ _handleInputClick() {
348
+ const clickAction = this._options?.clickAction;
349
+ if (!this.disabled && clickAction !== "noop") {
350
+ if (this.indeterminate && clickAction !== "check") {
351
+ Promise.resolve().then(() => {
352
+ this._indeterminate.set(false);
353
+ this.indeterminateChange.emit(false);
354
+ });
355
+ }
356
+ this._checked = !this._checked;
357
+ this._transitionCheckState(this._checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked);
358
+ this._emitChangeEvent();
359
+ } else if (this.disabled && this.disabledInteractive || !this.disabled && clickAction === "noop") {
360
+ this._inputElement.nativeElement.checked = this.checked;
361
+ this._inputElement.nativeElement.indeterminate = this.indeterminate;
362
+ }
363
+ }
364
+ _onInteractionEvent(event) {
365
+ event.stopPropagation();
366
+ }
367
+ _onBlur() {
368
+ Promise.resolve().then(() => {
369
+ this._onTouched();
370
+ this._changeDetectorRef.markForCheck();
371
+ });
372
+ }
373
+ _getAnimationClassForCheckStateTransition(oldState, newState) {
374
+ if (this._animationsDisabled) {
375
+ return "";
376
+ }
377
+ switch (oldState) {
378
+ case TransitionCheckState.Init:
379
+ if (newState === TransitionCheckState.Checked) {
380
+ return this._animationClasses.uncheckedToChecked;
381
+ } else if (newState == TransitionCheckState.Indeterminate) {
382
+ return this._checked ? this._animationClasses.checkedToIndeterminate : this._animationClasses.uncheckedToIndeterminate;
383
+ }
384
+ break;
385
+ case TransitionCheckState.Unchecked:
386
+ return newState === TransitionCheckState.Checked ? this._animationClasses.uncheckedToChecked : this._animationClasses.uncheckedToIndeterminate;
387
+ case TransitionCheckState.Checked:
388
+ return newState === TransitionCheckState.Unchecked ? this._animationClasses.checkedToUnchecked : this._animationClasses.checkedToIndeterminate;
389
+ case TransitionCheckState.Indeterminate:
390
+ return newState === TransitionCheckState.Checked ? this._animationClasses.indeterminateToChecked : this._animationClasses.indeterminateToUnchecked;
391
+ }
392
+ return "";
393
+ }
394
+ /**
395
+ * Syncs the indeterminate value with the checkbox DOM node.
396
+ *
397
+ * We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a
398
+ * property is supported on an element boils down to `if (propName in element)`. Domino's
399
+ * HTMLInputElement doesn't have an `indeterminate` property so Ivy will warn during
400
+ * server-side rendering.
401
+ */
402
+ _syncIndeterminate(value) {
403
+ const nativeCheckbox = this._inputElement;
404
+ if (nativeCheckbox) {
405
+ nativeCheckbox.nativeElement.indeterminate = value;
406
+ }
407
+ }
408
+ _onInputClick() {
409
+ this._handleInputClick();
410
+ }
411
+ _onTouchTargetClick() {
412
+ this._handleInputClick();
413
+ if (!this.disabled) {
414
+ this._inputElement.nativeElement.focus();
415
+ }
416
+ }
417
+ /**
418
+ * Prevent click events that come from the `<label/>` element from bubbling. This prevents the
419
+ * click handler on the host from triggering twice when clicking on the `<label/>` element. After
420
+ * the click event on the `<label/>` propagates, the browsers dispatches click on the associated
421
+ * `<input/>`. By preventing clicks on the label by bubbling, we ensure only one click event
422
+ * bubbles when the label is clicked.
423
+ */
424
+ _preventBubblingFromLabel(event) {
425
+ if (!!event.target && this._labelElement.nativeElement.contains(event.target)) {
426
+ event.stopPropagation();
427
+ }
428
+ }
429
+ static \u0275fac = function MatCheckbox_Factory(__ngFactoryType__) {
430
+ return new (__ngFactoryType__ || _MatCheckbox)();
431
+ };
432
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({
433
+ type: _MatCheckbox,
434
+ selectors: [["mat-checkbox"]],
435
+ viewQuery: function MatCheckbox_Query(rf, ctx) {
436
+ if (rf & 1) {
437
+ \u0275\u0275viewQuery(_c0, 5);
438
+ \u0275\u0275viewQuery(_c1, 5);
439
+ }
440
+ if (rf & 2) {
441
+ let _t;
442
+ \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx._inputElement = _t.first);
443
+ \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx._labelElement = _t.first);
444
+ }
445
+ },
446
+ hostAttrs: [1, "mat-mdc-checkbox"],
447
+ hostVars: 16,
448
+ hostBindings: function MatCheckbox_HostBindings(rf, ctx) {
449
+ if (rf & 2) {
450
+ \u0275\u0275domProperty("id", ctx.id);
451
+ \u0275\u0275attribute("tabindex", null)("aria-label", null)("aria-labelledby", null);
452
+ \u0275\u0275classMap(ctx.color ? "mat-" + ctx.color : "mat-accent");
453
+ \u0275\u0275classProp("_mat-animation-noopable", ctx._animationsDisabled)("mdc-checkbox--disabled", ctx.disabled)("mat-mdc-checkbox-disabled", ctx.disabled)("mat-mdc-checkbox-checked", ctx.checked)("mat-mdc-checkbox-disabled-interactive", ctx.disabledInteractive);
454
+ }
455
+ },
456
+ inputs: {
457
+ ariaLabel: [0, "aria-label", "ariaLabel"],
458
+ ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"],
459
+ ariaDescribedby: [0, "aria-describedby", "ariaDescribedby"],
460
+ ariaExpanded: [2, "aria-expanded", "ariaExpanded", booleanAttribute],
461
+ ariaControls: [0, "aria-controls", "ariaControls"],
462
+ ariaOwns: [0, "aria-owns", "ariaOwns"],
463
+ id: "id",
464
+ required: [2, "required", "required", booleanAttribute],
465
+ labelPosition: "labelPosition",
466
+ name: "name",
467
+ value: "value",
468
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
469
+ tabIndex: [2, "tabIndex", "tabIndex", (value) => value == null ? void 0 : numberAttribute(value)],
470
+ color: "color",
471
+ disabledInteractive: [2, "disabledInteractive", "disabledInteractive", booleanAttribute],
472
+ checked: [2, "checked", "checked", booleanAttribute],
473
+ disabled: [2, "disabled", "disabled", booleanAttribute],
474
+ indeterminate: [2, "indeterminate", "indeterminate", booleanAttribute]
475
+ },
476
+ outputs: {
477
+ change: "change",
478
+ indeterminateChange: "indeterminateChange"
479
+ },
480
+ exportAs: ["matCheckbox"],
481
+ features: [\u0275\u0275ProvidersFeature([{
482
+ provide: NG_VALUE_ACCESSOR,
483
+ useExisting: forwardRef(() => _MatCheckbox),
484
+ multi: true
485
+ }, {
486
+ provide: NG_VALIDATORS,
487
+ useExisting: _MatCheckbox,
488
+ multi: true
489
+ }]), \u0275\u0275NgOnChangesFeature],
490
+ ngContentSelectors: _c2,
491
+ decls: 15,
492
+ vars: 23,
493
+ consts: [["checkbox", ""], ["input", ""], ["label", ""], ["mat-internal-form-field", "", 3, "click", "labelPosition"], [1, "mdc-checkbox"], [1, "mat-mdc-checkbox-touch-target", 3, "click"], ["type", "checkbox", 1, "mdc-checkbox__native-control", 3, "blur", "click", "change", "checked", "indeterminate", "disabled", "id", "required", "tabIndex"], [1, "mdc-checkbox__ripple"], [1, "mdc-checkbox__background"], ["focusable", "false", "viewBox", "0 0 24 24", "aria-hidden", "true", 1, "mdc-checkbox__checkmark"], ["fill", "none", "d", "M1.73,12.91 8.1,19.28 22.79,4.59", 1, "mdc-checkbox__checkmark-path"], [1, "mdc-checkbox__mixedmark"], ["mat-ripple", "", 1, "mat-mdc-checkbox-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled", "matRippleCentered"], [1, "mdc-label", 3, "for"]],
494
+ template: function MatCheckbox_Template(rf, ctx) {
495
+ if (rf & 1) {
496
+ const _r1 = \u0275\u0275getCurrentView();
497
+ \u0275\u0275projectionDef();
498
+ \u0275\u0275elementStart(0, "div", 3);
499
+ \u0275\u0275listener("click", function MatCheckbox_Template_div_click_0_listener($event) {
500
+ \u0275\u0275restoreView(_r1);
501
+ return \u0275\u0275resetView(ctx._preventBubblingFromLabel($event));
502
+ });
503
+ \u0275\u0275elementStart(1, "div", 4, 0)(3, "div", 5);
504
+ \u0275\u0275listener("click", function MatCheckbox_Template_div_click_3_listener() {
505
+ \u0275\u0275restoreView(_r1);
506
+ return \u0275\u0275resetView(ctx._onTouchTargetClick());
507
+ });
508
+ \u0275\u0275elementEnd();
509
+ \u0275\u0275elementStart(4, "input", 6, 1);
510
+ \u0275\u0275listener("blur", function MatCheckbox_Template_input_blur_4_listener() {
511
+ \u0275\u0275restoreView(_r1);
512
+ return \u0275\u0275resetView(ctx._onBlur());
513
+ })("click", function MatCheckbox_Template_input_click_4_listener() {
514
+ \u0275\u0275restoreView(_r1);
515
+ return \u0275\u0275resetView(ctx._onInputClick());
516
+ })("change", function MatCheckbox_Template_input_change_4_listener($event) {
517
+ \u0275\u0275restoreView(_r1);
518
+ return \u0275\u0275resetView(ctx._onInteractionEvent($event));
519
+ });
520
+ \u0275\u0275elementEnd();
521
+ \u0275\u0275element(6, "div", 7);
522
+ \u0275\u0275elementStart(7, "div", 8);
523
+ \u0275\u0275namespaceSVG();
524
+ \u0275\u0275elementStart(8, "svg", 9);
525
+ \u0275\u0275element(9, "path", 10);
526
+ \u0275\u0275elementEnd();
527
+ \u0275\u0275namespaceHTML();
528
+ \u0275\u0275element(10, "div", 11);
529
+ \u0275\u0275elementEnd();
530
+ \u0275\u0275element(11, "div", 12);
531
+ \u0275\u0275elementEnd();
532
+ \u0275\u0275elementStart(12, "label", 13, 2);
533
+ \u0275\u0275projection(14);
534
+ \u0275\u0275elementEnd()();
535
+ }
536
+ if (rf & 2) {
537
+ const checkbox_r2 = \u0275\u0275reference(2);
538
+ \u0275\u0275property("labelPosition", ctx.labelPosition);
539
+ \u0275\u0275advance(4);
540
+ \u0275\u0275classProp("mdc-checkbox--selected", ctx.checked);
541
+ \u0275\u0275property("checked", ctx.checked)("indeterminate", ctx.indeterminate)("disabled", ctx.disabled && !ctx.disabledInteractive)("id", ctx.inputId)("required", ctx.required)("tabIndex", ctx.disabled && !ctx.disabledInteractive ? -1 : ctx.tabIndex);
542
+ \u0275\u0275attribute("aria-label", ctx.ariaLabel || null)("aria-labelledby", ctx.ariaLabelledby)("aria-describedby", ctx.ariaDescribedby)("aria-checked", ctx.indeterminate ? "mixed" : null)("aria-controls", ctx.ariaControls)("aria-disabled", ctx.disabled && ctx.disabledInteractive ? true : null)("aria-expanded", ctx.ariaExpanded)("aria-owns", ctx.ariaOwns)("name", ctx.name)("value", ctx.value);
543
+ \u0275\u0275advance(7);
544
+ \u0275\u0275property("matRippleTrigger", checkbox_r2)("matRippleDisabled", ctx.disableRipple || ctx.disabled)("matRippleCentered", true);
545
+ \u0275\u0275advance();
546
+ \u0275\u0275property("for", ctx.inputId);
547
+ }
548
+ },
549
+ dependencies: [MatRipple, _MatInternalFormField],
550
+ styles: ['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],
551
+ encapsulation: 2,
552
+ changeDetection: 0
553
+ });
554
+ };
555
+ (() => {
556
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatCheckbox, [{
557
+ type: Component,
558
+ args: [{
559
+ selector: "mat-checkbox",
560
+ host: {
561
+ "class": "mat-mdc-checkbox",
562
+ "[attr.tabindex]": "null",
563
+ "[attr.aria-label]": "null",
564
+ "[attr.aria-labelledby]": "null",
565
+ "[class._mat-animation-noopable]": "_animationsDisabled",
566
+ "[class.mdc-checkbox--disabled]": "disabled",
567
+ "[id]": "id",
568
+ // Add classes that users can use to more easily target disabled or checked checkboxes.
569
+ "[class.mat-mdc-checkbox-disabled]": "disabled",
570
+ "[class.mat-mdc-checkbox-checked]": "checked",
571
+ "[class.mat-mdc-checkbox-disabled-interactive]": "disabledInteractive",
572
+ "[class]": 'color ? "mat-" + color : "mat-accent"'
573
+ },
574
+ providers: [{
575
+ provide: NG_VALUE_ACCESSOR,
576
+ useExisting: forwardRef(() => MatCheckbox),
577
+ multi: true
578
+ }, {
579
+ provide: NG_VALIDATORS,
580
+ useExisting: MatCheckbox,
581
+ multi: true
582
+ }],
583
+ exportAs: "matCheckbox",
584
+ encapsulation: ViewEncapsulation.None,
585
+ changeDetection: ChangeDetectionStrategy.OnPush,
586
+ imports: [MatRipple, _MatInternalFormField],
587
+ template: `<div mat-internal-form-field [labelPosition]="labelPosition" (click)="_preventBubblingFromLabel($event)">
588
+ <div #checkbox class="mdc-checkbox">
589
+ <!-- Render this element first so the input is on top. -->
590
+ <div class="mat-mdc-checkbox-touch-target" (click)="_onTouchTargetClick()"></div>
591
+ <input #input
592
+ type="checkbox"
593
+ class="mdc-checkbox__native-control"
594
+ [class.mdc-checkbox--selected]="checked"
595
+ [attr.aria-label]="ariaLabel || null"
596
+ [attr.aria-labelledby]="ariaLabelledby"
597
+ [attr.aria-describedby]="ariaDescribedby"
598
+ [attr.aria-checked]="indeterminate ? 'mixed' : null"
599
+ [attr.aria-controls]="ariaControls"
600
+ [attr.aria-disabled]="disabled && disabledInteractive ? true : null"
601
+ [attr.aria-expanded]="ariaExpanded"
602
+ [attr.aria-owns]="ariaOwns"
603
+ [attr.name]="name"
604
+ [attr.value]="value"
605
+ [checked]="checked"
606
+ [indeterminate]="indeterminate"
607
+ [disabled]="disabled && !disabledInteractive"
608
+ [id]="inputId"
609
+ [required]="required"
610
+ [tabIndex]="disabled && !disabledInteractive ? -1 : tabIndex"
611
+ (blur)="_onBlur()"
612
+ (click)="_onInputClick()"
613
+ (change)="_onInteractionEvent($event)"/>
614
+ <div class="mdc-checkbox__ripple"></div>
615
+ <div class="mdc-checkbox__background">
616
+ <svg class="mdc-checkbox__checkmark"
617
+ focusable="false"
618
+ viewBox="0 0 24 24"
619
+ aria-hidden="true">
620
+ <path class="mdc-checkbox__checkmark-path"
621
+ fill="none"
622
+ d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
623
+ </svg>
624
+ <div class="mdc-checkbox__mixedmark"></div>
625
+ </div>
626
+ <div class="mat-mdc-checkbox-ripple mat-focus-indicator" mat-ripple
627
+ [matRippleTrigger]="checkbox"
628
+ [matRippleDisabled]="disableRipple || disabled"
629
+ [matRippleCentered]="true"></div>
630
+ </div>
631
+ <!--
632
+ Avoid putting a click handler on the <label/> to fix duplicate navigation stop on Talk Back
633
+ (#14385). Putting a click handler on the <label/> caused this bug because the browser produced
634
+ an unnecessary accessibility tree node.
635
+ -->
636
+ <label class="mdc-label" #label [for]="inputId">
637
+ <ng-content></ng-content>
638
+ </label>
639
+ </div>
640
+ `,
641
+ styles: ['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n']
642
+ }]
643
+ }], () => [], {
644
+ ariaLabel: [{
645
+ type: Input,
646
+ args: ["aria-label"]
647
+ }],
648
+ ariaLabelledby: [{
649
+ type: Input,
650
+ args: ["aria-labelledby"]
651
+ }],
652
+ ariaDescribedby: [{
653
+ type: Input,
654
+ args: ["aria-describedby"]
655
+ }],
656
+ ariaExpanded: [{
657
+ type: Input,
658
+ args: [{
659
+ alias: "aria-expanded",
660
+ transform: booleanAttribute
661
+ }]
662
+ }],
663
+ ariaControls: [{
664
+ type: Input,
665
+ args: ["aria-controls"]
666
+ }],
667
+ ariaOwns: [{
668
+ type: Input,
669
+ args: ["aria-owns"]
670
+ }],
671
+ id: [{
672
+ type: Input
673
+ }],
674
+ required: [{
675
+ type: Input,
676
+ args: [{
677
+ transform: booleanAttribute
678
+ }]
679
+ }],
680
+ labelPosition: [{
681
+ type: Input
682
+ }],
683
+ name: [{
684
+ type: Input
685
+ }],
686
+ change: [{
687
+ type: Output
688
+ }],
689
+ indeterminateChange: [{
690
+ type: Output
691
+ }],
692
+ value: [{
693
+ type: Input
694
+ }],
695
+ disableRipple: [{
696
+ type: Input,
697
+ args: [{
698
+ transform: booleanAttribute
699
+ }]
700
+ }],
701
+ _inputElement: [{
702
+ type: ViewChild,
703
+ args: ["input"]
704
+ }],
705
+ _labelElement: [{
706
+ type: ViewChild,
707
+ args: ["label"]
708
+ }],
709
+ tabIndex: [{
710
+ type: Input,
711
+ args: [{
712
+ transform: (value) => value == null ? void 0 : numberAttribute(value)
713
+ }]
714
+ }],
715
+ color: [{
716
+ type: Input
717
+ }],
718
+ disabledInteractive: [{
719
+ type: Input,
720
+ args: [{
721
+ transform: booleanAttribute
722
+ }]
723
+ }],
724
+ checked: [{
725
+ type: Input,
726
+ args: [{
727
+ transform: booleanAttribute
728
+ }]
729
+ }],
730
+ disabled: [{
731
+ type: Input,
732
+ args: [{
733
+ transform: booleanAttribute
734
+ }]
735
+ }],
736
+ indeterminate: [{
737
+ type: Input,
738
+ args: [{
739
+ transform: booleanAttribute
740
+ }]
741
+ }]
742
+ });
743
+ })();
744
+ var MatCheckboxModule = class _MatCheckboxModule {
745
+ static \u0275fac = function MatCheckboxModule_Factory(__ngFactoryType__) {
746
+ return new (__ngFactoryType__ || _MatCheckboxModule)();
747
+ };
748
+ static \u0275mod = /* @__PURE__ */ \u0275\u0275defineNgModule({
749
+ type: _MatCheckboxModule,
750
+ imports: [MatCheckbox, MatCommonModule],
751
+ exports: [MatCheckbox, MatCommonModule]
752
+ });
753
+ static \u0275inj = /* @__PURE__ */ \u0275\u0275defineInjector({
754
+ imports: [MatCheckbox, MatCommonModule, MatCommonModule]
755
+ });
756
+ };
757
+ (() => {
758
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatCheckboxModule, [{
759
+ type: NgModule,
760
+ args: [{
761
+ imports: [MatCheckbox, MatCommonModule],
762
+ exports: [MatCheckbox, MatCommonModule]
763
+ }]
764
+ }], null, null);
765
+ })();
766
+
767
+ // node_modules/@angular/material/fesm2022/radio.mjs
768
+ var _c02 = ["input"];
769
+ var _c12 = ["formField"];
770
+ var _c22 = ["*"];
771
+ var MatRadioChange = class {
772
+ source;
773
+ value;
774
+ constructor(source, value) {
775
+ this.source = source;
776
+ this.value = value;
777
+ }
778
+ };
779
+ var MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {
780
+ provide: NG_VALUE_ACCESSOR,
781
+ useExisting: forwardRef(() => MatRadioGroup),
782
+ multi: true
783
+ };
784
+ var MAT_RADIO_GROUP = new InjectionToken("MatRadioGroup");
785
+ var MAT_RADIO_DEFAULT_OPTIONS = new InjectionToken("mat-radio-default-options", {
786
+ providedIn: "root",
787
+ factory: MAT_RADIO_DEFAULT_OPTIONS_FACTORY
788
+ });
789
+ function MAT_RADIO_DEFAULT_OPTIONS_FACTORY() {
790
+ return {
791
+ color: "accent",
792
+ disabledInteractive: false
793
+ };
794
+ }
795
+ var MatRadioGroup = class _MatRadioGroup {
796
+ _changeDetector = inject(ChangeDetectorRef);
797
+ /** Selected value for the radio group. */
798
+ _value = null;
799
+ /** The HTML name attribute applied to radio buttons in this group. */
800
+ _name = inject(_IdGenerator).getId("mat-radio-group-");
801
+ /** The currently selected radio button. Should match value. */
802
+ _selected = null;
803
+ /** Whether the `value` has been set to its initial value. */
804
+ _isInitialized = false;
805
+ /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
806
+ _labelPosition = "after";
807
+ /** Whether the radio group is disabled. */
808
+ _disabled = false;
809
+ /** Whether the radio group is required. */
810
+ _required = false;
811
+ /** Subscription to changes in amount of radio buttons. */
812
+ _buttonChanges;
813
+ /** The method to be called in order to update ngModel */
814
+ _controlValueAccessorChangeFn = () => {
815
+ };
816
+ /**
817
+ * onTouch function registered via registerOnTouch (ControlValueAccessor).
818
+ * @docs-private
819
+ */
820
+ onTouched = () => {
821
+ };
822
+ /**
823
+ * Event emitted when the group value changes.
824
+ * Change events are only emitted when the value changes due to user interaction with
825
+ * a radio button (the same behavior as `<input type-"radio">`).
826
+ */
827
+ change = new EventEmitter();
828
+ /** Child radio buttons. */
829
+ _radios;
830
+ /**
831
+ * Theme color of the radio buttons in the group. This API is supported in M2
832
+ * themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/radio/styling.
833
+ *
834
+ * For information on applying color variants in M3, see
835
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
836
+ */
837
+ color;
838
+ /** Name of the radio button group. All radio buttons inside this group will use this name. */
839
+ get name() {
840
+ return this._name;
841
+ }
842
+ set name(value) {
843
+ this._name = value;
844
+ this._updateRadioButtonNames();
845
+ }
846
+ /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */
847
+ get labelPosition() {
848
+ return this._labelPosition;
849
+ }
850
+ set labelPosition(v) {
851
+ this._labelPosition = v === "before" ? "before" : "after";
852
+ this._markRadiosForCheck();
853
+ }
854
+ /**
855
+ * Value for the radio-group. Should equal the value of the selected radio button if there is
856
+ * a corresponding radio button with a matching value. If there is not such a corresponding
857
+ * radio button, this value persists to be applied in case a new radio button is added with a
858
+ * matching value.
859
+ */
860
+ get value() {
861
+ return this._value;
862
+ }
863
+ set value(newValue) {
864
+ if (this._value !== newValue) {
865
+ this._value = newValue;
866
+ this._updateSelectedRadioFromValue();
867
+ this._checkSelectedRadioButton();
868
+ }
869
+ }
870
+ _checkSelectedRadioButton() {
871
+ if (this._selected && !this._selected.checked) {
872
+ this._selected.checked = true;
873
+ }
874
+ }
875
+ /**
876
+ * The currently selected radio button. If set to a new radio button, the radio group value
877
+ * will be updated to match the new selected button.
878
+ */
879
+ get selected() {
880
+ return this._selected;
881
+ }
882
+ set selected(selected) {
883
+ this._selected = selected;
884
+ this.value = selected ? selected.value : null;
885
+ this._checkSelectedRadioButton();
886
+ }
887
+ /** Whether the radio group is disabled */
888
+ get disabled() {
889
+ return this._disabled;
890
+ }
891
+ set disabled(value) {
892
+ this._disabled = value;
893
+ this._markRadiosForCheck();
894
+ }
895
+ /** Whether the radio group is required */
896
+ get required() {
897
+ return this._required;
898
+ }
899
+ set required(value) {
900
+ this._required = value;
901
+ this._markRadiosForCheck();
902
+ }
903
+ /** Whether buttons in the group should be interactive while they're disabled. */
904
+ get disabledInteractive() {
905
+ return this._disabledInteractive;
906
+ }
907
+ set disabledInteractive(value) {
908
+ this._disabledInteractive = value;
909
+ this._markRadiosForCheck();
910
+ }
911
+ _disabledInteractive = false;
912
+ constructor() {
913
+ }
914
+ /**
915
+ * Initialize properties once content children are available.
916
+ * This allows us to propagate relevant attributes to associated buttons.
917
+ */
918
+ ngAfterContentInit() {
919
+ this._isInitialized = true;
920
+ this._buttonChanges = this._radios.changes.subscribe(() => {
921
+ if (this.selected && !this._radios.find((radio) => radio === this.selected)) {
922
+ this._selected = null;
923
+ }
924
+ });
925
+ }
926
+ ngOnDestroy() {
927
+ this._buttonChanges?.unsubscribe();
928
+ }
929
+ /**
930
+ * Mark this group as being "touched" (for ngModel). Meant to be called by the contained
931
+ * radio buttons upon their blur.
932
+ */
933
+ _touch() {
934
+ if (this.onTouched) {
935
+ this.onTouched();
936
+ }
937
+ }
938
+ _updateRadioButtonNames() {
939
+ if (this._radios) {
940
+ this._radios.forEach((radio) => {
941
+ radio.name = this.name;
942
+ radio._markForCheck();
943
+ });
944
+ }
945
+ }
946
+ /** Updates the `selected` radio button from the internal _value state. */
947
+ _updateSelectedRadioFromValue() {
948
+ const isAlreadySelected = this._selected !== null && this._selected.value === this._value;
949
+ if (this._radios && !isAlreadySelected) {
950
+ this._selected = null;
951
+ this._radios.forEach((radio) => {
952
+ radio.checked = this.value === radio.value;
953
+ if (radio.checked) {
954
+ this._selected = radio;
955
+ }
956
+ });
957
+ }
958
+ }
959
+ /** Dispatch change event with current selection and group value. */
960
+ _emitChangeEvent() {
961
+ if (this._isInitialized) {
962
+ this.change.emit(new MatRadioChange(this._selected, this._value));
963
+ }
964
+ }
965
+ _markRadiosForCheck() {
966
+ if (this._radios) {
967
+ this._radios.forEach((radio) => radio._markForCheck());
968
+ }
969
+ }
970
+ /**
971
+ * Sets the model value. Implemented as part of ControlValueAccessor.
972
+ * @param value
973
+ */
974
+ writeValue(value) {
975
+ this.value = value;
976
+ this._changeDetector.markForCheck();
977
+ }
978
+ /**
979
+ * Registers a callback to be triggered when the model value changes.
980
+ * Implemented as part of ControlValueAccessor.
981
+ * @param fn Callback to be registered.
982
+ */
983
+ registerOnChange(fn) {
984
+ this._controlValueAccessorChangeFn = fn;
985
+ }
986
+ /**
987
+ * Registers a callback to be triggered when the control is touched.
988
+ * Implemented as part of ControlValueAccessor.
989
+ * @param fn Callback to be registered.
990
+ */
991
+ registerOnTouched(fn) {
992
+ this.onTouched = fn;
993
+ }
994
+ /**
995
+ * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
996
+ * @param isDisabled Whether the control should be disabled.
997
+ */
998
+ setDisabledState(isDisabled) {
999
+ this.disabled = isDisabled;
1000
+ this._changeDetector.markForCheck();
1001
+ }
1002
+ static \u0275fac = function MatRadioGroup_Factory(__ngFactoryType__) {
1003
+ return new (__ngFactoryType__ || _MatRadioGroup)();
1004
+ };
1005
+ static \u0275dir = /* @__PURE__ */ \u0275\u0275defineDirective({
1006
+ type: _MatRadioGroup,
1007
+ selectors: [["mat-radio-group"]],
1008
+ contentQueries: function MatRadioGroup_ContentQueries(rf, ctx, dirIndex) {
1009
+ if (rf & 1) {
1010
+ \u0275\u0275contentQuery(dirIndex, MatRadioButton, 5);
1011
+ }
1012
+ if (rf & 2) {
1013
+ let _t;
1014
+ \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx._radios = _t);
1015
+ }
1016
+ },
1017
+ hostAttrs: ["role", "radiogroup", 1, "mat-mdc-radio-group"],
1018
+ inputs: {
1019
+ color: "color",
1020
+ name: "name",
1021
+ labelPosition: "labelPosition",
1022
+ value: "value",
1023
+ selected: "selected",
1024
+ disabled: [2, "disabled", "disabled", booleanAttribute],
1025
+ required: [2, "required", "required", booleanAttribute],
1026
+ disabledInteractive: [2, "disabledInteractive", "disabledInteractive", booleanAttribute]
1027
+ },
1028
+ outputs: {
1029
+ change: "change"
1030
+ },
1031
+ exportAs: ["matRadioGroup"],
1032
+ features: [\u0275\u0275ProvidersFeature([MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, {
1033
+ provide: MAT_RADIO_GROUP,
1034
+ useExisting: _MatRadioGroup
1035
+ }])]
1036
+ });
1037
+ };
1038
+ (() => {
1039
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatRadioGroup, [{
1040
+ type: Directive,
1041
+ args: [{
1042
+ selector: "mat-radio-group",
1043
+ exportAs: "matRadioGroup",
1044
+ providers: [MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, {
1045
+ provide: MAT_RADIO_GROUP,
1046
+ useExisting: MatRadioGroup
1047
+ }],
1048
+ host: {
1049
+ "role": "radiogroup",
1050
+ "class": "mat-mdc-radio-group"
1051
+ }
1052
+ }]
1053
+ }], () => [], {
1054
+ change: [{
1055
+ type: Output
1056
+ }],
1057
+ _radios: [{
1058
+ type: ContentChildren,
1059
+ args: [forwardRef(() => MatRadioButton), {
1060
+ descendants: true
1061
+ }]
1062
+ }],
1063
+ color: [{
1064
+ type: Input
1065
+ }],
1066
+ name: [{
1067
+ type: Input
1068
+ }],
1069
+ labelPosition: [{
1070
+ type: Input
1071
+ }],
1072
+ value: [{
1073
+ type: Input
1074
+ }],
1075
+ selected: [{
1076
+ type: Input
1077
+ }],
1078
+ disabled: [{
1079
+ type: Input,
1080
+ args: [{
1081
+ transform: booleanAttribute
1082
+ }]
1083
+ }],
1084
+ required: [{
1085
+ type: Input,
1086
+ args: [{
1087
+ transform: booleanAttribute
1088
+ }]
1089
+ }],
1090
+ disabledInteractive: [{
1091
+ type: Input,
1092
+ args: [{
1093
+ transform: booleanAttribute
1094
+ }]
1095
+ }]
1096
+ });
1097
+ })();
1098
+ var MatRadioButton = class _MatRadioButton {
1099
+ _elementRef = inject(ElementRef);
1100
+ _changeDetector = inject(ChangeDetectorRef);
1101
+ _focusMonitor = inject(FocusMonitor);
1102
+ _radioDispatcher = inject(UniqueSelectionDispatcher);
1103
+ _defaultOptions = inject(MAT_RADIO_DEFAULT_OPTIONS, {
1104
+ optional: true
1105
+ });
1106
+ _ngZone = inject(NgZone);
1107
+ _renderer = inject(Renderer2);
1108
+ _uniqueId = inject(_IdGenerator).getId("mat-radio-");
1109
+ _cleanupClick;
1110
+ /** The unique ID for the radio button. */
1111
+ id = this._uniqueId;
1112
+ /** Analog to HTML 'name' attribute used to group radios for unique selection. */
1113
+ name;
1114
+ /** Used to set the 'aria-label' attribute on the underlying input element. */
1115
+ ariaLabel;
1116
+ /** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
1117
+ ariaLabelledby;
1118
+ /** The 'aria-describedby' attribute is read after the element's label and field type. */
1119
+ ariaDescribedby;
1120
+ /** Whether ripples are disabled inside the radio button */
1121
+ disableRipple = false;
1122
+ /** Tabindex of the radio button. */
1123
+ tabIndex = 0;
1124
+ /** Whether this radio button is checked. */
1125
+ get checked() {
1126
+ return this._checked;
1127
+ }
1128
+ set checked(value) {
1129
+ if (this._checked !== value) {
1130
+ this._checked = value;
1131
+ if (value && this.radioGroup && this.radioGroup.value !== this.value) {
1132
+ this.radioGroup.selected = this;
1133
+ } else if (!value && this.radioGroup && this.radioGroup.value === this.value) {
1134
+ this.radioGroup.selected = null;
1135
+ }
1136
+ if (value) {
1137
+ this._radioDispatcher.notify(this.id, this.name);
1138
+ }
1139
+ this._changeDetector.markForCheck();
1140
+ }
1141
+ }
1142
+ /** The value of this radio button. */
1143
+ get value() {
1144
+ return this._value;
1145
+ }
1146
+ set value(value) {
1147
+ if (this._value !== value) {
1148
+ this._value = value;
1149
+ if (this.radioGroup !== null) {
1150
+ if (!this.checked) {
1151
+ this.checked = this.radioGroup.value === value;
1152
+ }
1153
+ if (this.checked) {
1154
+ this.radioGroup.selected = this;
1155
+ }
1156
+ }
1157
+ }
1158
+ }
1159
+ /** Whether the label should appear after or before the radio button. Defaults to 'after' */
1160
+ get labelPosition() {
1161
+ return this._labelPosition || this.radioGroup && this.radioGroup.labelPosition || "after";
1162
+ }
1163
+ set labelPosition(value) {
1164
+ this._labelPosition = value;
1165
+ }
1166
+ _labelPosition;
1167
+ /** Whether the radio button is disabled. */
1168
+ get disabled() {
1169
+ return this._disabled || this.radioGroup !== null && this.radioGroup.disabled;
1170
+ }
1171
+ set disabled(value) {
1172
+ this._setDisabled(value);
1173
+ }
1174
+ /** Whether the radio button is required. */
1175
+ get required() {
1176
+ return this._required || this.radioGroup && this.radioGroup.required;
1177
+ }
1178
+ set required(value) {
1179
+ if (value !== this._required) {
1180
+ this._changeDetector.markForCheck();
1181
+ }
1182
+ this._required = value;
1183
+ }
1184
+ /**
1185
+ * Theme color of the radio button. This API is supported in M2 themes only, it
1186
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/radio/styling.
1187
+ *
1188
+ * For information on applying color variants in M3, see
1189
+ * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
1190
+ */
1191
+ get color() {
1192
+ return this._color || this.radioGroup && this.radioGroup.color || this._defaultOptions && this._defaultOptions.color || "accent";
1193
+ }
1194
+ set color(newValue) {
1195
+ this._color = newValue;
1196
+ }
1197
+ _color;
1198
+ /** Whether the radio button should remain interactive when it is disabled. */
1199
+ get disabledInteractive() {
1200
+ return this._disabledInteractive || this.radioGroup !== null && this.radioGroup.disabledInteractive;
1201
+ }
1202
+ set disabledInteractive(value) {
1203
+ this._disabledInteractive = value;
1204
+ }
1205
+ _disabledInteractive;
1206
+ /**
1207
+ * Event emitted when the checked state of this radio button changes.
1208
+ * Change events are only emitted when the value changes due to user interaction with
1209
+ * the radio button (the same behavior as `<input type-"radio">`).
1210
+ */
1211
+ change = new EventEmitter();
1212
+ /** The parent radio group. May or may not be present. */
1213
+ radioGroup;
1214
+ /** ID of the native input element inside `<mat-radio-button>` */
1215
+ get inputId() {
1216
+ return `${this.id || this._uniqueId}-input`;
1217
+ }
1218
+ /** Whether this radio is checked. */
1219
+ _checked = false;
1220
+ /** Whether this radio is disabled. */
1221
+ _disabled;
1222
+ /** Whether this radio is required. */
1223
+ _required;
1224
+ /** Value assigned to this radio. */
1225
+ _value = null;
1226
+ /** Unregister function for _radioDispatcher */
1227
+ _removeUniqueSelectionListener = () => {
1228
+ };
1229
+ /** Previous value of the input's tabindex. */
1230
+ _previousTabIndex;
1231
+ /** The native `<input type=radio>` element */
1232
+ _inputElement;
1233
+ /** Trigger elements for the ripple events. */
1234
+ _rippleTrigger;
1235
+ /** Whether animations are disabled. */
1236
+ _noopAnimations = _animationsDisabled();
1237
+ _injector = inject(Injector);
1238
+ constructor() {
1239
+ inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
1240
+ const radioGroup = inject(MAT_RADIO_GROUP, {
1241
+ optional: true
1242
+ });
1243
+ const tabIndex = inject(new HostAttributeToken("tabindex"), {
1244
+ optional: true
1245
+ });
1246
+ this.radioGroup = radioGroup;
1247
+ this._disabledInteractive = this._defaultOptions?.disabledInteractive ?? false;
1248
+ if (tabIndex) {
1249
+ this.tabIndex = numberAttribute(tabIndex, 0);
1250
+ }
1251
+ }
1252
+ /** Focuses the radio button. */
1253
+ focus(options, origin) {
1254
+ if (origin) {
1255
+ this._focusMonitor.focusVia(this._inputElement, origin, options);
1256
+ } else {
1257
+ this._inputElement.nativeElement.focus(options);
1258
+ }
1259
+ }
1260
+ /**
1261
+ * Marks the radio button as needing checking for change detection.
1262
+ * This method is exposed because the parent radio group will directly
1263
+ * update bound properties of the radio button.
1264
+ */
1265
+ _markForCheck() {
1266
+ this._changeDetector.markForCheck();
1267
+ }
1268
+ ngOnInit() {
1269
+ if (this.radioGroup) {
1270
+ this.checked = this.radioGroup.value === this._value;
1271
+ if (this.checked) {
1272
+ this.radioGroup.selected = this;
1273
+ }
1274
+ this.name = this.radioGroup.name;
1275
+ }
1276
+ this._removeUniqueSelectionListener = this._radioDispatcher.listen((id, name) => {
1277
+ if (id !== this.id && name === this.name) {
1278
+ this.checked = false;
1279
+ }
1280
+ });
1281
+ }
1282
+ ngDoCheck() {
1283
+ this._updateTabIndex();
1284
+ }
1285
+ ngAfterViewInit() {
1286
+ this._updateTabIndex();
1287
+ this._focusMonitor.monitor(this._elementRef, true).subscribe((focusOrigin) => {
1288
+ if (!focusOrigin && this.radioGroup) {
1289
+ this.radioGroup._touch();
1290
+ }
1291
+ });
1292
+ this._ngZone.runOutsideAngular(() => {
1293
+ this._cleanupClick = this._renderer.listen(this._inputElement.nativeElement, "click", this._onInputClick);
1294
+ });
1295
+ }
1296
+ ngOnDestroy() {
1297
+ this._cleanupClick?.();
1298
+ this._focusMonitor.stopMonitoring(this._elementRef);
1299
+ this._removeUniqueSelectionListener();
1300
+ }
1301
+ /** Dispatch change event with current value. */
1302
+ _emitChangeEvent() {
1303
+ this.change.emit(new MatRadioChange(this, this._value));
1304
+ }
1305
+ _isRippleDisabled() {
1306
+ return this.disableRipple || this.disabled;
1307
+ }
1308
+ /** Triggered when the radio button receives an interaction from the user. */
1309
+ _onInputInteraction(event) {
1310
+ event.stopPropagation();
1311
+ if (!this.checked && !this.disabled) {
1312
+ const groupValueChanged = this.radioGroup && this.value !== this.radioGroup.value;
1313
+ this.checked = true;
1314
+ this._emitChangeEvent();
1315
+ if (this.radioGroup) {
1316
+ this.radioGroup._controlValueAccessorChangeFn(this.value);
1317
+ if (groupValueChanged) {
1318
+ this.radioGroup._emitChangeEvent();
1319
+ }
1320
+ }
1321
+ }
1322
+ }
1323
+ /** Triggered when the user clicks on the touch target. */
1324
+ _onTouchTargetClick(event) {
1325
+ this._onInputInteraction(event);
1326
+ if (!this.disabled || this.disabledInteractive) {
1327
+ this._inputElement?.nativeElement.focus();
1328
+ }
1329
+ }
1330
+ /** Sets the disabled state and marks for check if a change occurred. */
1331
+ _setDisabled(value) {
1332
+ if (this._disabled !== value) {
1333
+ this._disabled = value;
1334
+ this._changeDetector.markForCheck();
1335
+ }
1336
+ }
1337
+ /** Called when the input is clicked. */
1338
+ _onInputClick = (event) => {
1339
+ if (this.disabled && this.disabledInteractive) {
1340
+ event.preventDefault();
1341
+ }
1342
+ };
1343
+ /** Gets the tabindex for the underlying input element. */
1344
+ _updateTabIndex() {
1345
+ const group = this.radioGroup;
1346
+ let value;
1347
+ if (!group || !group.selected || this.disabled) {
1348
+ value = this.tabIndex;
1349
+ } else {
1350
+ value = group.selected === this ? this.tabIndex : -1;
1351
+ }
1352
+ if (value !== this._previousTabIndex) {
1353
+ const input = this._inputElement?.nativeElement;
1354
+ if (input) {
1355
+ input.setAttribute("tabindex", value + "");
1356
+ this._previousTabIndex = value;
1357
+ afterNextRender(() => {
1358
+ queueMicrotask(() => {
1359
+ if (group && group.selected && group.selected !== this && document.activeElement === input) {
1360
+ group.selected?._inputElement.nativeElement.focus();
1361
+ if (document.activeElement === input) {
1362
+ this._inputElement.nativeElement.blur();
1363
+ }
1364
+ }
1365
+ });
1366
+ }, {
1367
+ injector: this._injector
1368
+ });
1369
+ }
1370
+ }
1371
+ }
1372
+ static \u0275fac = function MatRadioButton_Factory(__ngFactoryType__) {
1373
+ return new (__ngFactoryType__ || _MatRadioButton)();
1374
+ };
1375
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({
1376
+ type: _MatRadioButton,
1377
+ selectors: [["mat-radio-button"]],
1378
+ viewQuery: function MatRadioButton_Query(rf, ctx) {
1379
+ if (rf & 1) {
1380
+ \u0275\u0275viewQuery(_c02, 5);
1381
+ \u0275\u0275viewQuery(_c12, 7, ElementRef);
1382
+ }
1383
+ if (rf & 2) {
1384
+ let _t;
1385
+ \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx._inputElement = _t.first);
1386
+ \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx._rippleTrigger = _t.first);
1387
+ }
1388
+ },
1389
+ hostAttrs: [1, "mat-mdc-radio-button"],
1390
+ hostVars: 19,
1391
+ hostBindings: function MatRadioButton_HostBindings(rf, ctx) {
1392
+ if (rf & 1) {
1393
+ \u0275\u0275listener("focus", function MatRadioButton_focus_HostBindingHandler() {
1394
+ return ctx._inputElement.nativeElement.focus();
1395
+ });
1396
+ }
1397
+ if (rf & 2) {
1398
+ \u0275\u0275attribute("id", ctx.id)("tabindex", null)("aria-label", null)("aria-labelledby", null)("aria-describedby", null);
1399
+ \u0275\u0275classProp("mat-primary", ctx.color === "primary")("mat-accent", ctx.color === "accent")("mat-warn", ctx.color === "warn")("mat-mdc-radio-checked", ctx.checked)("mat-mdc-radio-disabled", ctx.disabled)("mat-mdc-radio-disabled-interactive", ctx.disabledInteractive)("_mat-animation-noopable", ctx._noopAnimations);
1400
+ }
1401
+ },
1402
+ inputs: {
1403
+ id: "id",
1404
+ name: "name",
1405
+ ariaLabel: [0, "aria-label", "ariaLabel"],
1406
+ ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"],
1407
+ ariaDescribedby: [0, "aria-describedby", "ariaDescribedby"],
1408
+ disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
1409
+ tabIndex: [2, "tabIndex", "tabIndex", (value) => value == null ? 0 : numberAttribute(value)],
1410
+ checked: [2, "checked", "checked", booleanAttribute],
1411
+ value: "value",
1412
+ labelPosition: "labelPosition",
1413
+ disabled: [2, "disabled", "disabled", booleanAttribute],
1414
+ required: [2, "required", "required", booleanAttribute],
1415
+ color: "color",
1416
+ disabledInteractive: [2, "disabledInteractive", "disabledInteractive", booleanAttribute]
1417
+ },
1418
+ outputs: {
1419
+ change: "change"
1420
+ },
1421
+ exportAs: ["matRadioButton"],
1422
+ ngContentSelectors: _c22,
1423
+ decls: 13,
1424
+ vars: 17,
1425
+ consts: [["formField", ""], ["input", ""], ["mat-internal-form-field", "", 3, "labelPosition"], [1, "mdc-radio"], [1, "mat-mdc-radio-touch-target", 3, "click"], ["type", "radio", "aria-invalid", "false", 1, "mdc-radio__native-control", 3, "change", "id", "checked", "disabled", "required"], [1, "mdc-radio__background"], [1, "mdc-radio__outer-circle"], [1, "mdc-radio__inner-circle"], ["mat-ripple", "", 1, "mat-radio-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled", "matRippleCentered"], [1, "mat-ripple-element", "mat-radio-persistent-ripple"], [1, "mdc-label", 3, "for"]],
1426
+ template: function MatRadioButton_Template(rf, ctx) {
1427
+ if (rf & 1) {
1428
+ const _r1 = \u0275\u0275getCurrentView();
1429
+ \u0275\u0275projectionDef();
1430
+ \u0275\u0275elementStart(0, "div", 2, 0)(2, "div", 3)(3, "div", 4);
1431
+ \u0275\u0275listener("click", function MatRadioButton_Template_div_click_3_listener($event) {
1432
+ \u0275\u0275restoreView(_r1);
1433
+ return \u0275\u0275resetView(ctx._onTouchTargetClick($event));
1434
+ });
1435
+ \u0275\u0275elementEnd();
1436
+ \u0275\u0275elementStart(4, "input", 5, 1);
1437
+ \u0275\u0275listener("change", function MatRadioButton_Template_input_change_4_listener($event) {
1438
+ \u0275\u0275restoreView(_r1);
1439
+ return \u0275\u0275resetView(ctx._onInputInteraction($event));
1440
+ });
1441
+ \u0275\u0275elementEnd();
1442
+ \u0275\u0275elementStart(6, "div", 6);
1443
+ \u0275\u0275element(7, "div", 7)(8, "div", 8);
1444
+ \u0275\u0275elementEnd();
1445
+ \u0275\u0275elementStart(9, "div", 9);
1446
+ \u0275\u0275element(10, "div", 10);
1447
+ \u0275\u0275elementEnd()();
1448
+ \u0275\u0275elementStart(11, "label", 11);
1449
+ \u0275\u0275projection(12);
1450
+ \u0275\u0275elementEnd()();
1451
+ }
1452
+ if (rf & 2) {
1453
+ \u0275\u0275property("labelPosition", ctx.labelPosition);
1454
+ \u0275\u0275advance(2);
1455
+ \u0275\u0275classProp("mdc-radio--disabled", ctx.disabled);
1456
+ \u0275\u0275advance(2);
1457
+ \u0275\u0275property("id", ctx.inputId)("checked", ctx.checked)("disabled", ctx.disabled && !ctx.disabledInteractive)("required", ctx.required);
1458
+ \u0275\u0275attribute("name", ctx.name)("value", ctx.value)("aria-label", ctx.ariaLabel)("aria-labelledby", ctx.ariaLabelledby)("aria-describedby", ctx.ariaDescribedby)("aria-disabled", ctx.disabled && ctx.disabledInteractive ? "true" : null);
1459
+ \u0275\u0275advance(5);
1460
+ \u0275\u0275property("matRippleTrigger", ctx._rippleTrigger.nativeElement)("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", true);
1461
+ \u0275\u0275advance(2);
1462
+ \u0275\u0275property("for", ctx.inputId);
1463
+ }
1464
+ },
1465
+ dependencies: [MatRipple, _MatInternalFormField],
1466
+ styles: ['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
1467
+ encapsulation: 2,
1468
+ changeDetection: 0
1469
+ });
1470
+ };
1471
+ (() => {
1472
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatRadioButton, [{
1473
+ type: Component,
1474
+ args: [{
1475
+ selector: "mat-radio-button",
1476
+ host: {
1477
+ "class": "mat-mdc-radio-button",
1478
+ "[attr.id]": "id",
1479
+ "[class.mat-primary]": 'color === "primary"',
1480
+ "[class.mat-accent]": 'color === "accent"',
1481
+ "[class.mat-warn]": 'color === "warn"',
1482
+ "[class.mat-mdc-radio-checked]": "checked",
1483
+ "[class.mat-mdc-radio-disabled]": "disabled",
1484
+ "[class.mat-mdc-radio-disabled-interactive]": "disabledInteractive",
1485
+ "[class._mat-animation-noopable]": "_noopAnimations",
1486
+ // Needs to be removed since it causes some a11y issues (see #21266).
1487
+ "[attr.tabindex]": "null",
1488
+ "[attr.aria-label]": "null",
1489
+ "[attr.aria-labelledby]": "null",
1490
+ "[attr.aria-describedby]": "null",
1491
+ // Note: under normal conditions focus shouldn't land on this element, however it may be
1492
+ // programmatically set, for example inside of a focus trap, in this case we want to forward
1493
+ // the focus to the native element.
1494
+ "(focus)": "_inputElement.nativeElement.focus()"
1495
+ },
1496
+ exportAs: "matRadioButton",
1497
+ encapsulation: ViewEncapsulation.None,
1498
+ changeDetection: ChangeDetectionStrategy.OnPush,
1499
+ imports: [MatRipple, _MatInternalFormField],
1500
+ template: '<div mat-internal-form-field [labelPosition]="labelPosition" #formField>\n <div class="mdc-radio" [class.mdc-radio--disabled]="disabled">\n <!-- Render this element first so the input is on top. -->\n <div class="mat-mdc-radio-touch-target" (click)="_onTouchTargetClick($event)"></div>\n <!--\n Note that we set `aria-invalid="false"` on the input, because otherwise some screen readers\n will read out "required, invalid data" for each radio button that hasn\'t been checked.\n An alternate approach is to use `aria-required` instead of `required`, however we have an\n internal check which enforces that elements marked as `aria-required` also have the `required`\n attribute which ends up re-introducing the issue for us.\n -->\n <input #input class="mdc-radio__native-control" type="radio"\n [id]="inputId"\n [checked]="checked"\n [disabled]="disabled && !disabledInteractive"\n [attr.name]="name"\n [attr.value]="value"\n [required]="required"\n aria-invalid="false"\n [attr.aria-label]="ariaLabel"\n [attr.aria-labelledby]="ariaLabelledby"\n [attr.aria-describedby]="ariaDescribedby"\n [attr.aria-disabled]="disabled && disabledInteractive ? \'true\' : null"\n (change)="_onInputInteraction($event)">\n <div class="mdc-radio__background">\n <div class="mdc-radio__outer-circle"></div>\n <div class="mdc-radio__inner-circle"></div>\n </div>\n <div mat-ripple class="mat-radio-ripple mat-focus-indicator"\n [matRippleTrigger]="_rippleTrigger.nativeElement"\n [matRippleDisabled]="_isRippleDisabled()"\n [matRippleCentered]="true">\n <div class="mat-ripple-element mat-radio-persistent-ripple"></div>\n </div>\n </div>\n <label class="mdc-label" [for]="inputId">\n <ng-content></ng-content>\n </label>\n</div>\n',
1501
+ styles: ['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n']
1502
+ }]
1503
+ }], () => [], {
1504
+ id: [{
1505
+ type: Input
1506
+ }],
1507
+ name: [{
1508
+ type: Input
1509
+ }],
1510
+ ariaLabel: [{
1511
+ type: Input,
1512
+ args: ["aria-label"]
1513
+ }],
1514
+ ariaLabelledby: [{
1515
+ type: Input,
1516
+ args: ["aria-labelledby"]
1517
+ }],
1518
+ ariaDescribedby: [{
1519
+ type: Input,
1520
+ args: ["aria-describedby"]
1521
+ }],
1522
+ disableRipple: [{
1523
+ type: Input,
1524
+ args: [{
1525
+ transform: booleanAttribute
1526
+ }]
1527
+ }],
1528
+ tabIndex: [{
1529
+ type: Input,
1530
+ args: [{
1531
+ transform: (value) => value == null ? 0 : numberAttribute(value)
1532
+ }]
1533
+ }],
1534
+ checked: [{
1535
+ type: Input,
1536
+ args: [{
1537
+ transform: booleanAttribute
1538
+ }]
1539
+ }],
1540
+ value: [{
1541
+ type: Input
1542
+ }],
1543
+ labelPosition: [{
1544
+ type: Input
1545
+ }],
1546
+ disabled: [{
1547
+ type: Input,
1548
+ args: [{
1549
+ transform: booleanAttribute
1550
+ }]
1551
+ }],
1552
+ required: [{
1553
+ type: Input,
1554
+ args: [{
1555
+ transform: booleanAttribute
1556
+ }]
1557
+ }],
1558
+ color: [{
1559
+ type: Input
1560
+ }],
1561
+ disabledInteractive: [{
1562
+ type: Input,
1563
+ args: [{
1564
+ transform: booleanAttribute
1565
+ }]
1566
+ }],
1567
+ change: [{
1568
+ type: Output
1569
+ }],
1570
+ _inputElement: [{
1571
+ type: ViewChild,
1572
+ args: ["input"]
1573
+ }],
1574
+ _rippleTrigger: [{
1575
+ type: ViewChild,
1576
+ args: ["formField", {
1577
+ read: ElementRef,
1578
+ static: true
1579
+ }]
1580
+ }]
1581
+ });
1582
+ })();
1583
+ var MatRadioModule = class _MatRadioModule {
1584
+ static \u0275fac = function MatRadioModule_Factory(__ngFactoryType__) {
1585
+ return new (__ngFactoryType__ || _MatRadioModule)();
1586
+ };
1587
+ static \u0275mod = /* @__PURE__ */ \u0275\u0275defineNgModule({
1588
+ type: _MatRadioModule,
1589
+ imports: [MatCommonModule, MatRippleModule, MatRadioGroup, MatRadioButton],
1590
+ exports: [MatCommonModule, MatRadioGroup, MatRadioButton]
1591
+ });
1592
+ static \u0275inj = /* @__PURE__ */ \u0275\u0275defineInjector({
1593
+ imports: [MatCommonModule, MatRippleModule, MatRadioButton, MatCommonModule]
1594
+ });
1595
+ };
1596
+ (() => {
1597
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatRadioModule, [{
1598
+ type: NgModule,
1599
+ args: [{
1600
+ imports: [MatCommonModule, MatRippleModule, MatRadioGroup, MatRadioButton],
1601
+ exports: [MatCommonModule, MatRadioGroup, MatRadioButton]
1602
+ }]
1603
+ }], null, null);
1604
+ })();
1605
+
1606
+ // src/app/core/services/data-set.service.ts
1607
+ var DatasetService = class _DatasetService {
1608
+ appSettings = inject(AppSettingsService);
1609
+ data = inject(DataService);
1610
+ _svcDatasetConfigs = [];
1611
+ _svcDataSource = [];
1612
+ _svcSubjectObserverRegistry = [];
1613
+ // List of Signal K paths that should be interpreted as signed angles (-π, π].
1614
+ // Add your specific paths here. All other radian paths will default to direction domain [0, 2π).
1615
+ signedAnglePaths = /* @__PURE__ */ new Set([
1616
+ "self.navigation.attitude.roll",
1617
+ "self.navigation.attitude.pitch",
1618
+ "self.navigation.attitude.yaw",
1619
+ "self.environment.wind.angleApparent",
1620
+ "self.environment.wind.angleTrueGround",
1621
+ "self.environment.wind.angleTrueWater",
1622
+ "self.steering.rudderAngle"
1623
+ ]);
1624
+ constructor() {
1625
+ const appSettings = this.appSettings;
1626
+ this._svcDatasetConfigs = appSettings.getDataSets();
1627
+ this.startAll();
1628
+ }
1629
+ /**
1630
+ * Registers the historicalData Subject. To enable historicalData subscribers to automatically receive all of the
1631
+ * historicalData's past recorded data, a ReplaySubject is used and configured to emit the latest
1632
+ * historicalData values.
1633
+ *
1634
+ * @private
1635
+ * @param {string} uuid
1636
+ * @memberof DatasetService
1637
+ */
1638
+ setupServiceSubjectRegistry(uuid, replayDatapoints) {
1639
+ const entryIndex = this._svcSubjectObserverRegistry.findIndex((entry) => entry.datasetUuid == uuid);
1640
+ if (entryIndex >= 0) {
1641
+ this._svcSubjectObserverRegistry[entryIndex].rxjsSubject.complete();
1642
+ this._svcSubjectObserverRegistry.splice(entryIndex, 1);
1643
+ }
1644
+ this._svcSubjectObserverRegistry.push({
1645
+ datasetUuid: uuid,
1646
+ rxjsSubject: new ReplaySubject(replayDatapoints)
1647
+ });
1648
+ }
1649
+ createDataSourceConfiguration(dsConf) {
1650
+ const smoothingPeriodFactor = 0.25;
1651
+ const newDataSourceConfiguration = {
1652
+ uuid: dsConf.uuid,
1653
+ pathObserverSubscription: null,
1654
+ sampleTime: null,
1655
+ maxDataPoints: null,
1656
+ smoothingPeriod: null,
1657
+ historicalData: []
1658
+ };
1659
+ switch (dsConf.timeScaleFormat) {
1660
+ case "Last 30 Minutes":
1661
+ newDataSourceConfiguration.maxDataPoints = 120;
1662
+ newDataSourceConfiguration.sampleTime = 15e3;
1663
+ newDataSourceConfiguration.smoothingPeriod = 50;
1664
+ break;
1665
+ case "Last 5 Minutes":
1666
+ newDataSourceConfiguration.maxDataPoints = 60;
1667
+ newDataSourceConfiguration.sampleTime = 5e3;
1668
+ newDataSourceConfiguration.smoothingPeriod = 25;
1669
+ break;
1670
+ case "Last Minute":
1671
+ newDataSourceConfiguration.maxDataPoints = 60;
1672
+ newDataSourceConfiguration.sampleTime = 1e3;
1673
+ newDataSourceConfiguration.smoothingPeriod = 25;
1674
+ break;
1675
+ case "hour":
1676
+ newDataSourceConfiguration.maxDataPoints = dsConf.period * 120;
1677
+ newDataSourceConfiguration.sampleTime = 3e4;
1678
+ newDataSourceConfiguration.smoothingPeriod = Math.floor(newDataSourceConfiguration.maxDataPoints * smoothingPeriodFactor);
1679
+ break;
1680
+ case "minute":
1681
+ newDataSourceConfiguration.maxDataPoints = dsConf.period * 60;
1682
+ newDataSourceConfiguration.sampleTime = 1e3;
1683
+ newDataSourceConfiguration.smoothingPeriod = Math.floor(newDataSourceConfiguration.maxDataPoints * smoothingPeriodFactor);
1684
+ break;
1685
+ default:
1686
+ newDataSourceConfiguration.maxDataPoints = dsConf.period * 5;
1687
+ newDataSourceConfiguration.sampleTime = 200;
1688
+ newDataSourceConfiguration.smoothingPeriod = Math.floor(newDataSourceConfiguration.maxDataPoints * smoothingPeriodFactor);
1689
+ break;
1690
+ }
1691
+ if (!newDataSourceConfiguration.maxDataPoints || newDataSourceConfiguration.maxDataPoints < 1) {
1692
+ newDataSourceConfiguration.maxDataPoints = 1;
1693
+ }
1694
+ return newDataSourceConfiguration;
1695
+ }
1696
+ /**
1697
+ * Start all Dataset Service's _svcDatasetConfigs
1698
+ *
1699
+ * @memberof DataSetService
1700
+ */
1701
+ startAll() {
1702
+ console.log("[Dataset Service] Auto Starting " + this._svcDatasetConfigs.length.toString() + " Datasets");
1703
+ for (const config of this._svcDatasetConfigs) {
1704
+ this.start(config.uuid);
1705
+ }
1706
+ }
1707
+ /**
1708
+ * Starts the recording process of a Data Source. It firsts reads the historicalData configuration,
1709
+ * then starts building the historicalData values, and pushes them to the Subject.
1710
+ *
1711
+ * This method handles the process that takes SK data and feeds the Subject. Clients/Observers,
1712
+ * (widgets mostly), will use the getDatasetObservable() method to receive data from the Subject.
1713
+ *
1714
+ * Concept: SK_path_values -> datasource -> (ReplaySubject) <- Widget observers
1715
+ *
1716
+ * Once a datasource is started, subscribers will receive historical data (equal to the
1717
+ * length of the dataset)pushed to the Subject, as as future data.
1718
+ *
1719
+ * @private
1720
+ * @param {string} uuid The UUID of the DataSource to start
1721
+ * @return {*} {void}
1722
+ * @memberof DataSetService
1723
+ */
1724
+ start(uuid) {
1725
+ const configuration = this._svcDatasetConfigs.find((configuration2) => configuration2.uuid == uuid);
1726
+ if (!configuration) {
1727
+ console.warn(`[Dataset Service] Dataset UUID:${uuid} not found`);
1728
+ return;
1729
+ }
1730
+ const newDataSourceConfig = this.createDataSourceConfiguration(configuration);
1731
+ this.setupServiceSubjectRegistry(newDataSourceConfig.uuid, newDataSourceConfig.maxDataPoints);
1732
+ const dataSource = this._svcDataSource[this._svcDataSource.push(newDataSourceConfig) - 1];
1733
+ console.log(`[Dataset Service] Starting recording process: ${configuration.path}, Scale: ${configuration.timeScaleFormat}, Period: ${configuration.period}, Datapoints: ${newDataSourceConfig.maxDataPoints}`);
1734
+ function sampleInterval(period) {
1735
+ return (source) => interval(period).pipe(withLatestFrom(source, (_, value) => value));
1736
+ }
1737
+ ;
1738
+ const angleDomain = this.resolveAngleDomain(configuration.path, configuration.baseUnit);
1739
+ dataSource.pathObserverSubscription = this.data.subscribePath(configuration.path, configuration.pathSource).pipe(sampleInterval(newDataSourceConfig.sampleTime)).subscribe((newValue) => {
1740
+ if (newValue.data.value === null)
1741
+ return;
1742
+ if (dataSource.maxDataPoints > 0 && dataSource.historicalData.length >= dataSource.maxDataPoints) {
1743
+ dataSource.historicalData.shift();
1744
+ }
1745
+ dataSource.historicalData.push(newValue.data.value);
1746
+ const datapoint = this.updateDataset(dataSource, configuration.baseUnit, angleDomain);
1747
+ this._svcSubjectObserverRegistry.find((registration) => registration.datasetUuid === dataSource.uuid).rxjsSubject.next(datapoint);
1748
+ });
1749
+ }
1750
+ /**
1751
+ * Stops the recording process of a DataSource (unsubscribes from the Subject). This will stop
1752
+ * the processing of SK path data into the historicalData. Stop will not complete the Subject so that
1753
+ * if the process is restarted, observers (widgets) will automatically start to receive data.
1754
+ *
1755
+ * @private
1756
+ * @param {string} uuid The UUID of the DataSource to stop
1757
+ * @memberof DataSetService
1758
+ */
1759
+ stop(uuid) {
1760
+ const dsIndex = this._svcDataSource.findIndex((d) => d.uuid == uuid);
1761
+ console.log(`[Dataset Service] Stopping Dataset ${uuid} data capture`);
1762
+ this._svcDataSource[dsIndex].pathObserverSubscription.unsubscribe();
1763
+ this._svcDataSource.splice(dsIndex, 1);
1764
+ }
1765
+ /**
1766
+ * Returns a copy of all existing dataset configurations
1767
+ *
1768
+ * @return {*} {IDatasetServiceDatasetConfig[]} Arrays of all historicalData configurations
1769
+ * @memberof DataSetService
1770
+ */
1771
+ list() {
1772
+ return cloneDeep_default(this._svcDatasetConfigs);
1773
+ }
1774
+ /**
1775
+ * Returns a copy of a dataset configuration.
1776
+ *
1777
+ * @param {string} uuid The UUID of the desired historicalData
1778
+ * @return {*} {IDatasetServiceDatasetConfig} A Dataset configuration object
1779
+ * @memberof DatasetService
1780
+ */
1781
+ getDatasetConfig(uuid) {
1782
+ return this._svcDatasetConfigs.find((config) => config.uuid === uuid);
1783
+ }
1784
+ /**
1785
+ * Returns information on the Data Source configuration.
1786
+ *
1787
+ * @param {string} uuid The UUID of the desired Data Source
1788
+ * @return {*} {IDatasetServiceDatasetConfig} A data Source configuration object
1789
+ * @memberof DatasetService
1790
+ */
1791
+ getDataSourceInfo(uuid) {
1792
+ return this._svcDataSource.find((config) => config.uuid === uuid);
1793
+ }
1794
+ /**
1795
+ * Creates a new historicalData and starts the data capture process.
1796
+ *
1797
+ * @param {string} path Signal K path of the data to record
1798
+ * @param {string} source The path's chosen source
1799
+ * @param {TimeScaleFormat} timeScaleFormat The duration of the historicalData: "hour", "minute", "second". See {@link TimeScaleFormat}
1800
+ * @param {number} period The number of data points to capture. For example, if the timeScaleFormat is "hour" and period is 60, then 60 data points will be captured for the hour.
1801
+ * @param {string} label Name of the historicalData
1802
+ * @param {boolean} [serialize] If true, the dataset configuration will be persisted to application settings. If set to false, dataset will not be present in the configuration on app restart. Defaults to true.
1803
+ * @param {boolean} [editable] If true, the dataset configuration can be edited by the user. Defaults to true.
1804
+ * @param {string} [forced_id] If provided, this ID will be used instead of generating a new UUID. Useful for testing or when you want to ensure a specific ID is used.
1805
+ * @returns {string} The ID of the newly created dataset configuration
1806
+ * @memberof DataSetService
1807
+ */
1808
+ create(path, source, timeScaleFormat, period, label, serialize = true, editable = true, forced_id) {
1809
+ if (!path || !source || !timeScaleFormat || !period || !label)
1810
+ return null;
1811
+ const uuid = forced_id || UUID.create();
1812
+ const newSvcDataset = {
1813
+ uuid,
1814
+ path,
1815
+ pathSource: source,
1816
+ baseUnit: this.data.getPathUnitType(path),
1817
+ timeScaleFormat,
1818
+ period,
1819
+ label,
1820
+ editable
1821
+ };
1822
+ console.log(`[Dataset Service] Creating ${serialize ? "" : "non-"}persistent ${editable ? "" : "hidden "}dataset: ${newSvcDataset.uuid}, Path: ${newSvcDataset.path}, Source: ${newSvcDataset.pathSource} Scale: ${newSvcDataset.timeScaleFormat}, Period: ${newSvcDataset.period}`);
1823
+ this._svcDatasetConfigs.push(newSvcDataset);
1824
+ this.start(uuid);
1825
+ if (serialize === true) {
1826
+ this.appSettings.saveDataSets(this._svcDatasetConfigs);
1827
+ }
1828
+ return uuid;
1829
+ }
1830
+ /**
1831
+ * Updates an existing dataset configuration and persists the changes to application settings.
1832
+ *
1833
+ * - If the dataset with the given UUID does not exist, returns false.
1834
+ * - If the configuration has not changed, returns false and avoids unnecessary restart.
1835
+ * - Otherwise, stops the current dataset, updates its configuration, restarts it, and saves all configs.
1836
+ *
1837
+ * @param {IDatasetServiceDatasetConfig} datasetConfig The updated dataset configuration object.
1838
+ * @returns {boolean} True if the dataset was updated and restarted, false if not found or unchanged.
1839
+ * @memberof DatasetService
1840
+ */
1841
+ edit(datasetConfig) {
1842
+ const existingConfig = this._svcDatasetConfigs.find((conf) => conf.uuid === datasetConfig.uuid);
1843
+ if (!existingConfig) {
1844
+ return false;
1845
+ }
1846
+ if (JSON.stringify(existingConfig) === JSON.stringify(datasetConfig)) {
1847
+ console.log(`[Dataset Service] No changes detected for Dataset ${datasetConfig.uuid}.`);
1848
+ return false;
1849
+ }
1850
+ this.stop(datasetConfig.uuid);
1851
+ console.log(`[Dataset Service] Updating Dataset: ${datasetConfig.uuid}`);
1852
+ datasetConfig.baseUnit = this.data.getPathUnitType(datasetConfig.path);
1853
+ this._svcDatasetConfigs.splice(this._svcDatasetConfigs.findIndex((conf) => conf.uuid === datasetConfig.uuid), 1, datasetConfig);
1854
+ this.start(datasetConfig.uuid);
1855
+ this.appSettings.saveDataSets(this._svcDatasetConfigs);
1856
+ return true;
1857
+ }
1858
+ /**
1859
+ * Removes a dataset and all associated resources from the DatasetService.
1860
+ *
1861
+ * - Stops the data source recording process for the given UUID.
1862
+ * - Deletes the dataset configuration and removes it from the service registry.
1863
+ * - Completes the Subject so that all observers (widgets) terminate their subscriptions.
1864
+ * - Optionally persists the removal to application settings (default: true).
1865
+ *
1866
+ * @param {string} uuid The UUID of the dataset to remove.
1867
+ * @param {boolean} [serialize=true] If true, the removal is persisted to application settings. If false, the dataset will reappear on app restart.
1868
+ * @returns {boolean} True if the dataset was found and removed, false otherwise.
1869
+ * @memberof DatasetService
1870
+ */
1871
+ remove(uuid, serialize = true) {
1872
+ if (!uuid || uuid === "" || this._svcDatasetConfigs.findIndex((c) => c.uuid === uuid) === -1)
1873
+ return false;
1874
+ this.stop(uuid);
1875
+ console.log(`[Dataset Service] Removing ${serialize ? "" : "non-"}persistent Dataset: ${uuid}`);
1876
+ this._svcDatasetConfigs.splice(this._svcDatasetConfigs.findIndex((c) => c.uuid === uuid), 1);
1877
+ this._svcSubjectObserverRegistry.find((r) => r.datasetUuid === uuid).rxjsSubject.complete();
1878
+ this._svcSubjectObserverRegistry.splice(this._svcSubjectObserverRegistry.findIndex((r) => r.datasetUuid === uuid), 1);
1879
+ if (serialize === true) {
1880
+ this.appSettings.saveDataSets(this._svcDatasetConfigs);
1881
+ }
1882
+ return true;
1883
+ }
1884
+ /**
1885
+ * Returns an Observable for the historicalData UUID or null if not found. Clients (widget) can use
1886
+ * subscribe() to start receiving historicalData data.
1887
+ *
1888
+ * @param {string} dataSetUuid The UUID is the historicalData
1889
+ * @return {*} {Observable<IDatasetServiceDatapoint> | null} Observable of data point array or null if not found
1890
+ * @memberof DataSetService
1891
+ */
1892
+ getDatasetObservable(dataSetUuid) {
1893
+ const registration = this._svcSubjectObserverRegistry.find((registration2) => registration2.datasetUuid == dataSetUuid);
1894
+ if (registration) {
1895
+ return registration.rxjsSubject.asObservable();
1896
+ }
1897
+ return null;
1898
+ }
1899
+ /**
1900
+ * Returns an observable that emits a batch of the last N datapoints as an array,
1901
+ * then continues emitting live datapoints one by one.
1902
+ *
1903
+ * @param {string} dataSetUuid The UUID of the dataset
1904
+ * @param {number} batchSize The number of datapoints to batch for new subscribers
1905
+ * @returns {Observable<IDatasetServiceDatapoint[] | IDatasetServiceDatapoint>}
1906
+ */
1907
+ getDatasetBatchThenLiveObservable(dataSetUuid) {
1908
+ const registration = this._svcSubjectObserverRegistry.find((registration2) => registration2.datasetUuid == dataSetUuid);
1909
+ if (!registration)
1910
+ return null;
1911
+ const subject = registration.rxjsSubject;
1912
+ const buffer = subject._buffer ? subject._buffer.slice() : [];
1913
+ const batch$ = from([buffer]);
1914
+ const live$ = subject.pipe(skip(buffer.length));
1915
+ return concat(batch$, live$);
1916
+ }
1917
+ /**
1918
+ * Returns a new historicalData object created from the provided value. The returned
1919
+ * object will contain all information: timestamp, value, simple moving average
1920
+ * and statistics, etc.
1921
+ *
1922
+ * The returned object can later be push into a data source's historicalData array and made
1923
+ * part of the historicalData.
1924
+ *
1925
+ * @private
1926
+ * @param {number} smoothingPeriod The amount of previous historicalData rows used to calculate the doubleEma (Simple Moving Average). The doubleEma is the average of (current + (smoothingPeriod - 1)) value the average of the value and x number of previous values
1927
+ * @param {IDatasetServiceDatapoint[]} ds The historicalData object to update
1928
+ * @param {number} value The value to add to the historicalData
1929
+ * @return {*} {IDatasetServiceDatapoint} A new historicalData object. Note: push() the object to the historicalData to
1930
+ * @memberof DatasetService
1931
+ */
1932
+ updateDataset(ds, unit, domain = "scalar") {
1933
+ let avgCalc = null;
1934
+ let smaCalc = null;
1935
+ let minCalc = null;
1936
+ let maxCalc = null;
1937
+ if (unit === "rad") {
1938
+ avgCalc = this.circularMeanRad(ds.historicalData);
1939
+ const window = ds.historicalData.slice(-ds.smoothingPeriod);
1940
+ smaCalc = this.circularMeanRad(window);
1941
+ const { min, max } = this.circularMinMaxRad(ds.historicalData);
1942
+ if (domain === "direction") {
1943
+ avgCalc = this.normalizeToDirection(avgCalc);
1944
+ smaCalc = this.normalizeToDirection(smaCalc);
1945
+ minCalc = this.normalizeToDirection(min);
1946
+ maxCalc = this.normalizeToDirection(max);
1947
+ } else if (domain === "signed") {
1948
+ avgCalc = this.normalizeToSigned(avgCalc);
1949
+ smaCalc = this.normalizeToSigned(smaCalc);
1950
+ minCalc = this.normalizeToSigned(min);
1951
+ maxCalc = this.normalizeToSigned(max);
1952
+ } else {
1953
+ minCalc = min;
1954
+ maxCalc = max;
1955
+ }
1956
+ } else {
1957
+ avgCalc = calculateAverage(ds.historicalData);
1958
+ smaCalc = calculateSMA(ds.historicalData, ds.smoothingPeriod);
1959
+ minCalc = Math.min(...ds.historicalData);
1960
+ maxCalc = Math.max(...ds.historicalData);
1961
+ }
1962
+ const newDatapoint = {
1963
+ timestamp: Date.now(),
1964
+ data: {
1965
+ value: unit === "rad" ? domain === "signed" ? this.normalizeToSigned(ds.historicalData[ds.historicalData.length - 1]) : this.normalizeToDirection(ds.historicalData[ds.historicalData.length - 1]) : ds.historicalData[ds.historicalData.length - 1],
1966
+ sma: smaCalc,
1967
+ ema: null,
1968
+ doubleEma: null,
1969
+ lastAverage: avgCalc,
1970
+ lastMinimum: minCalc,
1971
+ lastMaximum: maxCalc
1972
+ }
1973
+ };
1974
+ return newDatapoint;
1975
+ function calculateAverage(arr) {
1976
+ if (arr.length === 0)
1977
+ return null;
1978
+ const sum = arr.reduce((acc, val) => acc + val, 0);
1979
+ return sum / arr.length;
1980
+ }
1981
+ function calculateSMA(values, windowSize) {
1982
+ if (values.length < windowSize)
1983
+ windowSize = values.length;
1984
+ let sum = 0;
1985
+ for (let i = values.length - windowSize; i < values.length; i++) {
1986
+ sum += values[i];
1987
+ }
1988
+ return sum / windowSize;
1989
+ }
1990
+ }
1991
+ // Windowed circular mean (for SMA)
1992
+ circularMeanRad(anglesRad) {
1993
+ if (anglesRad.length === 0)
1994
+ return 0;
1995
+ const sumSin = anglesRad.reduce((sum, a) => sum + Math.sin(a), 0);
1996
+ const sumCos = anglesRad.reduce((sum, a) => sum + Math.cos(a), 0);
1997
+ return Math.atan2(sumSin / anglesRad.length, sumCos / anglesRad.length);
1998
+ }
1999
+ // Circular min/max: returns the smallest arc containing all points
2000
+ circularMinMaxRad(anglesRad) {
2001
+ if (anglesRad.length === 0)
2002
+ return { min: 0, max: 0 };
2003
+ const degAngles = anglesRad.map((a) => (a * 180 / Math.PI + 360) % 360).sort((a, b) => a - b);
2004
+ let maxGap = 0;
2005
+ let minIdx = 0;
2006
+ for (let i = 0; i < degAngles.length; i++) {
2007
+ const next = (i + 1) % degAngles.length;
2008
+ const gap = (degAngles[next] - degAngles[i] + 360) % 360;
2009
+ if (gap > maxGap) {
2010
+ maxGap = gap;
2011
+ minIdx = next;
2012
+ }
2013
+ }
2014
+ const min = degAngles[minIdx] * Math.PI / 180;
2015
+ const max = degAngles[(minIdx - 1 + degAngles.length) % degAngles.length] * Math.PI / 180;
2016
+ return { min, max };
2017
+ }
2018
+ // Domain resolution helpers
2019
+ resolveAngleDomain(path, unit) {
2020
+ if (unit !== "rad")
2021
+ return "scalar";
2022
+ const incoming = this.normalizePathKey(path);
2023
+ for (const candidate of this.signedAnglePaths) {
2024
+ if (incoming === this.normalizePathKey(candidate)) {
2025
+ return "signed";
2026
+ }
2027
+ }
2028
+ return "direction";
2029
+ }
2030
+ // Angle normalization helpers
2031
+ normalizePathKey(path) {
2032
+ return path.replace(/^vessels\.self\./, "").replace(/^self\./, "");
2033
+ }
2034
+ mod(a, n) {
2035
+ return (a % n + n) % n;
2036
+ }
2037
+ normalizeToDirection(rad) {
2038
+ const twoPi = 2 * Math.PI;
2039
+ return this.mod(rad, twoPi);
2040
+ }
2041
+ normalizeToSigned(rad) {
2042
+ const twoPi = 2 * Math.PI;
2043
+ return this.mod(rad + Math.PI, twoPi) - Math.PI;
2044
+ }
2045
+ /**
2046
+ * Convenience: remove only if dataset exists (silently no-op otherwise).
2047
+ */
2048
+ removeIfExists(uuid, serialize = true) {
2049
+ if (!uuid)
2050
+ return false;
2051
+ if (this._svcDatasetConfigs.findIndex((c) => c.uuid === uuid) === -1)
2052
+ return false;
2053
+ return this.remove(uuid, serialize);
2054
+ }
2055
+ /**
2056
+ * On app/service teardown, stop all active data sources to release subscriptions.
2057
+ * We purposefully do not persist changes; this is runtime-only cleanup.
2058
+ */
2059
+ ngOnDestroy() {
2060
+ [...this._svcDataSource].forEach((ds) => {
2061
+ try {
2062
+ this.stop(ds.uuid);
2063
+ } catch {
2064
+ }
2065
+ });
2066
+ this._svcSubjectObserverRegistry.forEach((reg) => reg.rxjsSubject.complete());
2067
+ this._svcSubjectObserverRegistry = [];
2068
+ }
2069
+ static \u0275fac = function DatasetService_Factory(__ngFactoryType__) {
2070
+ return new (__ngFactoryType__ || _DatasetService)();
2071
+ };
2072
+ static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _DatasetService, factory: _DatasetService.\u0275fac, providedIn: "root" });
2073
+ };
2074
+ (() => {
2075
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DatasetService, [{
2076
+ type: Injectable,
2077
+ args: [{
2078
+ providedIn: "root"
2079
+ }]
2080
+ }], () => [], null);
2081
+ })();
2082
+
2083
+ export {
2084
+ MatCheckbox,
2085
+ MatCheckboxModule,
2086
+ MatRadioGroup,
2087
+ MatRadioButton,
2088
+ MatRadioModule,
2089
+ DatasetService
2090
+ };
2091
+ //# sourceMappingURL=chunk-63ILPRXC.js.map