-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1653.c44c96b65e351ad7.js
1 lines (1 loc) · 81.6 KB
/
1653.c44c96b65e351ad7.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[1653],{1653:(Rt,Q,g)=>{g.r(Q),g.d(Q,{CdkListboxActivedescendantExample:()=>he,CdkListboxCompareWithExample:()=>pe,CdkListboxCustomNavigationExample:()=>K,CdkListboxCustomTypeaheadExample:()=>fe,CdkListboxDisabledExample:()=>ge,CdkListboxFormsValidationExample:()=>me,CdkListboxHorizontalExample:()=>X,CdkListboxMultipleExample:()=>R,CdkListboxOverviewExample:()=>_e,CdkListboxReactiveFormsExample:()=>ve,CdkListboxTemplateFormsExample:()=>be,CdkListboxValueBindingExample:()=>y});var t=g(4438),ee=g(8617),_=g(7336),Le=g(4085),Ne=g(5024),N=g(5286),te=g(9418),M=g(4670),V=g(3586),H=g(3176),W=g(9090),ne=g(5006),T=g(7605),Pe=g(8728),f=g(9417),F=g(8203),ie=g(6860);let v=0;class D extends Ne.CB{constructor(m=!1,r,a=!0,d){super(!0,r,a,d),this.multiple=m}isMultipleSelection(){return this.multiple}select(...m){return this.multiple?super.select(...m):super.setSelection(...m)}}let x=(()=>{class l{constructor(){this._generatedId="cdk-option-"+v++,this._disabled=!1,this.element=(0,t.WQX)(t.aKT).nativeElement,this.listbox=(0,t.WQX)(C),this.destroyed=new N.B7,this._clicked=new N.B7}get id(){return this._id||this._generatedId}set id(r){this._id=r}get disabled(){return this.listbox.disabled||this._disabled}set disabled(r){this._disabled=r}get enabledTabIndex(){return void 0===this._enabledTabIndex?this.listbox.enabledTabIndex:this._enabledTabIndex}set enabledTabIndex(r){this._enabledTabIndex=r}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}isSelected(){return this.listbox.isSelected(this)}isActive(){return this.listbox.isActive(this)}toggle(){this.listbox.toggle(this)}select(){this.listbox.select(this)}deselect(){this.listbox.deselect(this)}focus(){this.element.focus()}getLabel(){return(this.typeaheadLabel??this.element.textContent?.trim())||""}setActiveStyles(){}setInactiveStyles(){}_handleFocus(){this.listbox.useActiveDescendant&&(this.listbox._setActiveOption(this),this.listbox.focus())}_getTabIndex(){return this.listbox.useActiveDescendant||this.disabled?-1:this.isActive()?this.enabledTabIndex:-1}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275dir=t.FsC({type:l,selectors:[["","cdkOption",""]],hostAttrs:["role","option",1,"cdk-option"],hostVars:6,hostBindings:function(a,d){1&a&&t.bIt("click",function(p){return d._clicked.next(p)})("focus",function(){return d._handleFocus()}),2&a&&(t.Mr5("id",d.id),t.BMQ("aria-selected",d.isSelected())("tabindex",d._getTabIndex())("aria-disabled",d.disabled),t.AVh("cdk-option-active",d.isActive()))},inputs:{id:"id",value:[0,"cdkOption","value"],typeaheadLabel:[0,"cdkOptionTypeaheadLabel","typeaheadLabel"],disabled:[2,"cdkOptionDisabled","disabled",t.L39],enabledTabIndex:[0,"tabindex","enabledTabIndex"]},exportAs:["cdkOption"],standalone:!0,features:[t.GFd]})}return l})(),C=(()=>{class l{get id(){return this._id||this._generatedId}set id(r){this._id=r}get enabledTabIndex(){return void 0===this._enabledTabIndex?0:this._enabledTabIndex}set enabledTabIndex(r){this._enabledTabIndex=r}get value(){return this._invalid?[]:this.selectionModel.selected}set value(r){this._setSelection(r)}get multiple(){return this.selectionModel.multiple}set multiple(r){this.selectionModel.multiple=r,this.options&&this._updateInternalValue()}get orientation(){return this._orientation}set orientation(r){this._orientation="horizontal"===r?"horizontal":"vertical","horizontal"===r?this.listKeyManager?.withHorizontalOrientation(this._dir?.value||"ltr"):this.listKeyManager?.withVerticalOrientation()}get compareWith(){return this.selectionModel.compareWith}set compareWith(r){this.selectionModel.compareWith=r}get navigationWrapDisabled(){return this._navigationWrapDisabled}set navigationWrapDisabled(r){this._navigationWrapDisabled=r,this.listKeyManager?.withWrap(!this._navigationWrapDisabled)}get navigateDisabledOptions(){return this._navigateDisabledOptions}set navigateDisabledOptions(r){this._navigateDisabledOptions=r,this.listKeyManager?.skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate)}constructor(){this._generatedId="cdk-listbox-"+v++,this.disabled=!1,this.useActiveDescendant=!1,this._orientation="vertical",this._navigationWrapDisabled=!1,this._navigateDisabledOptions=!1,this.valueChange=new N.B7,this.selectionModel=new D,this.destroyed=new N.B7,this.element=(0,t.WQX)(t.aKT).nativeElement,this.ngZone=(0,t.WQX)(t.SKi),this.changeDetectorRef=(0,t.WQX)(t.gRc),this._invalid=!1,this._lastTriggered=null,this._onTouched=()=>{},this._onChange=()=>{},this._optionClicked=(0,te.v)(()=>this.options.changes.pipe((0,H.Z)(this.options),(0,W.n)(r=>(0,M.h)(...r.map(a=>a._clicked.pipe((0,ne.T)(d=>({option:a,event:d})))))))),this._dir=(0,t.WQX)(F.dS,{optional:!0}),this._isBrowser=(0,t.WQX)(ie.OD).isBrowser,this._skipDisabledPredicate=r=>r.disabled,this._skipNonePredicate=()=>!1,this._hasFocus=!1,this._previousActiveOption=null,this._isBrowser&&this._setPreviousActiveOptionAsActiveOptionOnWindowBlur()}ngAfterContentInit(){this._initKeyManager(),(0,M.h)(this.selectionModel.changed,this.options.changes).pipe((0,H.Z)(null),(0,T.Q)(this.destroyed)).subscribe(()=>this._updateInternalValue()),this._optionClicked.pipe((0,Pe.p)(({option:r})=>!r.disabled),(0,T.Q)(this.destroyed)).subscribe(({option:r,event:a})=>this._handleOptionClicked(r,a))}ngOnDestroy(){this.listKeyManager?.destroy(),this.destroyed.next(),this.destroyed.complete()}toggle(r){this.toggleValue(r.value)}toggleValue(r){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.toggle(r)}select(r){this.selectValue(r.value)}selectValue(r){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(r)}deselect(r){this.deselectValue(r.value)}deselectValue(r){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.deselect(r)}setAllSelected(r){r?(this._invalid&&this.selectionModel.clear(!1),this.selectionModel.select(...this.options.map(a=>a.value))):this.selectionModel.clear()}isSelected(r){return this.isValueSelected(r.value)}isActive(r){return this.listKeyManager?.activeItem===r}isValueSelected(r){return!this._invalid&&this.selectionModel.isSelected(r)}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}writeValue(r){this._setSelection(r),this._verifyOptionValues()}setDisabledState(r){this.disabled=r}focus(){this.element.focus()}triggerOption(r){r&&!r.disabled&&(this._lastTriggered=r,(this.multiple?this.selectionModel.toggle(r.value):this.selectionModel.select(r.value))&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:r})))}triggerRange(r,a,d,u){if(this.disabled||r&&r.disabled)return;this._lastTriggered=r;const p=this.compareWith??Object.is,b=[...this.options].slice(Math.max(0,Math.min(a,d)),Math.min(this.options.length,Math.max(a,d)+1)).filter(S=>!S.disabled).map(S=>S.value),k=[...this.value];for(const S of b){const xe=k.findIndex(Ge=>p(Ge,S));u&&-1===xe?k.push(S):!u&&-1!==xe&&k.splice(xe,1)}this.selectionModel.setSelection(...k)&&(this._onChange(this.value),this.valueChange.next({value:this.value,listbox:this,option:r}))}_setActiveOption(r){this.listKeyManager.setActiveItem(r)}_handleFocus(){this.useActiveDescendant||(this.selectionModel.selected.length>0?this._setNextFocusToSelectedOption():this.listKeyManager.setNextItemActive(),this._focusActiveOption())}_handleKeydown(r){if(this.disabled)return;const{keyCode:a}=r,d=this.listKeyManager.activeItemIndex,u=["ctrlKey","metaKey"];if(this.multiple&&a===_.A&&(0,_.rp)(r,...u))return this.triggerRange(null,0,this.options.length-1,this.options.length!==this.value.length),void r.preventDefault();if(this.multiple&&(a===_.t6||a===_.Fm)&&(0,_.rp)(r,"shiftKey"))return this.listKeyManager.activeItem&&null!=this.listKeyManager.activeItemIndex&&this.triggerRange(this.listKeyManager.activeItem,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!this.listKeyManager.activeItem.isSelected()),void r.preventDefault();if(this.multiple&&a===_.yZ&&(0,_.rp)(r,...u)&&(0,_.rp)(r,"shiftKey")){const b=this.listKeyManager.activeItem;if(b){const k=this.listKeyManager.activeItemIndex;this.listKeyManager.setFirstItemActive(),this.triggerRange(b,k,this.listKeyManager.activeItemIndex,!b.isSelected())}return void r.preventDefault()}if(this.multiple&&a===_.Kp&&(0,_.rp)(r,...u)&&(0,_.rp)(r,"shiftKey")){const b=this.listKeyManager.activeItem;if(b){const k=this.listKeyManager.activeItemIndex;this.listKeyManager.setLastItemActive(),this.triggerRange(b,k,this.listKeyManager.activeItemIndex,!b.isSelected())}return void r.preventDefault()}if(a===_.t6||a===_.Fm)return this.triggerOption(this.listKeyManager.activeItem),void r.preventDefault();const p=a===_.i7||a===_.n6||a===_.UQ||a===_.LE||a===_.yZ||a===_.Kp;this.listKeyManager.onKeydown(r),p&&r.shiftKey&&d!==this.listKeyManager.activeItemIndex&&this.triggerOption(this.listKeyManager.activeItem)}_handleFocusIn(){this._hasFocus=!0}_handleFocusOut(r){this._previousActiveOption=this.listKeyManager.activeItem;const a=r.relatedTarget;this.element!==a&&!this.element.contains(a)&&(this._onTouched(),this._hasFocus=!1,this._setNextFocusToSelectedOption())}_getAriaActiveDescendant(){return this.useActiveDescendant?this.listKeyManager?.activeItem?.id:null}_getTabIndex(){return this.disabled?-1:this.useActiveDescendant||!this.listKeyManager.activeItem?this.enabledTabIndex:-1}_initKeyManager(){this.listKeyManager=new ee.Au(this.options).withWrap(!this._navigationWrapDisabled).withTypeAhead().withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._navigateDisabledOptions?this._skipNonePredicate:this._skipDisabledPredicate),"vertical"===this.orientation?this.listKeyManager.withVerticalOrientation():this.listKeyManager.withHorizontalOrientation(this._dir?.value||"ltr"),this.selectionModel.selected.length&&Promise.resolve().then(()=>this._setNextFocusToSelectedOption()),this.listKeyManager.change.subscribe(()=>this._focusActiveOption()),this.options.changes.pipe((0,T.Q)(this.destroyed)).subscribe(()=>{const r=this.listKeyManager.activeItem;r&&!this.options.find(a=>a===r)&&(this.listKeyManager.setActiveItem(-1),this.changeDetectorRef.markForCheck())})}_focusActiveOption(){this.useActiveDescendant||this.listKeyManager.activeItem?.focus(),this.changeDetectorRef.markForCheck()}_setSelection(r){this._invalid&&this.selectionModel.clear(!1),this.selectionModel.setSelection(...this._coerceValue(r)),this._hasFocus||this._setNextFocusToSelectedOption()}_setNextFocusToSelectedOption(){const r=this.options?.find(a=>a.isSelected());r&&this.listKeyManager.updateActiveItem(r)}_updateInternalValue(){const r=new Map;this.selectionModel.sort((d,u)=>this._getIndexForValue(r,d)-this._getIndexForValue(r,u));const a=this.selectionModel.selected;this._invalid=!this.multiple&&a.length>1||!!this._getInvalidOptionValues(a).length,this.changeDetectorRef.markForCheck()}_getIndexForValue(r,a){const d=this.compareWith||Object.is;if(!r.has(a)){let u=-1;for(let p=0;p<this.options.length;p++)if(d(a,this.options.get(p).value)){u=p;break}r.set(a,u)}return r.get(a)}_handleOptionClicked(r,a){a.preventDefault(),this.listKeyManager.setActiveItem(r),a.shiftKey&&this.multiple?this.triggerRange(r,this._getLastTriggeredIndex()??this.listKeyManager.activeItemIndex,this.listKeyManager.activeItemIndex,!r.isSelected()):this.triggerOption(r)}_verifyNoOptionValueCollisions(){this.options.changes.pipe((0,H.Z)(this.options),(0,T.Q)(this.destroyed)).subscribe(()=>{const r=this.compareWith??Object.is;for(let a=0;a<this.options.length;a++){const d=this.options.get(a);let u=null;for(let p=a+1;p<this.options.length;p++){const b=this.options.get(p);if(r(d.value,b.value)){u=b;break}}if(u)return void(this.compareWith?console.warn("Found multiple CdkOption representing the same value under the given compareWith function",{option1:d.element,option2:u.element,compareWith:this.compareWith}):console.warn("Found multiple CdkOption with the same value",{option1:d.element,option2:u.element}))}})}_verifyOptionValues(){}_coerceValue(r){return null==r?[]:(0,Le.FG)(r)}_getInvalidOptionValues(r){const a=this.compareWith||Object.is,d=(this.options||[]).map(u=>u.value);return r.filter(u=>!d.some(p=>a(u,p)))}_getLastTriggeredIndex(){const r=this.options.toArray().indexOf(this._lastTriggered);return-1===r?null:r}_setPreviousActiveOptionAsActiveOptionOnWindowBlur(){this.ngZone.runOutsideAngular(()=>{(0,V.R)(window,"blur").pipe((0,T.Q)(this.destroyed)).subscribe(()=>{this.element.contains(document.activeElement)&&this._previousActiveOption&&(this._setActiveOption(this._previousActiveOption),this._previousActiveOption=null)})})}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275dir=t.FsC({type:l,selectors:[["","cdkListbox",""]],contentQueries:function(a,d,u){if(1&a&&t.wni(u,x,5),2&a){let p;t.mGM(p=t.lsd())&&(d.options=p)}},hostAttrs:["role","listbox",1,"cdk-listbox"],hostVars:6,hostBindings:function(a,d){1&a&&t.bIt("focus",function(){return d._handleFocus()})("keydown",function(p){return d._handleKeydown(p)})("focusout",function(p){return d._handleFocusOut(p)})("focusin",function(){return d._handleFocusIn()}),2&a&&(t.Mr5("id",d.id),t.BMQ("tabindex",d._getTabIndex())("aria-disabled",d.disabled)("aria-multiselectable",d.multiple)("aria-activedescendant",d._getAriaActiveDescendant())("aria-orientation",d.orientation))},inputs:{id:"id",enabledTabIndex:[0,"tabindex","enabledTabIndex"],value:[0,"cdkListboxValue","value"],multiple:[2,"cdkListboxMultiple","multiple",t.L39],disabled:[2,"cdkListboxDisabled","disabled",t.L39],useActiveDescendant:[2,"cdkListboxUseActiveDescendant","useActiveDescendant",t.L39],orientation:[0,"cdkListboxOrientation","orientation"],compareWith:[0,"cdkListboxCompareWith","compareWith"],navigationWrapDisabled:[2,"cdkListboxNavigationWrapDisabled","navigationWrapDisabled",t.L39],navigateDisabledOptions:[2,"cdkListboxNavigatesDisabledOptions","navigateDisabledOptions",t.L39]},outputs:{valueChange:"cdkListboxValueChange"},exportAs:["cdkListbox"],standalone:!0,features:[t.Jv_([{provide:f.kq,useExisting:(0,t.Rfq)(()=>l),multi:!0}]),t.GFd]})}return l})();var E=g(177);function se(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}function oe(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit,a=t.XpG();t.Y8G("cdkOption",r),t.R7$(),t.JRh(a.formatTime(r))}}function re(l,m){if(1&l&&(t.j41(0,"p"),t.EFF(1," Your appointment is scheduled for "),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"json"),t.k0s(),t.EFF(5,"\xa0 "),t.k0s()),2&l){const r=t.XpG();t.R7$(3),t.JRh(t.bMT(4,1,r.formatAppointment()))}}const A='.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}';function ae(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}function P(l,m){if(1&l&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.R7$(),t.JRh(r)}}function le(l,m){if(1&l&&(t.j41(0,"div",4),t.Z7z(1,P,2,1,"p",null,t.fX1),t.k0s()),2&l){const r=t.XpG();t.R7$(),t.Dyx(r.getErrors())}}function de(l,m){if(1&l&&(t.j41(0,"li",2),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}function ce(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}function ue(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}function Ue(l,m){if(1&l&&(t.j41(0,"li",3),t.EFF(1),t.k0s()),2&l){const r=m.$implicit;t.Y8G("cdkOption",r),t.R7$(),t.JRh(r)}}let he=(()=>{class l{constructor(){this.features=["Hydrodynamic","Port & Starboard Attachments","Turbo Drive"]}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-activedescendant-example"]],exportAs:["cdkListboxActivedescendantExample"],standalone:!0,features:[t.aNF],decls:6,vars:0,consts:[[1,"example-listbox-container"],["id","example-spatula-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","cdkListboxUseActiveDescendant","","aria-labelledby","example-spatula-label",1,"example-listbox"],[1,"example-option",3,"cdkOption"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Spatula Features "),t.k0s(),t.j41(3,"ul",2),t.Z7z(4,se,2,2,"li",3,t.fX1),t.k0s()()),2&a&&(t.R7$(4),t.Dyx(d.features))},dependencies:[C,x],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-listbox[_ngcontent-%COMP%]:focus .cdk-option-active[_ngcontent-%COMP%] {\n background: rgba(0, 0, 0, 0.2);\n}']})}return l})();const O=new Date,$=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});let pe=(()=>{class l{constructor(){this.slots=[12,13,14,15].map(r=>new Date(O.getFullYear(),O.getMonth(),O.getDate()+1,r)),this.appointment=[new Date(O.getFullYear(),O.getMonth(),O.getDate()+1,14)]}compareDate(r,a){return r.getTime()===a.getTime()}formatTime(r){return $.format(r)}formatAppointment(){return this.appointment.map(r=>this.formatTime(r))}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-compare-with-example"]],exportAs:["cdkListboxCompareWithExample"],standalone:!0,features:[t.aNF],decls:7,vars:3,consts:[[1,"example-listbox-container"],["id","example-appointment-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-appointment-label",1,"example-listbox",3,"cdkListboxValueChange","cdkListboxValue","cdkListboxCompareWith"],[1,"example-option",3,"cdkOption"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Appointment Time "),t.k0s(),t.j41(3,"ul",2),t.bIt("cdkListboxValueChange",function(p){return d.appointment=p.value}),t.Z7z(4,oe,2,2,"li",3,t.fX1),t.k0s()(),t.DNE(6,re,6,3,"p")),2&a&&(t.R7$(3),t.Y8G("cdkListboxValue",d.appointment)("cdkListboxCompareWith",d.compareDate),t.R7$(),t.Dyx(d.slots),t.R7$(2),t.vxM(d.appointment[0]?6:-1))},dependencies:[C,x,E.TG],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}']})}return l})(),K=(()=>{class l{static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-custom-navigation-example"]],exportAs:["cdkListboxCustomNavigationExample"],standalone:!0,features:[t.aNF],decls:12,vars:0,consts:[[1,"example-listbox-container"],["id","example-flavor-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxNavigatesDisabledOptions","","cdkListboxNavigationWrapDisabled","","aria-labelledby","example-flavor-label",1,"example-listbox"],["cdkOption","chocolate",1,"example-option"],["cdkOption","pumpkin-spice","cdkOptionDisabled","",1,"example-option"],["cdkOption","strawberry",1,"example-option"],["cdkOption","vanilla",1,"example-option"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Flavor "),t.k0s(),t.j41(3,"ul",2)(4,"li",3),t.EFF(5," Chocolate "),t.k0s(),t.j41(6,"li",4),t.EFF(7," Pumpkin Spice (seasonal) "),t.k0s(),t.j41(8,"li",5),t.EFF(9," Strawberry "),t.k0s(),t.j41(10,"li",6),t.EFF(11," Vanilla "),t.k0s()()())},dependencies:[C,x],styles:[".example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" width=\"24\"><path d=\"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z\"/></svg>'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[aria-disabled='true'][_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-option[aria-disabled='false'][_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}"]})}return l})(),fe=(()=>{class l{static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-custom-typeahead-example"]],exportAs:["cdkListboxCustomTypeaheadExample"],standalone:!0,features:[t.aNF],decls:10,vars:3,consts:[[1,"example-listbox-container"],["id","example-satisfaction-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-satisfaction-label",1,"example-listbox"],["cdkOptionTypeaheadLabel","great",1,"example-option",3,"cdkOption"],["cdkOptionTypeaheadLabel","okay",1,"example-option",3,"cdkOption"],["cdkOptionTypeaheadLabel","bad",1,"example-option",3,"cdkOption"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," How was your service? "),t.k0s(),t.j41(3,"ul",2)(4,"li",3),t.EFF(5," \u{1f600} Great "),t.k0s(),t.j41(6,"li",4),t.EFF(7," \u{1f610} Okay "),t.k0s(),t.j41(8,"li",5),t.EFF(9," \u{1f641} Bad "),t.k0s()()()),2&a&&(t.R7$(4),t.Y8G("cdkOption",1),t.R7$(2),t.Y8G("cdkOption",0),t.R7$(2),t.Y8G("cdkOption",-1))},dependencies:[C,x],styles:[A]})}return l})(),ge=(()=>{class l{constructor(){this.canDrinkCtrl=new f.MJ(!1)}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-disabled-example"]],exportAs:["cdkListboxDisabledExample"],standalone:!0,features:[t.aNF],decls:21,vars:4,consts:[["type","checkbox","id","can-drink",3,"formControl"],["for","can-drink"],[1,"example-listbox-container"],["id","example-wine-type-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-wine-type-label",1,"example-listbox",3,"cdkListboxDisabled"],["cdkOption","cabernet",1,"example-option"],["cdkOption","syrah",1,"example-option"],["cdkOption","zinfandel","cdkOptionDisabled","",1,"example-option"],[1,"example-sold-out"],["cdkOption","riesling",1,"example-option"]],template:function(a,d){1&a&&(t.j41(0,"form")(1,"p"),t.nrm(2,"input",0),t.EFF(3,"\xa0 "),t.j41(4,"label",1),t.EFF(5,"I am 21 or older"),t.k0s()(),t.j41(6,"section")(7,"div",2)(8,"label",3),t.EFF(9," Wine Selection "),t.k0s(),t.j41(10,"ul",4)(11,"li",5),t.EFF(12," Cabernet Sauvignon "),t.k0s(),t.j41(13,"li",6),t.EFF(14," Syrah "),t.k0s(),t.j41(15,"li",7),t.EFF(16," Zinfandel "),t.j41(17,"span",8),t.EFF(18,"(sold out)"),t.k0s()(),t.j41(19,"li",9),t.EFF(20," Riesling "),t.k0s()()()()()),2&a&&(t.R7$(2),t.Y8G("formControl",d.canDrinkCtrl),t.R7$(5),t.AVh("example-disabled",!d.canDrinkCtrl.value),t.R7$(3),t.Y8G("cdkListboxDisabled",!d.canDrinkCtrl.value))},dependencies:[f.YN,f.qT,f.Zm,f.BC,f.cb,f.cV,f.X1,f.l_,C,x],styles:[".example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-disabled[_ngcontent-%COMP%] {\n border-color: rgba(0, 0, 0, 0.5);\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-disabled[_ngcontent-%COMP%] .example-listbox-label[_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" width=\"24\"><path d=\"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z\"/></svg>'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[aria-disabled='true'][_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.example-option[aria-disabled='false'][_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}\n\n.example-sold-out[_ngcontent-%COMP%] {\n color: red;\n font-size: 0.75em;\n vertical-align: super;\n}"]})}return l})(),me=(()=>{class l{constructor(){this.signs=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],this.signCtrl=new f.MJ([],f.k0.required),this.invalid=this.signCtrl.valueChanges.pipe((0,ne.T)(()=>this.signCtrl.touched&&!this.signCtrl.valid))}getErrors(){const r=[];if(this.signCtrl.hasError("required")&&r.push("You must enter your zodiac sign"),this.signCtrl.hasError("cdkListboxUnexpectedMultipleValues")&&r.push("You can only select one zodiac sign"),this.signCtrl.hasError("cdkListboxUnexpectedOptionValues")){const a=this.signCtrl.getError("cdkListboxUnexpectedOptionValues").values;r.push(`You entered an invalid zodiac sign: ${a[0]}`)}return r.length?r:null}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-forms-validation-example"]],exportAs:["cdkListboxFormsValidationExample"],standalone:!0,features:[t.aNF],decls:26,vars:11,consts:[[1,"example-listbox-container"],["id","example-zodiac-sign-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-zodiac-sign-label",1,"example-listbox",3,"formControl"],[1,"example-option",3,"cdkOption"],[1,"example-listbox-errors"],[3,"click"]],template:function(a,d){1&a&&(t.j41(0,"div",0),t.nI1(1,"async"),t.j41(2,"label",1),t.EFF(3," Zodiac Sign "),t.k0s(),t.j41(4,"ul",2),t.Z7z(5,ae,2,2,"li",3,t.fX1),t.k0s()(),t.DNE(7,le,3,0,"div",4),t.nI1(8,"async"),t.j41(9,"p"),t.EFF(10," Your zodiac sign is: "),t.j41(11,"strong"),t.EFF(12),t.nI1(13,"json"),t.k0s(),t.EFF(14,"\xa0 "),t.j41(15,"button",5),t.bIt("click",function(){return d.signCtrl.setValue(["Cat"])}),t.EFF(16,"Set: Cat"),t.k0s(),t.EFF(17,"\xa0 "),t.j41(18,"button",5),t.bIt("click",function(){return d.signCtrl.setValue(["Dragon","Snake"])}),t.EFF(19,"Set: Dragon, Snake"),t.k0s(),t.EFF(20,"\xa0 "),t.j41(21,"button",5),t.bIt("click",function(){return d.signCtrl.setValue(["Cat","Rat"])}),t.EFF(22,"Set: Cat, Rat"),t.k0s(),t.EFF(23,"\xa0 "),t.j41(24,"button",5),t.bIt("click",function(){return d.signCtrl.setValue([])}),t.EFF(25,"Clear"),t.k0s()()),2&a&&(t.AVh("example-listbox-invalid",t.bMT(1,5,d.invalid)),t.R7$(4),t.Y8G("formControl",d.signCtrl),t.R7$(),t.Dyx(d.signs),t.R7$(2),t.vxM(t.bMT(8,7,d.invalid)?7:-1),t.R7$(5),t.JRh(t.bMT(13,9,d.signCtrl.value)))},dependencies:[C,f.YN,f.BC,f.X1,f.l_,x,E.Jj,E.TG],styles:['.example-listbox-container[_ngcontent-%COMP%] {\n display: block;\n width: 250px;\n border: 1px solid black;\n}\n\n.example-listbox-invalid[_ngcontent-%COMP%] {\n border-color: red;\n}\n\n.example-listbox-label[_ngcontent-%COMP%] {\n display: block;\n padding: 5px;\n}\n\n.example-listbox-invalid[_ngcontent-%COMP%] .example-listbox-label[_ngcontent-%COMP%] {\n color: red;\n}\n\n.example-listbox[_ngcontent-%COMP%] {\n list-style: none;\n padding: 0;\n margin: 0;\n height: 200px;\n overflow: auto;\n}\n\n.example-option[_ngcontent-%COMP%] {\n position: relative;\n padding: 5px 5px 5px 25px;\n}\n\n.example-option[aria-selected=\'true\'][_ngcontent-%COMP%]::before {\n content: \'\';\n display: block;\n width: 20px;\n height: 20px;\n background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"/></svg>\'); \n\n background-size: cover;\n position: absolute;\n left: 2px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}\n\n.example-listbox-errors[_ngcontent-%COMP%] {\n color: red;\n}']})}return l})(),X=(()=>{class l{constructor(){this.sizes=["XS","S","M","L","XL"]}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-horizontal-example"]],exportAs:["cdkListboxhorizontalExample"],standalone:!0,features:[t.aNF],decls:5,vars:0,consts:[["id","example-shirt-size-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxOrientation","horizontal","aria-labelledby","example-shirt-size-label",1,"example-listbox"],[1,"example-option",3,"cdkOption"]],template:function(a,d){1&a&&(t.j41(0,"label",0),t.EFF(1," Shirt Size\n"),t.k0s(),t.j41(2,"ul",1),t.Z7z(3,de,2,2,"li",2,t.fX1),t.k0s()),2&a&&(t.R7$(3),t.Dyx(d.sizes))},dependencies:[C,x],styles:[".example-listbox[_ngcontent-%COMP%] {\n display: flex;\n width: 250px;\n padding: 0;\n}\n\n.example-option[_ngcontent-%COMP%] {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n position: relative;\n list-style: none;\n padding: 12px;\n border: solid black;\n border-width: 1px 1px 1px 0;\n}\n\n.example-option[_ngcontent-%COMP%]:first-child {\n border-left-width: 1px;\n}\n\n.example-option[aria-selected='true'][_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n border: 2px solid black;\n top: 3px;\n bottom: 3px;\n left: 3px;\n right: 3px;\n}\n\n.example-option[_ngcontent-%COMP%]:focus {\n background: rgba(0, 0, 0, 0.2);\n}"]})}return l})(),R=(()=>{class l{static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-multiple-example"]],exportAs:["cdkListboxMultipleExample"],standalone:!0,features:[t.aNF],decls:12,vars:0,consts:[[1,"example-listbox-container"],["id","example-fav-cuisine-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","aria-labelledby","example-fav-cuisine-label",1,"example-listbox"],["cdkOption","chinese",1,"example-option"],["cdkOption","french",1,"example-option"],["cdkOption","italian",1,"example-option"],["cdkOption","japanese",1,"example-option"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Favorite cuisines "),t.k0s(),t.j41(3,"ul",2)(4,"li",3),t.EFF(5,"Chinese"),t.k0s(),t.j41(6,"li",4),t.EFF(7,"French"),t.k0s(),t.j41(8,"li",5),t.EFF(9,"Italian"),t.k0s(),t.j41(10,"li",6),t.EFF(11,"Japanese"),t.k0s()()())},dependencies:[C,x],styles:[A]})}return l})(),_e=(()=>{class l{static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-overview-example"]],exportAs:["cdkListboxOverviewExample"],standalone:!0,features:[t.aNF],decls:10,vars:0,consts:[[1,"example-listbox-container"],["id","example-fav-color-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-fav-color-label",1,"example-listbox"],["cdkOption","red",1,"example-option"],["cdkOption","green",1,"example-option"],["cdkOption","blue",1,"example-option"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Favorite color "),t.k0s(),t.j41(3,"ul",2)(4,"li",3),t.EFF(5,"Red"),t.k0s(),t.j41(6,"li",4),t.EFF(7,"Green"),t.k0s(),t.j41(8,"li",5),t.EFF(9,"Blue"),t.k0s()()())},dependencies:[C,x],styles:[A]})}return l})(),ve=(()=>{class l{constructor(){this.languages=["C++","Java","JavaScript","Python","TypeScript"],this.languageCtrl=new f.MJ(["TypeScript"])}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-reactive-forms-example"]],exportAs:["cdkListboxReactiveFormsExample"],standalone:!0,features:[t.aNF],decls:14,vars:4,consts:[[1,"example-listbox-container"],["id","example-language-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-language-label",1,"example-listbox",3,"formControl"],[1,"example-option",3,"cdkOption"],[3,"click"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Preferred Language "),t.k0s(),t.j41(3,"ul",2),t.Z7z(4,ce,2,2,"li",3,t.fX1),t.k0s()(),t.j41(6,"p"),t.EFF(7," Your preferred language: "),t.j41(8,"strong"),t.EFF(9),t.nI1(10,"json"),t.k0s(),t.EFF(11,"\xa0 "),t.j41(12,"button",4),t.bIt("click",function(){return d.languageCtrl.reset()}),t.EFF(13,"Reset"),t.k0s()()),2&a&&(t.R7$(3),t.Y8G("formControl",d.languageCtrl),t.R7$(),t.Dyx(d.languages),t.R7$(5),t.JRh(t.bMT(10,2,d.languageCtrl.value)))},dependencies:[C,f.YN,f.BC,f.X1,f.l_,x,E.TG],styles:[A]})}return l})(),be=(()=>{class l{constructor(){this.toppings=["Extra Cheese","Mushrooms","Pepperoni","Sausage"],this.order=[]}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-template-forms-example"]],exportAs:["cdkListboxTemplateFormsExample"],standalone:!0,features:[t.aNF],decls:14,vars:4,consts:[[1,"example-listbox-container"],["id","example-toppings-label",1,"example-listbox-label"],["cdkListbox","","cdkListboxMultiple","","aria-labelledby","example-toppings-label",1,"example-listbox",3,"ngModelChange","ngModel"],[1,"example-option",3,"cdkOption"],[3,"click"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Choose Toppings "),t.k0s(),t.j41(3,"ul",2),t.mxI("ngModelChange",function(p){return t.DH7(d.order,p)||(d.order=p),p}),t.Z7z(4,ue,2,2,"li",3,t.fX1),t.k0s()(),t.j41(6,"p"),t.EFF(7," Your order: "),t.j41(8,"strong"),t.EFF(9),t.nI1(10,"json"),t.k0s(),t.EFF(11,"\xa0 "),t.j41(12,"button",4),t.bIt("click",function(){return d.order=[]}),t.EFF(13,"Reset"),t.k0s()()),2&a&&(t.R7$(3),t.R50("ngModel",d.order),t.R7$(),t.Dyx(d.toppings),t.R7$(5),t.JRh(t.bMT(10,2,d.order)))},dependencies:[C,f.YN,f.BC,f.vS,x,E.TG],styles:[A]})}return l})(),y=(()=>{class l{constructor(){this.starters=["Sprigatito","Fuecoco","Quaxly"],this.starter=["Fuecoco"]}reset(){this.starter=["Fuecoco"]}static#e=this.\u0275fac=function(a){return new(a||l)};static#t=this.\u0275cmp=t.VBU({type:l,selectors:[["cdk-listbox-value-binding-example"]],exportAs:["cdkListboxValueBindingExample"],standalone:!0,features:[t.aNF],decls:14,vars:4,consts:[[1,"example-listbox-container"],["id","example-starter-pokemon-label",1,"example-listbox-label"],["cdkListbox","","aria-labelledby","example-starter-pokemon-label",1,"example-listbox",3,"cdkListboxValueChange","cdkListboxValue"],[1,"example-option",3,"cdkOption"],[3,"click"]],template:function(a,d){1&a&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2," Starter Pokemon "),t.k0s(),t.j41(3,"ul",2),t.bIt("cdkListboxValueChange",function(p){return d.starter=p.value}),t.Z7z(4,Ue,2,2,"li",3,t.fX1),t.k0s()(),t.j41(6,"p"),t.EFF(7," Your starter pokemon is "),t.j41(8,"strong"),t.EFF(9),t.nI1(10,"json"),t.k0s(),t.EFF(11,"\xa0 "),t.j41(12,"button",4),t.bIt("click",function(){return d.reset()}),t.EFF(13,"Reset"),t.k0s()()),2&a&&(t.R7$(3),t.Y8G("cdkListboxValue",d.starter),t.R7$(),t.Dyx(d.starters),t.R7$(5),t.JRh(t.bMT(10,2,d.starter)))},dependencies:[C,x,E.TG],styles:[A]})}return l})()},9417:(Rt,Q,g)=>{g.d(Q,{BC:()=>d,JD:()=>it,MJ:()=>j,MR:()=>Ze,Q0:()=>Ye,X1:()=>Dn,YN:()=>Fn,YS:()=>Te,ZU:()=>y,Zm:()=>W,cV:()=>Oe,cb:()=>u,cz:()=>v,gE:()=>G,j4:()=>we,k0:()=>C,kq:()=>V,l_:()=>et,me:()=>f,ok:()=>Mn,qT:()=>yt,vO:()=>l,vS:()=>qe,wz:()=>Se,xH:()=>Mt,xq:()=>ot,y7:()=>Dt});var t=g(4438),ee=g(177),_=g(4787),Le=g(696),Ne=g(5286),N=g(5006);let te=(()=>{class n{constructor(e,s){this._renderer=e,this._elementRef=s,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,s){this._renderer.setProperty(this._elementRef.nativeElement,e,s)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:n})}return n})(),M=(()=>{class n extends te{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,features:[t.Vt3]})}return n})();const V=new t.nKC(""),H={provide:V,useExisting:(0,t.Rfq)(()=>W),multi:!0};let W=(()=>{class n extends M{writeValue(e){this.setProperty("checked",e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(s,o){1&s&&t.bIt("change",function(h){return o.onChange(h.target.checked)})("blur",function(){return o.onTouched()})},features:[t.Jv_([H]),t.Vt3]})}return n})();const ne={provide:V,useExisting:(0,t.Rfq)(()=>f),multi:!0},Pe=new t.nKC("");let f=(()=>{class n extends te{constructor(e,s,o){super(e,s),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const n=(0,ee.QT)()?(0,ee.QT)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(Pe,8))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(s,o){1&s&&t.bIt("input",function(h){return o._handleInput(h.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(h){return o._compositionEnd(h.target.value)})},features:[t.Jv_([ne]),t.Vt3]})}return n})();function F(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function ie(n){return null!=n&&"number"==typeof n.length}const v=new t.nKC(""),D=new t.nKC(""),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class C{static min(i){return function Re(n){return i=>{if(F(i.value)||F(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e<n?{min:{min:n,actual:i.value}}:null}}(i)}static max(i){return function Be(n){return i=>{if(F(i.value)||F(n))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>n?{max:{max:n,actual:i.value}}:null}}(i)}static required(i){return E(i)}static requiredTrue(i){return se(i)}static email(i){return function oe(n){return F(n.value)||x.test(n.value)?null:{email:!0}}(i)}static minLength(i){return function re(n){return i=>F(i.value)||!ie(i.value)?null:i.value.length<n?{minlength:{requiredLength:n,actualLength:i.value.length}}:null}(i)}static maxLength(i){return function A(n){return i=>ie(i.value)&&i.value.length>n?{maxlength:{requiredLength:n,actualLength:i.value.length}}:null}(i)}static pattern(i){return function ae(n){if(!n)return P;let i,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),i=new RegExp(e)):(e=n.toString(),i=n),s=>{if(F(s.value))return null;const o=s.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(i)}static nullValidator(i){return null}static compose(i){return O(i)}static composeAsync(i){return pe(i)}}function E(n){return F(n.value)?{required:!0}:null}function se(n){return!0===n.value?null:{required:!0}}function P(n){return null}function le(n){return null!=n}function de(n){return(0,t.jNT)(n)?(0,_.H)(n):n}function ce(n){let i={};return n.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function ue(n,i){return i.map(e=>e(n))}function he(n){return n.map(i=>function Ue(n){return!n.validate}(i)?i:e=>i.validate(e))}function O(n){if(!n)return null;const i=n.filter(le);return 0==i.length?null:function(e){return ce(ue(e,i))}}function $(n){return null!=n?O(he(n)):null}function pe(n){if(!n)return null;const i=n.filter(le);return 0==i.length?null:function(e){const s=ue(e,i).map(de);return(0,Le.p)(s).pipe((0,N.T)(ce))}}function K(n){return null!=n?pe(he(n)):null}function fe(n,i){return null===n?[i]:Array.isArray(n)?[...n,i]:[n,i]}function ge(n){return n._rawValidators}function me(n){return n._rawAsyncValidators}function X(n){return n?Array.isArray(n)?n:[n]:[]}function R(n,i){return Array.isArray(n)?n.includes(i):n===i}function _e(n,i){const e=X(i);return X(n).forEach(o=>{R(e,o)||e.push(o)}),e}function ve(n,i){return X(i).filter(e=>!R(n,e))}class be{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=$(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class y extends be{get formDirective(){return null}get path(){return null}}class l extends be{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class m{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let d=(()=>{class n extends m{constructor(e){super(e)}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(l,2))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(s,o){2&s&&t.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[t.Vt3]})}return n})(),u=(()=>{class n extends m{constructor(e){super(e)}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(y,10))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(s,o){2&s&&t.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[t.Vt3]})}return n})();const z="VALID",Ce="INVALID",B="PENDING",J="DISABLED";class U{}class lt extends U{constructor(i,e){super(),this.value=i,this.source=e}}class je extends U{constructor(i,e){super(),this.pristine=i,this.source=e}}class He extends U{constructor(i,e){super(),this.touched=i,this.source=e}}class Ve extends U{constructor(i,e){super(),this.status=i,this.source=e}}class Ut extends U{constructor(i){super(),this.source=i}}class Gt extends U{constructor(i){super(),this.source=i}}function We(n){return(Me(n)?n.validators:n)||null}function $e(n,i){return(Me(i)?i.asyncValidators:n)||null}function Me(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function dt(n,i,e){const s=n.controls;if(!(i?Object.keys(s):s).length)throw new t.wOt(1e3,"");if(!s[e])throw new t.wOt(1001,"")}function ct(n,i,e){n._forEachChild((s,o)=>{if(void 0===e[o])throw new t.wOt(1002,"")})}class Fe{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Ne.B7,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===z}get invalid(){return this.status===Ce}get pending(){return this.status==B}get disabled(){return this.status===J}get enabled(){return this.status!==J}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(_e(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(_e(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(ve(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(ve(i,this._rawAsyncValidators))}hasValidator(i){return R(this._rawValidators,i)}hasAsyncValidator(i){return R(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){const e=!1===this.touched;this.touched=!0;const s=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched({...i,sourceControl:s}),e&&!1!==i.emitEvent&&this._events.next(new He(!0,s))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){const e=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const s=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:s})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,s),e&&!1!==i.emitEvent&&this._events.next(new He(!1,s))}markAsDirty(i={}){const e=!0===this.pristine;this.pristine=!1;const s=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty({...i,sourceControl:s}),e&&!1!==i.emitEvent&&this._events.next(new je(!1,s))}markAsPristine(i={}){const e=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const s=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,s),e&&!1!==i.emitEvent&&this._events.next(new je(!0,s))}markAsPending(i={}){this.status=B;const e=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new Ve(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending({...i,sourceControl:e})}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=J,this.errors=null,this._forEachChild(o=>{o.disable({...i,onlySelf:!0})}),this._updateValue();const s=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new lt(this.value,s)),this._events.next(new Ve(this.status,s)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e},this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=z,this._forEachChild(s=>{s.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e},this),this._onDisabledChange.forEach(s=>s(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const s=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===z||this.status===B)&&this._runAsyncValidator(s,i.emitEvent)}const e=i.sourceControl??this;!1!==i.emitEvent&&(this._events.next(new lt(this.value,e)),this._events.next(new Ve(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity({...i,sourceControl:e})}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?J:z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=B,this._hasOwnPendingAsyncValidator={emitEvent:!1!==e};const s=de(this.asyncValidator(this));this._asyncValidationSubscription=s.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent,this,e.shouldHaveEmitted)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((s,o)=>s&&s._find(o),this)}getError(i,e){const s=e?this.get(e):this;return s&&s.errors?s.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,s){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||s)&&this._events.next(new Ve(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,s)}_initObservables(){this.valueChanges=new t.bkB,this.statusChanges=new t.bkB}_calculateStatus(){return this._allControlsDisabled()?J:this.errors?Ce:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(B)?B:this._anyControlsHaveStatus(Ce)?Ce:z}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){const s=!this._anyControlsDirty(),o=this.pristine!==s;this.pristine=s,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),o&&this._events.next(new je(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new He(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Me(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function jt(n){return Array.isArray(n)?$(n):n||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function Ht(n){return Array.isArray(n)?K(n):n||null}(this._rawAsyncValidators)}}class G extends Fe{constructor(i,e,s){super(We(e),$e(s,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,s={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,s={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){ct(this,0,i),Object.keys(i).forEach(s=>{dt(this,!0,s),this.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(s=>{const o=this.controls[s];o&&o.patchValue(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((s,o)=>{s.reset(i?i[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,s)=>(i[s]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,s)=>!!s._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const s=this.controls[e];s&&i(s,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,s]of Object.entries(this.controls))if(this.contains(e)&&i(s))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,s,o)=>((s.enabled||this.disabled)&&(e[o]=s.value),e))}_reduceChildren(i,e){let s=i;return this._forEachChild((o,c)=>{s=e(s,o,c)}),s}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class ut extends G{}const I=new t.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>q}),q="always";function De(n,i){return[...i.path,n]}function Y(n,i,e=q){Ke(n,i),i.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(n.disabled),function $t(n,i){i.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ht(n,i)})}(n,i),function Xt(n,i){const e=(s,o)=>{i.valueAccessor.writeValue(s),o&&i.viewToModelUpdate(s)};n.registerOnChange(e),i._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,i),function Kt(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ht(n,i),"submit"!==n.updateOn&&n.markAsTouched()})}(n,i),function Wt(n,i){if(i.valueAccessor.setDisabledState){const e=s=>{i.valueAccessor.setDisabledState(s)};n.registerOnDisabledChange(e),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,i)}function ke(n,i,e=!0){const s=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(s),i.valueAccessor.registerOnTouched(s)),Ae(n,i),n&&(i._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Ee(n,i){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function Ke(n,i){const e=ge(n);null!==i.validator?n.setValidators(fe(e,i.validator)):"function"==typeof e&&n.setValidators([e]);const s=me(n);null!==i.asyncValidator?n.setAsyncValidators(fe(s,i.asyncValidator)):"function"==typeof s&&n.setAsyncValidators([s]);const o=()=>n.updateValueAndValidity();Ee(i._rawValidators,o),Ee(i._rawAsyncValidators,o)}function Ae(n,i){let e=!1;if(null!==n){if(null!==i.validator){const o=ge(n);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==i.validator);c.length!==o.length&&(e=!0,n.setValidators(c))}}if(null!==i.asyncValidator){const o=me(n);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==i.asyncValidator);c.length!==o.length&&(e=!0,n.setAsyncValidators(c))}}}const s=()=>{};return Ee(i._rawValidators,s),Ee(i._rawAsyncValidators,s),e}function ht(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function pt(n,i){Ke(n,i)}function ze(n,i){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function ft(n,i){n._syncPendingControls(),i.forEach(e=>{const s=e.control;"submit"===s.updateOn&&s._pendingChange&&(e.viewToModelUpdate(s._pendingValue),s._pendingChange=!1)})}function Je(n,i){if(!i)return null;let e,s,o;return Array.isArray(i),i.forEach(c=>{c.constructor===f?e=c:function qt(n){return Object.getPrototypeOf(n.constructor)===M}(c)?s=c:o=c}),o||s||e||null}const Zt={provide:y,useExisting:(0,t.Rfq)(()=>Oe)},Z=Promise.resolve();let Oe=(()=>{class n extends y{constructor(e,s,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.bkB,this.form=new G({},$(e),K(s))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Z.then(()=>{const s=this._findContainer(e.path);e.control=s.registerControl(e.name,e.control),Y(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Z.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Z.then(()=>{const s=this._findContainer(e.path),o=new G({});pt(o,e),s.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Z.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,s){Z.then(()=>{this.form.get(e.path).setValue(s)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ft(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(v,10),t.rXU(D,10),t.rXU(I,8))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(s,o){1&s&&t.bIt("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([Zt]),t.Vt3]})}return n})();function gt(n,i){const e=n.indexOf(i);e>-1&&n.splice(e,1)}function mt(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const j=class extends Fe{constructor(i=null,e,s){super(We(e),$e(s,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Me(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=mt(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(s=>s(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){gt(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){gt(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){mt(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},tn={provide:l,useExisting:(0,t.Rfq)(()=>qe)},bt=Promise.resolve();let qe=(()=>{class n extends l{constructor(e,s,o,c,h,w){super(),this._changeDetectorRef=h,this.callSetDisabledState=w,this.control=new j,this._registered=!1,this.name="",this.update=new t.bkB,this._parent=e,this._setValidators(s),this._setAsyncValidators(o),this.valueAccessor=Je(0,c)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const s=e.name.previousValue;this.formDirective.removeControl({name:s,path:this._getPath(s)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ze(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Y(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){bt.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const s=e.isDisabled.currentValue,o=0!==s&&(0,t.L39)(s);bt.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?De(e,this._parent):[e]}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(y,9),t.rXU(v,10),t.rXU(D,10),t.rXU(V,10),t.rXU(t.gRc,8),t.rXU(I,8))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.Jv_([tn]),t.Vt3,t.OA$]})}return n})(),yt=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return n})();const nn={provide:V,useExisting:(0,t.Rfq)(()=>Ye),multi:!0};let Ye=(()=>{class n extends M{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=s=>{e(""==s?null:parseFloat(s))}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(s,o){1&s&&t.bIt("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},features:[t.Jv_([nn]),t.Vt3]})}return n})();const rn={provide:V,useExisting:(0,t.Rfq)(()=>Ze),multi:!0};let Ze=(()=>{class n extends M{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=s=>{e(""==s?null:parseFloat(s))}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(s,o){1&s&&t.bIt("change",function(h){return o.onChange(h.target.value)})("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},features:[t.Jv_([rn]),t.Vt3]})}return n})();const Qe=new t.nKC(""),an={provide:l,useExisting:(0,t.Rfq)(()=>et)};let et=(()=>{class n extends l{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,s,o,c,h){super(),this._ngModelWarningConfig=c,this.callSetDisabledState=h,this.update=new t.bkB,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(s),this.valueAccessor=Je(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const s=e.form.previousValue;s&&ke(s,this,!1),Y(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ze(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ke(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(v,10),t.rXU(D,10),t.rXU(V,10),t.rXU(Qe,8),t.rXU(I,8))};static#n=this.\u0275dir=t.FsC({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.Jv_([an]),t.Vt3,t.OA$]})}return n})();const ln={provide:y,useExisting:(0,t.Rfq)(()=>we)};let we=(()=>{class n extends y{constructor(e,s,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.bkB,this._setValidators(e),this._setAsyncValidators(s)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ae(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const s=this.form.get(e.path);return Y(s,e,this.callSetDisabledState),s.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),s}getControl(e){return this.form.get(e.path)}removeControl(e){ke(e.control||null,e,!1),function Yt(n,i){const e=n.indexOf(i);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,s){this.form.get(e.path).setValue(s)}onSubmit(e){return this.submitted=!0,ft(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ut(this.control)),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1,this.form._events.next(new Gt(this.form))}_updateDomValue(){this.directives.forEach(e=>{const s=e.control,o=this.form.get(e.path);s!==o&&(ke(s||null,e),(n=>n instanceof j)(o)&&(Y(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const s=this.form.get(e.path);pt(s,e),s.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const s=this.form.get(e.path);s&&function zt(n,i){return Ae(n,i)}(s,e)&&s.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ke(this.form,this),this._oldForm&&Ae(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(v,10),t.rXU(D,10),t.rXU(I,8))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","formGroup",""]],hostBindings:function(s,o){1&s&&t.bIt("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([ln]),t.Vt3,t.OA$]})}return n})();const un={provide:l,useExisting:(0,t.Rfq)(()=>it)};let it=(()=>{class n extends l{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,s,o,c,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.name=null,this.update=new t.bkB,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(s),this._setAsyncValidators(o),this.valueAccessor=Je(0,c)}ngOnChanges(e){this._added||this._setUpControl(),ze(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return De(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(y,13),t.rXU(v,10),t.rXU(D,10),t.rXU(V,10),t.rXU(Qe,8))};static#n=this.\u0275dir=t.FsC({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.Jv_([un]),t.Vt3,t.OA$]})}return n})();const hn={provide:V,useExisting:(0,t.Rfq)(()=>Se),multi:!0};function Vt(n,i){return null==n?`${i}`:(i&&"object"==typeof i&&(i="Object"),`${n}: ${i}`.slice(0,50))}let Se=(()=>{class n extends M{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=Vt(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=s=>{this.value=this._getOptionValue(s),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const s of this._optionMap.keys())if(this._compareWith(this._optionMap.get(s),e))return s;return null}_getOptionValue(e){const s=function pn(n){return n.split(":")[0]}(e);return this._optionMap.has(s)?this._optionMap.get(s):e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(s,o){1&s&&t.bIt("change",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.Jv_([hn]),t.Vt3]})}return n})(),Mt=(()=>{class n{constructor(e,s,o){this._element=e,this._renderer=s,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Vt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Se,9))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})();const fn={provide:V,useExisting:(0,t.Rfq)(()=>st),multi:!0};function Ft(n,i){return null==n?`${i}`:("string"==typeof i&&(i=`'${i}'`),i&&"object"==typeof i&&(i="Object"),`${n}: ${i}`.slice(0,50))}let st=(()=>{class n extends M{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let s;if(this.value=e,Array.isArray(e)){const o=e.map(c=>this._getOptionId(c));s=(c,h)=>{c._setSelected(o.indexOf(h.toString())>-1)}}else s=(o,c)=>{o._setSelected(!1)};this._optionMap.forEach(s)}registerOnChange(e){this.onChange=s=>{const o=[],c=s.selectedOptions;if(void 0!==c){const h=c;for(let w=0;w<h.length;w++){const rt=this._getOptionValue(h[w].value);o.push(rt)}}else{const h=s.options;for(let w=0;w<h.length;w++){const Ie=h[w];if(Ie.selected){const rt=this._getOptionValue(Ie.value);o.push(rt)}}}this.value=o,e(o)}}_registerOption(e){const s=(this._idCounter++).toString();return this._optionMap.set(s,e),s}_getOptionId(e){for(const s of this._optionMap.keys())if(this._compareWith(this._optionMap.get(s)._value,e))return s;return null}_getOptionValue(e){const s=function gn(n){return n.split(":")[0]}(e);return this._optionMap.has(s)?this._optionMap.get(s)._value:e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(s,o){1&s&&t.bIt("change",function(h){return o.onChange(h.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.Jv_([fn]),t.Vt3]})}return n})(),Dt=(()=>{class n{constructor(e,s,o){this._element=e,this._renderer=s,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Ft(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ft(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(s){return new(s||n)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(st,9))};static#t=this.\u0275dir=t.FsC({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})(),L=(()=>{class n{constructor(){this._validator=P}ngOnChanges(e){if(this.inputName in e){const s=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(s),this._validator=this._enabled?this.createValidator(s):P,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275dir=t.FsC({type:n,features:[t.OA$]})}return n})();const vn={provide:v,useExisting:(0,t.Rfq)(()=>Te),multi:!0},bn={provide:v,useExisting:(0,t.Rfq)(()=>ot),multi:!0};let Te=(()=>{class n extends L{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.L39,this.createValidator=e=>E}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(s,o){2&s&&t.BMQ("required",o._enabled?"":null)},inputs:{required:"required"},features:[t.Jv_([vn]),t.Vt3]})}return n})(),ot=(()=>{class n extends Te{constructor(){super(...arguments),this.createValidator=e=>se}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=t.xGo(n)))(o||n)}})();static#t=this.\u0275dir=t.FsC({type:n,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(s,o){2&s&&t.BMQ("required",o._enabled?"":null)},features:[t.Jv_([bn]),t.Vt3]})}return n})(),Lt=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({})}return n})();class Nt extends Fe{constructor(i,e,s){super(We(e),$e(s,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,s={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:s.emitEvent})}removeAt(i,e={}){let s=this._adjustIndex(i);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,s={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){ct(this,0,i),i.forEach((s,o)=>{dt(this,!1,o),this.at(o).setValue(s,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((s,o)=>{this.at(o)&&this.at(o).patchValue(s,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((s,o)=>{s.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,s)=>!!s._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,s)=>{i(e,s)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function Pt(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Mn=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,s=null){const o=this._reduceControls(e);let c={};return Pt(s)?c=s:null!==s&&(c.validators=s.validator,c.asyncValidators=s.asyncValidator),new G(o,c)}record(e,s=null){const o=this._reduceControls(e);return new ut(o,s)}control(e,s,o){let c={};return this.useNonNullable?(Pt(s)?c=s:(c.validators=s,c.asyncValidators=o),new j(e,{...c,nonNullable:!0})):new j(e,s,o)}array(e,s,o){const c=e.map(h=>this._createControl(h));return new Nt(c,s,o)}_reduceControls(e){const s={};return Object.keys(e).forEach(o=>{s[o]=this._createControl(e[o])}),s}_createControl(e){return e instanceof j||e instanceof Fe?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:I,useValue:e.callSetDisabledState??q}]}}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[Lt]})}return n})(),Dn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Qe,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:I,useValue:e.callSetDisabledState??q}]}}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[Lt]})}return n})()}}]);