File: //usr/local/CyberCP/public/imunifyav/assets/static/shared-dependencies/forms.min.80f675b7c98f.js
System.register(["@angular/core","@angular/common","rxjs","rxjs/operators"],function(t){"use strict";var e,n,i,r,s,o,a,l,u,c,h,d,p,g;return{setters:[function(t){e=t,t.Directive,n=t.InjectionToken,i=t.forwardRef,t.Optional,t.Inject,t.Self,r=t.EventEmitter,t.Input,t.Host,t.SkipSelf,s=t["\u0275coerceToBoolean"],o=t.ChangeDetectorRef,t.Output,t.NgModule,t.Injectable,a=t["\u0275RuntimeError"],l=t.inject,u=t.Version,c=t["\u0275isPromise"],t["\u0275isObservable"]},function(t){h=t["\u0275getDOM"]},function(t){d=t.forkJoin,p=t.from},function(t){g=t.map}],execute:function(){class f{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}f.\u0275fac=function(t){return new(t||f)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef))},f.\u0275dir=e.\u0275\u0275defineDirective({type:f});class m extends f{}m.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(m)))(n||m)}}(),m.\u0275dir=e.\u0275\u0275defineDirective({type:m,features:[e.\u0275\u0275InheritDefinitionFeature]});const _=t("NG_VALUE_ACCESSOR",new n("NgValueAccessor")),v={provide:_,useExisting:i(()=>y),multi:!0};class y extends m{writeValue(t){this.setProperty("checked",t)}}t("CheckboxControlValueAccessor",y),y.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(y)))(n||y)}}(),y.\u0275dir=e.\u0275\u0275defineDirective({type:y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("change",function(t){return n.onChange(t.target.checked)})("blur",function(){return n.onTouched()})},features:[e.\u0275\u0275ProvidersFeature([v]),e.\u0275\u0275InheritDefinitionFeature]});const C={provide:_,useExisting:i(()=>b),multi:!0};const V=t("COMPOSITION_BUFFER_MODE",new n("CompositionEventMode"));class b extends f{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=h()?h().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){const e=null==t?"":t;this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}t("DefaultValueAccessor",b),b.\u0275fac=function(t){return new(t||b)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(V,8))},b.\u0275dir=e.\u0275\u0275defineDirective({type:b,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(t,n){1&t&&e.\u0275\u0275listener("input",function(t){return n._handleInput(t.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(t){return n._compositionEnd(t.target.value)})},features:[e.\u0275\u0275ProvidersFeature([C]),e.\u0275\u0275InheritDefinitionFeature]});function A(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function D(t){return null!=t&&"number"==typeof t.length}const F=t("NG_VALIDATORS",new n("NgValidators")),E=t("NG_ASYNC_VALIDATORS",new n("NgAsyncValidators")),O=/^(?=.{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])?)*$/;function I(t){return e=>{if(A(e.value)||A(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}function w(t){return e=>{if(A(e.value)||A(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function S(t){return A(t.value)?{required:!0}:null}function x(t){return!0===t.value?null:{required:!0}}function M(t){return A(t.value)||O.test(t.value)?null:{email:!0}}function N(t){return e=>A(e.value)||!D(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function P(t){return e=>D(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function k(t){if(!t)return j;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(A(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function j(t){return null}function T(t){return null!=t}function U(t){const e=c(t)?p(t):t;return e}function R(t){let e={};return t.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function G(t,e){return e.map(e=>e(t))}function B(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function W(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return R(G(t,e))}}function q(t){return null!=t?W(B(t)):null}function z(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){const n=G(t,e).map(U);return d(n).pipe(g(R))}}function L(t){return null!=t?z(B(t)):null}function $(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Z(t){return t._rawValidators}function H(t){return t._rawAsyncValidators}function J(t){return t?Array.isArray(t)?t:[t]:[]}function Y(t,e){return Array.isArray(t)?t.includes(e):t===e}function K(t,e){const n=J(e);return J(t).forEach(t=>{Y(n,t)||n.push(t)}),n}function Q(t,e){return J(e).filter(e=>!Y(t,e))}t("Validators",class{static min(t){return I(t)}static max(t){return w(t)}static required(t){return S(t)}static requiredTrue(t){return x(t)}static email(t){return M(t)}static minLength(t){return N(t)}static maxLength(t){return P(t)}static pattern(t){return k(t)}static nullValidator(t){return null}static compose(t){return W(t)}static composeAsync(t){return z(t)}});class X{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(t){this._rawValidators=t||[],this._composedValidatorFn=q(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=L(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}t("AbstractControlDirective",X);class tt extends X{get formDirective(){return null}get path(){return null}}t("ControlContainer",tt);class et extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}t("NgControl",et);class nt{constructor(t){this._cd=t}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}}const it={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"};class rt extends nt{constructor(t){super(t)}}t("NgControlStatus",rt),rt.\u0275fac=function(t){return new(t||rt)(e.\u0275\u0275directiveInject(et,2))},rt.\u0275dir=e.\u0275\u0275defineDirective({type:rt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&e.\u0275\u0275classProp("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[e.\u0275\u0275InheritDefinitionFeature]});class st extends nt{constructor(t){super(t)}}t("NgControlStatusGroup",st),st.\u0275fac=function(t){return new(t||st)(e.\u0275\u0275directiveInject(tt,10))},st.\u0275dir=e.\u0275\u0275defineDirective({type:st,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&e.\u0275\u0275classProp("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[e.\u0275\u0275InheritDefinitionFeature]});const ot="VALID",at="INVALID",lt="PENDING",ut="DISABLED";function ct(t){return(gt(t)?t.validators:t)||null}function ht(t){return Array.isArray(t)?q(t):t||null}function dt(t,e){return(gt(e)?e.asyncValidators:t)||null}function pt(t){return Array.isArray(t)?L(t):t||null}function gt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function ft(t,e,n){const i=t.controls;if(!(e?Object.keys(i):i).length)throw new a(1e3,"");if(!i[n])throw new a(1001,"")}function mt(t,e,n){t._forEachChild((t,e)=>{if(void 0===n[e])throw new a(1002,"")})}class _t{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ht(this._rawValidators),this._composedAsyncValidatorFn=pt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ot}get invalid(){return this.status===at}get pending(){return this.status==lt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ht(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pt(t)}addValidators(t){this.setValidators(K(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(K(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Q(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Q(t,this._rawAsyncValidators))}hasValidator(t){return Y(this._rawValidators,t)}hasAsyncValidator(t){return Y(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=lt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ut,this.errors=null,this._forEachChild(e=>{e.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ot,this._forEachChild(e=>{e.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ot&&this.status!==lt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:ot}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lt,this._hasOwnPendingAsyncValidator=!0;const e=U(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e?null:(Array.isArray(e)||(e=e.split(".")),0===e.length?null:e.reduce((t,e)=>t&&t._find(e),this))}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r,this.statusChanges=new r}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lt)?lt:this._anyControlsHaveStatus(at)?at:ot}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){gt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}}t("AbstractControl",_t);class vt extends _t{constructor(t,e,n){super(ct(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){mt(this,0,t),Object.keys(t).forEach(n=>{ft(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{const i=this.controls[n];i&&i.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}t("FormGroup",vt);t("UntypedFormGroup",vt);class yt extends vt{}function Ct(t,e){return[...e.path,t]}function Vt(t,e){Dt(t,e),e.valueAccessor.writeValue(t.value),t.disabled&&e.valueAccessor.setDisabledState?.(!0),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Et(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Et(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function bt(t,e,n=!0){const i=()=>{0};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Ft(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function At(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Dt(t,e){const n=Z(t);null!==e.validator?t.setValidators($(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=H(t);null!==e.asyncValidator?t.setAsyncValidators($(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();At(e._rawValidators,r),At(e._rawAsyncValidators,r)}function Ft(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=Z(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=H(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return At(e._rawValidators,i),At(e._rawAsyncValidators,i),n}function Et(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ot(t,e){Dt(t,e)}function It(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function wt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function St(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{var e;t.constructor===b?n=t:(e=t,Object.getPrototypeOf(e.constructor)===m?i=t:r=t)}),r||(i||(n||null))}t("FormRecord",yt);const xt={provide:tt,useExisting:i(()=>Nt)},Mt=Promise.resolve();class Nt extends tt{constructor(t,e){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new r,this.form=new vt({},q(t),L(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Vt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Mt.then(()=>{const e=this._findContainer(t.path),n=new vt({});Ot(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,wt(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}function Pt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function kt(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}t("NgForm",Nt),Nt.\u0275fac=function(t){return new(t||Nt)(e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10))},Nt.\u0275dir=e.\u0275\u0275defineDirective({type:Nt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("submit",function(t){return n.onSubmit(t)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([xt]),e.\u0275\u0275InheritDefinitionFeature]});const jt=t("FormControl",class extends _t{constructor(t=null,e,n){super(ct(e),dt(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gt(e)&&(e.nonNullable||e.initialValueIsDefault)&&(kt(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Pt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Pt(this._onDisabledChange,t)}_forEachChild(t){}_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(t){kt(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}});t("UntypedFormControl",jt);class Tt extends tt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ct(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}t("AbstractFormGroupDirective",Tt),Tt.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Tt)))(n||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,features:[e.\u0275\u0275InheritDefinitionFeature]});const Ut={provide:tt,useExisting:i(()=>Rt)};class Rt extends Tt{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){!(this._parent instanceof Rt)&&this._parent,0}}t("NgModelGroup",Rt),Rt.\u0275fac=function(t){return new(t||Rt)(e.\u0275\u0275directiveInject(tt,5),e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10))},Rt.\u0275dir=e.\u0275\u0275defineDirective({type:Rt,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[e.\u0275\u0275ProvidersFeature([Ut]),e.\u0275\u0275InheritDefinitionFeature]});const Gt={provide:et,useExisting:i(()=>Wt)},Bt=Promise.resolve();class Wt extends et{constructor(t,e,n,i,s){super(),this._changeDetectorRef=s,this.control=new jt,this._registered=!1,this.update=new r,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=St(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const e=t.name.previousValue;this.formDirective.removeControl({name:e,path:this._getPath(e)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),It(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Vt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){0}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Bt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=0!==e&&s(e);Bt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ct(t,this._parent):[t]}}t("NgModel",Wt),Wt.\u0275fac=function(t){return new(t||Wt)(e.\u0275\u0275directiveInject(tt,9),e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10),e.\u0275\u0275directiveInject(_,10),e.\u0275\u0275directiveInject(o,8))},Wt.\u0275dir=e.\u0275\u0275defineDirective({type:Wt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e.\u0275\u0275ProvidersFeature([Gt]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]});class qt{}t("\u0275NgNoValidate",qt),qt.\u0275fac=function(t){return new(t||qt)},qt.\u0275dir=e.\u0275\u0275defineDirective({type:qt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});const zt={provide:_,useExisting:i(()=>Lt),multi:!0};class Lt extends m{writeValue(t){const e=null==t?"":t;this.setProperty("value",e)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}t("NumberValueAccessor",Lt),Lt.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Lt)))(n||Lt)}}(),Lt.\u0275dir=e.\u0275\u0275defineDirective({type:Lt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("input",function(t){return n.onChange(t.target.value)})("blur",function(){return n.onTouched()})},features:[e.\u0275\u0275ProvidersFeature([zt]),e.\u0275\u0275InheritDefinitionFeature]});const $t={provide:_,useExisting:i(()=>Jt),multi:!0};class Zt{}Zt.\u0275fac=function(t){return new(t||Zt)},Zt.\u0275mod=e.\u0275\u0275defineNgModule({type:Zt}),Zt.\u0275inj=e.\u0275\u0275defineInjector({});class Ht{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)}}Ht.\u0275fac=function(t){return new(t||Ht)},Ht.\u0275prov=e.\u0275\u0275defineInjectable({token:Ht,factory:Ht.\u0275fac,providedIn:Zt});class Jt extends m{constructor(t,e,n,i){super(t,e),this._registry=n,this._injector=i,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}t("RadioControlValueAccessor",Jt),Jt.\u0275fac=function(t){return new(t||Jt)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(Ht),e.\u0275\u0275directiveInject(e.Injector))},Jt.\u0275dir=e.\u0275\u0275defineDirective({type:Jt,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e.\u0275\u0275ProvidersFeature([$t]),e.\u0275\u0275InheritDefinitionFeature]});const Yt={provide:_,useExisting:i(()=>Kt),multi:!0};class Kt extends m{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}t("RangeValueAccessor",Kt),Kt.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Kt)))(n||Kt)}}(),Kt.\u0275dir=e.\u0275\u0275defineDirective({type:Kt,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("change",function(t){return n.onChange(t.target.value)})("input",function(t){return n.onChange(t.target.value)})("blur",function(){return n.onTouched()})},features:[e.\u0275\u0275ProvidersFeature([Yt]),e.\u0275\u0275InheritDefinitionFeature]});const Qt=new n("NgModelWithFormControlWarning"),Xt={provide:et,useExisting:i(()=>te)};class te extends et{constructor(t,e,n,i){super(),this._ngModelWarningConfig=i,this.update=new r,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=St(0,n)}set isDisabled(t){0}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&bt(e,this,!1),Vt(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}It(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}t("FormControlDirective",te),te._ngModelWarningSentOnce=!1,te.\u0275fac=function(t){return new(t||te)(e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10),e.\u0275\u0275directiveInject(_,10),e.\u0275\u0275directiveInject(Qt,8))},te.\u0275dir=e.\u0275\u0275defineDirective({type:te,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([Xt]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]});const ee={provide:tt,useExisting:i(()=>ne)};class ne extends tt{constructor(t,e){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Vt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){bt(t.control||null,t,!1),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,wt(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(bt(e||null,t),n instanceof jt&&(Vt(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Ot(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);if(e){const n=function(t,e){return Ft(t,e)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Dt(this.form,this),this._oldForm&&Ft(this._oldForm,this)}_checkFormPresent(){this.form,0}}t("FormGroupDirective",ne),ne.\u0275fac=function(t){return new(t||ne)(e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10))},ne.\u0275dir=e.\u0275\u0275defineDirective({type:ne,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("submit",function(t){return n.onSubmit(t)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([ee]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]});const ie={provide:tt,useExisting:i(()=>re)};class re extends Tt{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){ae(this._parent),0}}t("FormGroupName",re),re.\u0275fac=function(t){return new(t||re)(e.\u0275\u0275directiveInject(tt,13),e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10))},re.\u0275dir=e.\u0275\u0275defineDirective({type:re,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e.\u0275\u0275ProvidersFeature([ie]),e.\u0275\u0275InheritDefinitionFeature]});const se={provide:tt,useExisting:i(()=>oe)};class oe extends tt{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ct(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ae(this._parent),0}}function ae(t){return!(t instanceof re||t instanceof ne||t instanceof oe)}t("FormArrayName",oe),oe.\u0275fac=function(t){return new(t||oe)(e.\u0275\u0275directiveInject(tt,13),e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10))},oe.\u0275dir=e.\u0275\u0275defineDirective({type:oe,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e.\u0275\u0275ProvidersFeature([se]),e.\u0275\u0275InheritDefinitionFeature]});const le={provide:et,useExisting:i(()=>ue)};class ue extends et{constructor(t,e,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new r,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=St(0,i)}set isDisabled(t){0}ngOnChanges(t){this._added||this._setUpControl(),It(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ct(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){0}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}t("FormControlName",ue),ue._ngModelWarningSentOnce=!1,ue.\u0275fac=function(t){return new(t||ue)(e.\u0275\u0275directiveInject(tt,13),e.\u0275\u0275directiveInject(F,10),e.\u0275\u0275directiveInject(E,10),e.\u0275\u0275directiveInject(_,10),e.\u0275\u0275directiveInject(Qt,8))},ue.\u0275dir=e.\u0275\u0275defineDirective({type:ue,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e.\u0275\u0275ProvidersFeature([le]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]});const ce={provide:_,useExisting:i(()=>de),multi:!0};function he(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}class de extends m{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=he(this._getOptionId(t),t);this.setProperty("value",e)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}t("SelectControlValueAccessor",de),de.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(de)))(n||de)}}(),de.\u0275dir=e.\u0275\u0275defineDirective({type:de,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("change",function(t){return n.onChange(t.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[e.\u0275\u0275ProvidersFeature([ce]),e.\u0275\u0275InheritDefinitionFeature]});class pe{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(he(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}t("NgSelectOption",pe),pe.\u0275fac=function(t){return new(t||pe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(de,9))},pe.\u0275dir=e.\u0275\u0275defineDirective({type:pe,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});const ge={provide:_,useExisting:i(()=>me),multi:!0};function fe(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}class me extends m{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[],i=e.selectedOptions;if(void 0!==i){const t=i;for(let e=0;e<t.length;e++){const i=t[e],r=this._getOptionValue(i.value);n.push(r)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t[e];if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}t("SelectMultipleControlValueAccessor",me),me.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(me)))(n||me)}}(),me.\u0275dir=e.\u0275\u0275defineDirective({type:me,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,n){1&t&&e.\u0275\u0275listener("change",function(t){return n.onChange(t.target)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[e.\u0275\u0275ProvidersFeature([ge]),e.\u0275\u0275InheritDefinitionFeature]});class _e{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(fe(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(fe(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function ve(t){return"number"==typeof t?t:parseInt(t,10)}function ye(t){return"number"==typeof t?t:parseFloat(t)}t("\u0275NgSelectMultipleOption",_e),_e.\u0275fac=function(t){return new(t||_e)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(me,9))},_e.\u0275dir=e.\u0275\u0275defineDirective({type:_e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});class Ce{constructor(){this._validator=j}ngOnChanges(t){if(this.inputName in t){const e=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(e),this._validator=this._enabled?this.createValidator(e):j,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}Ce.\u0275fac=function(t){return new(t||Ce)},Ce.\u0275dir=e.\u0275\u0275defineDirective({type:Ce,features:[e.\u0275\u0275NgOnChangesFeature]});const Ve={provide:F,useExisting:i(()=>be),multi:!0};class be extends Ce{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>ye(t),this.createValidator=t=>w(t)}}t("MaxValidator",be),be.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(be)))(n||be)}}(),be.\u0275dir=e.\u0275\u0275defineDirective({type:be,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[e.\u0275\u0275ProvidersFeature([Ve]),e.\u0275\u0275InheritDefinitionFeature]});const Ae={provide:F,useExisting:i(()=>De),multi:!0};class De extends Ce{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>ye(t),this.createValidator=t=>I(t)}}t("MinValidator",De),De.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(De)))(n||De)}}(),De.\u0275dir=e.\u0275\u0275defineDirective({type:De,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[e.\u0275\u0275ProvidersFeature([Ae]),e.\u0275\u0275InheritDefinitionFeature]});const Fe={provide:F,useExisting:i(()=>Oe),multi:!0},Ee={provide:F,useExisting:i(()=>Ie),multi:!0};class Oe extends Ce{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=s,this.createValidator=t=>S}enabled(t){return t}}t("RequiredValidator",Oe),Oe.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Oe)))(n||Oe)}}(),Oe.\u0275dir=e.\u0275\u0275defineDirective({type:Oe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("required",n._enabled?"":null)},inputs:{required:"required"},features:[e.\u0275\u0275ProvidersFeature([Fe]),e.\u0275\u0275InheritDefinitionFeature]});class Ie extends Oe{constructor(){super(...arguments),this.createValidator=t=>x}}t("CheckboxRequiredValidator",Ie),Ie.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Ie)))(n||Ie)}}(),Ie.\u0275dir=e.\u0275\u0275defineDirective({type:Ie,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("required",n._enabled?"":null)},features:[e.\u0275\u0275ProvidersFeature([Ee]),e.\u0275\u0275InheritDefinitionFeature]});const we={provide:F,useExisting:i(()=>Se),multi:!0};class Se extends Ce{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=s,this.createValidator=t=>M}enabled(t){return t}}t("EmailValidator",Se),Se.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Se)))(n||Se)}}(),Se.\u0275dir=e.\u0275\u0275defineDirective({type:Se,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[e.\u0275\u0275ProvidersFeature([we]),e.\u0275\u0275InheritDefinitionFeature]});const xe={provide:F,useExisting:i(()=>Me),multi:!0};class Me extends Ce{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>ve(t),this.createValidator=t=>N(t)}}t("MinLengthValidator",Me),Me.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Me)))(n||Me)}}(),Me.\u0275dir=e.\u0275\u0275defineDirective({type:Me,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[e.\u0275\u0275ProvidersFeature([xe]),e.\u0275\u0275InheritDefinitionFeature]});const Ne={provide:F,useExisting:i(()=>Pe),multi:!0};class Pe extends Ce{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>ve(t),this.createValidator=t=>P(t)}}t("MaxLengthValidator",Pe),Pe.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(Pe)))(n||Pe)}}(),Pe.\u0275dir=e.\u0275\u0275defineDirective({type:Pe,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e.\u0275\u0275ProvidersFeature([Ne]),e.\u0275\u0275InheritDefinitionFeature]});const ke={provide:F,useExisting:i(()=>je),multi:!0};class je extends Ce{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>k(t)}}t("PatternValidator",je),je.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(je)))(n||je)}}(),je.\u0275dir=e.\u0275\u0275defineDirective({type:je,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&e.\u0275\u0275attribute("pattern",n._enabled?n.pattern:null)},inputs:{pattern:"pattern"},features:[e.\u0275\u0275ProvidersFeature([ke]),e.\u0275\u0275InheritDefinitionFeature]});class Te{}t("\u0275InternalFormsSharedModule",Te),Te.\u0275fac=function(t){return new(t||Te)},Te.\u0275mod=e.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=e.\u0275\u0275defineInjector({imports:[Zt]});class Ue{}t("FormsModule",Ue),Ue.\u0275fac=function(t){return new(t||Ue)},Ue.\u0275mod=e.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=e.\u0275\u0275defineInjector({imports:[Te]});class Re{static withConfig(t){return{ngModule:Re,providers:[{provide:Qt,useValue:t.warnOnNgModelWithFormControl}]}}}t("ReactiveFormsModule",Re),Re.\u0275fac=function(t){return new(t||Re)},Re.\u0275mod=e.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=e.\u0275\u0275defineInjector({imports:[Te]});class Ge extends _t{constructor(t,e,n){super(ct(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){mt(this,0,t),t.forEach((t,n)=>{ft(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}t("FormArray",Ge);t("UntypedFormArray",Ge);function Be(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}class We{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new We;return t.useNonNullable=!0,t}group(t,e=null){const n=this._reduceControls(t);let i={};return Be(e)?i=e:null!==e&&(i.validators=e.validator,i.asyncValidators=e.asyncValidator),new vt(n,i)}record(t,e=null){const n=this._reduceControls(t);return new yt(n,e)}control(t,e,n){let i={};return this.useNonNullable?(Be(e)?i=e:(i.validators=e,i.asyncValidators=n),new jt(t,{...i,nonNullable:!0})):new jt(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new Ge(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){if(t instanceof jt)return t;if(t instanceof _t)return t;if(Array.isArray(t)){const e=t[0],n=t.length>1?t[1]:null,i=t.length>2?t[2]:null;return this.control(e,n,i)}return this.control(t)}}t("FormBuilder",We),We.\u0275fac=function(t){return new(t||We)},We.\u0275prov=e.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac,providedIn:Re});class qe{}t("NonNullableFormBuilder",qe),qe.\u0275fac=function(t){return new(t||qe)},qe.\u0275prov=e.\u0275\u0275defineInjectable({token:qe,factory:function(){return l(We).nonNullable},providedIn:Re});class ze extends We{group(t,e=null){return super.group(t,e)}control(t,e,n){return super.control(t,e,n)}array(t,e,n){return super.array(t,e,n)}}t("UntypedFormBuilder",ze),ze.\u0275fac=function(){let t;return function(n){return(t||(t=e.\u0275\u0275getInheritedFactory(ze)))(n||ze)}}(),ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:Re});t("VERSION",new u("14.2.12"))}}});