@skill-map/cli 0.23.1 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +0,0 @@
1
- import{$b as We,Ca as Le,Fb as N,I as se,J as ae,Jc as Ye,K as T,La as Be,M as E,Ma as ke,Mc as me,Nc as L,O as I,Qb as b,Rb as C,Tc as X,U as xe,Ub as u,Uc as Ke,Vb as o,Xa as Re,Yc as Je,Z as U,ac as S,ba as D,ca as W,cc as ue,d as Ie,da as Te,db as je,ea as M,ec as ce,ga as le,gb as Ge,h as Ne,hb as He,n as Se,nc as qe,pa as de,qa as v,rb as $e,t as Oe,tb as Ue,ua as q,va as P,wa as _,xa as Pe,ya as m}from"./chunk-NJ4PSNK3.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function Tt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,n){if(!t)return;let e=Q.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Q.delete(t)}var Ht=`
2
- .p-motion {
3
- display: block;
4
- }
5
- `,$t={root:"p-motion"},ve=(()=>{class t extends Ye{name="motion";style=Ht;classes=$t;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var nt=new E("MOTION_INSTANCE"),Ut=(()=>{class t extends L{$pcMotion=I(nt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=I(X,{self:!0});onAfterViewChecked(){let i=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(p(p({},this.ptms(["host","root"])),i))}_componentStyle=I(ve);visible=o(!1);mountOnEnter=o(!0);unmountOnLeave=o(!0);name=o(void 0);type=o(void 0);safe=o(void 0);disabled=o(!1);appear=o(!1);enter=o(!0);leave=o(!0);duration=o(void 0);hideStrategy=o("display");enterFromClass=o(void 0);enterToClass=o(void 0);enterActiveClass=o(void 0);leaveFromClass=o(void 0);leaveToClass=o(void 0);leaveActiveClass=o(void 0);options=o({});onBeforeEnter=u();onEnter=u();onAfterEnter=u();onEnterCancelled=u();onBeforeLeave=u();onLeave=u();onAfterLeave=u();onLeaveCancelled=u();motionOptions=C(()=>{let e=this.options();return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;rendered=D(!1);handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),W(()=>{let e=this.hideStrategy();this.isInitialMount?(k(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(k(this.$el,e),this.rendered.set(!0))}),W(()=>{this.motion||(this.motion=ge(this.$el,this.motionOptions()))}),ue(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(await Z(),ee(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await Z(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(k(this.$el,i),this.unmountOnLeave()&&(await Z(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let i=b(this.motionOptions),r=J(i.duration,e);if(r==null||!this.$el)return;let s=this.$el,a=`${r}ms`;i.type==="transition"?s.style.transitionDuration=a:s.style.animationDuration=a}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=q({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(i,r){i&2&&Ue(r.cx("root"))},inputs:{visible:[1,"visible"],mountOnEnter:[1,"mountOnEnter"],unmountOnLeave:[1,"unmountOnLeave"],name:[1,"name"],type:[1,"type"],safe:[1,"safe"],disabled:[1,"disabled"],appear:[1,"appear"],enter:[1,"enter"],leave:[1,"leave"],duration:[1,"duration"],hideStrategy:[1,"hideStrategy"],enterFromClass:[1,"enterFromClass"],enterToClass:[1,"enterToClass"],enterActiveClass:[1,"enterActiveClass"],leaveFromClass:[1,"leaveFromClass"],leaveToClass:[1,"leaveToClass"],leaveActiveClass:[1,"leaveActiveClass"],options:[1,"options"]},outputs:{onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onEnterCancelled:"onEnterCancelled",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave",onLeaveCancelled:"onLeaveCancelled"},features:[N([ve,{provide:nt,useExisting:t},{provide:me,useExisting:t}]),Pe([X]),m],ngContentSelectors:jt,decls:1,vars:1,template:function(i,r){i&1&&(Ge(),Be(0,Gt,1,0)),i&2&&ke(r.rendered()?0:-1)},dependencies:[qe,Ke],encapsulation:2})}return t})(),it=new E("MOTION_DIRECTIVE_INSTANCE"),Rn=(()=>{class t extends L{$pcMotionDirective=I(it,{optional:!0,skipSelf:!0})??void 0;visible=o(!1,{alias:"pMotion"});name=o(void 0,{alias:"pMotionName"});type=o(void 0,{alias:"pMotionType"});safe=o(void 0,{alias:"pMotionSafe"});disabled=o(!1,{alias:"pMotionDisabled"});appear=o(!1,{alias:"pMotionAppear"});enter=o(!0,{alias:"pMotionEnter"});leave=o(!0,{alias:"pMotionLeave"});duration=o(void 0,{alias:"pMotionDuration"});hideStrategy=o("display",{alias:"pMotionHideStrategy"});enterFromClass=o(void 0,{alias:"pMotionEnterFromClass"});enterToClass=o(void 0,{alias:"pMotionEnterToClass"});enterActiveClass=o(void 0,{alias:"pMotionEnterActiveClass"});leaveFromClass=o(void 0,{alias:"pMotionLeaveFromClass"});leaveToClass=o(void 0,{alias:"pMotionLeaveToClass"});leaveActiveClass=o(void 0,{alias:"pMotionLeaveActiveClass"});options=o({},{alias:"pMotionOptions"});onBeforeEnter=u({alias:"pMotionOnBeforeEnter"});onEnter=u({alias:"pMotionOnEnter"});onAfterEnter=u({alias:"pMotionOnAfterEnter"});onEnterCancelled=u({alias:"pMotionOnEnterCancelled"});onBeforeLeave=u({alias:"pMotionOnBeforeLeave"});onLeave=u({alias:"pMotionOnLeave"});onAfterLeave=u({alias:"pMotionOnAfterLeave"});onLeaveCancelled=u({alias:"pMotionOnLeaveCancelled"});motionOptions=C(()=>{let e=this.options()??{};return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),W(()=>{this.motion||(this.motion=ge(this.$el,this.motionOptions()))}),ue(()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(ee(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount?k(this.$el,i):(this.applyMotionDuration("leave"),this.motion?.leave()?.then(()=>{this.$el&&!this.cancelled&&!this.visible()&&k(this.$el,i)})),this.isInitialMount=!1})}applyMotionDuration(e){let i=b(this.motionOptions),r=J(i.duration,e);if(r==null||!this.$el)return;let s=this.$el,a=`${r}ms`;i.type==="transition"?s.style.transitionDuration=a:s.style.animationDuration=a}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_({type:t,selectors:[["","pMotion",""]],inputs:{visible:[1,"pMotion","visible"],name:[1,"pMotionName","name"],type:[1,"pMotionType","type"],safe:[1,"pMotionSafe","safe"],disabled:[1,"pMotionDisabled","disabled"],appear:[1,"pMotionAppear","appear"],enter:[1,"pMotionEnter","enter"],leave:[1,"pMotionLeave","leave"],duration:[1,"pMotionDuration","duration"],hideStrategy:[1,"pMotionHideStrategy","hideStrategy"],enterFromClass:[1,"pMotionEnterFromClass","enterFromClass"],enterToClass:[1,"pMotionEnterToClass","enterToClass"],enterActiveClass:[1,"pMotionEnterActiveClass","enterActiveClass"],leaveFromClass:[1,"pMotionLeaveFromClass","leaveFromClass"],leaveToClass:[1,"pMotionLeaveToClass","leaveToClass"],leaveActiveClass:[1,"pMotionLeaveActiveClass","leaveActiveClass"],options:[1,"pMotionOptions","options"]},outputs:{onBeforeEnter:"pMotionOnBeforeEnter",onEnter:"pMotionOnEnter",onAfterEnter:"pMotionOnAfterEnter",onEnterCancelled:"pMotionOnEnterCancelled",onBeforeLeave:"pMotionOnBeforeLeave",onLeave:"pMotionOnLeave",onAfterLeave:"pMotionOnAfterLeave",onLeaveCancelled:"pMotionOnLeaveCancelled"},features:[N([ve,{provide:it,useExisting:t},{provide:me,useExisting:t}]),m]})}return t})(),jn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({imports:[Ut]})}return t})();var ct=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(v(de),v(le))};static \u0275dir=_({type:t})}return t})(),Wt=(()=>{class t extends ct{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,features:[m]})}return t})(),ht=new E("");var qt={provide:ht,useExisting:se(()=>ft),multi:!0};function zt(){let t=ce()?ce().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Zt=new E(""),ft=(()=>{class t extends ct{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!zt())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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 \u0275fac=function(i){return new(i||t)(v(de),v(le),v(Zt,8))};static \u0275dir=_({type:t,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(i,r){i&1&&je("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[N([qt]),m]})}return t})();var Xt=new E(""),Yt=new E("");function pt(t){return t!=null}function mt(t){return Le(t)?Ne(t):t}function gt(t){let n={};return t.forEach(e=>{n=e!=null?p(p({},n),e):n}),Object.keys(n).length===0?null:n}function vt(t,n){return n.map(e=>e(t))}function Kt(t){return!t.validate}function yt(t){return t.map(n=>Kt(n)?n:e=>n.validate(e))}function Jt(t){if(!t)return null;let n=t.filter(pt);return n.length==0?null:function(e){return gt(vt(e,n))}}function _t(t){return t!=null?Jt(yt(t)):null}function Qt(t){if(!t)return null;let n=t.filter(pt);return n.length==0?null:function(e){let i=vt(e,n).map(mt);return Oe(i).pipe(Se(gt))}}function Ct(t){return t!=null?Qt(yt(t)):null}function rt(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function en(t){return t._rawValidators}function tn(t){return t._rawAsyncValidators}function ye(t){return t?Array.isArray(t)?t:[t]:[]}function ne(t,n){return Array.isArray(t)?t.includes(n):t===n}function ot(t,n){let e=ye(n);return ye(t).forEach(r=>{ne(e,r)||e.push(r)}),e}function st(t,n){return ye(n).filter(e=>!ne(t,e))}var ie=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},_e=class extends ie{name;get formDirective(){return null}get path(){return null}},$=class extends ie{_parent=null;name=null;valueAccessor=null},Ce=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var ci=(()=>{class t extends Ce{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(v($,2))};static \u0275dir=_({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&$e("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[m]})}return t})();var R="VALID",te="INVALID",O="PENDING",j="DISABLED",w=class{},re=class extends w{value;source;constructor(n,e){super(),this.value=n,this.source=e}},G=class extends w{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},H=class extends w{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},x=class extends w{status;source;constructor(n,e){super(),this.status=n,this.source=e}};var De=class extends w{source;constructor(n){super(),this.source=n}};function nn(t){return(oe(t)?t.validators:t)||null}function rn(t){return Array.isArray(t)?_t(t):t||null}function on(t,n){return(oe(n)?n.asyncValidators:t)||null}function sn(t){return Array.isArray(t)?Ct(t):t||null}function oe(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Me=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return b(this.statusReactive)}set status(n){b(()=>this.statusReactive.set(n))}_status=C(()=>this.statusReactive());statusReactive=D(void 0);get valid(){return this.status===R}get invalid(){return this.status===te}get pending(){return this.status===O}get disabled(){return this.status===j}get enabled(){return this.status!==j}errors;get pristine(){return b(this.pristineReactive)}set pristine(n){b(()=>this.pristineReactive.set(n))}_pristine=C(()=>this.pristineReactive());pristineReactive=D(!0);get dirty(){return!this.pristine}get touched(){return b(this.touchedReactive)}set touched(n){b(()=>this.touchedReactive.set(n))}_touched=C(()=>this.touchedReactive());touchedReactive=D(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(ot(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(ot(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(st(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(st(n,this._rawAsyncValidators))}hasValidator(n){return ne(this._rawValidators,n)}hasAsyncValidator(n){return ne(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(A(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new H(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),n.onlySelf||this._parent?._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new H(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(A(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new G(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new G(!0,i))}markAsPending(n={}){this.status=O;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new x(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(A(p({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=j,this.errors=null,this._forEachChild(r=>{r.disable(A(p({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new re(this.value,i)),this._events.next(new x(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=R,this._forEachChild(i=>{i.enable(A(p({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===R||this.status===O)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new re(this.value,e)),this._events.next(new x(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(A(p({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?j:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=O,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=mt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i?.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new x(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?j:this.errors?te:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(O)?O:this._anyControlsHaveStatus(te)?te:R}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,n.onlySelf||this._parent?._updatePristine(n,e),r&&this._events.next(new G(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new H(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){oe(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=rn(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=sn(this._rawAsyncValidators)}};var Dt=new E("",{factory:()=>be}),be="always";function an(t,n){return[...n.path,t]}function ln(t,n,e=be){un(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),cn(t,n),fn(t,n),hn(t,n),dn(t,n)}function at(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function dn(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function un(t,n){let e=en(t);n.validator!==null?t.setValidators(rt(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=tn(t);n.asyncValidator!==null?t.setAsyncValidators(rt(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();at(n._rawValidators,r),at(n._rawAsyncValidators,r)}function cn(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Mt(t,n)})}function hn(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Mt(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function Mt(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function fn(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function pn(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function mn(t){return Object.getPrototypeOf(t.constructor)===Wt}function gn(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(s=>{s.constructor===ft?e=s:mn(s)?i=s:r=s}),r||i||e||null}function lt(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function dt(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var vn=class extends Me{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(nn(e),on(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),oe(e)&&(e.nonNullable||e.initialValueIsDefault)&&(dt(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new De(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lt(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lt(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){dt(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var yn={provide:$,useExisting:se(()=>_n)},ut=Promise.resolve(),_n=(()=>{class t extends ${_changeDetectorRef;callSetDisabledState;control=new vn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,s,a,f){super(),this._changeDetectorRef=a,this.callSetDisabledState=f,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gn(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pn(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ln(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){ut.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&S(i);ut.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?an(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(v(_e,9),v(Xt,10),v(Yt,10),v(ht,10),v(We,8),v(Dt,8))};static \u0275dir=_({type:t,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"],standalone:!1,features:[N([yn]),m,Te]})}return t})();var Cn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({})}return t})();var fi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.callSetDisabledState??be}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({imports:[Cn]})}return t})();var bt=(()=>{class t extends L{modelValue=D(void 0);$filled=C(()=>Xe(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,features:[m]})}return t})();var Vi=(()=>{class t extends bt{required=o(void 0,{transform:S});invalid=o(void 0,{transform:S});disabled=o(void 0,{transform:S});name=o();_disabled=D(!1);$disabled=C(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[m]})}return t})();export{Mn as a,Ut as b,Rn as c,jn as d,ht as e,ft as f,$ as g,ci as h,_n as i,fi as j,bt as k,Vi as l};