var E={allowNew:!1,showAllSuggestions:!1,badgeStyle:"primary",allowClear:!1,clearEnd:!1,selected:[],regex:"",separator:[],max:0,clearLabel:"Clear",searchLabel:"Type a value",keepOpen:!1,allowSame:!1,baseClass:"",placeholder:"",addOnBlur:!1,showDisabled:!1,hideNativeValidation:!1,suggestionsThreshold:1,maximumItems:0,autoselectFirst:!0,updateOnSelect:!1,highlightTyped:!1,fullWidth:!1,fixed:!1,activeClasses:["bg-primary","text-white"],labelField:"label",valueField:"value",queryParam:"query",server:"",serverMethod:"GET",serverParams:{},fetchOptions:{},liveServer:!1,noCache:!0,debounceTime:300,notFoundMessage:"",onRenderItem:(h,t,e)=>t,onSelectItem:(h,t)=>{},onClearItem:(h,t)=>{},onCreateItem:(h,t)=>{},onBlur:(h,t)=>{},onFocus:(h,t)=>{},onCanAdd:(h,t,e)=>{},onServerResponse:h=>h.json()},g="tags-",C="is-loading",x="is-active",f="is-invalid",S="show",m="data-value",y="next",A="prev",I="form-control-focus",T="form-placeholder-shown",k="form-control-disabled",w=new WeakMap,O=0;function N(h,t=300){let e;return(...s)=>{clearTimeout(e),e=setTimeout(()=>{h.apply(this,s)},t)}}function q(h,t=null){let e=document.createElement("span");document.body.appendChild(e),e.style.fontSize=t||"inherit",e.style.height="auto",e.style.width="auto",e.style.position="absolute",e.style.whiteSpace="no-wrap",e.innerHTML=h;let s=Math.ceil(e.clientWidth);return document.body.removeChild(e),s}function F(h){return h.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function L(h){h.style.display="none",h.ariaHidden="true"}function D(h){h.style.display="list-item",h.ariaHidden="false"}var p=class{constructor(t,e={}){if(!(t instanceof HTMLElement)){console.error("Invalid element",t);return}w.set(t,this),O++,this.i=t,this.m=null,this.T(e),this.h=!1,this.k=N(()=>{this.g(!0)},this.e.debounceTime),this.d=!0,this.O(),this.n=document.createElement("div"),this.r=document.createElement("div"),this.n.appendChild(this.r),this.i.parentElement.insertBefore(this.n,this.i),this.F(),this.D(),this.H(),this.M(),this.V(),this.resetState(),this.e.fixed&&(document.addEventListener("scroll",this,!0),window.addEventListener("resize",this)),this.s.addEventListener("focus",this),this.s.addEventListener("blur",this),this.s.addEventListener("input",this),this.s.addEventListener("keydown",this),this.l.addEventListener("mousemove",this),this.loadData()}static init(t="select[multiple]",e={}){let s=document.querySelectorAll(t);for(let l=0;l<s.length;l++)p.getInstance(s[l])||new p(s[l],e)}static getInstance(t){if(w.has(t))return w.get(t)}dispose(){this.s.removeEventListener("focus",this),this.s.removeEventListener("blur",this),this.s.removeEventListener("input",this),this.s.removeEventListener("keydown",this),this.l.removeEventListener("mousemove",this),this.e.fixed&&(document.removeEventListener("scroll",this,!0),window.removeEventListener("resize",this)),this.i.style.display="block",this.n.parentElement.removeChild(this.n),this.parentForm&&this.parentForm.removeEventListener("reset",this),w.delete(this.i)}handleEvent(t){this[`on${t.type}`](t)}T(t={}){this.e=Object.assign({},E);let e={...t,...this.i.dataset},s=l=>["true","false","1","0",!0,!1].includes(l)&&!!JSON.parse(l);for(let[l,r]of Object.entries(E)){if(e[l]===void 0)continue;let i=e[l];switch(typeof r){case"number":this.e[l]=parseInt(i);break;case"boolean":this.e[l]=s(i);break;case"string":this.e[l]=i.toString();break;case"object":if(Array.isArray(r)){let n=i.includes("|")?"|":",";this.e[l]=typeof i=="string"?i.split(n):i}else this.e[l]=typeof i=="string"?JSON.parse(i):i;break;case"function":this.e[l]=typeof i=="string"?window[i]:i;break;default:this.e[l]=i;break}}this.e.placeholder||(this.e.placeholder=this.N())}O(){for(this.overflowParent=null,this.parentForm=this.i.parentElement;this.parentForm&&(this.parentForm.style.overflow==="hidden"&&(this.overflowParent=this.parentForm),this.parentForm=this.parentForm.parentElement,!(this.parentForm&&this.parentForm.nodeName=="FORM")););this.parentForm&&this.parentForm.addEventListener("reset",this)}N(){if(this.i.hasAttribute("placeholder"))return this.i.getAttribute("placeholder");if(this.i.dataset.placeholder)return this.i.dataset.placeholder;let t=this.i.querySelector("option");return t?(t.hasAttribute("selected")&&t.removeAttribute("selected"),t.value?"":t.textContent):""}H(){this.e.hideNativeValidation?(this.i.style.position="absolute",this.i.style.left="-9999px"):this.i.style.cssText="height:1px;width:1px;opacity:0;padding:0;margin:0;border:0;float:left;flex-basis:100%;",this.i.tabIndex=-1,this.i.addEventListener("focus",t=>{this.onclick(t)}),this.i.addEventListener("invalid",t=>{this.n.classList.add(f)})}V(){this.l=document.createElement("ul"),this.l.classList.add("dropdown-menu",g+"menu","p-0"),this.l.setAttribute("id",g+"menu-"+O),this.l.setAttribute("role","menu"),this.l.style.maxHeight="280px",this.e.fullWidth||(this.l.style.maxWidth="360px"),this.e.fixed&&(this.l.style.position="fixed"),this.l.style.overflowY="auto",this.l.style.overscrollBehavior="contain",this.l.style.textAlign="unset",this.l.addEventListener("mouseenter",t=>{this.h=!1}),this.n.appendChild(this.l),this.s.setAttribute("aria-controls",this.l.getAttribute("id"))}F(){this.n.classList.add("form-control","dropdown"),this.i.classList.contains("form-select-lg")&&this.n.classList.add("form-control-lg"),this.i.classList.contains("form-select-sm")&&this.n.classList.add("form-control-sm"),this.overflowParent&&(this.n.style.position="inherit"),this.S()===4&&(this.n.style.height="auto"),this.n.addEventListener("click",this)}D(){this.r.addEventListener("click",e=>{this.isDisabled()||this.s.style.visibility!="hidden"&&this.s.focus()}),this.r.style.display="flex",this.r.style.alignItems="center",this.r.style.flexWrap="wrap";let t=this.i.selectedOptions||[];for(let e=0;e<t.length;e++){let s=t[e];!s.value||(s.setAttribute("selected","selected"),s.dataset.init="true",s.hasAttribute("disabled")&&(s.dataset.disabled="true"),s.hasAttribute("title")&&(s.dataset.title=s.getAttribute("title")),this.w(s.textContent,s.value,s.dataset))}}M(){this.s=document.createElement("input"),this.s.type="text",this.s.autocomplete="off",this.s.spellcheck=!1,this.s.ariaAutoComplete="list",this.s.ariaExpanded="false",this.s.ariaHasPopup="menu",this.s.setAttribute("role","combobox"),this.s.ariaLabel=this.e.searchLabel,this.s.style.cssText="background-color:transparent;color:currentColor;border:0;padding:0;outline:0;max-width:100%",this.resetSearchInput(!0),this.r.appendChild(this.s)}onfocus(t){this.m&&clearTimeout(this.m),this.n.classList.add(I),this.showOrSearch(),this.e.onFocus(t,this)}onblur(t){this.m=setTimeout(()=>{this.o&&this.o.abort();let e=!0;if(this.e.addOnBlur&&this.s.value&&(e=this.L()),this.n.classList.remove(I),this.hideSuggestions(e),this.d){let s=this.getSelection(),l={selection:s?s.dataset.value:null,input:this.s.value};this.e.onBlur(t,this),this.i.dispatchEvent(new CustomEvent("tags.blur",{bubbles:!0,detail:l}))}},100)}oninput(t){let e=this.s.value;if(e){let s=e.slice(-1);if(this.e.separator.length&&this.e.separator.includes(s)){this.s.value=this.s.value.slice(0,-1);let l=this.s.value,r=l,i={};if(this.e.allowNew)i.new=1;else{let n=this.getSelection();if(!n)return;l=n.getAttribute(m),r=n.dataset.label}this.u(r,l,i);return}}setTimeout(()=>{this.a()}),this.showOrSearch()}onkeydown(t){let e=t.keyCode||t.key,s=t.target;switch(t.keyCode==229&&(e=s.value.charAt(s.selectionStart-1).charCodeAt(0)),e){case 13:case"Enter":t.preventDefault(),this.L();break;case 38:case"ArrowUp":t.preventDefault(),this.h=!0,this.p(A);break;case 40:case"ArrowDown":t.preventDefault(),this.h=!0,this.isDropdownVisible()?this.p(y):this.showOrSearch(!1);break;case 8:case"Backspace":this.s.value.length==0&&(this.removeLastItem(),this.a(),this.showOrSearch());break;case 27:case"Escape":this.s.focus(),this.hideSuggestions();break}}onmousemove(t){this.h=!1}onscroll(t){this.b()}onresize(t){this.b()}onclick(t=null){t&&t.preventDefault(),this.s.focus()}onreset(t){this.reset()}loadData(){this.e.server?this.e.liveServer||this.g():this.resetSuggestions()}resetState(){this.isDisabled()?(this.n.setAttribute("readonly",""),this.s.setAttribute("disabled",""),this.n.classList.add(k)):(this.n.hasAttribute("readonly")&&this.n.removeAttribute("readonly"),this.s.hasAttribute("disabled")&&this.s.removeAttribute("disabled"),this.n.classList.remove(k))}resetSuggestions(){let t=Array.from(this.i.children).filter(e=>e instanceof HTMLOptGroupElement||!e.disabled||this.e.showDisabled).map(e=>e instanceof HTMLOptGroupElement?{group:e.getAttribute("label"),items:e.children}:{value:e.getAttribute("value"),label:e.textContent,disabled:e.disabled,data:Object.assign(e.dataset)});this.A(t)}L(){let t=this.getSelection();if(t)return t.click(),!0;if(this.e.allowNew&&this.s.value){let e=this.s.value;return!!this.u(e,e,{new:1})}return!1}g(t=!1){this.o&&this.o.abort(),this.o=new AbortController;let e=Object.assign({},this.e.serverParams);if(e[this.e.queryParam]=this.s.value,this.e.noCache&&(e.t=Date.now()),e.related){let i=document.getElementById(e.related);i&&(e.related=i.value)}let s=new URLSearchParams(e),l=this.e.server,r=Object.assign(this.e.fetchOptions,{method:this.e.serverMethod||"GET",signal:this.o.signal});r.method==="POST"?r.body=s:l+="?"+s.toString(),this.n.classList.add(C),fetch(l,r).then(i=>this.e.onServerResponse(i)).then(i=>{let n=i.data||i;this.A(n),this.o=null,t&&this.v()}).catch(i=>{i.name!=="AbortError"&&console.error(i)}).finally(i=>{this.n.classList.remove(C)})}u(t,e=null,s={}){if(!this.canAdd(t,s))return null;let l=this.addItem(t,e,s);return this.e.keepOpen?this.v():this.resetSearchInput(),l}f(t){if(t.style.display==="none")return!1;let e=t.firstElementChild;return e.tagName==="A"&&!e.classList.contains("disabled")}p(t=y,e=null){let s=this.getSelection();if(s){let l=t===y?"nextSibling":"previousSibling";e=s.parentNode;do e=e[l];while(e&&!this.f(e));e?s.classList.remove(...this.c()):s&&(e=s.parentElement)}else{if(t===A)return e;if(!e)for(e=this.l.firstChild;e&&!this.f(e);)e=e.nextSibling}if(e){let l=e.offsetHeight,r=e.offsetTop,i=e.parentNode,n=i.offsetHeight,a=i.scrollHeight,o=i.offsetTop;if(l===0&&setTimeout(()=>{i.scrollTop=0}),t===A){let u=r-o>10?r-o:0;i.scrollTop=u}else r+l-(n+i.scrollTop)>0&&l>0&&(i.scrollTop=r+l-n+1,i.scrollTop+n>=a-10&&(i.scrollTop=r-o));let d=e.querySelector("a");d.classList.add(...this.c()),this.s.setAttribute("aria-activedescendant",d.getAttribute("id")),this.e.updateOnSelect&&(this.s.value=d.dataset.label,this.a())}else this.s.setAttribute("aria-activedescendant","");return e}a(){this.n.classList.remove(T),this.s.value?this.s.size=this.s.value.length:this.getSelectedValues().length?(this.s.placeholder="",this.s.size=1):(this.s.size=this.e.placeholder.length>0?this.e.placeholder.length:1,this.s.placeholder=this.e.placeholder,this.n.classList.add(T));let t=this.s.value||this.s.placeholder,e=window.getComputedStyle(this.n).fontSize,s=q(t,e)+16;this.s.style.width=s+"px"}A(t){for(;this.l.lastChild;)this.l.removeChild(this.l.lastChild);let e=0,s=1;for(let l=0;l<t.length;l++){let r=t[l];if(r.group){let i=document.createElement("li");i.setAttribute("role","presentation"),i.dataset.id=""+s;let n=document.createElement("span");if(i.append(n),n.classList.add("dropdown-header","text-truncate"),n.innerHTML=r.group,this.l.appendChild(i),r.items)for(let a=0;a<r.items.length;a++){let o=r.items[a];o.E=s,this.C(r.items[a],e),e++}s++}this.C(r,e),e++}if(this.e.notFoundMessage){let l=document.createElement("li");l.setAttribute("role","presentation"),l.classList.add(g+"not-found"),l.innerHTML='<span class="dropdown-item"></span>',this.l.appendChild(l)}}C(t,e){if(!t[this.e.valueField])return;let s=t[this.e.valueField],l=t[this.e.labelField];if(this.e.server&&!this.e.liveServer&&(t.selected||this.e.selected.includes(s))){let a=this.u(l,s,t.data);a&&(a.dataset.init="true")}let r=this.e.onRenderItem(t,l,this),i=document.createElement("li");i.setAttribute("role","presentation"),t.E&&i.setAttribute("data-group-id",""+t.E);let n=document.createElement("a");i.append(n),n.setAttribute("id",this.l.getAttribute("id")+"-"+e),n.classList.add("dropdown-item","text-truncate"),t.disabled&&n.classList.add("disabled"),n.setAttribute(m,s),n.setAttribute("data-label",l),n.setAttribute("href","#"),n.innerHTML=r,this.l.appendChild(i),n.addEventListener("mouseenter",a=>{this.h||(this.removeSelection(),i.querySelector("a").classList.add(...this.c()))}),n.addEventListener("mousedown",a=>{a.preventDefault()}),n.addEventListener("click",a=>{a.preventDefault(),this.u(l,s,t.data),this.e.onSelectItem(t,this)})}initialOptions(){return this.i.querySelectorAll("option[data-init]")}reset(){this.removeAll(),this.d=!1;let t=this.initialOptions();for(let e=0;e<t.length;e++){let s=t[e];this.addItem(s.textContent,s.value,s.dataset)}this.a(),this.d=!0}resetSearchInput(t=!1){this.s.value="",this.a(),t||(this.hideSuggestions(),this.s===document.activeElement&&this.s.dispatchEvent(new Event("input"))),this.e.max&&this.getSelectedValues().length>=this.e.max?this.s.style.visibility="hidden":this.s.style.visibility=="hidden"&&(this.s.style.visibility="visible"),this.isSingle()&&!t&&document.activeElement.blur()}getSelectedValues(){let t=this.i.querySelectorAll("option[selected]");return Array.from(t).map(e=>e.value)}getAvailableValues(){let t=this.i.querySelectorAll("option");return Array.from(t).map(e=>e.value)}showOrSearch(t=!0){if(t&&!this.q()){this.hideSuggestions(!1);return}this.e.liveServer?this.k():this.v()}hideSuggestions(t=!0){this.l.classList.remove(S),this.s.ariaExpanded="false",this.removeSelection(),t&&this.n.classList.remove(f)}toggleSuggestions(t=!0,e=!0){this.l.classList.contains(S)?this.hideSuggestions(e):this.showOrSearch(t)}q(){return this.isDisabled()||this.e.maximumItems>0&&this.getSelectedValues().length>=this.e.maximumItems?!1:this.s.value.length>=this.e.suggestionsThreshold}v(){if(this.s.style.visibility=="hidden")return;let t=F(this.s.value).toLowerCase(),e=this.getSelectedValues(),s=this.l.querySelectorAll("li"),l=0,r=null,i=!1,n={};for(let a=0;a<s.length;a++){let o=s[a],d=o.firstElementChild;if(d instanceof HTMLSpanElement){o.dataset.id&&(n[o.dataset.id]=!1),L(o);continue}if(d.classList.remove(...this.c()),!this.e.allowSame&&e.indexOf(d.getAttribute(m))!=-1){L(o);continue}let u=F(d.textContent).toLowerCase(),c=t.length>0?u.indexOf(t):-1,b=c>=0||t.length===0&&this.e.suggestionsThreshold===0,H=this.e.showAllSuggestions||t.length===0,M=b||t.length===0;if(H||b?(l++,D(o),o.dataset.groupId&&(n[o.dataset.groupId]=!0),!r&&this.f(o)&&M&&(r=o),this.e.maximumItems>0&&l>this.e.maximumItems&&L(o)):L(o),this.e.highlightTyped&&b){let v=d.textContent,V=v.substring(0,c)+`<mark>${v.substring(c,c+t.length)}</mark>`+v.substring(c+t.length,v.length);d.innerHTML=V}this.f(o)&&(i=!0)}if(!this.e.allowNew&&!(t.length===0&&!i)&&this.n.classList.add(f),this.e.allowNew&&this.e.regex&&this.isInvalid()&&this.n.classList.remove(f),Array.from(s).filter(a=>a.dataset.id).forEach(a=>{n[a.dataset.id]===!0&&D(a)}),i&&(this.n.classList.remove(f),r&&this.e.autoselectFirst&&(this.removeSelection(),this.p(y,r))),l===0)if(this.e.notFoundMessage){let a=this.l.querySelector("."+g+"not-found");a.style.display="block";let o=this.e.notFoundMessage.replace("{{tag}}",this.s.value);a.innerHTML=`<span class="dropdown-item">${o}</span>`,this.I()}else this.hideSuggestions(!1);else this.I()}I(){this.l.classList.add(S),this.s.ariaExpanded="true",this.b()}b(){let t=window.getComputedStyle(this.s),e=this.s.getBoundingClientRect(),s=t.direction==="rtl",l=null,r=null;if(this.e.fixed?(this.e.fullWidth?l=this.n.getBoundingClientRect().x:l=e.x,r=e.y+e.height):this.e.fullWidth?l=0:l=this.s.offsetLeft,s&&!this.e.fullWidth&&(l-=this.l.offsetWidth-e.width),!this.e.fullWidth){let o=Math.min(window.innerWidth,document.body.offsetWidth),d=s?e.x+e.width-this.l.offsetWidth-1:o-1-(e.x+this.l.offsetWidth);d<0&&(l=s?l-d:l+d)}this.l.style.transform="unset",this.e.fullWidth&&(this.l.style.width=this.n.offsetWidth+"px"),l!==null&&(this.l.style.left=l+"px"),r!==null&&(this.l.style.top=r+"px");let i=this.l.getBoundingClientRect(),n=Math.min(window.innerHeight,document.body.offsetHeight);n-1-(i.y+i.height)<0&&e.y>n/2&&(this.l.style.transform="translateY(calc(-100% - "+this.s.offsetHeight+"px))")}S(){let t=5;return window.jQuery&&$.fn.tooltip!=null&&$.fn.tooltip.Constructor!=null&&(t=parseInt($.fn.tooltip.Constructor.VERSION.charAt(0))),t}B(t){let e=Array.from(this.i.querySelectorAll("option")).find(s=>s.textContent==t);return!!(e&&e.getAttribute("selected"))}W(t){return new RegExp(this.e.regex.trim()).test(t)}getSelection(){return this.l.querySelector("a."+x)}removeSelection(){let t=this.getSelection();t&&t.classList.remove(...this.c())}c(){return[...this.e.activeClasses,x]}getActiveSelection(){return this.getSelection()}removeActiveSelection(){return this.removeSelection()}removeAll(){this.getSelectedValues().forEach(e=>{this.removeItem(e,!0)}),this.a()}removeLastItem(t=!1){let e=this.r.querySelectorAll("span:not(.disabled)");if(!e.length)return;let s=e[e.length-1];this.removeItem(s.getAttribute(m),t)}enable(){this.i.setAttribute("disabled",""),this.resetState()}disable(){this.i.removeAttribute("disabled"),this.resetState()}isDisabled(){return this.i.hasAttribute("disabled")||this.i.disabled||this.i.hasAttribute("readonly")}isDropdownVisible(){return this.l.classList.contains(S)}isInvalid(){return this.n.classList.contains(f)}isSingle(){return!this.i.hasAttribute("multiple")}canAdd(t,e={}){return!t||this.isDisabled()||!this.isSingle()&&!this.e.allowSame&&this.B(t)||this.e.max&&this.getSelectedValues().length>=this.e.max?!1:this.e.regex&&e.new&&!this.W(t)?(this.n.classList.add(f),!1):this.e.onCanAdd&&this.e.onCanAdd(t,e,this)===!1?(this.n.classList.add(f),!1):!0}addItem(t,e=null,s={}){e||(e=t),this.isSingle()&&this.getSelectedValues().length&&this.removeLastItem(!0);let l=CSS.escape(e),r=this.i.querySelectorAll('option[value="'+l+'"]'),i=null;if(this.e.allowSame?r.forEach(a=>{a.textContent===t&&!a.selected&&(i=a)}):i=r[0]||null,!i){i=document.createElement("option"),i.value=e,i.textContent=t;for(let[a,o]of Object.entries(s))i.dataset[a]=o;this.i.appendChild(i),this.e.onCreateItem(i,this)}i&&(s=Object.assign({title:i.getAttribute("title")},s,i.dataset)),i.setAttribute("selected","selected"),i.selected=!0;let n=this.i.innerHTML;return this.i.innerHTML="",this.i.innerHTML=n,this.w(t,e,s),this.d&&this.i.dispatchEvent(new Event("change",{bubbles:!0})),i}w(t,e=null,s={}){let l=this.S(),r=this.e.allowClear&&!s.disabled,i=t,n=document.createElement("span"),a=["badge"],o=this.e.badgeStyle;if(s.badgeStyle&&(o=s.badgeStyle),s.badgeClass&&a.push(...s.badgeClass.split(" ")),this.e.baseClass?a.push(...this.e.baseClass.split(" ")):l===5?a=[...a,"bg-"+o,"mw-100","overflow-x-hidden"]:a=[...a,"badge-"+o],s.disabled&&a.push("disabled","opacity-50"),n.style.margin="2px 6px 2px 0px",n.style.marginBlock="2px",n.style.marginInline="0px 6px",n.classList.add(...a),n.setAttribute(m,e),s.title&&n.setAttribute("title",s.title),r){let d=a.includes("text-dark")?"btn-close":"btn-close-white",u,c;this.e.clearEnd?(u=l===5?"ms-2":"ml-2",c=l===5?"float-end":"float:right;"):(u=l===5?"me-2":"mr-2",c=l===5?"float-start":"float:left;"),i=(l===5?'<button type="button" style="font-size:0.65em" class="'+u+" "+c+" btn-close "+d+'" aria-label="'+this.e.clearLabel+'"></button>':'<button type="button" style="font-size:1em;'+c+'text-shadow:none;color:currentColor;transform:scale(1.2)" class="'+u+' close" aria-label="'+this.e.clearLabel+'"><span aria-hidden="true">×</span></button>')+i}n.innerHTML=i,this.r.insertBefore(n,this.s),window.bootstrap&&window.bootstrap.Tooltip&&window.bootstrap.Tooltip.getOrCreateInstance(n),r&&n.querySelector("button").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),this.isDisabled()||(this.removeItem(e),document.activeElement.blur(),this.a())})}removeItem(t,e=!1){let s=CSS.escape(t),l=this.r.querySelector("span["+m+'="'+s+'"]');if(!l)return;l.remove();let r=this.i.querySelector('option[value="'+s+'"][selected]');r&&(r.removeAttribute("selected"),r.selected=!1,this.d&&!e&&this.i.dispatchEvent(new Event("change",{bubbles:!0}))),this.s.style.visibility=="hidden"&&this.e.max&&this.getSelectedValues().length<this.e.max&&(this.s.style.visibility="visible"),e||this.e.onClearItem(t,this)}},B=p;export{B as default};