import{a as Ot,h as Me,i as kt,k as Mt,l as Dt}from"./chunk-NEDP4JVC.js";import{$ as Et,K as yt,L as bt,O as ue,P as ee,S as W,T as te,U as V,V as le,W as he,X as St,_ as wt,a as be,aa as Lt,e as dt,ea as Vt,f as ut,fa as Ft,g as ht,j as $,m as Ge,n as Ve,o as mt,q as G,r as Y,t as ft,u as _t,x as gt,z as J}from"./chunk-HVLAJT7O.js";import{E as ct,a as Le,g as rt,o as pt}from"./chunk-XQH6HV66.js";import{$ as K,Aa as Ze,Ab as Je,Ag as xt,Bc as ce,Da as c,Ec as S,Hb as O,Hg as It,Ja as re,Jb as r,Kb as Ie,Lb as Ce,Lc as ot,Ma as Xe,Mb as Oe,Mc as h,Mg as Ct,Na as E,Nb as et,Nc as A,Ng as oe,Oa as _e,Ob as _,Og as ke,Pa as Ye,Pb as g,Sa as pe,Ta as L,Tb as U,Ua as d,Ub as tt,Vb as it,Wb as ze,Wc as lt,Xb as y,Xc as st,Y as Te,Yb as H,Yc as He,Z,Zb as X,Zc as $e,_ as me,_b as Re,_c as ye,ba as x,cb as w,cc as Se,dc as we,ec as Ee,fd as j,ga as v,gb as q,ha as T,hb as Q,hd as at,ia as D,kc as z,kg as Ke,lc as nt,lg as vt,mb as a,mc as I,na as B,nb as f,nc as ge,ng as Fe,oa as xe,ob as m,og as de,pa as ae,pb as R,pg as Tt,qa as fe,qb as Pe,rb as Ae,sa as C,sb as ne,sg as qe,tb as F,ub as k,vb as M,xc as P,zb as N}from"./chunk-EKZJWO2J.js";import{a as ie,b as We,i as u}from"./chunk-BODC7FZN.js";var oi=["data-p-icon","check"],Bt=(()=>{let l=class l extends he{};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["","data-p-icon","check"]],features:[L],attrs:oi,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(o,i){o&1&&(D(),ne(0,"path",0));},encapsulation:2}));let t=l;return t;})();var Nt=`
    .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 li=["*"],si={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},Pt=(()=>{let l=class l extends ee{name="iconfield";style=Nt;classes=si;};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275prov",Z({token:l,factory:l.ɵfac}));let t=l;return t;})();var At=new K("ICONFIELD_INSTANCE"),Rt=(()=>{let l=class l extends te{componentName="IconField";hostName="";_componentStyle=x(Pt);$pcIconField=x(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(V,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]));}iconPosition="left";styleClass;};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(o,i){o&2&&y(i.cn(i.cx("root"),i.styleClass));},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[z([Pt,{provide:At,useExisting:l},{provide:W,useExisting:l}]),pe([V]),L],ngContentSelectors:li,decls:1,vars:0,template:function(o,i){o&1&&(Ie(),Ce(0));},dependencies:[j,le],encapsulation:2,changeDetection:0}));let t=l;return t;})();var ai=["data-p-icon","blank"],Ht=(()=>{let l=class l extends he{};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["","data-p-icon","blank"]],features:[L],attrs:ai,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(o,i){o&1&&(D(),ne(0,"rect",0));},encapsulation:2}));let t=l;return t;})();var ri=["data-p-icon","search"],$t=(()=>{let l=class l extends he{pathId;onInit(){this.pathId="url(#"+ue()+")";}};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["","data-p-icon","search"]],features:[L],attrs:ri,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(o,i){o&1&&(D(),Pe(0,"g"),ne(1,"path",0),Ae(),Pe(2,"defs")(3,"clipPath",1),ne(4,"rect",2),Ae()()),o&2&&(w("clip-path",i.pathId),c(3),Je("id",i.pathId));},encapsulation:2}));let t=l;return t;})();var pi=["*"],ci={root:"p-inputicon"},Gt=(()=>{let l=class l extends ee{name="inputicon";classes=ci;};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275prov",Z({token:l,factory:l.ɵfac}));let t=l;return t;})(),Kt=new K("INPUTICON_INSTANCE"),qt=(()=>{let l=class l extends te{componentName="InputIcon";hostName="";styleClass;_componentStyle=x(Gt);$pcInputIcon=x(Kt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(V,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]));}};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(o,i){o&2&&y(i.cn(i.cx("root"),i.styleClass));},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[z([Gt,{provide:Kt,useExisting:l},{provide:W,useExisting:l}]),pe([V]),L],ngContentSelectors:pi,decls:1,vars:0,template:function(o,i){o&1&&(Ie(),Ce(0));},dependencies:[j,oe,le],encapsulation:2,changeDetection:0}));let t=l;return t;})();var Qt=`
    .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 di={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Ut=(()=>{let l=class l extends ee{name="tooltip";style=Qt;classes=di;};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275prov",Z({token:l,factory:l.ɵfac}));let t=l;return t;})();var jt=new K("TOOLTIP_INSTANCE"),Wt=(()=>{let l=class l extends te{zone;viewContainer;componentName="Tooltip";$pcTooltip=x(jt,{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=S(void 0);$appendTo=ce(()=>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:ue("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=x(Ut);interactionInProgress=!1;ptTooltip=S();pTooltipPT=S();pTooltipUnstyled=S();constructor(e,o){super(),this.zone=e,this.viewContainer=o,fe(()=>{let i=this.ptTooltip()||this.pTooltipPT();i&&this.directivePT.set(i);}),fe(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled());});}onAfterViewInit(){at(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 o=this.el.nativeElement.querySelector(".p-component");o||(o=this.getTarget(this.el.nativeElement)),o.addEventListener("focus",this.focusListener),o.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=ie(ie({},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():!(be(e.relatedTarget,"p-tooltip")||be(e.relatedTarget,"p-tooltip-text")||be(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=Ve("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let e=Ve("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(e),this.tooltipText=Ve("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"?Ge(this.container,this.el.nativeElement):Ge(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",o=>{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()),mt(this.container,250),this.getOption("tooltipZIndex")==="auto"?Me.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener();}hide(){this.getOption("tooltipZIndex")==="auto"&&Me.clear(this.container),this.remove();}updateText(){let e=this.getOption("tooltipLabel");if(e&&typeof e.createEmbeddedView=="function"){let o=this.viewContainer.createEmbeddedView(e);o.detectChanges(),o.rootNodes.forEach(i=>this.tooltipText.appendChild(i));}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e;}align(){let e=this.getOption("tooltipPosition"),i={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[s,p]of i.entries())if(s===0)p.call(this);else if(this.isOutOfBounds())p.call(this);else break;}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),o=e.left+ut(),i=e.top+ht();return{left:o,top:i};}else return{left:0,top:0};}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?G(this.el.nativeElement,".p-component"):this.el.nativeElement;}alignRight(){this.preAlign("right");let e=this.activeElement,o=$(e),i=(J(e)-J(this.container))/2;this.alignTooltip(o,i);let s=this.getArrowElement();s.style.top="50%",s.style.right=null,s.style.bottom=null,s.style.left="0";}alignLeft(){this.preAlign("left");let e=this.getArrowElement(),o=$(this.container),i=(J(this.el.nativeElement)-J(this.container))/2;this.alignTooltip(-o,i),e.style.top="50%",e.style.right="0",e.style.bottom=null,e.style.left=null;}alignTop(){this.preAlign("top");let e=this.getArrowElement(),o=this.getHostOffset(),i=$(this.container),s=($(this.el.nativeElement)-$(this.container))/2,p=J(this.container);this.alignTooltip(s,-p);let b=o.left-this.getHostOffset().left+i/2;e.style.top=null,e.style.right=null,e.style.bottom="0",e.style.left=b+"px";}getArrowElement(){return G(this.container,'[data-pc-section="arrow"]');}alignBottom(){this.preAlign("bottom");let e=this.getArrowElement(),o=$(this.container),i=this.getHostOffset(),s=($(this.el.nativeElement)-$(this.container))/2,p=J(this.el.nativeElement);this.alignTooltip(s,p);let b=i.left-this.getHostOffset().left+o/2;e.style.top="0",e.style.right=null,e.style.bottom=null,e.style.left=b+"px";}alignTooltip(e,o){let i=this.getHostOffset(),s=i.left+e,p=i.top+o;this.container.style.left=s+this.getOption("positionLeft")+"px",this.container.style.top=p+this.getOption("positionTop")+"px";}setOption(e){this._tooltipOptions=ie(ie({},this._tooltipOptions),e);}getOption(e){return this._tooltipOptions[e];}getTarget(e){return be(e,"p-inputwrapper")?G(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(),o=e.top,i=e.left,s=$(this.container),p=J(this.container),b=dt();return i+s>b.width||i<0||o<0||o+p>b.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 Et(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 o=this.el.nativeElement.querySelector(".p-component");o||(o=this.getTarget(this.el.nativeElement)),o.removeEventListener("focus",this.focusListener),o.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):yt(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&&Me.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener();}};u(l,"\u0275fac",function(o){return new(o||l)(re(xe),re(Xe));}),u(l,"\u0275dir",Ye({type:l,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",h],showDelay:[2,"showDelay","showDelay",A],hideDelay:[2,"hideDelay","hideDelay",A],life:[2,"life","life",A],positionTop:[2,"positionTop","positionTop",A],positionLeft:[2,"positionLeft","positionLeft",A],autoHide:[2,"autoHide","autoHide",h],fitContent:[2,"fitContent","fitContent",h],hideOnEscape:[2,"hideOnEscape","hideOnEscape",h],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",h],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[z([Ut,{provide:jt,useExisting:l},{provide:W,useExisting:l}]),L]}));let t=l;return t;})();var Zt=`
    .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 ve=t=>({height:t}),Qe=t=>({$implicit:t});function hi(t,l){if(t&1&&(D(),R(0,"svg",6)),t&2){let n=r(2);y(n.cx("optionCheckIcon")),a("pBind",n.$pcSelect==null?null:n.$pcSelect.ptm("optionCheckIcon"));}}function mi(t,l){if(t&1&&(D(),R(0,"svg",7)),t&2){let n=r(2);y(n.cx("optionBlankIcon")),a("pBind",n.$pcSelect==null?null:n.$pcSelect.ptm("optionBlankIcon"));}}function fi(t,l){if(t&1&&(F(0),d(1,hi,1,3,"svg",4)(2,mi,1,3,"svg",5),k()),t&2){let n=r();c(),a("ngIf",n.selected),c(),a("ngIf",!n.selected);}}function _i(t,l){if(t&1&&(f(0,"span",8),H(1),m()),t&2){let n=r();a("pBind",n.$pcSelect==null?null:n.$pcSelect.ptm("optionLabel")),c(),X(n.label??"empty");}}function gi(t,l){t&1&&M(0);}var yi=["item"],bi=["group"],vi=["loader"],Ti=["selectedItem"],xi=["header"],Xt=["filter"],Ii=["footer"],Ci=["emptyfilter"],Oi=["empty"],Si=["dropdownicon"],wi=["loadingicon"],Ei=["clearicon"],Li=["filtericon"],Vi=["onicon"],Fi=["officon"],ki=["cancelicon"],Mi=["focusInput"],Di=["editableInput"],Bi=["items"],Ni=["scroller"],Pi=["overlay"],Ai=["firstHiddenFocusableEl"],zi=["lastHiddenFocusableEl"],Yt=t=>({class:t}),Jt=t=>({options:t}),ei=(t,l)=>({$implicit:t,options:l}),Ri=()=>({});function Hi(t,l){if(t&1&&(F(0),H(1),k()),t&2){let n=r(2);c(),X(n.label()==="p-emptylabel"?"\xA0":n.label());}}function $i(t,l){if(t&1&&M(0,24),t&2){let n=r(2);a("ngTemplateOutlet",n.selectedItemTemplate||n._selectedItemTemplate)("ngTemplateOutletContext",I(2,Qe,n.selectedOption));}}function Gi(t,l){if(t&1&&(f(0,"span"),H(1),m()),t&2){let n=r(3);c(),X(n.label()==="p-emptylabel"?"\xA0":n.label());}}function Ki(t,l){if(t&1&&d(0,Gi,2,1,"span",18),t&2){let n=r(2);a("ngIf",n.isSelectedOptionEmpty());}}function qi(t,l){if(t&1){let n=N();f(0,"span",22,3),O("focus",function(o){v(n);let i=r();return T(i.onInputFocus(o));})("blur",function(o){v(n);let i=r();return T(i.onInputBlur(o));})("keydown",function(o){v(n);let i=r();return T(i.onKeyDown(o));}),d(2,Hi,2,1,"ng-container",20)(3,$i,1,4,"ng-container",23)(4,Ki,1,1,"ng-template",null,4,P),m();}if(t&2){let n=U(5),e=r();y(e.cx("label")),a("pBind",e.ptm("label"))("pTooltip",e.tooltip)("pTooltipUnstyled",e.unstyled())("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass)("pAutoFocus",e.autofocus),w("aria-disabled",e.$disabled())("id",e.inputId)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-labelledby",e.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.id+"_list":null)("tabindex",e.$disabled()?-1:e.tabindex)("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("aria-required",e.required())("required",e.required()?"":void 0)("disabled",e.$disabled()?"":void 0)("data-p",e.labelDataP),c(2),a("ngIf",!e.selectedItemTemplate&&!e._selectedItemTemplate)("ngIfElse",n),c(),a("ngIf",(e.selectedItemTemplate||e._selectedItemTemplate)&&!e.isSelectedOptionEmpty());}}function Qi(t,l){if(t&1){let n=N();f(0,"input",25,5),O("input",function(o){v(n);let i=r();return T(i.onEditableInput(o));})("keydown",function(o){v(n);let i=r();return T(i.onKeyDown(o));})("focus",function(o){v(n);let i=r();return T(i.onInputFocus(o));})("blur",function(o){v(n);let i=r();return T(i.onInputBlur(o));}),m();}if(t&2){let n=r();y(n.cx("label")),a("pBind",n.ptm("label"))("pAutoFocus",n.autofocus),w("id",n.inputId)("aria-haspopup","listbox")("placeholder",n.modelValue()===void 0||n.modelValue()===null?n.placeholder():void 0)("aria-label",n.ariaLabel||(n.label()==="p-emptylabel"?void 0:n.label()))("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("name",n.name())("minlength",n.minlength())("min",n.min())("max",n.max())("pattern",n.pattern())("size",n.inputSize())("maxlength",n.maxlength())("required",n.required()?"":void 0)("readonly",n.readonly?"":void 0)("disabled",n.$disabled()?"":void 0)("data-p",n.labelDataP);}}function Ui(t,l){if(t&1){let n=N();D(),f(0,"svg",28),O("click",function(o){v(n);let i=r(2);return T(i.clear(o));}),m();}if(t&2){let n=r(2);y(n.cx("clearIcon")),a("pBind",n.ptm("clearIcon")),w("data-pc-section","clearicon");}}function ji(t,l){}function Wi(t,l){t&1&&d(0,ji,0,0,"ng-template");}function Zi(t,l){if(t&1){let n=N();f(0,"span",29),O("click",function(o){v(n);let i=r(2);return T(i.clear(o));}),d(1,Wi,1,0,null,30),m();}if(t&2){let n=r(2);y(n.cx("clearIcon")),a("pBind",n.ptm("clearIcon")),w("data-pc-section","clearicon"),c(),a("ngTemplateOutlet",n.clearIconTemplate||n._clearIconTemplate)("ngTemplateOutletContext",I(6,Yt,n.cx("clearIcon")));}}function Xi(t,l){if(t&1&&(F(0),d(1,Ui,1,4,"svg",26)(2,Zi,2,8,"span",27),k()),t&2){let n=r();c(),a("ngIf",!n.clearIconTemplate&&!n._clearIconTemplate),c(),a("ngIf",n.clearIconTemplate||n._clearIconTemplate);}}function Yi(t,l){t&1&&M(0);}function Ji(t,l){if(t&1&&(F(0),d(1,Yi,1,0,"ng-container",31),k()),t&2){let n=r(2);c(),a("ngTemplateOutlet",n.loadingIconTemplate||n._loadingIconTemplate);}}function en(t,l){if(t&1&&R(0,"span",33),t&2){let n=r(3);y(n.cn(n.cx("loadingIcon"),"pi-spin"+n.loadingIcon)),a("pBind",n.ptm("loadingIcon"));}}function tn(t,l){if(t&1&&R(0,"span",33),t&2){let n=r(3);y(n.cn(n.cx("loadingIcon"),"pi pi-spinner pi-spin")),a("pBind",n.ptm("loadingIcon"));}}function nn(t,l){if(t&1&&(F(0),d(1,en,1,3,"span",32)(2,tn,1,3,"span",32),k()),t&2){let n=r(2);c(),a("ngIf",n.loadingIcon),c(),a("ngIf",!n.loadingIcon);}}function on(t,l){if(t&1&&(F(0),d(1,Ji,2,1,"ng-container",18)(2,nn,3,2,"ng-container",18),k()),t&2){let n=r();c(),a("ngIf",n.loadingIconTemplate||n._loadingIconTemplate),c(),a("ngIf",!n.loadingIconTemplate&&!n._loadingIconTemplate);}}function ln(t,l){if(t&1&&R(0,"span",36),t&2){let n=r(3);y(n.cn(n.cx("dropdownIcon"),n.dropdownIcon)),a("pBind",n.ptm("dropdownIcon"));}}function sn(t,l){if(t&1&&(D(),R(0,"svg",37)),t&2){let n=r(3);y(n.cx("dropdownIcon")),a("pBind",n.ptm("dropdownIcon"));}}function an(t,l){if(t&1&&(F(0),d(1,ln,1,3,"span",34)(2,sn,1,3,"svg",35),k()),t&2){let n=r(2);c(),a("ngIf",n.dropdownIcon),c(),a("ngIf",!n.dropdownIcon);}}function rn(t,l){}function pn(t,l){t&1&&d(0,rn,0,0,"ng-template");}function cn(t,l){if(t&1&&(f(0,"span",36),d(1,pn,1,0,null,30),m()),t&2){let n=r(2);y(n.cx("dropdownIcon")),a("pBind",n.ptm("dropdownIcon")),c(),a("ngTemplateOutlet",n.dropdownIconTemplate||n._dropdownIconTemplate)("ngTemplateOutletContext",I(5,Yt,n.cx("dropdownIcon")));}}function dn(t,l){if(t&1&&d(0,an,3,2,"ng-container",18)(1,cn,2,7,"span",34),t&2){let n=r();a("ngIf",!n.dropdownIconTemplate&&!n._dropdownIconTemplate),c(),a("ngIf",n.dropdownIconTemplate||n._dropdownIconTemplate);}}function un(t,l){t&1&&M(0);}function hn(t,l){t&1&&M(0);}function mn(t,l){if(t&1&&(F(0),d(1,hn,1,0,"ng-container",30),k()),t&2){let n=r(3);c(),a("ngTemplateOutlet",n.filterTemplate||n._filterTemplate)("ngTemplateOutletContext",I(2,Jt,n.filterOptions));}}function fn(t,l){if(t&1&&(D(),R(0,"svg",45)),t&2){let n=r(4);a("pBind",n.ptm("filterIcon"));}}function _n(t,l){}function gn(t,l){t&1&&d(0,_n,0,0,"ng-template");}function yn(t,l){if(t&1&&(f(0,"span",36),d(1,gn,1,0,null,31),m()),t&2){let n=r(4);a("pBind",n.ptm("filterIcon")),c(),a("ngTemplateOutlet",n.filterIconTemplate||n._filterIconTemplate);}}function bn(t,l){if(t&1){let n=N();f(0,"p-iconfield",41)(1,"input",42,10),O("input",function(o){v(n);let i=r(3);return T(i.onFilterInputChange(o));})("keydown",function(o){v(n);let i=r(3);return T(i.onFilterKeyDown(o));})("blur",function(o){v(n);let i=r(3);return T(i.onFilterBlur(o));}),m(),f(3,"p-inputicon",41),d(4,fn,1,1,"svg",43)(5,yn,2,2,"span",44),m()();}if(t&2){let n=r(3);a("pt",n.ptm("pcFilterContainer"))("unstyled",n.unstyled()),c(),y(n.cx("pcFilter")),a("pSize",n.size())("value",n._filterValue()||"")("variant",n.$variant())("pt",n.ptm("pcFilter"))("unstyled",n.unstyled()),w("placeholder",n.filterPlaceholder)("aria-owns",n.id+"_list")("aria-label",n.ariaFilterLabel)("aria-activedescendant",n.focusedOptionId),c(2),a("pt",n.ptm("pcFilterIconContainer"))("unstyled",n.unstyled()),c(),a("ngIf",!n.filterIconTemplate&&!n._filterIconTemplate),c(),a("ngIf",n.filterIconTemplate||n._filterIconTemplate);}}function vn(t,l){if(t&1&&(f(0,"div",29),O("click",function(e){return e.stopPropagation();}),d(1,mn,2,4,"ng-container",20)(2,bn,6,17,"ng-template",null,9,P),m()),t&2){let n=U(3),e=r(2);y(e.cx("header")),a("pBind",e.ptm("header")),c(),a("ngIf",e.filterTemplate||e._filterTemplate)("ngIfElse",n);}}function Tn(t,l){t&1&&M(0);}function xn(t,l){if(t&1&&d(0,Tn,1,0,"ng-container",30),t&2){let n=l.$implicit,e=l.options;r(2);let o=U(9);a("ngTemplateOutlet",o)("ngTemplateOutletContext",ge(2,ei,n,e));}}function In(t,l){t&1&&M(0);}function Cn(t,l){if(t&1&&d(0,In,1,0,"ng-container",30),t&2){let n=l.options,e=r(4);a("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",I(2,Jt,n));}}function On(t,l){t&1&&(F(0),d(1,Cn,1,4,"ng-template",null,12,P),k());}function Sn(t,l){if(t&1){let n=N();f(0,"p-scroller",46,11),O("onLazyLoad",function(o){v(n);let i=r(2);return T(i.onLazyLoad.emit(o));}),d(2,xn,1,5,"ng-template",null,2,P)(4,On,3,0,"ng-container",18),m();}if(t&2){let n=r(2);ze(I(9,ve,n.scrollHeight)),a("items",n.visibleOptions())("itemSize",n.virtualScrollItemSize)("autoSize",!0)("lazy",n.lazy)("options",n.virtualScrollOptions)("pt",n.ptm("virtualScroller")),c(4),a("ngIf",n.loaderTemplate||n._loaderTemplate);}}function wn(t,l){t&1&&M(0);}function En(t,l){if(t&1&&(F(0),d(1,wn,1,0,"ng-container",30),k()),t&2){r();let n=U(9),e=r();c(),a("ngTemplateOutlet",n)("ngTemplateOutletContext",ge(3,ei,e.visibleOptions(),nt(2,Ri)));}}function Ln(t,l){if(t&1&&(f(0,"span",36),H(1),m()),t&2){let n=r(2).$implicit,e=r(3);y(e.cx("optionGroupLabel")),a("pBind",e.ptm("optionGroupLabel")),c(),X(e.getOptionGroupLabel(n.optionGroup));}}function Vn(t,l){t&1&&M(0);}function Fn(t,l){if(t&1&&(F(0),f(1,"li",50),d(2,Ln,2,4,"span",34)(3,Vn,1,0,"ng-container",30),m(),k()),t&2){let n=r(),e=n.$implicit,o=n.index,i=r().options,s=r(2);c(),y(s.cx("optionGroup")),a("ngStyle",I(8,ve,i.itemSize+"px"))("pBind",s.ptm("optionGroup")),w("id",s.id+"_"+s.getOptionIndex(o,i)),c(),a("ngIf",!s.groupTemplate&&!s._groupTemplate),c(),a("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",I(10,Qe,e.optionGroup));}}function kn(t,l){if(t&1){let n=N();F(0),f(1,"p-selectItem",51),O("onClick",function(o){v(n);let i=r().$implicit,s=r(3);return T(s.onOptionSelect(o,i));})("onMouseEnter",function(o){v(n);let i=r().index,s=r().options,p=r(2);return T(p.onOptionMouseEnter(o,p.getOptionIndex(i,s)));}),m(),k();}if(t&2){let n=r(),e=n.$implicit,o=n.index,i=r().options,s=r(2);c(),a("id",s.id+"_"+s.getOptionIndex(o,i))("option",e)("checkmark",s.checkmark)("selected",s.isSelected(e))("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(o,i))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(o,i)))("ariaSetSize",s.ariaSetSize)("index",o)("unstyled",s.unstyled())("scrollerOptions",i);}}function Mn(t,l){if(t&1&&d(0,Fn,4,12,"ng-container",18)(1,kn,2,13,"ng-container",18),t&2){let n=l.$implicit,e=r(3);a("ngIf",e.isOptionGroup(n)),c(),a("ngIf",!e.isOptionGroup(n));}}function Dn(t,l){if(t&1&&H(0),t&2){let n=r(4);Re(" ",n.emptyFilterMessageLabel," ");}}function Bn(t,l){t&1&&M(0,null,14);}function Nn(t,l){if(t&1&&d(0,Bn,2,0,"ng-container",31),t&2){let n=r(4);a("ngTemplateOutlet",n.emptyFilterTemplate||n._emptyFilterTemplate||n.emptyTemplate||n._emptyTemplate);}}function Pn(t,l){if(t&1&&(f(0,"li",50),q(1,Dn,1,1)(2,Nn,1,1,"ng-container"),m()),t&2){let n=r().options,e=r(2);y(e.cx("emptyMessage")),a("ngStyle",I(5,ve,n.itemSize+"px"))("pBind",e.ptm("emptyMessage")),c(),Q(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e.emptyTemplate?1:2);}}function An(t,l){if(t&1&&H(0),t&2){let n=r(4);Re(" ",n.emptyMessageLabel||n.emptyFilterMessageLabel," ");}}function zn(t,l){t&1&&M(0,null,15);}function Rn(t,l){if(t&1&&d(0,zn,2,0,"ng-container",31),t&2){let n=r(4);a("ngTemplateOutlet",n.emptyTemplate||n._emptyTemplate);}}function Hn(t,l){if(t&1&&(f(0,"li",50),q(1,An,1,1)(2,Rn,1,1,"ng-container"),m()),t&2){let n=r().options,e=r(2);y(e.cx("emptyMessage")),a("ngStyle",I(5,ve,n.itemSize+"px"))("pBind",e.ptm("emptyMessage")),c(),Q(!e.emptyTemplate&&!e._emptyTemplate?1:2);}}function $n(t,l){if(t&1&&(f(0,"ul",47,13),d(2,Mn,2,2,"ng-template",48)(3,Pn,3,7,"li",49)(4,Hn,3,7,"li",49),m()),t&2){let n=l.$implicit,e=l.options,o=r(2);ze(e.contentStyle),y(o.cn(o.cx("list"),e.contentStyleClass)),a("pBind",o.ptm("list")),w("id",o.id+"_list")("aria-label",o.listLabel),c(2),a("ngForOf",n),c(),a("ngIf",o.filterValue&&o.isEmpty()),c(),a("ngIf",!o.filterValue&&o.isEmpty());}}function Gn(t,l){t&1&&M(0);}function Kn(t,l){if(t&1){let n=N();f(0,"div",38)(1,"span",39,6),O("focus",function(o){v(n);let i=r();return T(i.onFirstHiddenFocus(o));}),m(),d(3,un,1,0,"ng-container",31)(4,vn,4,5,"div",27),f(5,"div",36),d(6,Sn,5,11,"p-scroller",40)(7,En,2,6,"ng-container",18)(8,$n,5,10,"ng-template",null,7,P),m(),d(10,Gn,1,0,"ng-container",31),f(11,"span",39,8),O("focus",function(o){v(n);let i=r();return T(i.onLastHiddenFocus(o));}),m()();}if(t&2){let n=r();y(n.cn(n.cx("overlay"),n.panelStyleClass)),a("ngStyle",n.panelStyle)("pBind",n.ptm("overlay")),w("data-p",n.overlayDataP),c(),a("pBind",n.ptm("hiddenFirstFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),a("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),c(),a("ngIf",n.filter),c(),y(n.cx("listContainer")),tt("max-height",n.virtualScroll?"auto":n.scrollHeight||"auto"),a("pBind",n.ptm("listContainer")),c(),a("ngIf",n.virtualScroll),c(),a("ngIf",!n.virtualScroll),c(3),a("ngTemplateOutlet",n.footerTemplate||n._footerTemplate),c(),a("pBind",n.ptm("hiddenLastFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0);}}var qn=`
    ${Zt}

    /* 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');
    }
`,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"},De=(()=>{let l=class l extends ee{name="select";style=qn;classes=Qn;};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275prov",Z({token:l,factory:l.ɵfac}));let t=l;return t;})();var ti=new K("SELECT_INSTANCE"),Un=new K("SELECT_ITEM_INSTANCE"),jn={provide:Le,useExisting:Te(()=>Be),multi:!0},Wn=(()=>{let l=class l extends te{hostName="select";$pcSelectItem=x(Un,{optional:!0,skipSelf:!0})??void 0;$pcSelect=x(ti,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new B();onMouseEnter=new B();_componentStyle=x(De);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}});}};u(l,"\u0275fac",(()=>{let e;return function(i){return(e||(e=C(l)))(i||l);};})()),u(l,"\u0275cmp",E({type:l,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",h],focused:[2,"focused","focused",h],label:"label",disabled:[2,"disabled","disabled",h],visible:[2,"visible","visible",h],itemSize:[2,"itemSize","itemSize",A],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",h],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[z([De,{provide:W,useExisting:l}]),L],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(o,i){o&1&&(f(0,"li",0),O("click",function(p){return i.onOptionClick(p);})("mouseenter",function(p){return i.onOptionMouseEnter(p);}),d(1,fi,3,2,"ng-container",1)(2,_i,2,2,"span",2)(3,gi,1,0,"ng-container",3),m()),o&2&&(y(i.cx("option")),a("id",i.id)("pBind",i.getPTOptions())("ngStyle",I(17,ve,(i.scrollerOptions==null?null:i.scrollerOptions.itemSize)+"px")),w("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-selected",i.selected)("data-p-disabled",i.disabled),c(),a("ngIf",i.checkmark),c(),a("ngIf",!i.template),c(),a("ngTemplateOutlet",i.template)("ngTemplateOutletContext",I(19,Qe,i.option)));},dependencies:[j,He,ye,$e,oe,Mt,Bt,Ht,le,V],encapsulation:2}));let t=l;return t;})(),Be=(()=>{let l=class l extends Vt{zone;filterService;componentName="Select";bindDirectiveInstance=x(V,{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){vt(e,this._options())||this._options.set(e);}appendTo=S(void 0);motionOptions=S(void 0);onChange=new B();onFilter=new B();onFocus=new B();onBlur=new B();onClick=new B();onShow=new B();onHide=new B();onClear=new B();onLazyLoad=new B();_componentStyle=x(De);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=ce(()=>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=ae(null);_placeholder=ae(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ae(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ae(-1);labelId;listId;clicked=ae(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ke.EMPTY_MESSAGE);}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ke.EMPTY_FILTER_MESSAGE);}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled();}get listLabel(){return this.config.getTranslation(ke.ARIA).listLabel;}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null;}visibleOptions=ce(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(s=>s.label?s.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:s.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 s=this.options||[],p=[];return s.forEach(b=>{let je=this.getOptionGroupChildren(b).filter(ni=>i?.includes(ni));je.length>0&&p.push(We(ie({},b),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...je]}));}),this.flatOptions(p);}return i;}return e;});label=ce(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),o=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));if(o!==-1){let i=e[o];return this.getOptionLabel(i);}return this.placeholder()||"p-emptylabel";});selectedOption;constructor(e,o){super(),this.zone=e,this.filterService=o,fe(()=>{let i=this.modelValue(),s=this.visibleOptions();if(s&&Fe(s)){let p=this.findSelectedOptionIndex();if(p!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=s[p];else{let b=s.findIndex(Ue=>this.isSelected(Ue));b!==-1&&(this.selectedOption=s[b]);}}Ke(s)&&(i===void 0||this.isModelValueNotSet())&&Fe(this.selectedOption)&&(this.selectedOption=null),i!==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||ue("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=G(this.overlayViewChild?.overlayViewChild?.nativeElement,'li[data-p-selected="true"]');e&&bt(this.itemsWrapper,e),this.selectedOptionUpdated=!1;}}flatOptions(e){return(e||[]).reduce((o,i,s)=>{o.push({optionGroup:i,group:!0,index:s});let p=this.getOptionGroupChildren(i);return p&&p.forEach(b=>o.push(b)),o;},[]);}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1));}onOptionSelect(e,o,i=!0,s=!1){if(!this.isOptionDisabled(o)){if(!this.isSelected(o)){let p=this.getOptionValue(o);this.updateModel(p,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),s===!1&&this.onChange.emit({originalEvent:e,value:p});}i&&this.hide(!0);}}onOptionMouseEnter(e,o){this.focusOnHover&&this.changeFocusedOptionIndex(e,o);}updateModel(e,o){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)&&Tt(this.modelValue(),this.getOptionValue(e),this.equalityKey());}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel();}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,o=e?.classList.contains("p-float-label");if(e&&o&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent);}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"");}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="");}getOptionIndex(e,o){return this.virtualScrollerDisabled?e:o&&o.getItemOptions(e).index;}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?de(e,this.optionLabel):e&&e.label!==void 0?e.label:e;}getOptionValue(e){return this.optionValue&&this.optionValue!==null?de(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e;}getPTItemOptions(e,o,i,s){return this.ptm(s,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,o),disabled:this.isOptionDisabled(e)}});}isSelectedOptionEmpty(){return Ke(this.selectedOption);}isOptionDisabled(e){return this.optionDisabled?de(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1;}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?de(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e;}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?de(e,this.optionGroupChildren):e.items;}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(o=>this.isOptionGroup(o)).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 o=e.target.value;this.searchValue="",!this.searchOptions(e,o)&&this.focusedOptionIndex.set(-1),this.onModelChange(o),this.updateModel(o||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:o});},1),!this.overlayVisible&&Fe(o)&&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&&Y(this.focusInputViewChild?.nativeElement),this.cd.markForCheck();}onOverlayBeforeEnter(e){if(this.itemsWrapper=G(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 o=this.modelValue()?this.focusedOptionIndex():-1;o!==-1&&setTimeout(()=>{this.scroller?.scrollToIndex(o);},10);}else{let o=G(this.itemsWrapper,'[data-p-selected="true"]');o&&o.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"&&wt(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&Y(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&Y(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck();}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let o=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(o),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,o=!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,o);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&&xt(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 o=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,o);}e.preventDefault(),e.stopPropagation();}changeFocusedOptionIndex(e,o){if(this.focusedOptionIndex()!==o&&(this.focusedOptionIndex.set(o),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[o];this.onOptionSelect(e,i,!1);}}get virtualScrollerDisabled(){return!this.virtualScroll;}scrollInView(e=-1){let o=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=G(this.itemsViewChild.nativeElement,`li[id="${o}"]`);i?i.scrollIntoView&&i.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 o=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return o>-1?o+e+1:e;}findPrevOptionIndex(e){let o=e>0?qe(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return o>-1?o:e;}findLastOptionIndex(){return qe(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,o=!1){if(e.altKey&&!o){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i);}this.overlayVisible&&this.hide();}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show();}e.preventDefault(),e.stopPropagation();}onArrowLeftKey(e,o=!1){o&&this.focusedOptionIndex.set(-1);}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault());}onHomeKey(e,o=!1){if(o&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1));}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault();}onEndKey(e,o=!1){if(o&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let s=i.value.length;i.setSelectionRange(s,s),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,o=!1){!this.editable&&!o&&this.onEnterKey(e);}onEnterKey(e,o=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i);}!o&&this.hide();}e.preventDefault();}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation());}onTabKey(e,o=!1){if(!o)if(this.overlayVisible&&this.hasFocusableElements())Y(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i);}this.overlayVisible&&this.hide(this.filter);}e.stopPropagation();}onFirstHiddenFocus(e){let o=e.relatedTarget===this.focusInputViewChild?.nativeElement?_t(this.overlayViewChild?.el?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Y(o);}onLastHiddenFocus(e){let o=e.relatedTarget===this.focusInputViewChild?.nativeElement?gt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Y(o);}hasFocusableElements(){return ft(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0;}onBackspaceKey(e,o=!1){o&&!this.overlayVisible&&this.show();}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel];}searchOptions(e,o){this.searchValue=(this.searchValue||"")+o;let i=-1,s=!1;return i=this.visibleOptions().findIndex(p=>this.isOptionMatched(p)),i!==-1&&(s=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i);}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null;},500),s;}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale));}onFilterInputChange(e){let o=e.target.value;this._filterValue.set(o),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?G(this.el.nativeElement,'[data-pc-section="label"]').focus():Y(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,o){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),o(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()});}};u(l,"\u0275fac",function(o){return new(o||l)(re(xe),re(It));}),u(l,"\u0275cmp",E({type:l,selectors:[["p-select"]],contentQueries:function(o,i,s){if(o&1&&Oe(s,yi,4)(s,bi,4)(s,vi,4)(s,Ti,4)(s,xi,4)(s,Xt,4)(s,Ii,4)(s,Ci,4)(s,Oi,4)(s,Si,4)(s,wi,4)(s,Ei,4)(s,Li,4)(s,Vi,4)(s,Fi,4)(s,ki,4)(s,Ct,4),o&2){let p;_(p=g())&&(i.itemTemplate=p.first),_(p=g())&&(i.groupTemplate=p.first),_(p=g())&&(i.loaderTemplate=p.first),_(p=g())&&(i.selectedItemTemplate=p.first),_(p=g())&&(i.headerTemplate=p.first),_(p=g())&&(i.filterTemplate=p.first),_(p=g())&&(i.footerTemplate=p.first),_(p=g())&&(i.emptyFilterTemplate=p.first),_(p=g())&&(i.emptyTemplate=p.first),_(p=g())&&(i.dropdownIconTemplate=p.first),_(p=g())&&(i.loadingIconTemplate=p.first),_(p=g())&&(i.clearIconTemplate=p.first),_(p=g())&&(i.filterIconTemplate=p.first),_(p=g())&&(i.onIconTemplate=p.first),_(p=g())&&(i.offIconTemplate=p.first),_(p=g())&&(i.cancelIconTemplate=p.first),_(p=g())&&(i.templates=p);}},viewQuery:function(o,i){if(o&1&&et(Xt,5)(Mi,5)(Di,5)(Bi,5)(Ni,5)(Pi,5)(Ai,5)(zi,5),o&2){let s;_(s=g())&&(i.filterViewChild=s.first),_(s=g())&&(i.focusInputViewChild=s.first),_(s=g())&&(i.editableInputViewChild=s.first),_(s=g())&&(i.itemsViewChild=s.first),_(s=g())&&(i.scroller=s.first),_(s=g())&&(i.overlayViewChild=s.first),_(s=g())&&(i.firstHiddenFocusableElementOnOverlay=s.first),_(s=g())&&(i.lastHiddenFocusableElementOnOverlay=s.first);}},hostVars:4,hostBindings:function(o,i){o&1&&O("click",function(p){return i.onContainerClick(p);}),o&2&&(w("id",i.id)("data-p",i.containerDataP),y(i.cn(i.cx("root"),i.styleClass)));},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",h],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",h],editable:[2,"editable","editable",h],tabindex:[2,"tabindex","tabindex",A],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",h],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",h],checkmark:[2,"checkmark","checkmark",h],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",h],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",h],showClear:[2,"showClear","showClear",h],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",h],virtualScroll:[2,"virtualScroll","virtualScroll",h],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",A],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",h],selectOnFocus:[2,"selectOnFocus","selectOnFocus",h],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",h],autofocusFilter:[2,"autofocusFilter","autofocusFilter",h],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:[z([jn,De,{provide:ti,useExisting:l},{provide:W,useExisting:l}]),pe([V]),L],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(o,i){if(o&1){let s=N();d(0,qi,6,25,"span",16)(1,Qi,2,20,"input",17)(2,Xi,3,2,"ng-container",18),f(3,"div",19),d(4,on,3,2,"ng-container",20)(5,dn,2,2,"ng-template",null,0,P),m(),f(7,"p-overlay",21,1),Ee("visibleChange",function(b){return v(s),we(i.overlayVisible,b)||(i.overlayVisible=b),T(b);}),O("onBeforeEnter",function(b){return i.onOverlayBeforeEnter(b);})("onAfterLeave",function(b){return i.onOverlayAfterLeave(b);})("onHide",function(){return i.hide();}),d(9,Kn,13,23,"ng-template",null,2,P),m();}if(o&2){let s=U(6);a("ngIf",!i.editable),c(),a("ngIf",i.editable),c(),a("ngIf",i.isVisibleClearIcon),c(),y(i.cx("dropdown")),a("pBind",i.ptm("dropdown")),w("aria-expanded",i.overlayVisible??!1)("data-pc-section","trigger"),c(),a("ngIf",i.loading)("ngIfElse",s),c(3),a("hostAttrSelector",i.$attrSelector),Se("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())("unstyled",i.unstyled())("pt",i.ptm("pcOverlay"))("motionOptions",i.motionOptions());}},dependencies:[j,st,He,ye,$e,Wn,kt,Wt,Lt,St,Ot,$t,Ft,Rt,qt,Dt,oe,le,V],encapsulation:2,changeDetection:0}));let t=l;return t;})(),ii=(()=>{let l=class l{};u(l,"\u0275fac",function(o){return new(o||l)();}),u(l,"\u0275mod",_e({type:l})),u(l,"\u0275inj",me({imports:[Be,oe,oe]}));let t=l;return t;})();var Xn=["selectOption"],Yn=["itemExtra"],Ne=t=>({$implicit:t}),Jn=(t,l)=>({$implicit:t,description:l});function eo(t,l){}function to(t,l){}function io(t,l){if(t&1&&d(0,to,0,0,"ng-template",4),t&2){let n=r(2).$implicit,e=r();a("ngTemplateOutlet",e.itemExtraTemplate)("ngTemplateOutletContext",I(2,Ne,n));}}function no(t,l){if(t&1&&(d(0,eo,0,0,"ng-template",4),q(1,io,1,4,null,4)),t&2){let n=r().$implicit,e=r();a("ngTemplateOutlet",e.selectOptionTemplate)("ngTemplateOutletContext",I(3,Ne,n)),c(),Q(e.itemExtraTemplate?1:-1);}}function oo(t,l){if(t&1&&R(0,"img",6),t&2){let n=r(2).$implicit;a("src",n.imageUrl,Ze);}}function lo(t,l){}function so(t,l){if(t&1&&d(0,lo,0,0,"ng-template",4),t&2){let n=r(2).$implicit,e=r();a("ngTemplateOutlet",e.itemExtraTemplate)("ngTemplateOutletContext",I(2,Ne,n));}}function ao(t,l){if(t&1&&(f(0,"span",8),H(1),m()),t&2){let n=r(2).description;c(),X(n);}}function ro(t,l){if(t&1&&(f(0,"div")(1,"div",5),q(2,oo,1,1,"img",6),f(3,"span",7),H(4),m(),q(5,so,1,4,null,4),m(),q(6,ao,2,1,"span",8),m()),t&2){let n=r(),e=n.$implicit,o=n.description,i=r();c(2),Q(e!=null&&e.imageUrl?2:-1),c(),a("ngClass",e==null?null:e.classes),c(),X(e==null?null:e.label),c(),Q(i.itemExtraTemplate?5:-1),c(),Q(o?6:-1);}}function po(t,l){if(t&1&&q(0,no,2,5)(1,ro,7,5,"div"),t&2){let n=r();Q(n.selectOptionTemplate?0:1);}}function co(t,l){}function uo(t,l){if(t&1&&d(0,co,0,0,"ng-template",4),t&2){let n=r(),e=U(2);a("ngTemplateOutlet",e)("ngTemplateOutletContext",I(2,Ne,n.getSelectedItem()));}}function ho(t,l){}function mo(t,l){if(t&1&&d(0,ho,0,0,"ng-template",4),t&2){let n=l.$implicit;r();let e=U(2);a("ngTemplateOutlet",e)("ngTemplateOutletContext",ge(2,Jn,n,n.description));}}var ns=(()=>{let l=class l{cd=x(ot);items=S([]);inputId=S.required();clearable=S(!1,{transform:h});filter=S(!1,{transform:h});small=S(!1,{transform:h});appendTo=S();virtualScroll=S(!1,{transform:h});virtualScrollItemSize=S(39,{transform:A});selectOptionTemplate;itemExtraTemplate;selectedId;disabled=!1;wroteValue;propagateChange=e=>{};handleChange(e){let o=e;o.role!=="searchbox"&&(this.writeValue(o.value),this.onModelChange());}writeValue(e){this.selectedId=e,this.wroteValue=e,this.cd.detectChanges();}registerOnChange(e){this.propagateChange=e;}registerOnTouched(){}onModelChange(){this.wroteValue!==void 0&&this.wroteValue===this.selectedId||(this.wroteValue=void 0,this.propagateChange(this.selectedId));}setDisabledState(e){this.disabled=e;}getSelectedItem(){return this.items().find(e=>e.id===this.selectedId);}};u(l,"\u0275fac",function(o){return new(o||l)();}),u(l,"\u0275cmp",E({type:l,selectors:[["my-select-options"]],contentQueries:function(o,i,s){if(o&1&&Oe(s,Xn,4)(s,Yn,4),o&2){let p;_(p=g())&&(i.selectOptionTemplate=p.first),_(p=g())&&(i.itemExtraTemplate=p.first);}},hostBindings:function(o,i){o&1&&O("change",function(p){return i.handleChange(p.target);});},inputs:{items:[1,"items"],inputId:[1,"inputId"],clearable:[1,"clearable"],filter:[1,"filter"],small:[1,"small"],appendTo:[1,"appendTo"],virtualScroll:[1,"virtualScroll"],virtualScrollItemSize:[1,"virtualScrollItemSize"]},features:[z([{provide:Le,useExisting:Te(()=>l),multi:!0}])],decls:7,vars:10,consts:()=>{let e;e="Tra\u017Ei";let o;o="Nema rezultata";let i;return i="Nema stavki",[["itemTemplate",""],["selectedItem",""],["item",""],["optionValue","id","filterBy","label","filterPlaceholder",e,"emptyFilterMessage",o,"emptyMessage",i,"fluid","true",3,"ngModelChange","inputId","options","ngModel","showClear","filter","virtualScroll","virtualScrollItemSize","appendTo"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"d-flex","align-items-center","item-label","custom-item"],["alt","",1,"me-2",3,"src"],[1,"ellipsis",3,"ngClass"],[1,"muted"]];},template:function(o,i){if(o&1){let s=N();f(0,"p-select",3),Ee("ngModelChange",function(b){return v(s),we(i.selectedId,b)||(i.selectedId=b),T(b);}),O("ngModelChange",function(){return i.onModelChange();}),d(1,po,2,1,"ng-template",null,0,P)(3,uo,1,4,"ng-template",null,1,P)(5,mo,1,5,"ng-template",null,2,P),m();}o&2&&(it("small",i.small()),a("inputId",i.inputId())("options",i.items()),Se("ngModel",i.selectedId),a("showClear",i.clearable())("filter",i.filter())("virtualScroll",i.virtualScroll())("virtualScrollItemSize",i.virtualScrollItemSize())("appendTo",i.appendTo()));},dependencies:[ii,Be,ct,rt,pt,j,lt,ye],styles:[`img[_ngcontent-%COMP%]{border-radius:50%;height:21px;width:21px;margin-top:-1px}.muted[_ngcontent-%COMP%]{font-size:90%;line-height:1.2;display:block;white-space:normal}.item-label[_ngcontent-%COMP%]{min-height:24px}p-select[_ngcontent-%COMP%]     p-overlay{max-width:100%}
/*# sourceMappingURL=select-options.component-SBWNYJOK.css.map */`]}));let t=l;return t;})();export{Bt as a,$t as b,Rt as c,qt as d,Wt as e,Be as f,ii as g,ns as h};/**i18n:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*///# sourceMappingURL=chunk-VF2A3OT4.js.map