import{c as x,s as w}from"./chunk-C6uGsfWa.js";import{$ as Ehe,Ar as Tu,Ba as fe,Ci as Yx,Cr as T3,Cs as q5,Da as e5,Eo as kb,F as Cx,Ga as g$,Go as m5,Gr as Va,Hi as ae,Hn as Oxe,Ht as Je,Ia as f$,Ic as zb,Ii as _m,Io as lA,Is as rh,J as EI,Kn as Pw,L as D3,Lr as Uj,Ls as rx,Mn as OT,Mr as Txe,Ms as r5,Nc as yx,Nr as U4,Nt as Hxe,Oo as kj,Pa as eh,Pr as Ub,Q as EV,Qi as bV,Qr as W$,Rn as Os,Ro as lR,Rt as Ixe,T as C3,Vc as zt$1,Vr as Uxe,Wa as g,Ws as sh,Xr as Vn$1,Yi as bI,Yr as Vme,Ys as t5,Za as gx,Zo as n5,_s as ph,_t as Gb,aa as bu,ao as hn$1,as as oA,bc as x$1,c as A$,dn as MT,ec as th,en as Kx,fi as Xr,fo as ih,fr as S,gc as wf,ho as j$,ht as Fxe,it as FB,j as Cn$1,lt as Fb,mo as iu,nc as tx,nr as RI,ot as FI,p as Au,pr as S3,rt as Ex,ss as oh,t as $b,ts as nh,u as AV,ua as cA,vc as wp,vn as N$,wo as jx,wt as Hb,xc as x2,xt as H4}from"./chunk-B_pj7Jpm.js";import{A as qn$1,O as ln$1,r as D,s as Jn$1}from"./chunk-BPHMC4rz.js";import{A as Si$1,B as bi$1,F as Y,L as Z,N as Wt$1,O as Ri$1,S as Ni$1,U as ge,V as cr,X as mi$1,b as Lt,c as Dt,ct as wi$1,d as Fn$1,g as In$1,it as sn$1,j as Sr,k as Rn$1,l as Ei$1,m as I,nt as rn$1,ot as us,r as Bi$1,rt as rr,s as Dn$1,st as vi$1,tt as qo,ut as xi$1,v as Kr}from"./chunk-COgN00_S.js";import{a as Kn$1,d as nn$1,i as Ii$1,l as co$1,o as Qe$1}from"./chunk-DULXsDZq.js";var Nt=(()=>{class t extends rn$1{static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[``,`data-p-icon`,`check`]],features:[tx],decls:1,vars:0,consts:[[`d`,`M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z`,`fill`,`currentColor`]],template:function(i,n){i&1&&(RI(),yx(0,`path`,0))},encapsulation:2,changeDetection:1})}return t})();var Pt=`
    .p-iconfield {
        position: relative;
        display: block;
    }

    .p-inputicon {
        position: absolute;
        top: 50%;
        margin-top: calc(-1 * (dt('icon.size') / 2));
        color: dt('iconfield.icon.color');
        line-height: 1;
        z-index: 1;
    }

    .p-iconfield .p-inputicon:first-child {
        inset-inline-start: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputicon:last-child {
        inset-inline-end: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputtext:not(:first-child),
    .p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
        padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield .p-inputtext:not(:last-child) {
        padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield:has(.p-inputfield-sm) .p-inputicon {
        font-size: dt('form.field.sm.font.size');
        width: dt('form.field.sm.font.size');
        height: dt('form.field.sm.font.size');
        margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
    }

    .p-iconfield:has(.p-inputfield-lg) .p-inputicon {
        font-size: dt('form.field.lg.font.size');
        width: dt('form.field.lg.font.size');
        height: dt('form.field.lg.font.size');
        margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
    }
`;var si=[`*`];var ai={root:({instance:t})=>[`p-iconfield`,{"p-iconfield-left":t.iconPosition==`left`,"p-iconfield-right":t.iconPosition==`right`}]};var zt=(()=>{class t extends I{name=`iconfield`;style=Pt;classes=ai;static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵprov=S({token:t,factory:t.ɵfac})}return t})();var Ht=new x$1(`ICONFIELD_INSTANCE`);var Rt=(()=>{class t extends Y{componentName=`IconField`;hostName=``;_componentStyle=g(zt);$pcIconField=g(Ht,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(Z,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}iconPosition=`left`;styleClass;static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[`p-iconfield`],[`p-iconField`],[`p-icon-field`]],hostVars:2,hostBindings:function(i,n){i&2&&N$(n.cn(n.cx(`root`),n.styleClass))},inputs:{hostName:`hostName`,iconPosition:`iconPosition`,styleClass:`styleClass`},features:[e5([zt,{provide:Ht,useExisting:t},{provide:ge,useExisting:t}]),x2([Z]),tx],ngContentSelectors:si,decls:1,vars:0,template:function(i,n){i&1&&(oh(),ih(0))},dependencies:[Au,qo],encapsulation:2})}return t})();var $t=(()=>{class t extends rn$1{static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[``,`data-p-icon`,`blank`]],features:[tx],decls:1,vars:0,consts:[[`width`,`1`,`height`,`1`,`fill`,`currentColor`,`fill-opacity`,`0`]],template:function(i,n){i&1&&(RI(),yx(0,`rect`,0))},encapsulation:2,changeDetection:1})}return t})();var Gt=(()=>{class t extends rn$1{pathId;onInit(){this.pathId=`url(#`+Wt$1()+`)`}static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[``,`data-p-icon`,`search`]],features:[tx],decls:5,vars:2,consts:[[`fill-rule`,`evenodd`,`clip-rule`,`evenodd`,`d`,`M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z`,`fill`,`currentColor`],[3,`id`],[`width`,`14`,`height`,`14`,`fill`,`white`]],template:function(i,n){i&1&&(RI(),Fb(0,`g`),yx(1,`path`,0),Ub(),Fb(2,`defs`)(3,`clipPath`,1),yx(4,`rect`,2),Ub()()),i&2&&(eh(`clip-path`,n.pathId),FB(3),Cx(`id`,n.pathId))},encapsulation:2,changeDetection:1})}return t})();var ri=[`*`];var pi={root:`p-inputicon`};var Kt=(()=>{class t extends I{name=`inputicon`;classes=pi;static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵprov=S({token:t,factory:t.ɵfac})}return t})();var qt=new x$1(`INPUTICON_INSTANCE`);var Qt=(()=>{class t extends Y{componentName=`InputIcon`;hostName=``;styleClass;_componentStyle=g(Kt);$pcInputIcon=g(qt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(Z,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[`p-inputicon`],[`p-inputIcon`]],hostVars:2,hostBindings:function(i,n){i&2&&N$(n.cn(n.cx(`root`),n.styleClass))},inputs:{hostName:`hostName`,styleClass:`styleClass`},features:[e5([Kt,{provide:qt,useExisting:t},{provide:ge,useExisting:t}]),x2([Z]),tx],ngContentSelectors:ri,decls:1,vars:0,template:function(i,n){i&1&&(oh(),ih(0))},dependencies:[Au,Uxe,qo],encapsulation:2})}return t})();var Ut=`
    .p-tooltip {
        position: absolute;
        display: none;
        max-width: dt('tooltip.max.width');
    }

    .p-tooltip-right,
    .p-tooltip-left {
        padding: 0 dt('tooltip.gutter');
    }

    .p-tooltip-top,
    .p-tooltip-bottom {
        padding: dt('tooltip.gutter') 0;
    }

    .p-tooltip-text {
        white-space: pre-line;
        word-break: break-word;
        background: dt('tooltip.background');
        color: dt('tooltip.color');
        padding: dt('tooltip.padding');
        box-shadow: dt('tooltip.shadow');
        border-radius: dt('tooltip.border.radius');
    }

    .p-tooltip-arrow {
        position: absolute;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
    }

    .p-tooltip-right .p-tooltip-arrow {
        margin-top: calc(-1 * dt('tooltip.gutter'));
        border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
        border-right-color: dt('tooltip.background');
    }

    .p-tooltip-left .p-tooltip-arrow {
        margin-top: calc(-1 * dt('tooltip.gutter'));
        border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
        border-left-color: dt('tooltip.background');
    }

    .p-tooltip-top .p-tooltip-arrow {
        margin-left: calc(-1 * dt('tooltip.gutter'));
        border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
        border-top-color: dt('tooltip.background');
        border-bottom-color: dt('tooltip.background');
    }

    .p-tooltip-bottom .p-tooltip-arrow {
        margin-left: calc(-1 * dt('tooltip.gutter'));
        border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
        border-top-color: dt('tooltip.background');
        border-bottom-color: dt('tooltip.background');
    }
`;var ci={root:`p-tooltip p-component`,arrow:`p-tooltip-arrow`,text:`p-tooltip-text`};var jt=(()=>{class t extends I{name=`tooltip`;style=Ut;classes=ci;static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵprov=S({token:t,factory:t.ɵfac})}return t})();var Wt=new x$1(`TOOLTIP_INSTANCE`);var Zt=(()=>{class t extends Y{zone;viewContainer;componentName=`Tooltip`;$pcTooltip=g(Wt,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent=`hover`;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;appendTo=ph(void 0);$appendTo=bu(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:`right`,tooltipEvent:`hover`,appendTo:`body`,positionStyle:null,tooltipStyleClass:null,tooltipZIndex:`auto`,escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:Wt$1(`pn_id_`)+`_tooltip`};_disabled;container;styleClass;tooltipText;rootPTClasses=``;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=g(jt);interactionInProgress=!1;ptTooltip=ph();pTooltipPT=ph();pTooltipUnstyled=ph();constructor(e,i){super(),this.zone=e,this.viewContainer=i,FI(()=>{let n=this.ptTooltip()||this.pTooltipPT();n&&this.directivePT.set(n)}),FI(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){Vme(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption(`tooltipEvent`);if((e===`hover`||e===`both`)&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener(`mouseenter`,this.mouseEnterListener),this.el.nativeElement.addEventListener(`click`,this.clickListener),this.el.nativeElement.addEventListener(`mouseleave`,this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener(`touchstart`,this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener(`touchend`,this.touchEndListener,{passive:!0})),e===`focus`||e===`both`){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(`.p-component`);i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener(`focus`,this.focusListener),i.addEventListener(`blur`,this.blurListener)}})}onChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.showOnEllipsis&&this.setOption({showOnEllipsis:e.showOnEllipsis.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=w(w({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption(`tooltipLabel`)?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption(`autoHide`)}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(Fn$1(e.relatedTarget,`p-tooltip`)||Fn$1(e.relatedTarget,`p-tooltip-text`)||Fn$1(e.relatedTarget,`p-tooltip-arrow`))&&this.deactivate()}onTouchStart(e){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(e){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen(`document`,`touchstart`,e=>{this.container&&!this.container.contains(e.target)&&!this.el.nativeElement.contains(e.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}hasEllipsis(){let e=this.el.nativeElement;return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption(`showOnEllipsis`)&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption(`showDelay`)?this.showTimeout=setTimeout(()=>{this.show()},this.getOption(`showDelay`)):this.show(),this.getOption(`life`)){let e=this.getOption(`showDelay`)?this.getOption(`life`)+this.getOption(`showDelay`):this.getOption(`life`);this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption(`hideOnEscape`)&&(this.documentEscapeListener=this.renderer.listen(`document`,`keydown.escape`,()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption(`hideDelay`)?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption(`hideDelay`))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=vi$1(`div`,{class:this.cx(`root`),"p-bind":this.ptm(`root`),"data-pc-section":`root`}),this.container.setAttribute(`role`,`tooltip`);let e=vi$1(`div`,{class:this.cx(`arrow`),"p-bind":this.ptm(`arrow`),"data-pc-section":`arrow`});this.container.appendChild(e),this.tooltipText=vi$1(`div`,{class:this.cx(`text`),"p-bind":this.ptm(`text`),"data-pc-section":`text`}),this.updateText(),this.getOption(`positionStyle`)&&(this.container.style.position=this.getOption(`positionStyle`)),this.container.appendChild(this.tooltipText),this.getOption(`appendTo`)===`body`?document.body.appendChild(this.container):this.getOption(`appendTo`)===`target`?bi$1(this.container,this.el.nativeElement):bi$1(this.getOption(`appendTo`),this.container),this.container.style.display=`none`,this.fitContent&&(this.container.style.width=`fit-content`),this.isAutoHide()?this.container.style.pointerEvents=`none`:(this.container.style.pointerEvents=`unset`,this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,`mouseleave`,i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption(`tooltipLabel`)||this.getOption(`disabled`))return;this.create(),this.el.nativeElement.closest(`p-dialog`)?setTimeout(()=>{this.container&&(this.container.style.display=`inline-block`),this.container&&this.align()},100):(this.container.style.display=`inline-block`,this.align()),Si$1(this.container,250),this.getOption(`tooltipZIndex`)===`auto`?Qe$1.set(`tooltip`,this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption(`tooltipZIndex`),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption(`tooltipZIndex`)===`auto`&&Qe$1.clear(this.container),this.remove()}updateText(){let e=this.getOption(`tooltipLabel`);if(e&&typeof e.createEmbeddedView==`function`){let i=this.viewContainer.createEmbeddedView(e);i.detectChanges(),i.rootNodes.forEach(n=>this.tooltipText.appendChild(n))}else this.getOption(`escape`)?(this.tooltipText.innerHTML=``,this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption(`tooltipPosition`),n={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[e]||[];for(let[o,l]of n.entries())if(o===0)l.call(this);else if(this.isOutOfBounds())l.call(this);else break}getHostOffset(){if(this.getOption(`appendTo`)===`body`||this.getOption(`appendTo`)===`target`){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+Dn$1(),top:e.top+In$1()}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith(`P-`)?wi$1(this.el.nativeElement,`.p-component`):this.el.nativeElement}alignRight(){this.preAlign(`right`);let e=this.activeElement,i=mi$1(e),n=(Rn$1(e)-Rn$1(this.container))/2;this.alignTooltip(i,n);let o=this.getArrowElement();o.style.top=`50%`,o.style.right=null,o.style.bottom=null,o.style.left=`0`}alignLeft(){this.preAlign(`left`);let e=this.getArrowElement(),i=mi$1(this.container),n=(Rn$1(this.el.nativeElement)-Rn$1(this.container))/2;this.alignTooltip(-i,n),e.style.top=`50%`,e.style.right=`0`,e.style.bottom=null,e.style.left=null}alignTop(){this.preAlign(`top`);let e=this.getArrowElement(),i=this.getHostOffset(),n=mi$1(this.container),o=(mi$1(this.el.nativeElement)-mi$1(this.container))/2,l=Rn$1(this.container);this.alignTooltip(o,-l);let g=i.left-this.getHostOffset().left+n/2;e.style.top=null,e.style.right=null,e.style.bottom=`0`,e.style.left=g+`px`}getArrowElement(){return wi$1(this.container,`[data-pc-section="arrow"]`)}alignBottom(){this.preAlign(`bottom`);let e=this.getArrowElement(),i=mi$1(this.container),n=this.getHostOffset(),o=(mi$1(this.el.nativeElement)-mi$1(this.container))/2,l=Rn$1(this.el.nativeElement);this.alignTooltip(o,l);let g=n.left-this.getHostOffset().left+i/2;e.style.top=`0`,e.style.right=null,e.style.bottom=null,e.style.left=g+`px`}alignTooltip(e,i){let n=this.getHostOffset(),o=n.left+e,l=n.top+i;this.container.style.left=o+this.getOption(`positionLeft`)+`px`,this.container.style.top=l+this.getOption(`positionTop`)+`px`}setOption(e){this._tooltipOptions=w(w({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Fn$1(e,`p-inputwrapper`)?wi$1(e,`input`):e}preAlign(e){this.container.style.left=`-999px`,this.container.style.top=`-999px`,this.container.className=this.cn(this.cx(`root`),this.ptm(`root`)?.class,`p-tooltip-`+e,this.getOption(`tooltipStyleClass`))}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,n=e.left,o=mi$1(this.container),l=Rn$1(this.container),g=Dt();return n+o>g.width||n<0||i<0||i+l>g.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener(`resize`,this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener(`resize`,this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new sn$1(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption(`tooltipEvent`);if((e===`hover`||e===`both`)&&(this.el.nativeElement.removeEventListener(`mouseenter`,this.mouseEnterListener),this.el.nativeElement.removeEventListener(`mouseleave`,this.mouseLeaveListener),this.el.nativeElement.removeEventListener(`click`,this.clickListener),this.el.nativeElement.removeEventListener(`touchstart`,this.touchStartListener),this.el.nativeElement.removeEventListener(`touchend`,this.touchEndListener),this.unbindDocumentTouchListener()),e===`focus`||e===`both`){let i=this.el.nativeElement.querySelector(`.p-component`);i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener(`focus`,this.focusListener),i.removeEventListener(`blur`,this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption(`appendTo`)===`body`?document.body.removeChild(this.container):this.getOption(`appendTo`)===`target`?this.el.nativeElement.removeChild(this.container):Bi$1(this.getOption(`appendTo`),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&Qe$1.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static ɵfac=function(i){return new(i||t)(fe(ae),fe(Xr))};static ɵdir=hn$1({type:t,selectors:[[``,`pTooltip`,``]],inputs:{tooltipPosition:`tooltipPosition`,tooltipEvent:`tooltipEvent`,positionStyle:`positionStyle`,tooltipStyleClass:`tooltipStyleClass`,tooltipZIndex:`tooltipZIndex`,escape:[2,`escape`,`escape`,Tu],showDelay:[2,`showDelay`,`showDelay`,q5],hideDelay:[2,`hideDelay`,`hideDelay`,q5],life:[2,`life`,`life`,q5],positionTop:[2,`positionTop`,`positionTop`,q5],positionLeft:[2,`positionLeft`,`positionLeft`,q5],autoHide:[2,`autoHide`,`autoHide`,Tu],fitContent:[2,`fitContent`,`fitContent`,Tu],hideOnEscape:[2,`hideOnEscape`,`hideOnEscape`,Tu],showOnEllipsis:[2,`showOnEllipsis`,`showOnEllipsis`,Tu],content:[0,`pTooltip`,`content`],disabled:[0,`tooltipDisabled`,`disabled`],tooltipOptions:`tooltipOptions`,appendTo:[1,`appendTo`],ptTooltip:[1,`ptTooltip`],pTooltipPT:[1,`pTooltipPT`],pTooltipUnstyled:[1,`pTooltipUnstyled`]},features:[e5([jt,{provide:Wt,useExisting:t},{provide:ge,useExisting:t}]),tx]})}return t})();var Yt=`
    .p-select {
        display: inline-flex;
        cursor: pointer;
        position: relative;
        user-select: none;
        background: dt('select.background');
        border: 1px solid dt('select.border.color');
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            outline-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration');
        border-radius: dt('select.border.radius');
        outline-color: transparent;
        box-shadow: dt('select.shadow');
    }

    .p-select:not(.p-disabled):hover {
        border-color: dt('select.hover.border.color');
    }

    .p-select:not(.p-disabled).p-focus {
        border-color: dt('select.focus.border.color');
        box-shadow: dt('select.focus.ring.shadow');
        outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
        outline-offset: dt('select.focus.ring.offset');
    }

    .p-select.p-variant-filled {
        background: dt('select.filled.background');
    }

    .p-select.p-variant-filled:not(.p-disabled):hover {
        background: dt('select.filled.hover.background');
    }

    .p-select.p-variant-filled:not(.p-disabled).p-focus {
        background: dt('select.filled.focus.background');
    }

    .p-select.p-invalid {
        border-color: dt('select.invalid.border.color');
    }

    .p-select.p-disabled {
        opacity: 1;
        background: dt('select.disabled.background');
    }

    .p-select-clear-icon {
        align-self: center;
        color: dt('select.clear.icon.color');
        inset-inline-end: dt('select.dropdown.width');
    }

    .p-select-dropdown {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: transparent;
        color: dt('select.dropdown.color');
        width: dt('select.dropdown.width');
        border-start-end-radius: dt('select.border.radius');
        border-end-end-radius: dt('select.border.radius');
    }

    .p-select-label {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        flex: 1 1 auto;
        width: 1%;
        padding: dt('select.padding.y') dt('select.padding.x');
        text-overflow: ellipsis;
        cursor: pointer;
        color: dt('select.color');
        background: transparent;
        border: 0 none;
        outline: 0 none;
        font-size: 1rem;
    }

    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.p-invalid .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }

    .p-select.p-disabled .p-select-label {
        color: dt('select.disabled.color');
    }

    .p-select-label-empty {
        overflow: hidden;
        opacity: 0;
    }

    input.p-select-label {
        cursor: default;
    }

    .p-select-overlay {
        position: absolute;
        top: 0;
        left: 0;
        background: dt('select.overlay.background');
        color: dt('select.overlay.color');
        border: 1px solid dt('select.overlay.border.color');
        border-radius: dt('select.overlay.border.radius');
        box-shadow: dt('select.overlay.shadow');
        min-width: 100%;
        transform-origin: inherit;
        will-change: transform;
    }

    .p-select-header {
        padding: dt('select.list.header.padding');
    }

    .p-select-filter {
        width: 100%;
    }

    .p-select-list-container {
        overflow: auto;
    }

    .p-select-option-group {
        cursor: auto;
        margin: 0;
        padding: dt('select.option.group.padding');
        background: dt('select.option.group.background');
        color: dt('select.option.group.color');
        font-weight: dt('select.option.group.font.weight');
    }

    .p-select-list {
        margin: 0;
        padding: 0;
        list-style-type: none;
        padding: dt('select.list.padding');
        gap: dt('select.list.gap');
        display: flex;
        flex-direction: column;
    }

    .p-select-option {
        cursor: pointer;
        font-weight: normal;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: dt('select.option.padding');
        border: 0 none;
        color: dt('select.option.color');
        background: transparent;
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration'),
            outline-color dt('select.transition.duration');
        border-radius: dt('select.option.border.radius');
    }

    .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
        background: dt('select.option.focus.background');
        color: dt('select.option.focus.color');
    }

    .p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {
        background: dt('select.option.focus.background');
        color: dt('select.option.focus.color');
    }

    .p-select-option.p-select-option-selected {
        background: dt('select.option.selected.background');
        color: dt('select.option.selected.color');
    }

    .p-select-option.p-select-option-selected.p-focus {
        background: dt('select.option.selected.focus.background');
        color: dt('select.option.selected.focus.color');
    }
   
    .p-select-option-blank-icon {
        flex-shrink: 0;
    }

    .p-select-option-check-icon {
        position: relative;
        flex-shrink: 0;
        margin-inline-start: dt('select.checkmark.gutter.start');
        margin-inline-end: dt('select.checkmark.gutter.end');
        color: dt('select.checkmark.color');
    }

    .p-select-empty-message {
        padding: dt('select.empty.message.padding');
    }

    .p-select-fluid {
        display: flex;
        width: 100%;
    }

    .p-select-sm .p-select-label {
        font-size: dt('select.sm.font.size');
        padding-block: dt('select.sm.padding.y');
        padding-inline: dt('select.sm.padding.x');
    }

    .p-select-sm .p-select-dropdown .p-icon {
        font-size: dt('select.sm.font.size');
        width: dt('select.sm.font.size');
        height: dt('select.sm.font.size');
    }

    .p-select-lg .p-select-label {
        font-size: dt('select.lg.font.size');
        padding-block: dt('select.lg.padding.y');
        padding-inline: dt('select.lg.padding.x');
    }

    .p-select-lg .p-select-dropdown .p-icon {
        font-size: dt('select.lg.font.size');
        width: dt('select.lg.font.size');
        height: dt('select.lg.font.size');
    }

    .p-floatlabel-in .p-select-filter {
        padding-block-start: dt('select.padding.y');
        padding-block-end: dt('select.padding.y');
    }
`;var ye=t=>({height:t});var Qe=t=>({$implicit:t});function ui(t,s){if(t&1&&(RI(),th(0,`svg`,6)),t&2){let e=f$(2);N$(e.cx(`optionCheckIcon`)),gx(`pBind`,e.$pcSelect==null?null:e.$pcSelect.ptm(`optionCheckIcon`))}}function mi(t,s){if(t&1&&(RI(),th(0,`svg`,7)),t&2){let e=f$(2);N$(e.cx(`optionBlankIcon`)),gx(`pBind`,e.$pcSelect==null?null:e.$pcSelect.ptm(`optionBlankIcon`))}}function hi(t,s){if(t&1&&(Hb(0),rx(1,ui,1,3,`svg`,4)(2,mi,1,3,`svg`,5),nh()),t&2){let e=f$();FB(),gx(`ngIf`,e.selected),FB(),gx(`ngIf`,!e.selected)}}function fi(t,s){if(t&1&&(wp(0,`span`,8),j$(1),kb()),t&2){let e=f$();gx(`pBind`,e.$pcSelect==null?null:e.$pcSelect.ptm(`optionLabel`)),FB(),oA(e.label??`empty`)}}function _i(t,s){t&1&&Ex(0)}var gi=[`item`];var yi=[`group`];var bi=[`loader`];var vi=[`selectedItem`];var Ti=[`header`];var Jt=[`filter`];var xi=[`footer`];var Ii=[`emptyfilter`];var Ci=[`empty`];var Oi=[`dropdownicon`];var Si=[`loadingicon`];var wi=[`clearicon`];var Ei=[`filtericon`];var Vi=[`onicon`];var Fi=[`officon`];var Li=[`cancelicon`];var ki=[`focusInput`];var Mi=[`editableInput`];var Di=[`items`];var Bi=[`scroller`];var Ni=[`overlay`];var Pi=[`firstHiddenFocusableEl`];var zi=[`lastHiddenFocusableEl`];var Xt=t=>({class:t});var ei=t=>({options:t});var ti=(t,s)=>({$implicit:t,options:s});var Hi=()=>({});function Ai(t,s){if(t&1&&(Hb(0),j$(1),nh()),t&2){let e=f$(2);FB(),oA(e.label()===`p-emptylabel`?`\xA0`:e.label())}}function Ri(t,s){if(t&1&&Ex(0,24),t&2){let e=f$(2);gx(`ngTemplateOutlet`,e.selectedItemTemplate||e._selectedItemTemplate)(`ngTemplateOutletContext`,n5(2,Qe,e.selectedOption))}}function $i(t,s){if(t&1&&(wp(0,`span`),j$(1),kb()),t&2){let e=f$(3);FB(),oA(e.label()===`p-emptylabel`?`\xA0`:e.label())}}function Gi(t,s){if(t&1&&rx(0,$i,2,1,`span`,18),t&2)gx(`ngIf`,f$(2).isSelectedOptionEmpty())}function Ki(t,s){if(t&1){let e=AV();wp(0,`span`,22,3),rh(`focus`,function(n){EI(e);return bI(f$().onInputFocus(n))})(`blur`,function(n){EI(e);return bI(f$().onInputBlur(n))})(`keydown`,function(n){EI(e);return bI(f$().onKeyDown(n))}),rx(2,Ai,2,1,`ng-container`,20)(3,Ri,1,4,`ng-container`,23)(4,Gi,1,1,`ng-template`,null,4,m5),kb()}if(t&2){let e=g$(5),i=f$();N$(i.cx(`label`)),gx(`pBind`,i.ptm(`label`))(`pTooltip`,i.tooltip)(`pTooltipUnstyled`,i.unstyled())(`tooltipPosition`,i.tooltipPosition)(`positionStyle`,i.tooltipPositionStyle)(`tooltipStyleClass`,i.tooltipStyleClass)(`pAutoFocus`,i.autofocus),eh(`aria-disabled`,i.$disabled())(`id`,i.inputId)(`aria-label`,i.ariaLabel||(i.label()===`p-emptylabel`?void 0:i.label()))(`aria-labelledby`,i.ariaLabelledBy)(`aria-haspopup`,`listbox`)(`aria-expanded`,i.overlayVisible??!1)(`aria-controls`,i.overlayVisible?i.id+`_list`:null)(`tabindex`,i.$disabled()?-1:i.tabindex)(`aria-activedescendant`,i.focused?i.focusedOptionId:void 0)(`aria-required`,i.required())(`required`,i.required()?``:void 0)(`disabled`,i.$disabled()?``:void 0)(`data-p`,i.labelDataP),FB(2),gx(`ngIf`,!i.selectedItemTemplate&&!i._selectedItemTemplate)(`ngIfElse`,e),FB(),gx(`ngIf`,(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function qi(t,s){if(t&1){let e=AV();wp(0,`input`,25,5),rh(`input`,function(n){EI(e);return bI(f$().onEditableInput(n))})(`keydown`,function(n){EI(e);return bI(f$().onKeyDown(n))})(`focus`,function(n){EI(e);return bI(f$().onInputFocus(n))})(`blur`,function(n){EI(e);return bI(f$().onInputBlur(n))}),kb()}if(t&2){let e=f$();N$(e.cx(`label`)),gx(`pBind`,e.ptm(`label`))(`pAutoFocus`,e.autofocus),eh(`id`,e.inputId)(`aria-haspopup`,`listbox`)(`placeholder`,e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)(`aria-label`,e.ariaLabel||(e.label()===`p-emptylabel`?void 0:e.label()))(`aria-activedescendant`,e.focused?e.focusedOptionId:void 0)(`name`,e.name())(`minlength`,e.minlength())(`min`,e.min())(`max`,e.max())(`pattern`,e.pattern())(`size`,e.inputSize())(`maxlength`,e.maxlength())(`required`,e.required()?``:void 0)(`readonly`,e.readonly?``:void 0)(`disabled`,e.$disabled()?``:void 0)(`data-p`,e.labelDataP)}}function Qi(t,s){if(t&1){let e=AV();RI(),wp(0,`svg`,28),rh(`click`,function(n){EI(e);return bI(f$(2).clear(n))}),kb()}if(t&2){let e=f$(2);N$(e.cx(`clearIcon`)),gx(`pBind`,e.ptm(`clearIcon`)),eh(`data-pc-section`,`clearicon`)}}function Ui(t,s){}function ji(t,s){t&1&&rx(0,Ui,0,0,`ng-template`)}function Wi(t,s){if(t&1){let e=AV();wp(0,`span`,29),rh(`click`,function(n){EI(e);return bI(f$(2).clear(n))}),rx(1,ji,1,0,null,30),kb()}if(t&2){let e=f$(2);N$(e.cx(`clearIcon`)),gx(`pBind`,e.ptm(`clearIcon`)),eh(`data-pc-section`,`clearicon`),FB(),gx(`ngTemplateOutlet`,e.clearIconTemplate||e._clearIconTemplate)(`ngTemplateOutletContext`,n5(6,Xt,e.cx(`clearIcon`)))}}function Zi(t,s){if(t&1&&(Hb(0),rx(1,Qi,1,4,`svg`,26)(2,Wi,2,8,`span`,27),nh()),t&2){let e=f$();FB(),gx(`ngIf`,!e.clearIconTemplate&&!e._clearIconTemplate),FB(),gx(`ngIf`,e.clearIconTemplate||e._clearIconTemplate)}}function Yi(t,s){t&1&&Ex(0)}function Ji(t,s){if(t&1&&(Hb(0),rx(1,Yi,1,0,`ng-container`,31),nh()),t&2){let e=f$(2);FB(),gx(`ngTemplateOutlet`,e.loadingIconTemplate||e._loadingIconTemplate)}}function Xi(t,s){if(t&1&&th(0,`span`,33),t&2){let e=f$(3);N$(e.cn(e.cx(`loadingIcon`),`pi-spin`+e.loadingIcon)),gx(`pBind`,e.ptm(`loadingIcon`))}}function en(t,s){if(t&1&&th(0,`span`,33),t&2){let e=f$(3);N$(e.cn(e.cx(`loadingIcon`),`pi pi-spinner pi-spin`)),gx(`pBind`,e.ptm(`loadingIcon`))}}function tn(t,s){if(t&1&&(Hb(0),rx(1,Xi,1,3,`span`,32)(2,en,1,3,`span`,32),nh()),t&2){let e=f$(2);FB(),gx(`ngIf`,e.loadingIcon),FB(),gx(`ngIf`,!e.loadingIcon)}}function nn(t,s){if(t&1&&(Hb(0),rx(1,Ji,2,1,`ng-container`,18)(2,tn,3,2,`ng-container`,18),nh()),t&2){let e=f$();FB(),gx(`ngIf`,e.loadingIconTemplate||e._loadingIconTemplate),FB(),gx(`ngIf`,!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function on(t,s){if(t&1&&th(0,`span`,36),t&2){let e=f$(3);N$(e.cn(e.cx(`dropdownIcon`),e.dropdownIcon)),gx(`pBind`,e.ptm(`dropdownIcon`))}}function ln(t,s){if(t&1&&(RI(),th(0,`svg`,37)),t&2){let e=f$(3);N$(e.cx(`dropdownIcon`)),gx(`pBind`,e.ptm(`dropdownIcon`))}}function sn(t,s){if(t&1&&(Hb(0),rx(1,on,1,3,`span`,34)(2,ln,1,3,`svg`,35),nh()),t&2){let e=f$(2);FB(),gx(`ngIf`,e.dropdownIcon),FB(),gx(`ngIf`,!e.dropdownIcon)}}function an(t,s){}function rn(t,s){t&1&&rx(0,an,0,0,`ng-template`)}function pn(t,s){if(t&1&&(wp(0,`span`,36),rx(1,rn,1,0,null,30),kb()),t&2){let e=f$(2);N$(e.cx(`dropdownIcon`)),gx(`pBind`,e.ptm(`dropdownIcon`)),FB(),gx(`ngTemplateOutlet`,e.dropdownIconTemplate||e._dropdownIconTemplate)(`ngTemplateOutletContext`,n5(5,Xt,e.cx(`dropdownIcon`)))}}function cn(t,s){if(t&1&&rx(0,sn,3,2,`ng-container`,18)(1,pn,2,7,`span`,34),t&2){let e=f$();gx(`ngIf`,!e.dropdownIconTemplate&&!e._dropdownIconTemplate),FB(),gx(`ngIf`,e.dropdownIconTemplate||e._dropdownIconTemplate)}}function dn(t,s){t&1&&Ex(0)}function un(t,s){t&1&&Ex(0)}function mn(t,s){if(t&1&&(Hb(0),rx(1,un,1,0,`ng-container`,30),nh()),t&2){let e=f$(3);FB(),gx(`ngTemplateOutlet`,e.filterTemplate||e._filterTemplate)(`ngTemplateOutletContext`,n5(2,ei,e.filterOptions))}}function hn(t,s){if(t&1&&(RI(),th(0,`svg`,45)),t&2)gx(`pBind`,f$(4).ptm(`filterIcon`))}function fn(t,s){}function _n(t,s){t&1&&rx(0,fn,0,0,`ng-template`)}function gn(t,s){if(t&1&&(wp(0,`span`,36),rx(1,_n,1,0,null,31),kb()),t&2){let e=f$(4);gx(`pBind`,e.ptm(`filterIcon`)),FB(),gx(`ngTemplateOutlet`,e.filterIconTemplate||e._filterIconTemplate)}}function yn(t,s){if(t&1){let e=AV();wp(0,`p-iconfield`,41)(1,`input`,42,10),rh(`input`,function(n){EI(e);return bI(f$(3).onFilterInputChange(n))})(`keydown`,function(n){EI(e);return bI(f$(3).onFilterKeyDown(n))})(`blur`,function(n){EI(e);return bI(f$(3).onFilterBlur(n))}),kb(),wp(3,`p-inputicon`,41),rx(4,hn,1,1,`svg`,43)(5,gn,2,2,`span`,44),kb()()}if(t&2){let e=f$(3);gx(`pt`,e.ptm(`pcFilterContainer`))(`unstyled`,e.unstyled()),FB(),N$(e.cx(`pcFilter`)),gx(`pSize`,e.size())(`value`,e._filterValue()||``)(`variant`,e.$variant())(`pt`,e.ptm(`pcFilter`))(`unstyled`,e.unstyled()),eh(`placeholder`,e.filterPlaceholder)(`aria-owns`,e.id+`_list`)(`aria-label`,e.ariaFilterLabel)(`aria-activedescendant`,e.focusedOptionId),FB(2),gx(`pt`,e.ptm(`pcFilterIconContainer`))(`unstyled`,e.unstyled()),FB(),gx(`ngIf`,!e.filterIconTemplate&&!e._filterIconTemplate),FB(),gx(`ngIf`,e.filterIconTemplate||e._filterIconTemplate)}}function bn(t,s){if(t&1&&(wp(0,`div`,29),rh(`click`,function(i){return i.stopPropagation()}),rx(1,mn,2,4,`ng-container`,20)(2,yn,6,17,`ng-template`,null,9,m5),kb()),t&2){let e=g$(3),i=f$(2);N$(i.cx(`header`)),gx(`pBind`,i.ptm(`header`)),FB(),gx(`ngIf`,i.filterTemplate||i._filterTemplate)(`ngIfElse`,e)}}function vn(t,s){t&1&&Ex(0)}function Tn(t,s){if(t&1&&rx(0,vn,1,0,`ng-container`,30),t&2){let e=s.$implicit,i=s.options;f$(2);gx(`ngTemplateOutlet`,g$(9))(`ngTemplateOutletContext`,r5(2,ti,e,i))}}function xn(t,s){t&1&&Ex(0)}function In(t,s){if(t&1&&rx(0,xn,1,0,`ng-container`,30),t&2){let e=s.options,i=f$(4);gx(`ngTemplateOutlet`,i.loaderTemplate||i._loaderTemplate)(`ngTemplateOutletContext`,n5(2,ei,e))}}function Cn(t,s){t&1&&(Hb(0),rx(1,In,1,4,`ng-template`,null,12,m5),nh())}function On(t,s){if(t&1){let e=AV();wp(0,`p-scroller`,46,11),rh(`onLazyLoad`,function(n){EI(e);return bI(f$(2).onLazyLoad.emit(n))}),rx(2,Tn,1,5,`ng-template`,null,2,m5)(4,Cn,3,0,`ng-container`,18),kb()}if(t&2){let e=f$(2);A$(n5(9,ye,e.scrollHeight)),gx(`items`,e.visibleOptions())(`itemSize`,e.virtualScrollItemSize)(`autoSize`,!0)(`lazy`,e.lazy)(`options`,e.virtualScrollOptions)(`pt`,e.ptm(`virtualScroller`)),FB(4),gx(`ngIf`,e.loaderTemplate||e._loaderTemplate)}}function Sn(t,s){t&1&&Ex(0)}function wn(t,s){if(t&1&&(Hb(0),rx(1,Sn,1,0,`ng-container`,30),nh()),t&2){f$();let e=g$(9),i=f$();FB(),gx(`ngTemplateOutlet`,e)(`ngTemplateOutletContext`,r5(3,ti,i.visibleOptions(),t5(2,Hi)))}}function En(t,s){if(t&1&&(wp(0,`span`,36),j$(1),kb()),t&2){let e=f$(2).$implicit,i=f$(3);N$(i.cx(`optionGroupLabel`)),gx(`pBind`,i.ptm(`optionGroupLabel`)),FB(),oA(i.getOptionGroupLabel(e.optionGroup))}}function Vn(t,s){t&1&&Ex(0)}function Fn(t,s){if(t&1&&(Hb(0),wp(1,`li`,50),rx(2,En,2,4,`span`,34)(3,Vn,1,0,`ng-container`,30),kb(),nh()),t&2){let e=f$(),i=e.$implicit,n=e.index,o=f$().options,l=f$(2);FB(),N$(l.cx(`optionGroup`)),gx(`ngStyle`,n5(8,ye,o.itemSize+`px`))(`pBind`,l.ptm(`optionGroup`)),eh(`id`,l.id+`_`+l.getOptionIndex(n,o)),FB(),gx(`ngIf`,!l.groupTemplate&&!l._groupTemplate),FB(),gx(`ngTemplateOutlet`,l.groupTemplate||l._groupTemplate)(`ngTemplateOutletContext`,n5(10,Qe,i.optionGroup))}}function Ln(t,s){if(t&1){let e=AV();Hb(0),wp(1,`p-selectItem`,51),rh(`onClick`,function(n){EI(e);let o=f$().$implicit;return bI(f$(3).onOptionSelect(n,o))})(`onMouseEnter`,function(n){EI(e);let o=f$().index,l=f$().options,g=f$(2);return bI(g.onOptionMouseEnter(n,g.getOptionIndex(o,l)))}),kb(),nh()}if(t&2){let e=f$(),i=e.$implicit,n=e.index,o=f$().options,l=f$(2);FB(),gx(`id`,l.id+`_`+l.getOptionIndex(n,o))(`option`,i)(`checkmark`,l.checkmark)(`selected`,l.isSelected(i))(`label`,l.getOptionLabel(i))(`disabled`,l.isOptionDisabled(i))(`template`,l.itemTemplate||l._itemTemplate)(`focused`,l.focusedOptionIndex()===l.getOptionIndex(n,o))(`ariaPosInset`,l.getAriaPosInset(l.getOptionIndex(n,o)))(`ariaSetSize`,l.ariaSetSize)(`index`,n)(`unstyled`,l.unstyled())(`scrollerOptions`,o)}}function kn(t,s){if(t&1&&rx(0,Fn,4,12,`ng-container`,18)(1,Ln,2,13,`ng-container`,18),t&2){let e=s.$implicit,i=f$(3);gx(`ngIf`,i.isOptionGroup(e)),FB(),gx(`ngIf`,!i.isOptionGroup(e))}}function Mn(t,s){if(t&1&&j$(0),t&2)zb(` `,f$(4).emptyFilterMessageLabel,` `)}function Dn(t,s){t&1&&Ex(0,null,14)}function Bn(t,s){if(t&1&&rx(0,Dn,2,0,`ng-container`,31),t&2){let e=f$(4);gx(`ngTemplateOutlet`,e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function Nn(t,s){if(t&1&&(wp(0,`li`,50),EV(1,Mn,1,1)(2,Bn,1,1,`ng-container`),kb()),t&2){let e=f$().options,i=f$(2);N$(i.cx(`emptyMessage`)),gx(`ngStyle`,n5(5,ye,e.itemSize+`px`))(`pBind`,i.ptm(`emptyMessage`)),FB(),bV(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function Pn(t,s){if(t&1&&j$(0),t&2){let e=f$(4);zb(` `,e.emptyMessageLabel||e.emptyFilterMessageLabel,` `)}}function zn(t,s){t&1&&Ex(0,null,15)}function Hn(t,s){if(t&1&&rx(0,zn,2,0,`ng-container`,31),t&2){let e=f$(4);gx(`ngTemplateOutlet`,e.emptyTemplate||e._emptyTemplate)}}function An(t,s){if(t&1&&(wp(0,`li`,50),EV(1,Pn,1,1)(2,Hn,1,1,`ng-container`),kb()),t&2){let e=f$().options,i=f$(2);N$(i.cx(`emptyMessage`)),gx(`ngStyle`,n5(5,ye,e.itemSize+`px`))(`pBind`,i.ptm(`emptyMessage`)),FB(),bV(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function Rn(t,s){if(t&1&&(wp(0,`ul`,47,13),rx(2,kn,2,2,`ng-template`,48)(3,Nn,3,7,`li`,49)(4,An,3,7,`li`,49),kb()),t&2){let e=s.$implicit,i=s.options,n=f$(2);A$(i.contentStyle),N$(n.cn(n.cx(`list`),i.contentStyleClass)),gx(`pBind`,n.ptm(`list`)),eh(`id`,n.id+`_list`)(`aria-label`,n.listLabel),FB(2),gx(`ngForOf`,e),FB(),gx(`ngIf`,n.filterValue&&n.isEmpty()),FB(),gx(`ngIf`,!n.filterValue&&n.isEmpty())}}function $n(t,s){t&1&&Ex(0)}function Gn(t,s){if(t&1){let e=AV();wp(0,`div`,38)(1,`span`,39,6),rh(`focus`,function(n){EI(e);return bI(f$().onFirstHiddenFocus(n))}),kb(),rx(3,dn,1,0,`ng-container`,31)(4,bn,4,5,`div`,27),wp(5,`div`,36),rx(6,On,5,11,`p-scroller`,40)(7,wn,2,6,`ng-container`,18)(8,Rn,5,10,`ng-template`,null,7,m5),kb(),rx(10,$n,1,0,`ng-container`,31),wp(11,`span`,39,8),rh(`focus`,function(n){EI(e);return bI(f$().onLastHiddenFocus(n))}),kb()()}if(t&2){let e=f$();N$(e.cn(e.cx(`overlay`),e.panelStyleClass)),gx(`ngStyle`,e.panelStyle)(`pBind`,e.ptm(`overlay`)),eh(`data-p`,e.overlayDataP),FB(),gx(`pBind`,e.ptm(`hiddenFirstFocusableEl`)),eh(`tabindex`,0)(`data-p-hidden-accessible`,!0)(`data-p-hidden-focusable`,!0),FB(2),gx(`ngTemplateOutlet`,e.headerTemplate||e._headerTemplate),FB(),gx(`ngIf`,e.filter),FB(),N$(e.cx(`listContainer`)),Yx(`max-height`,e.virtualScroll?`auto`:e.scrollHeight||`auto`),gx(`pBind`,e.ptm(`listContainer`)),FB(),gx(`ngIf`,e.virtualScroll),FB(),gx(`ngIf`,!e.virtualScroll),FB(3),gx(`ngTemplateOutlet`,e.footerTemplate||e._footerTemplate),FB(),gx(`pBind`,e.ptm(`hiddenLastFocusableEl`)),eh(`tabindex`,0)(`data-p-hidden-accessible`,!0)(`data-p-hidden-focusable`,!0)}}var Kn=`
    ${Yt}

    /* For PrimeNG */
    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.ng-invalid.ng-dirty {
        border-color: dt('select.invalid.border.color');
    }

    .p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
    .p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }
`;var qn={root:({instance:t})=>[`p-select p-component p-inputwrapper`,{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()===`filled`,"p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()===`small`,"p-select-lg p-inputfield-lg":t.size()===`large`}],label:({instance:t})=>[`p-select-label`,{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()===`p-emptylabel`||t.label().length===0)}],clearIcon:`p-select-clear-icon`,dropdown:`p-select-dropdown`,loadingIcon:`p-select-loading-icon`,dropdownIcon:`p-select-dropdown-icon`,overlay:`p-select-overlay p-component-overlay p-component`,header:`p-select-header`,pcFilter:`p-select-filter`,listContainer:`p-select-list-container`,list:`p-select-list`,optionGroup:`p-select-option-group`,optionGroupLabel:`p-select-option-group-label`,option:({instance:t})=>[`p-select-option`,{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:`p-select-option-label`,optionCheckIcon:`p-select-option-check-icon`,optionBlankIcon:`p-select-option-blank-icon`,emptyMessage:`p-select-empty-message`};var ke=(()=>{class t extends I{name=`select`;style=Kn;classes=qn;static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵprov=S({token:t,factory:t.ɵfac})}return t})();var ii=new x$1(`SELECT_INSTANCE`);var Qn=new x$1(`SELECT_ITEM_INSTANCE`);var Un={provide:D,useExisting:wf(()=>Me),multi:!0};var jn=(()=>{class t extends Y{hostName=`select`;$pcSelectItem=g(Qn,{optional:!0,skipSelf:!0})??void 0;$pcSelect=g(ii,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new zt$1;onMouseEnter=new zt$1;_componentStyle=g(ke);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,`option`)??this.$pcSelect?.ptm(`option`,{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static ɵfac=(()=>{let e;return function(n){return(e||(e=iu(t)))(n||t)}})();static ɵcmp=Va({type:t,selectors:[[`p-selectItem`]],inputs:{id:`id`,option:`option`,selected:[2,`selected`,`selected`,Tu],focused:[2,`focused`,`focused`,Tu],label:`label`,disabled:[2,`disabled`,`disabled`,Tu],visible:[2,`visible`,`visible`,Tu],itemSize:[2,`itemSize`,`itemSize`,q5],ariaPosInset:`ariaPosInset`,ariaSetSize:`ariaSetSize`,template:`template`,checkmark:[2,`checkmark`,`checkmark`,Tu],index:`index`,scrollerOptions:`scrollerOptions`},outputs:{onClick:`onClick`,onMouseEnter:`onMouseEnter`},features:[e5([ke,{provide:ge,useExisting:t}]),tx],decls:4,vars:21,consts:[[`role`,`option`,`pRipple`,``,3,`click`,`mouseenter`,`id`,`pBind`,`ngStyle`],[4,`ngIf`],[3,`pBind`,4,`ngIf`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`data-p-icon`,`check`,3,`class`,`pBind`,4,`ngIf`],[`data-p-icon`,`blank`,3,`class`,`pBind`,4,`ngIf`],[`data-p-icon`,`check`,3,`pBind`],[`data-p-icon`,`blank`,3,`pBind`],[3,`pBind`]],template:function(i,n){i&1&&(wp(0,`li`,0),rh(`click`,function(l){return n.onOptionClick(l)})(`mouseenter`,function(l){return n.onOptionMouseEnter(l)}),rx(1,hi,3,2,`ng-container`,1)(2,fi,2,2,`span`,2)(3,_i,1,0,`ng-container`,3),kb()),i&2&&(N$(n.cx(`option`)),gx(`id`,n.id)(`pBind`,n.getPTOptions())(`ngStyle`,n5(17,ye,(n.scrollerOptions==null?null:n.scrollerOptions.itemSize)+`px`)),eh(`aria-label`,n.label)(`aria-setsize`,n.ariaSetSize)(`aria-posinset`,n.ariaPosInset)(`aria-selected`,n.selected)(`data-p-focused`,n.focused)(`data-p-highlight`,n.selected)(`data-p-selected`,n.selected)(`data-p-disabled`,n.disabled),FB(),gx(`ngIf`,n.checkmark),FB(),gx(`ngIf`,!n.template),FB(),gx(`ngTemplateOutlet`,n.template)(`ngTemplateOutletContext`,n5(19,Qe,n.option)))},dependencies:[Au,T3,D3,C3,Uxe,co$1,Nt,$t,qo,Z],encapsulation:2,changeDetection:1})}return t})();var Me=(()=>{class t extends Kr{zone;filterService;componentName=`Select`;bindDirectiveInstance=g(Z,{self:!0});id;scrollHeight=`200px`;filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel=`label`;optionGroupChildren=`items`;group;showClear;emptyFilterMessage=``;emptyMessage=``;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode=`contains`;tooltip=``;tooltipPosition=`right`;tooltipPositionStyle=`absolute`;tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){H4(e,this._options())||this._options.set(e)}appendTo=ph(void 0);motionOptions=ph(void 0);onChange=new zt$1;onFilter=new zt$1;onFocus=new zt$1;onBlur=new zt$1;onClick=new zt$1;onShow=new zt$1;onHide=new zt$1;onClear=new zt$1;onLazyLoad=new zt$1;_componentStyle=g(ke);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=bu(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=Je(null);_placeholder=Je(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=Je(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=Je(-1);labelId;listId;clicked=Je(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Hxe.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Hxe.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Hxe.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=bu(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],l=[];return o.forEach(g=>{let je=this.getOptionGroupChildren(g).filter(li=>n?.includes(li));je.length>0&&l.push(x(w({},g),{[typeof this.optionGroupChildren==`string`?this.optionGroupChildren:`items`]:[...je]}))}),this.flatOptions(l)}return n}return e});label=bu(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||`p-emptylabel`});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,FI(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&MT(o)){let l=this.findSelectedOptionIndex();if(l!==-1||n===void 0||typeof n==`string`&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[l];else{let g=o.findIndex(Ue=>this.isSelected(Ue));g!==-1&&(this.selectedOption=o[g])}}U4(o)&&(n===void 0||this.isModelValueNotSet())&&MT(this.selectedOption)&&(this.selectedOption=null),n!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||Wt$1(`pn_id_`),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case`item`:this._itemTemplate=e.template;break;case`selectedItem`:this._selectedItemTemplate=e.template;break;case`header`:this._headerTemplate=e.template;break;case`filter`:this._filterTemplate=e.template;break;case`footer`:this._footerTemplate=e.template;break;case`emptyfilter`:this._emptyFilterTemplate=e.template;break;case`empty`:this._emptyTemplate=e.template;break;case`group`:this._groupTemplate=e.template;break;case`loader`:this._loaderTemplate=e.template;break;case`dropdownicon`:this._dropdownIconTemplate=e.template;break;case`loadingicon`:this._loadingIconTemplate=e.template;break;case`clearicon`:this._clearIconTemplate=e.template;break;case`filtericon`:this._filterIconTemplate=e.template;break;case`cancelicon`:this._cancelIconTemplate=e.template;break;case`onicon`:this._onIconTemplate=e.template;break;case`officon`:this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=wi$1(this.overlayViewChild?.overlayViewChild?.nativeElement,`li[data-p-selected="true"]`);e&&Ri$1(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let l=this.getOptionGroupChildren(n);return l&&l.forEach(g=>i.push(g)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let l=this.getOptionValue(i);this.updateModel(l,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:l})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&OT(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains(`p-float-label`);if(e&&i&&!this.selectedOption){let n=e.querySelector(`label`);n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||``)}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=``)}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?_m(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?_m(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return U4(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?_m(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?_m(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?_m(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=``)}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName===`INPUT`||e.target.getAttribute(`data-pc-section`)===`clearicon`||e.target.closest(`[data-pc-section="clearicon"]`)||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue=``,!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&MT(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&xi$1(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=wi$1(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?`[data-pc-name="virtualscroller"]`:`[data-pc-section="listcontainer"]`),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&setTimeout(()=>{this.scroller?.scrollToIndex(i)},10)}else{let i=wi$1(this.itemsWrapper,`[data-p-selected="true"]`);i&&i.scrollIntoView({block:`nearest`,inline:`nearest`})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e)}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue=``,this.overlayOptions?.mode===`modal`&&cr(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&xi$1(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&xi$1(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,this.editable);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,this.editable);break;case`Delete`:this.onDeleteKey(e);break;case`Home`:this.onHomeKey(e,this.editable);break;case`End`:this.onEndKey(e,this.editable);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Space`:this.onSpaceKey(e,i);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`ShiftLeft`:case`ShiftRight`:break;default:!e.metaKey&&Ixe(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,!0);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e,!0);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=wi$1(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:`nearest`,inline:`nearest`}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?Txe(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return Txe(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())xi$1(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){xi$1(e.relatedTarget===this.focusInputViewChild?.nativeElement?Ei$1(this.overlayViewChild?.el?.nativeElement,`:not([data-p-hidden-focusable="true"])`):this.focusInputViewChild?.nativeElement)}onLastHiddenFocus(e){xi$1(e.relatedTarget===this.focusInputViewChild?.nativeElement?Ni$1(this.overlayViewChild?.overlayViewChild?.nativeElement,`:not([data-p-hidden-focusable="true"])`):this.focusInputViewChild?.nativeElement)}hasFocusableElements(){return Lt(this.overlayViewChild?.overlayViewChild?.nativeElement,`:not([data-p-hidden-focusable="true"])`).length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(`,`)||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||``)+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,n)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue=``,this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?wi$1(this.el.nativeElement,`[data-pc-section="label"]`).focus():xi$1(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()===`filled`,[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.$disabled(),[this.size()]:this.size(),empty:!this.editable&&!this.selectedItemTemplate&&(!this.label?.()||this.label()===`p-emptylabel`||this.label()?.length===0)})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({[`overlay-`+this.$appendTo()]:`overlay-`+this.$appendTo()})}static ɵfac=function(i){return new(i||t)(fe(ae),fe(Oxe))};static ɵcmp=Va({type:t,selectors:[[`p-select`]],contentQueries:function(i,n,o){if(i&1&&sh(o,gi,4)(o,yi,4)(o,bi,4)(o,vi,4)(o,Ti,4)(o,Jt,4)(o,xi,4)(o,Ii,4)(o,Ci,4)(o,Oi,4)(o,Si,4)(o,wi,4)(o,Ei,4)(o,Vi,4)(o,Fi,4)(o,Li,4)(o,Fxe,4),i&2){let l;$b(l=Gb())&&(n.itemTemplate=l.first),$b(l=Gb())&&(n.groupTemplate=l.first),$b(l=Gb())&&(n.loaderTemplate=l.first),$b(l=Gb())&&(n.selectedItemTemplate=l.first),$b(l=Gb())&&(n.headerTemplate=l.first),$b(l=Gb())&&(n.filterTemplate=l.first),$b(l=Gb())&&(n.footerTemplate=l.first),$b(l=Gb())&&(n.emptyFilterTemplate=l.first),$b(l=Gb())&&(n.emptyTemplate=l.first),$b(l=Gb())&&(n.dropdownIconTemplate=l.first),$b(l=Gb())&&(n.loadingIconTemplate=l.first),$b(l=Gb())&&(n.clearIconTemplate=l.first),$b(l=Gb())&&(n.filterIconTemplate=l.first),$b(l=Gb())&&(n.onIconTemplate=l.first),$b(l=Gb())&&(n.offIconTemplate=l.first),$b(l=Gb())&&(n.cancelIconTemplate=l.first),$b(l=Gb())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&jx(Jt,5)(ki,5)(Mi,5)(Di,5)(Bi,5)(Ni,5)(Pi,5)(zi,5),i&2){let o;$b(o=Gb())&&(n.filterViewChild=o.first),$b(o=Gb())&&(n.focusInputViewChild=o.first),$b(o=Gb())&&(n.editableInputViewChild=o.first),$b(o=Gb())&&(n.itemsViewChild=o.first),$b(o=Gb())&&(n.scroller=o.first),$b(o=Gb())&&(n.overlayViewChild=o.first),$b(o=Gb())&&(n.firstHiddenFocusableElementOnOverlay=o.first),$b(o=Gb())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&rh(`click`,function(l){return n.onContainerClick(l)}),i&2&&(eh(`id`,n.id)(`data-p`,n.containerDataP),N$(n.cn(n.cx(`root`),n.styleClass)))},inputs:{id:`id`,scrollHeight:`scrollHeight`,filter:[2,`filter`,`filter`,Tu],panelStyle:`panelStyle`,styleClass:`styleClass`,panelStyleClass:`panelStyleClass`,readonly:[2,`readonly`,`readonly`,Tu],editable:[2,`editable`,`editable`,Tu],tabindex:[2,`tabindex`,`tabindex`,q5],placeholder:`placeholder`,loadingIcon:`loadingIcon`,filterPlaceholder:`filterPlaceholder`,filterLocale:`filterLocale`,inputId:`inputId`,dataKey:`dataKey`,filterBy:`filterBy`,filterFields:`filterFields`,autofocus:[2,`autofocus`,`autofocus`,Tu],resetFilterOnHide:[2,`resetFilterOnHide`,`resetFilterOnHide`,Tu],checkmark:[2,`checkmark`,`checkmark`,Tu],dropdownIcon:`dropdownIcon`,loading:[2,`loading`,`loading`,Tu],optionLabel:`optionLabel`,optionValue:`optionValue`,optionDisabled:`optionDisabled`,optionGroupLabel:`optionGroupLabel`,optionGroupChildren:`optionGroupChildren`,group:[2,`group`,`group`,Tu],showClear:[2,`showClear`,`showClear`,Tu],emptyFilterMessage:`emptyFilterMessage`,emptyMessage:`emptyMessage`,lazy:[2,`lazy`,`lazy`,Tu],virtualScroll:[2,`virtualScroll`,`virtualScroll`,Tu],virtualScrollItemSize:[2,`virtualScrollItemSize`,`virtualScrollItemSize`,q5],virtualScrollOptions:`virtualScrollOptions`,overlayOptions:`overlayOptions`,ariaFilterLabel:`ariaFilterLabel`,ariaLabel:`ariaLabel`,ariaLabelledBy:`ariaLabelledBy`,filterMatchMode:`filterMatchMode`,tooltip:`tooltip`,tooltipPosition:`tooltipPosition`,tooltipPositionStyle:`tooltipPositionStyle`,tooltipStyleClass:`tooltipStyleClass`,focusOnHover:[2,`focusOnHover`,`focusOnHover`,Tu],selectOnFocus:[2,`selectOnFocus`,`selectOnFocus`,Tu],autoOptionFocus:[2,`autoOptionFocus`,`autoOptionFocus`,Tu],autofocusFilter:[2,`autofocusFilter`,`autofocusFilter`,Tu],filterValue:`filterValue`,options:`options`,appendTo:[1,`appendTo`],motionOptions:[1,`motionOptions`]},outputs:{onChange:`onChange`,onFilter:`onFilter`,onFocus:`onFocus`,onBlur:`onBlur`,onClick:`onClick`,onShow:`onShow`,onHide:`onHide`,onClear:`onClear`,onLazyLoad:`onLazyLoad`},features:[e5([Un,ke,{provide:ii,useExisting:t},{provide:ge,useExisting:t}]),x2([Z]),tx],decls:11,vars:18,consts:[[`elseBlock`,``],[`overlay`,``],[`content`,``],[`focusInput`,``],[`defaultPlaceholder`,``],[`editableInput`,``],[`firstHiddenFocusableEl`,``],[`buildInItems`,``],[`lastHiddenFocusableEl`,``],[`builtInFilterElement`,``],[`filter`,``],[`scroller`,``],[`loader`,``],[`items`,``],[`emptyFilter`,``],[`empty`,``],[`role`,`combobox`,3,`class`,`pBind`,`pTooltip`,`pTooltipUnstyled`,`tooltipPosition`,`positionStyle`,`tooltipStyleClass`,`pAutoFocus`,`focus`,`blur`,`keydown`,4,`ngIf`],[`type`,`text`,3,`class`,`pBind`,`pAutoFocus`,`input`,`keydown`,`focus`,`blur`,4,`ngIf`],[4,`ngIf`],[`role`,`button`,`aria-label`,`dropdown trigger`,`aria-haspopup`,`listbox`,3,`pBind`],[4,`ngIf`,`ngIfElse`],[3,`visibleChange`,`onBeforeEnter`,`onAfterLeave`,`onHide`,`hostAttrSelector`,`visible`,`options`,`target`,`appendTo`,`unstyled`,`pt`,`motionOptions`],[`role`,`combobox`,3,`focus`,`blur`,`keydown`,`pBind`,`pTooltip`,`pTooltipUnstyled`,`tooltipPosition`,`positionStyle`,`tooltipStyleClass`,`pAutoFocus`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`,4,`ngIf`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`type`,`text`,3,`input`,`keydown`,`focus`,`blur`,`pBind`,`pAutoFocus`],[`data-p-icon`,`times`,3,`class`,`pBind`,`click`,4,`ngIf`],[3,`class`,`pBind`,`click`,4,`ngIf`],[`data-p-icon`,`times`,3,`click`,`pBind`],[3,`click`,`pBind`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[4,`ngTemplateOutlet`],[`aria-hidden`,`true`,3,`class`,`pBind`,4,`ngIf`],[`aria-hidden`,`true`,3,`pBind`],[3,`class`,`pBind`,4,`ngIf`],[`data-p-icon`,`chevron-down`,3,`class`,`pBind`,4,`ngIf`],[3,`pBind`],[`data-p-icon`,`chevron-down`,3,`pBind`],[3,`ngStyle`,`pBind`],[`role`,`presentation`,1,`p-hidden-accessible`,`p-hidden-focusable`,3,`focus`,`pBind`],[`hostName`,`select`,3,`items`,`style`,`itemSize`,`autoSize`,`lazy`,`options`,`pt`,`onLazyLoad`,4,`ngIf`],[3,`pt`,`unstyled`],[`pInputText`,``,`type`,`text`,`role`,`searchbox`,`autocomplete`,`off`,3,`input`,`keydown`,`blur`,`pSize`,`value`,`variant`,`pt`,`unstyled`],[`data-p-icon`,`search`,3,`pBind`,4,`ngIf`],[3,`pBind`,4,`ngIf`],[`data-p-icon`,`search`,3,`pBind`],[`hostName`,`select`,3,`onLazyLoad`,`items`,`itemSize`,`autoSize`,`lazy`,`options`,`pt`],[`role`,`listbox`,3,`pBind`],[`ngFor`,``,3,`ngForOf`],[`role`,`option`,3,`class`,`ngStyle`,`pBind`,4,`ngIf`],[`role`,`option`,3,`ngStyle`,`pBind`],[3,`onClick`,`onMouseEnter`,`id`,`option`,`checkmark`,`selected`,`label`,`disabled`,`template`,`focused`,`ariaPosInset`,`ariaSetSize`,`index`,`unstyled`,`scrollerOptions`]],template:function(i,n){if(i&1){let o=AV();rx(0,Ki,6,25,`span`,16)(1,qi,2,20,`input`,17)(2,Zi,3,2,`ng-container`,18),wp(3,`div`,19),rx(4,nn,3,2,`ng-container`,20)(5,cn,2,2,`ng-template`,null,0,m5),kb(),wp(7,`p-overlay`,21,1),lA(`visibleChange`,function(g){return EI(o),W$(n.overlayVisible,g)||(n.overlayVisible=g),bI(g)}),rh(`onBeforeEnter`,function(g){return n.onOverlayBeforeEnter(g)})(`onAfterLeave`,function(g){return n.onOverlayAfterLeave(g)})(`onHide`,function(){return n.hide()}),rx(9,Gn,13,23,`ng-template`,null,2,m5),kb()}if(i&2){let o=g$(6);gx(`ngIf`,!n.editable),FB(),gx(`ngIf`,n.editable),FB(),gx(`ngIf`,n.isVisibleClearIcon),FB(),N$(n.cx(`dropdown`)),gx(`pBind`,n.ptm(`dropdown`)),eh(`aria-expanded`,n.overlayVisible??!1)(`data-pc-section`,`trigger`),FB(),gx(`ngIf`,n.loading)(`ngIfElse`,o),FB(3),gx(`hostAttrSelector`,n.$attrSelector),cA(`visible`,n.overlayVisible),gx(`options`,n.overlayOptions)(`target`,`@parent`)(`appendTo`,n.$appendTo())(`unstyled`,n.unstyled())(`pt`,n.ptm(`pcOverlay`))(`motionOptions`,n.motionOptions())}},dependencies:[Au,lR,T3,D3,C3,jn,Ii$1,Zt,Sr,rr,Kn$1,Gt,us,Rt,Qt,nn$1,Uxe,qo,Z],encapsulation:2})}return t})();var ni=(()=>{class t{static ɵfac=function(i){return new(i||t)};static ɵmod=Vn$1({type:t});static ɵinj=Cn$1({imports:[Me,Uxe,Uxe]})}return t})();var Zn=[`selectOption`];var Yn=[`itemExtra`];var De=t=>({$implicit:t});var Jn=(t,s)=>({$implicit:t,description:s});function Xn(t,s){}function eo(t,s){}function to(t,s){if(t&1&&rx(0,eo,0,0,`ng-template`,4),t&2){let e=f$(2).$implicit;gx(`ngTemplateOutlet`,f$().itemExtraTemplate)(`ngTemplateOutletContext`,n5(2,De,e))}}function io(t,s){if(t&1&&(rx(0,Xn,0,0,`ng-template`,4),EV(1,to,1,4,null,4)),t&2){let e=f$().$implicit,i=f$();gx(`ngTemplateOutlet`,i.selectOptionTemplate)(`ngTemplateOutletContext`,n5(3,De,e)),FB(),bV(i.itemExtraTemplate?1:-1)}}function no(t,s){if(t&1&&th(0,`img`,6),t&2){let e=f$(2).$implicit;gx(`src`,e.imageUrl,Pw)}}function oo(t,s){}function lo(t,s){if(t&1&&rx(0,oo,0,0,`ng-template`,4),t&2){let e=f$(2).$implicit;gx(`ngTemplateOutlet`,f$().itemExtraTemplate)(`ngTemplateOutletContext`,n5(2,De,e))}}function so(t,s){if(t&1&&(wp(0,`span`,9),j$(1),kb()),t&2){let e=f$(2),i=e.$implicit,n=e.description;Kx(`has-image`,i?.imageUrl),FB(),oA(n)}}function ao(t,s){if(t&1&&(wp(0,`div`)(1,`div`,5),EV(2,no,1,1,`img`,6),wp(3,`span`,7),j$(4),kb(),EV(5,lo,1,4,null,4),kb(),EV(6,so,2,3,`span`,8),kb()),t&2){let e=f$(),i=e.$implicit,n=e.description,o=f$();FB(2),bV(i?.imageUrl?2:-1),FB(),gx(`ngClass`,i?.classes),FB(),oA(i?.label),FB(),bV(o.itemExtraTemplate?5:-1),FB(),bV(n?6:-1)}}function ro(t,s){if(t&1&&EV(0,io,2,5)(1,ao,7,5,`div`),t&2)bV(f$().selectOptionTemplate?0:1)}function po(t,s){}function co(t,s){if(t&1&&rx(0,po,0,0,`ng-template`,4),t&2){let e=f$();gx(`ngTemplateOutlet`,g$(2))(`ngTemplateOutletContext`,n5(2,De,e.getSelectedItem()))}}function uo(t,s){}function mo(t,s){if(t&1&&rx(0,uo,0,0,`ng-template`,4),t&2){let e=s.$implicit;f$();gx(`ngTemplateOutlet`,g$(2))(`ngTemplateOutletContext`,r5(2,Jn,e,e.description))}}var oi=class t{cd=g(Os);items=ph([]);inputId=ph.required();clearable=ph(!1,{transform:Tu});filter=ph(!1,{transform:Tu});resetFilterOnHide=ph(!1,{transform:Tu});small=ph(!1,{transform:Tu});placeholder=ph(``);group=ph(!1,{transform:Tu});filterPlaceholder=ph("Leita");emptyFilterMessage=ph("Engar niðurstöður fundust");emptyMessage=ph("Engin atriði tiltæk");appendTo=ph();virtualScroll=ph(!1,{transform:Tu});virtualScrollItemSize=ph(39,{transform:q5});onHide=Ehe();onFilter=Ehe();selectOptionTemplate;itemExtraTemplate;selectedId;disabled=!1;wroteValue;propagateChange=s=>{};handleChange(s){let e=s;e.role!==`searchbox`&&(this.writeValue(e.value),this.onModelChange())}writeValue(s){this.selectedId=s,this.wroteValue=s,this.cd.detectChanges()}registerOnChange(s){this.propagateChange=s}registerOnTouched(){}onModelChange(){this.wroteValue!==void 0&&this.wroteValue===this.selectedId||(this.wroteValue=void 0,this.propagateChange(this.selectedId))}setDisabledState(s){this.disabled=s}getSelectedItem(){return(this.group()?this.items().reduce((e,i)=>e.concat(i.items),[]):this.items()).find(e=>e.id===this.selectedId)}static ɵfac=function(e){return new(e||t)};static ɵcmp=Va({type:t,selectors:[[`my-select-options`]],contentQueries:function(e,i,n){if(e&1&&sh(n,Zn,4)(n,Yn,4),e&2){let o;$b(o=Gb())&&(i.selectOptionTemplate=o.first),$b(o=Gb())&&(i.itemExtraTemplate=o.first)}},hostBindings:function(e,i){e&1&&rh(`change`,function(o){return i.handleChange(o.target)})},inputs:{items:[1,`items`],inputId:[1,`inputId`],clearable:[1,`clearable`],filter:[1,`filter`],resetFilterOnHide:[1,`resetFilterOnHide`],small:[1,`small`],placeholder:[1,`placeholder`],group:[1,`group`],filterPlaceholder:[1,`filterPlaceholder`],emptyFilterMessage:[1,`emptyFilterMessage`],emptyMessage:[1,`emptyMessage`],appendTo:[1,`appendTo`],virtualScroll:[1,`virtualScroll`],virtualScrollItemSize:[1,`virtualScrollItemSize`]},outputs:{onHide:`onHide`,onFilter:`onFilter`},features:[e5([{provide:D,useExisting:wf(()=>t),multi:!0}])],decls:7,vars:16,consts:[[`itemTemplate`,``],[`selectedItem`,``],[`item`,``],[`optionValue`,`id`,`label`,``,`filterBy`,`label`,`fluid`,`true`,3,`ngModelChange`,`onHide`,`onFilter`,`inputId`,`options`,`group`,`ngModel`,`showClear`,`filter`,`resetFilterOnHide`,`virtualScroll`,`virtualScrollItemSize`,`appendTo`,`placeholder`,`filterPlaceholder`,`emptyFilterMessage`,`emptyMessage`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`d-flex`,`align-items-center`,`item-label`,`custom-item`],[`alt`,``,3,`src`],[1,`ellipsis`,3,`ngClass`],[1,`muted`,3,`has-image`],[1,`muted`]],template:function(e,i){if(e&1){let n=AV();wp(0,`p-select`,3),lA(`ngModelChange`,function(l){return EI(n),W$(i.selectedId,l)||(i.selectedId=l),bI(l)}),rh(`ngModelChange`,function(){return i.onModelChange()})(`onHide`,function(){return i.onHide.emit()})(`onFilter`,function(l){return i.onFilter.emit(l)}),rx(1,ro,2,1,`ng-template`,null,0,m5)(3,co,1,4,`ng-template`,null,1,m5)(5,mo,1,5,`ng-template`,null,2,m5),kb(),kj()}e&2&&(Kx(`small`,i.small()),gx(`inputId`,i.inputId())(`options`,i.items())(`group`,i.group()),cA(`ngModel`,i.selectedId),gx(`showClear`,i.clearable())(`filter`,i.filter())(`resetFilterOnHide`,i.resetFilterOnHide())(`virtualScroll`,i.virtualScroll())(`virtualScrollItemSize`,i.virtualScrollItemSize())(`appendTo`,i.appendTo())(`placeholder`,i.placeholder())(`filterPlaceholder`,i.filterPlaceholder())(`emptyFilterMessage`,i.emptyFilterMessage())(`emptyMessage`,i.emptyMessage()),Uj())},dependencies:[ni,Me,Jn$1,qn$1,ln$1,Au,S3,D3],styles:[`img[_ngcontent-%COMP%]{border-radius:50%;height:21px;width:21px;margin-top:-1px;margin-inline-end:.5rem}.muted[_ngcontent-%COMP%]{font-size:90%;line-height:1.2;display:block;white-space:normal}.muted.has-image[_ngcontent-%COMP%]{margin-inline-start:calc(.5rem + 21px)}.item-label[_ngcontent-%COMP%]{min-height:24px}p-select[_ngcontent-%COMP%]     p-overlay{max-width:100%}`],changeDetection:1})};export{Rt as a,oi as c,Qt as i,Me as n,Zt as o,Nt as r,ni as s,Gt as t};
//# debugId=9639674b-39e0-5b55-9995-04a6078c1c93
//# sourceMappingURL=chunk-CEibY8iL.js.map