diff --git a/CHANGELOG.md b/CHANGELOG.md index fe13895..4c66270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## v2.6.7 + +> `2024-03-20` + +### 🐞 Bug Fixes + - Clicking on scroll bar closes the dropdown fix #383 + - Types for scoped slots #391 + - Missing method types and typo fixes #376 #392 + - Don't show dropdown id when id is not defined + - Avoid error when multiselect does not exist #394 + ## v2.6.6 > `2023-10-18` diff --git a/dist/multiselect.global.js b/dist/multiselect.global.js index c20dc1a..e4908dd 100644 --- a/dist/multiselect.global.js +++ b/dist/multiselect.global.js @@ -1 +1 @@ -var VueformMultiselect=function(e){"use strict";function t(e){return-1!==[null,void 0].indexOf(e)}function a(a,l,n){const{object:r,valueProp:o,mode:i}=e.toRefs(a),u=e.getCurrentInstance().proxy,s=n.iv,c=e=>r.value||t(e)?e:Array.isArray(e)?e.map((e=>e[o.value])):e[o.value],d=e=>t(e)?"single"===i.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=d(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function l(t,a){const{value:l,modelValue:n,mode:r,valueProp:o}=e.toRefs(t),i=e.ref("single"!==r.value?[]:{}),u=e.computed((()=>n&&void 0!==n.value?n.value:l.value)),s=e.computed((()=>"single"===r.value?i.value[o.value]:i.value.map((e=>e[o.value])))),c=e.computed((()=>"single"!==r.value?i.value.map((e=>e[o.value])).join(","):i.value[o.value]));return{iv:i,internalValue:i,ev:u,externalValue:u,textValue:c,plainValue:s}}function n(t,a,l){const{regex:n}=e.toRefs(t),r=e.getCurrentInstance().proxy,o=l.isOpen,i=l.open,u=e.ref(null);return e.watch(u,(e=>{!o.value&&e&&i(),a.emit("search-change",e,r)})),{search:u,clearSearch:()=>{u.value=""},handleSearchInput:e=>{u.value=e.target.value},handleKeypress:e=>{if(n&&n.value){let t=n.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(n&&n.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=n.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}a.emit("paste",e,r)}}}function r(t,a,l){const{groupSelect:n,mode:r,groups:o,disabledProp:i}=e.toRefs(t),u=e.ref(null),s=e=>{void 0===e||null!==e&&e[i.value]||o.value&&e&&e.group&&("single"===r.value||!n.value)||(u.value=e)};return{pointer:u,setPointer:s,clearPointer:()=>{s(null)}}}function o(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function i(a,l,n){const{options:r,mode:i,trackBy:u,limit:s,hideSelected:c,createTag:d,createOption:p,label:v,appendNewTag:f,appendNewOption:m,multipleLabel:h,object:g,loading:b,delay:y,resolveOnLoad:w,minChars:x,filterResults:O,clearOnSearch:S,clearOnSelect:k,valueProp:L,allowAbsent:E,groupLabel:C,canDeselect:B,max:T,strict:V,closeOnSelect:_,closeOnDeselect:q,groups:P,reverse:N,infinite:D,groupOptions:A,groupHideEmpty:R,groupSelect:I,onCreate:j,disabledProp:M,searchStart:z,searchFilter:W}=e.toRefs(a),H=e.getCurrentInstance().proxy,$=n.iv,F=n.ev,K=n.search,G=n.clearSearch,U=n.update,X=n.pointer,Y=n.setPointer,J=n.clearPointer,Q=n.focus,Z=n.deactivate,ee=n.close,te=n.localize,ae=e.ref([]),le=e.ref([]),ne=e.ref(!1),re=e.ref(null),oe=e.ref(D.value&&-1===s.value?10:s.value),ie=e.computed((()=>d.value||p.value||!1)),ue=e.computed((()=>void 0!==f.value?f.value:void 0===m.value||m.value)),se=e.computed((()=>{if(P.value){let e=pe.value||[],t=[];return e.forEach((e=>{Me(e[A.value]).forEach((a=>{t.push(Object.assign({},a,e[M.value]?{[M.value]:!0}:{}))}))})),t}{let e=Me(le.value||[]);return ae.value.length&&(e=e.concat(ae.value)),e}})),ce=e.computed((()=>{let e=se.value;return N.value&&(e=e.reverse()),ye.value.length&&(e=ye.value.concat(e)),je(e)})),de=e.computed((()=>{let e=ce.value;return oe.value>0&&(e=e.slice(0,oe.value)),e})),pe=e.computed((()=>{if(!P.value)return[];let e=[],t=le.value||[];return ae.value.length&&e.push({[C.value]:" ",[A.value]:[...ae.value],__CREATE__:!0}),e.concat(t)})),ve=e.computed((()=>{let e=[...pe.value].map((e=>({...e})));return ye.value.length&&(e[0]&&e[0].__CREATE__?e[0][A.value]=[...ye.value,...e[0][A.value]]:e=[{[C.value]:" ",[A.value]:[...ye.value],__CREATE__:!0}].concat(e)),e})),fe=e.computed((()=>{if(!P.value)return[];let e=ve.value;return Ie((e||[]).map(((e,t)=>{const a=Me(e[A.value]);return{...e,index:t,group:!0,[A.value]:je(a,!1).map((t=>Object.assign({},t,e[M.value]?{[M.value]:!0}:{}))),__VISIBLE__:je(a).map((t=>Object.assign({},t,e[M.value]?{[M.value]:!0}:{})))}})))})),me=e.computed((()=>{switch(i.value){case"single":return!t($.value[L.value]);case"multiple":case"tags":return!t($.value)&&$.value.length>0}})),he=e.computed((()=>void 0!==h&&void 0!==h.value?h.value($.value,H):$.value&&$.value.length>1?`${$.value.length} options selected`:"1 option selected")),ge=e.computed((()=>!se.value.length&&!ne.value&&!ye.value.length)),be=e.computed((()=>se.value.length>0&&0==de.value.length&&(K.value&&P.value||!P.value))),ye=e.computed((()=>!1!==ie.value&&K.value?-1!==Ae(K.value)?[]:[{[L.value]:K.value,[we.value[0]]:K.value,[v.value]:K.value,__CREATE__:!0}]:[])),we=e.computed((()=>u.value?Array.isArray(u.value)?u.value:[u.value]:[v.value])),xe=e.computed((()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}})),Oe=e.computed((()=>b.value||ne.value)),Se=e=>{switch("object"!=typeof e&&(e=De(e)),i.value){case"single":U(e);break;case"multiple":case"tags":U($.value.concat(e))}l.emit("select",Le(e),e,H)},ke=e=>{switch("object"!=typeof e&&(e=De(e)),i.value){case"single":Ce();break;case"tags":case"multiple":U(Array.isArray(e)?$.value.filter((t=>-1===e.map((e=>e[L.value])).indexOf(t[L.value]))):$.value.filter((t=>t[L.value]!=e[L.value])))}l.emit("deselect",Le(e),e,H)},Le=e=>g.value?e:e[L.value],Ee=e=>{ke(e)},Ce=()=>{U(xe.value),l.emit("clear",H)},Be=e=>{if(void 0!==e.group)return"single"!==i.value&&(Ne(e[A.value])&&e[A.value].length);switch(i.value){case"single":return!t($.value)&&$.value[L.value]==e[L.value];case"tags":case"multiple":return!t($.value)&&-1!==$.value.map((e=>e[L.value])).indexOf(e[L.value])}},Te=e=>!0===e[M.value],Ve=()=>!(void 0===T||-1===T.value||!me.value&&T.value>0)&&$.value.length>=T.value,_e=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,i.value){case"single":if(e&&Be(e))return B.value&&ke(e),void(q.value&&(J(),ee()));e&&qe(e),k.value&&G(),_.value&&(J(),ee()),e&&Se(e);break;case"multiple":if(e&&Be(e))return ke(e),void(q.value&&(J(),ee()));if(Ve())return void l.emit("max",H);e&&(qe(e),Se(e)),k.value&&G(),c.value&&J(),_.value&&ee();break;case"tags":if(e&&Be(e))return ke(e),void(q.value&&(J(),ee()));if(Ve())return void l.emit("max",H);e&&qe(e),k.value&&G(),e&&Se(e),c.value&&J(),_.value&&ee()}_.value||Q()},qe=e=>{void 0===De(e[L.value])&&ie.value&&(l.emit("tag",e[L.value],H),l.emit("option",e[L.value],H),l.emit("create",e[L.value],H),ue.value&&Re(e),G())},Pe=e=>void 0===e.find((e=>!Be(e)&&!e[M.value])),Ne=e=>void 0===e.find((e=>!Be(e))),De=e=>se.value[se.value.map((e=>String(e[L.value]))).indexOf(String(e))],Ae=e=>se.value.findIndex((t=>we.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),Re=e=>{ae.value.push(e)},Ie=e=>R.value?e.filter((e=>K.value?e.__VISIBLE__.length:e[A.value].length)):e.filter((e=>!K.value||e.__VISIBLE__.length)),je=(e,t=!0)=>{let a=e;if(K.value&&O.value){let e=W.value;e||(e=(e,t,a)=>we.value.some((a=>{let l=o(te(e[a]),V.value);return z.value?l.startsWith(o(t,V.value)):-1!==l.indexOf(o(t,V.value))}))),a=a.filter((t=>e(t,K.value,H)))}return c.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(i.value)&&c.value&&Be(e))(e)))),a},Me=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[L.value]:e,[we.value[0]]:a,[v.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[L.value]:e,[we.value[0]]:e,[v.value]:e})),t},ze=()=>{t(F.value)||($.value=$e(F.value))},We=e=>(ne.value=!0,new Promise(((t,a)=>{r.value(K.value,H).then((t=>{le.value=t||[],"function"==typeof e&&e(t),ne.value=!1})).catch((e=>{console.error(e),le.value=[],ne.value=!1})).finally((()=>{t()}))}))),He=()=>{if(me.value)if("single"===i.value){let e=De($.value[L.value]);if(void 0!==e){let t=e[v.value];$.value[v.value]=t,g.value&&(F.value[v.value]=t)}}else $.value.forEach(((e,t)=>{let a=De($.value[t][L.value]);if(void 0!==a){let e=a[v.value];$.value[t][v.value]=e,g.value&&(F.value[t][v.value]=e)}}))},$e=e=>t(e)?"single"===i.value?{}:[]:g.value?e:"single"===i.value?De(e)||(E.value?{[v.value]:e,[L.value]:e,[we.value[0]]:e}:{}):e.filter((e=>!!De(e)||E.value)).map((e=>De(e)||{[v.value]:e,[L.value]:e,[we.value[0]]:e})),Fe=()=>{re.value=e.watch(K,(e=>{e.length{e==K.value&&r.value(K.value,H).then((t=>{e!=K.value&&K.value||(le.value=t,X.value=de.value.filter((e=>!0!==e[M.value]))[0]||null,ne.value=!1)})).catch((e=>{console.error(e)}))}),y.value))}),{flush:"sync"})};if("single"!==i.value&&!t(F.value)&&!Array.isArray(F.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return r&&"function"==typeof r.value?w.value?We(ze):1==g.value&&ze():(le.value=r.value,ze()),y.value>-1&&Fe(),e.watch(y,((e,t)=>{re.value&&re.value(),e>=0&&Fe()})),e.watch(F,(e=>{if(t(e))U($e(e),!1);else switch(i.value){case"single":(g.value?e[L.value]!=$.value[L.value]:e!=$.value[L.value])&&U($e(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(g.value?e.map((e=>e[L.value])):e,$.value.map((e=>e[L.value])))||U($e(e),!1)}}),{deep:!0}),e.watch(r,((e,t)=>{"function"==typeof a.options?w.value&&(!t||e&&e.toString()!==t.toString())&&We():(le.value=a.options,Object.keys($.value).length||ze(),He())})),e.watch(v,He),e.watch(s,((e,t)=>{oe.value=D.value&&-1===e?10:e})),{pfo:ce,fo:de,filteredOptions:de,hasSelected:me,multipleLabelText:he,eo:se,extendedOptions:se,eg:pe,extendedGroups:pe,fg:fe,filteredGroups:fe,noOptions:ge,noResults:be,resolving:ne,busy:Oe,offset:oe,select:Se,deselect:ke,remove:Ee,selectAll:()=>{"single"!==i.value&&Se(de.value.filter((e=>!e.disabled&&!Be(e))))},clear:Ce,isSelected:Be,isDisabled:Te,isMax:Ve,getOption:De,handleOptionClick:e=>{if(!Te(e))return j&&j.value&&!Be(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=j.value(e,H))instanceof Promise)?(ne.value=!0,void e.then((e=>{ne.value=!1,_e(e)}))):void _e(e)},handleGroupClick:e=>{if(!Te(e)&&"single"!==i.value&&I.value){switch(i.value){case"multiple":case"tags":Pe(e[A.value])?ke(e[A.value]):Se(e[A.value].filter((e=>-1===$.value.map((e=>e[L.value])).indexOf(e[L.value]))).filter((e=>!e[M.value])).filter(((e,t)=>$.value.length+1+t<=T.value||-1===T.value))),c.value&&X.value&&Y(fe.value.filter((e=>!e[M.value]))[X.value.index])}_.value&&Z()}},handleTagRemove:(e,t)=>{0===t.button?Ee(e):t.preventDefault()},refreshOptions:e=>{We(e)},resolveOptions:We,refreshLabels:He}}function u(t,a,l){const{valueProp:n,showOptions:r,searchable:o,groupLabel:i,groups:u,mode:s,groupSelect:c,disabledProp:d,groupOptions:p}=e.toRefs(t),v=l.fo,f=l.fg,m=l.handleOptionClick,h=l.handleGroupClick,g=l.search,b=l.pointer,y=l.setPointer,w=l.clearPointer,x=l.multiselect,O=l.isOpen,S=e.computed((()=>v.value.filter((e=>!e[d.value])))),k=e.computed((()=>f.value.filter((e=>!e[d.value])))),L=e.computed((()=>"single"!==s.value&&c.value)),E=e.computed((()=>b.value&&b.value.group)),C=e.computed((()=>R(b.value))),B=e.computed((()=>{const e=E.value?b.value:R(b.value),t=k.value.map((e=>e[i.value])).indexOf(e[i.value]);let a=k.value[t-1];return void 0===a&&(a=V.value),a})),T=e.computed((()=>{let e=k.value.map((e=>e.label)).indexOf(E.value?b.value[i.value]:R(b.value)[i.value])+1;return k.value.length<=e&&(e=0),k.value[e]})),V=e.computed((()=>[...k.value].slice(-1)[0])),_=e.computed((()=>b.value.__VISIBLE__.filter((e=>!e[d.value]))[0])),q=e.computed((()=>{const e=C.value.__VISIBLE__.filter((e=>!e[d.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])-1]})),P=e.computed((()=>{const e=R(b.value).__VISIBLE__.filter((e=>!e[d.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])+1]})),N=e.computed((()=>[...B.value.__VISIBLE__.filter((e=>!e[d.value]))].slice(-1)[0])),D=e.computed((()=>[...V.value.__VISIBLE__.filter((e=>!e[d.value]))].slice(-1)[0])),A=()=>{y(S.value[0]||null)},R=e=>k.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[n.value])).indexOf(e[n.value]))),I=()=>{let e=x.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;u.value&&(t=E.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{o.value&&(e.length&&r.value?A():w())})),e.watch(O,(t=>{if(t){let t=x.value.querySelectorAll("[data-selected]")[0];if(!t)return;let a=t.parentElement.parentElement;e.nextTick((()=>{a.scrollTop>0||(a.scrollTop=t.offsetTop)}))}})),{pointer:b,canPointGroups:L,isPointed:e=>!(!b.value||!(!e.group&&b.value[n.value]===e[n.value]||void 0!==e.group&&b.value[i.value]===e[i.value]))||void 0,setPointerFirst:A,selectPointer:()=>{b.value&&!0!==b.value[d.value]&&(E.value?h(b.value):m(b.value))},forwardPointer:()=>{if(null===b.value)y((u.value&&L.value?k.value[0].__CREATE__?S.value[0]:k.value[0]:S.value[0])||null);else if(u.value&&L.value){let e=E.value?_.value:P.value;void 0===e&&(e=T.value,e.__CREATE__&&(e=e[p.value][0])),y(e||null)}else{let e=S.value.map((e=>e[n.value])).indexOf(b.value[n.value])+1;S.value.length<=e&&(e=0),y(S.value[e]||null)}e.nextTick((()=>{I()}))},backwardPointer:()=>{if(null===b.value){let e=S.value[S.value.length-1];u.value&&L.value&&(e=D.value,void 0===e&&(e=V.value)),y(e||null)}else if(u.value&&L.value){let e=E.value?N.value:q.value;void 0===e&&(e=E.value?B.value:C.value,e.__CREATE__&&(e=N.value,void 0===e&&(e=B.value))),y(e||null)}else{let e=S.value.map((e=>e[n.value])).indexOf(b.value[n.value])-1;e<0&&(e=S.value.length-1),y(S.value[e]||null)}e.nextTick((()=>{I()}))}}}function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof s(e).Element||e instanceof Element}function d(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,f=Math.min,m=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(h())}function b(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&d(e)&&(n=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);var o=(c(e)?s(e):window).visualViewport,i=!g()&&a,u=(l.left+(i&&o?o.offsetLeft:0))/n,p=(l.top+(i&&o?o.offsetTop:0))/r,v=l.width/n,f=l.height/r;return{width:v,height:f,top:p,right:u+v,bottom:p+f,left:u,x:u,y:p}}function y(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function O(e){return b(x(e)).left+y(e).scrollLeft}function S(e){return s(e).getComputedStyle(e)}function k(e){var t=S(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function L(e,t,a){void 0===a&&(a=!1);var l,n,r=d(t),o=d(t)&&function(e){var t=e.getBoundingClientRect(),a=m(t.width)/e.offsetWidth||1,l=m(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),i=x(t),u=b(e,o,a),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!a)&&(("body"!==w(t)||k(i))&&(c=(l=t)!==s(l)&&d(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:y(l)),d(t)?((p=b(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):i&&(p.x=O(i))),{x:u.left+c.scrollLeft-p.x,y:u.top+c.scrollTop-p.y,width:u.width,height:u.height}}function E(e){var t=b(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function C(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||x(e)}function B(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:d(e)&&k(e)?e:B(C(e))}function T(e,t){var a;void 0===t&&(t=[]);var l=B(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=s(l),o=n?[r].concat(r.visualViewport||[],k(l)?l:[]):l,i=t.concat(o);return n?i:i.concat(T(C(o)))}function V(e){return["table","td","th"].indexOf(w(e))>=0}function _(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function q(e){for(var t=s(e),a=_(e);a&&V(a)&&"static"===S(a).position;)a=_(a);return a&&("html"===w(a)||"body"===w(a)&&"static"===S(a).position)?t:a||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&d(e)&&"fixed"===S(e).position)return null;var a=C(e);for(p(a)&&(a=a.host);d(a)&&["html","body"].indexOf(w(a))<0;){var l=S(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var P="top",N="bottom",D="right",A="left",R="auto",I=[P,N,D,A],j="start",M="end",z="clippingParents",W="viewport",H="popper",$="reference",F=I.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+M])}),[]),K=[].concat(I,[R]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+M])}),[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function X(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t,a){return t===W?X(function(e,t){var a=s(e),l=x(e),n=a.visualViewport,r=l.clientWidth,o=l.clientHeight,i=0,u=0;if(n){r=n.width,o=n.height;var c=g();(c||!c&&"fixed"===t)&&(i=n.offsetLeft,u=n.offsetTop)}return{width:r,height:o,x:i+O(e),y:u}}(e,a)):c(t)?function(e,t){var a=b(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):X(function(e){var t,a=x(e),l=y(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=v(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=v(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-l.scrollLeft+O(e),u=-l.scrollTop;return"rtl"===S(n||a).direction&&(i+=v(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:i,y:u}}(x(e)))}function J(e){var t=T(C(e)),a=["absolute","fixed"].indexOf(S(e).position)>=0&&d(e)?q(e):e;return c(a)?t.filter((function(e){return c(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&p(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==w(e)})):[]}function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?Q(n):null,o=n?Z(n):null,i=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case P:t={x:i,y:a.y-l.height};break;case N:t={x:i,y:a.y+a.height};break;case D:t={x:a.x+a.width,y:u};break;case A:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?ee(r):null;if(null!=s){var c="y"===s?"height":"width";switch(o){case j:t[s]=t[s]-(a[c]/2-l[c]/2);break;case M:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function ae(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,o=l.strategy,i=void 0===o?e.strategy:o,u=l.boundary,s=void 0===u?z:u,d=l.rootBoundary,p=void 0===d?W:d,m=l.elementContext,h=void 0===m?H:m,g=l.altBoundary,y=void 0!==g&&g,w=l.padding,O=void 0===w?0:w,S=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof O?O:(a=O,I.reduce((function(e,t){return e[t]=a,e}),{}))),k=h===H?$:H,L=e.rects.popper,E=e.elements[y?k:h],C=function(e,t,a,l){var n="clippingParents"===t?J(e):[].concat(t),r=[].concat(n,[a]),o=r[0],i=r.reduce((function(t,a){var n=Y(e,a,l);return t.top=v(n.top,t.top),t.right=f(n.right,t.right),t.bottom=f(n.bottom,t.bottom),t.left=v(n.left,t.left),t}),Y(e,o,l));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(c(E)?E:E.contextElement||x(e.elements.popper),s,p,i),B=b(e.elements.reference),T=te({reference:B,element:L,strategy:"absolute",placement:r}),V=X(Object.assign({},L,T)),_=h===H?V:B,q={top:C.top-_.top+S.top,bottom:_.bottom-C.bottom+S.bottom,left:C.left-_.left+S.left,right:_.right-C.right+S.right},A=e.modifiersData.offset;if(h===H&&A){var R=A[r];Object.keys(q).forEach((function(e){var t=[D,N].indexOf(e)>=0?1:-1,a=[P,N].indexOf(e)>=0?"y":"x";q[e]+=R[a]*t}))}return q}var le={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(xe,me,Oe):ce(m?xe:ge,me,m?Oe:be);k[S]=Se,_[S]=Se-me}t.modifiersData[l]=_}},requiresIfExists:["offset"]},pe={left:"right",right:"left",bottom:"top",top:"bottom"};function ve(e){return e.replace(/left|right|bottom|top/g,(function(e){return pe[e]}))}var fe={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function he(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,o=a.padding,i=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?K:u,c=Z(l),d=c?i?F:F.filter((function(e){return Z(e)===c})):I,p=d.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=d);var v=p.reduce((function(t,a){return t[a]=ae(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[Q(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,o=a.altAxis,i=void 0===o||o,u=a.fallbackPlacements,s=a.padding,c=a.boundary,d=a.rootBoundary,p=a.altBoundary,v=a.flipVariations,f=void 0===v||v,m=a.allowedAutoPlacements,h=t.options.placement,g=Q(h),b=u||(g===h||!f?[ve(h)]:function(e){if(Q(e)===R)return[];var t=ve(e);return[me(e),t,me(t)]}(h)),y=[h].concat(b).reduce((function(e,a){return e.concat(Q(a)===R?he(t,{placement:a,boundary:c,rootBoundary:d,padding:s,flipVariations:f,allowedAutoPlacements:m}):a)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,k=y[0],L=0;L=0,V=T?"width":"height",_=ae(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:p,padding:s}),q=T?B?D:A:B?N:P;w[V]>x[V]&&(q=ve(q));var I=ve(q),M=[];if(r&&M.push(_[C]<=0),i&&M.push(_[q]<=0,_[I]<=0),M.every((function(e){return e}))){k=E,S=!1;break}O.set(E,M)}if(S)for(var z=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},W=f?3:1;W>0;W--){if("break"===z(W))break}t.placement!==k&&(t.modifiersData[l]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(t,a,l){const{disabled:n,appendTo:r,appendToBody:o,openDirection:i}=e.toRefs(t),u=e.getCurrentInstance().proxy,s=l.multiselect,c=l.dropdown,d=e.ref(!1),p=e.ref(null),v=e.ref(null),f=e.computed((()=>r.value||o.value)),m=e.computed((()=>"top"===i.value&&"bottom"===v.value||"bottom"===i.value&&"top"!==v.value?"bottom":"top")),h=()=>{if(!p.value)return;let e=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));p.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===m.value?e:t)]}}]}))),p.value.update()},g=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return e.onMounted((()=>{f.value&&(p.value=se(s.value,c.value,{strategy:g(s.value)?"fixed":void 0,placement:i.value,modifiers:[de,ge,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){v.value=e.placement}}]}))})),e.onBeforeUnmount((()=>{f.value&&p.value&&(p.value.destroy(),p.value=null)})),{popper:p,isOpen:d,open:()=>{d.value||n.value||(d.value=!0,a.emit("open",u),f.value&&e.nextTick((()=>{h()})))},close:()=>{d.value&&(d.value=!1,a.emit("close",u))},placement:m,updatePopper:h}}function ye(t,a,l){const{searchable:n,disabled:r,clearOnBlur:o}=e.toRefs(t),i=l.input,u=l.open,s=l.close,c=l.clearSearch,d=l.isOpen,p=l.wrapper,v=l.tags,f=e.ref(!1),m=e.ref(!1),h=e.computed((()=>n.value||r.value?-1:0)),g=()=>{n.value&&i.value.blur(),p.value.blur()},b=(e=!0)=>{r.value||(f.value=!0,e&&u())},y=()=>{f.value=!1,setTimeout((()=>{f.value||(s(),o.value&&c())}),1)};return{tabindex:h,isActive:f,mouseClicked:m,blur:g,focus:()=>{n.value&&!r.value&&i.value.focus()},activate:b,deactivate:y,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||b(m.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),g()},handleMousedown:e=>{m.value=!0,d.value&&(e.target.isEqualNode(p.value)||e.target.isEqualNode(v.value))?setTimeout((()=>{y()}),0):d.value||!document.activeElement.isEqualNode(p.value)&&!document.activeElement.isEqualNode(i.value)||b(),setTimeout((()=>{m.value=!1}),0)}}}function we(t,a,l){const{mode:n,addTagOn:r,openDirection:o,searchable:i,showOptions:u,valueProp:s,groups:c,addOptionOn:d,createTag:p,createOption:v,reverse:f}=e.toRefs(t),m=e.getCurrentInstance().proxy,h=l.iv,g=l.update,b=l.deselect,y=l.search,w=l.setPointer,x=l.selectPointer,O=l.backwardPointer,S=l.forwardPointer,k=l.multiselect,L=l.wrapper,E=l.tags,C=l.isOpen,B=l.open,T=l.blur,V=l.fo,_=e.computed((()=>p.value||v.value||!1)),q=e.computed((()=>void 0!==r.value?r.value:void 0!==d.value?d.value:["enter"])),P=()=>{"tags"===n.value&&!u.value&&_.value&&i.value&&!c.value&&w(V.value[V.value.map((e=>e[s.value])).indexOf(y.value)])};return{handleKeydown:e=>{let t,l;switch(a.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===n.value&&(t=[...k.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==E.value)),l=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===n.value)return;if(i.value&&-1===[null,""].indexOf(y.value))return;if(0===h.value.length)return;let a=h.value.filter((e=>!e.disabled&&!1!==e.remove));a.length&&b(a[a.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==l&&void 0!==l)return g([...h.value].filter(((e,t)=>t!==l))),void(l===t.length-1&&(t.length-1?t[t.length-2].focus():i.value?E.value.querySelector("input").focus():L.value.focus()));if(-1===q.value.indexOf("enter")&&_.value)return;P(),x();break;case" ":if(!_.value&&!i.value)return e.preventDefault(),P(),void x();if(!_.value)return!1;if(-1===q.value.indexOf("space")&&_.value)return;e.preventDefault(),P(),x();break;case"Tab":case";":case",":if(-1===q.value.indexOf(e.key.toLowerCase())||!_.value)return;P(),x(),e.preventDefault();break;case"Escape":T();break;case"ArrowUp":if(e.preventDefault(),!u.value)return;C.value||B(),O();break;case"ArrowDown":if(e.preventDefault(),!u.value)return;C.value||B(),S();break;case"ArrowLeft":if(i.value&&E.value&&E.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),-1===l?t[t.length-1].focus():l>0&&t[l-1].focus();break;case"ArrowRight":if(-1===l||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),t.length>l+1?t[l+1].focus():i.value?E.value.querySelector("input").focus():i.value||L.value.focus()}},handleKeyup:e=>{a.emit("keyup",e,m)},preparePointer:P}}function xe(t,a,l){const{classes:n,disabled:r,showOptions:o,breakTags:i}=e.toRefs(t),u=l.isOpen,s=l.isPointed,c=l.isSelected,d=l.isDisabled,p=l.isActive,v=l.canPointGroups,f=l.resolving,m=l.fo,h=l.placement,g=e.computed((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value}))),b=e.computed((()=>!!(u.value&&o.value&&(!f.value||f.value&&m.value.length))));return{classList:e.computed((()=>{const e=g.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(b.value&&"top"===h.value?e.containerOpenTop:[]).concat(b.value&&"top"!==h.value?e.containerOpen:[]).concat(p.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,i.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(u.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===h.value?e.dropdownTop:[]).concat(u.value&&o.value&&b.value?[]:e.dropdownHidden),options:[e.options].concat("top"===h.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return s(t)?a.push(c(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):c(t)&&v.value?a.push(d(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):d(t)&&a.push(e.groupLabelDisabled),v.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return s(t)?l.push(c(t)?e.optionSelectedPointed:e.optionPointed):c(t)?l.push(d(t)?e.optionSelectedDisabled:e.optionSelected):(d(t)||a&&d(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:b}}function Oe(t,a,l){const{limit:n,infinite:r}=e.toRefs(t),o=l.isOpen,i=l.offset,u=l.search,s=l.pfo,c=l.eo,d=e.ref(null),p=e.ref(null),v=e.computed((()=>i.value{const{isIntersecting:a,target:l}=t[0];if(a){const t=l.offsetParent,a=t.scrollTop;i.value+=-1==n.value?10:n.value,e.nextTick((()=>{t.scrollTop=a}))}},m=()=>{o.value&&i.value{r.value&&m()})),e.watch(u,(()=>{r.value&&(i.value=n.value,m())}),{flush:"post"}),e.watch(c,(()=>{r.value&&m()}),{immediate:!1,flush:"post"}),e.onMounted((()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(f))})),{hasMore:v,infiniteLoader:p}}function Se(t,a,l){const{placeholder:n,id:r,valueProp:o,label:i,mode:u,groupLabel:s,aria:c,searchable:d}=e.toRefs(t),p=l.pointer,v=l.iv,f=l.hasSelected,m=l.multipleLabelText,h=e.ref(null),g=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("assist"),e.join("-")})),b=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("multiselect-options"),e.join("-")})),y=e.computed((()=>{let e=[];if(r&&r.value&&e.push(r.value),p.value)return e.push(p.value.group?"multiselect-group":"multiselect-option"),e.push(p.value.group?p.value.index:p.value[o.value]),e.join("-")})),w=e.computed((()=>n.value)),x=e.computed((()=>"single"!==u.value)),O=e.computed((()=>{let e="";return"single"===u.value&&f.value&&(e+=v.value[i.value]),"multiple"===u.value&&f.value&&(e+=m.value),"tags"===u.value&&f.value&&(e+=v.value.map((e=>e[i.value])).join(", ")),e})),S=e.computed((()=>{let e={...c.value};return d.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${g.value} ${e["aria-labelledby"]}`:g.value,O.value&&e["aria-label"]&&(e["aria-label"]=`${O.value}, ${e["aria-label"]}`)),e}));return e.onMounted((()=>{if(r&&r.value&&document&&document.querySelector){let e=document.querySelector(`[for="${r.value}"]`);h.value=e?e.innerText:null}})),{arias:S,ariaLabel:O,ariaAssist:g,ariaControls:b,ariaPlaceholder:w,ariaMultiselectable:x,ariaActiveDescendant:y,ariaOptionId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-option"),t.push(e[o.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function ke(t,a,l){const{locale:n,fallbackLocale:r}=e.toRefs(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Le(t,a,l){return{multiselect:e.ref(null),wrapper:e.ref(null),tags:e.ref(null),input:e.ref(null),dropdown:e.ref(null)}}var Ee={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Le,ke,l,r,be,n,a,ye,i,Oe,u,we,xe,Se]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Ce=["id","dir"],Be=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Te=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ve=["onKeyup","aria-label"],_e=["onClick"],qe=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Pe=["innerHTML"],Ne=["id"],De=["id"],Ae=["id","aria-label","aria-selected"],Re=["data-pointed","onMouseenter","onMousedown"],Ie=["innerHTML"],je=["aria-label"],Me=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],ze=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],We=["innerHTML"],He=["innerHTML"],$e=["value"],Fe=["name","value"],Ke=["name","value"],Ge=["id"];return Ee.render=function(t,a,l,n,r,o){return e.openBlock(),e.createElementBlock("div",{ref:"multiselect",class:e.normalizeClass(t.classList.container),id:l.searchable?void 0:l.id,dir:l.rtl?"rtl":void 0,onFocusin:a[10]||(a[10]=(...e)=>t.handleFocusIn&&t.handleFocusIn(...e)),onFocusout:a[11]||(a[11]=(...e)=>t.handleFocusOut&&t.handleFocusOut(...e)),onKeyup:a[12]||(a[12]=(...e)=>t.handleKeyup&&t.handleKeyup(...e)),onKeydown:a[13]||(a[13]=(...e)=>t.handleKeydown&&t.handleKeydown(...e))},[e.createElementVNode("div",e.mergeProps({class:t.classList.wrapper,onMousedown:a[9]||(a[9]=(...e)=>t.handleMousedown&&t.handleMousedown(...e)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":l.searchable?void 0:t.ariaControls,"aria-placeholder":l.searchable?void 0:t.ariaPlaceholder,"aria-expanded":l.searchable?void 0:t.isOpen,"aria-activedescendant":l.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":l.searchable?void 0:t.ariaMultiselectable,role:l.searchable?void 0:"combobox"},l.searchable?{}:t.arias),[e.createCommentVNode(" Search "),"tags"!==l.mode&&l.searchable&&!l.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:l.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:l.autocomplete,id:l.searchable?l.id:void 0,onInput:a[0]||(a[0]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:a[1]||(a[1]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:a[2]||(a[2]=e.withModifiers(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...l.attrs,...t.arias}),null,16,Te)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Tags (with search) "),"tags"==l.mode?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.classList.tags),"data-tags":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.iv,((a,n,r)=>e.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:l.disabled},(()=>[(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:e.withKeys((e=>t.handleTagRemove(a,e)),["enter"]),key:r,"aria-label":t.ariaTagLabel(t.localize(a[l.label]))},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagWrapper)},e.toDisplayString(t.localize(a[l.label])),3),l.disabled||a.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(t.classList.tagRemove),onClick:e.withModifiers((e=>t.handleTagRemove(a,e)),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,_e))],42,Ve))])))),256)),e.createElementVNode("div",{class:e.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[e.createCommentVNode(" Used for measuring search width "),e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagsSearchCopy)},e.toDisplayString(t.search),3),e.createCommentVNode(" Actual search input "),l.searchable&&!l.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:l.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:l.searchable?l.id:void 0,autocomplete:l.autocomplete,onInput:a[3]||(a[3]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:a[4]||(a[4]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:a[5]||(a[5]=e.withModifiers(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...l.attrs,...t.arias}),null,16,qe)):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Single label "),"single"==l.mode&&t.hasSelected&&!t.search&&t.iv?e.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.singleLabel)},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.singleLabelText)},e.toDisplayString(t.localize(t.iv[l.label])),3)],2)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Multiple label "),"multiple"==l.mode&&t.hasSelected&&!t.search?e.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Pe)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Placeholder "),!l.placeholder||t.hasSelected||t.search?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"placeholder",{key:4},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},e.toDisplayString(l.placeholder),3)])),e.createCommentVNode(" Spinner "),l.loading||t.resolving?e.renderSlot(t.$slots,"spinner",{key:5},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Clear "),t.hasSelected&&!l.disabled&&l.canClear&&!t.busy?e.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},(()=>[e.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:e.normalizeClass(t.classList.clear),onClick:a[6]||(a[6]=(...e)=>t.clear&&t.clear(...e)),onKeyup:a[7]||(a[7]=e.withKeys(((...e)=>t.clear&&t.clear(...e)),["enter"]))},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.clearIcon)},null,2)],34)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Caret "),l.caret&&l.showOptions?e.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.caret),onClick:a[8]||(a[8]=(...e)=>t.handleCaretClick&&t.handleCaretClick(...e)),"aria-hidden":"true"},null,2)])):e.createCommentVNode("v-if",!0)],16,Be),e.createCommentVNode(" Options "),(e.openBlock(),e.createBlock(e.Teleport,{to:l.appendTo||"body",disabled:!l.appendToBody&&!l.appendTo},[e.createElementVNode("div",{id:`${l.id}-dropdown`,class:e.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[e.renderSlot(t.$slots,"beforelist",{options:t.fo}),e.createElementVNode("ul",{class:e.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[l.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fg,((a,n,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.group),key:r,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[l.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:e=>t.setPointer(a,n),onMousedown:e.withModifiers((e=>t.handleGroupClick(a)),["prevent"])},[e.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},(()=>[e.createElementVNode("span",{innerHTML:t.localize(a[l.groupLabel])},null,8,Ie)]))],42,Re)),e.createElementVNode("ul",{class:e.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[l.groupLabel])),role:"group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.__VISIBLE__,((n,r,o)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.option(n,a)),"data-pointed":t.isPointed(n),"data-selected":t.isSelected(n)||void 0,key:o,onMouseenter:e=>t.setPointer(n),onMousedown:e.withModifiers((e=>t.handleOptionClick(n)),["prevent"]),id:t.ariaOptionId(n),"aria-selected":t.isSelected(n),"aria-label":t.ariaOptionLabel(t.localize(n[l.label])),role:"option"},[e.renderSlot(t.$slots,"option",{option:n,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[e.createElementVNode("span",null,e.toDisplayString(t.localize(n[l.label])),1)]))],42,Me)))),128))],10,je)],10,Ae)))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.fo,((a,n,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:r,onMouseenter:e=>t.setPointer(a),onMousedown:e.withModifiers((e=>t.handleOptionClick(a)),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[l.label])),role:"option"},[e.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[e.createElementVNode("span",null,e.toDisplayString(t.localize(a[l.label])),1)]))],42,ze)))),128))],10,De),t.noOptions?e.renderSlot(t.$slots,"nooptions",{key:0},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.noOptions),innerHTML:t.localize(l.noOptionsText)},null,10,We)])):e.createCommentVNode("v-if",!0),t.noResults?e.renderSlot(t.$slots,"noresults",{key:1},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.noResults),innerHTML:t.localize(l.noResultsText)},null,10,He)])):e.createCommentVNode("v-if",!0),l.infinite&&t.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[e.renderSlot(t.$slots,"infinite",{},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.inifiniteSpinner)},null,2)]))],2)):e.createCommentVNode("v-if",!0),e.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Ne)],8,["to","disabled"])),e.createCommentVNode(" Hacky input element to show HTML5 required warning "),l.required?(e.openBlock(),e.createElementBlock("input",{key:0,class:e.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,$e)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Native input support "),l.nativeSupport?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["single"==l.mode?(e.openBlock(),e.createElementBlock("input",{key:0,type:"hidden",name:l.name,value:void 0!==t.plainValue?t.plainValue:""},null,8,Fe)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.plainValue,((t,a)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:`${l.name}[]`,value:t,key:a},null,8,Ke)))),128))],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Screen reader assistive text "),l.searchable&&t.hasSelected?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},e.toDisplayString(t.ariaLabel),11,Ge)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(t.classList.spacer)},null,2)],42,Ce)},Ee.__file="src/Multiselect.vue",Ee}(Vue); +var VueformMultiselect=function(e){"use strict";function t(e){return-1!==[null,void 0].indexOf(e)}function a(a,l,n){const{object:r,valueProp:o,mode:i}=e.toRefs(a),u=e.getCurrentInstance().proxy,s=n.iv,c=e=>r.value||t(e)?e:Array.isArray(e)?e.map((e=>e[o.value])):e[o.value],d=e=>t(e)?"single"===i.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=d(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function l(t,a){const{value:l,modelValue:n,mode:r,valueProp:o}=e.toRefs(t),i=e.ref("single"!==r.value?[]:{}),u=e.computed((()=>n&&void 0!==n.value?n.value:l.value)),s=e.computed((()=>"single"===r.value?i.value[o.value]:i.value.map((e=>e[o.value])))),c=e.computed((()=>"single"!==r.value?i.value.map((e=>e[o.value])).join(","):i.value[o.value]));return{iv:i,internalValue:i,ev:u,externalValue:u,textValue:c,plainValue:s}}function n(t,a,l){const{regex:n}=e.toRefs(t),r=e.getCurrentInstance().proxy,o=l.isOpen,i=l.open,u=e.ref(null);return e.watch(u,(e=>{!o.value&&e&&i(),a.emit("search-change",e,r)})),{search:u,clearSearch:()=>{u.value=""},handleSearchInput:e=>{u.value=e.target.value},handleKeypress:e=>{if(n&&n.value){let t=n.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(n&&n.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=n.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}a.emit("paste",e,r)}}}function r(t,a,l){const{groupSelect:n,mode:r,groups:o,disabledProp:i}=e.toRefs(t),u=e.ref(null),s=e=>{void 0===e||null!==e&&e[i.value]||o.value&&e&&e.group&&("single"===r.value||!n.value)||(u.value=e)};return{pointer:u,setPointer:s,clearPointer:()=>{s(null)}}}function o(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function i(a,l,n){const{options:r,mode:i,trackBy:u,limit:s,hideSelected:c,createTag:d,createOption:p,label:v,appendNewTag:f,appendNewOption:m,multipleLabel:h,object:g,loading:b,delay:y,resolveOnLoad:w,minChars:x,filterResults:O,clearOnSearch:S,clearOnSelect:k,valueProp:L,allowAbsent:E,groupLabel:C,canDeselect:B,max:T,strict:V,closeOnSelect:_,closeOnDeselect:q,groups:P,reverse:N,infinite:D,groupOptions:A,groupHideEmpty:R,groupSelect:I,onCreate:j,disabledProp:M,searchStart:z,searchFilter:W}=e.toRefs(a),H=e.getCurrentInstance().proxy,F=n.iv,$=n.ev,K=n.search,G=n.clearSearch,U=n.update,X=n.pointer,Y=n.setPointer,J=n.clearPointer,Q=n.focus,Z=n.deactivate,ee=n.close,te=n.localize,ae=e.ref([]),le=e.ref([]),ne=e.ref(!1),re=e.ref(null),oe=e.ref(D.value&&-1===s.value?10:s.value),ie=e.computed((()=>d.value||p.value||!1)),ue=e.computed((()=>void 0!==f.value?f.value:void 0===m.value||m.value)),se=e.computed((()=>{if(P.value){let e=pe.value||[],t=[];return e.forEach((e=>{Me(e[A.value]).forEach((a=>{t.push(Object.assign({},a,e[M.value]?{[M.value]:!0}:{}))}))})),t}{let e=Me(le.value||[]);return ae.value.length&&(e=e.concat(ae.value)),e}})),ce=e.computed((()=>{let e=se.value;return N.value&&(e=e.reverse()),ye.value.length&&(e=ye.value.concat(e)),je(e)})),de=e.computed((()=>{let e=ce.value;return oe.value>0&&(e=e.slice(0,oe.value)),e})),pe=e.computed((()=>{if(!P.value)return[];let e=[],t=le.value||[];return ae.value.length&&e.push({[C.value]:" ",[A.value]:[...ae.value],__CREATE__:!0}),e.concat(t)})),ve=e.computed((()=>{let e=[...pe.value].map((e=>({...e})));return ye.value.length&&(e[0]&&e[0].__CREATE__?e[0][A.value]=[...ye.value,...e[0][A.value]]:e=[{[C.value]:" ",[A.value]:[...ye.value],__CREATE__:!0}].concat(e)),e})),fe=e.computed((()=>{if(!P.value)return[];let e=ve.value;return Ie((e||[]).map(((e,t)=>{const a=Me(e[A.value]);return{...e,index:t,group:!0,[A.value]:je(a,!1).map((t=>Object.assign({},t,e[M.value]?{[M.value]:!0}:{}))),__VISIBLE__:je(a).map((t=>Object.assign({},t,e[M.value]?{[M.value]:!0}:{})))}})))})),me=e.computed((()=>{switch(i.value){case"single":return!t(F.value[L.value]);case"multiple":case"tags":return!t(F.value)&&F.value.length>0}})),he=e.computed((()=>void 0!==h&&void 0!==h.value?h.value(F.value,H):F.value&&F.value.length>1?`${F.value.length} options selected`:"1 option selected")),ge=e.computed((()=>!se.value.length&&!ne.value&&!ye.value.length)),be=e.computed((()=>se.value.length>0&&0==de.value.length&&(K.value&&P.value||!P.value))),ye=e.computed((()=>!1!==ie.value&&K.value?-1!==Ae(K.value)?[]:[{[L.value]:K.value,[we.value[0]]:K.value,[v.value]:K.value,__CREATE__:!0}]:[])),we=e.computed((()=>u.value?Array.isArray(u.value)?u.value:[u.value]:[v.value])),xe=e.computed((()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}})),Oe=e.computed((()=>b.value||ne.value)),Se=e=>{switch("object"!=typeof e&&(e=De(e)),i.value){case"single":U(e);break;case"multiple":case"tags":U(F.value.concat(e))}l.emit("select",Le(e),e,H)},ke=e=>{switch("object"!=typeof e&&(e=De(e)),i.value){case"single":Ce();break;case"tags":case"multiple":U(Array.isArray(e)?F.value.filter((t=>-1===e.map((e=>e[L.value])).indexOf(t[L.value]))):F.value.filter((t=>t[L.value]!=e[L.value])))}l.emit("deselect",Le(e),e,H)},Le=e=>g.value?e:e[L.value],Ee=e=>{ke(e)},Ce=()=>{U(xe.value),l.emit("clear",H)},Be=e=>{if(void 0!==e.group)return"single"!==i.value&&(Ne(e[A.value])&&e[A.value].length);switch(i.value){case"single":return!t(F.value)&&F.value[L.value]==e[L.value];case"tags":case"multiple":return!t(F.value)&&-1!==F.value.map((e=>e[L.value])).indexOf(e[L.value])}},Te=e=>!0===e[M.value],Ve=()=>!(void 0===T||-1===T.value||!me.value&&T.value>0)&&F.value.length>=T.value,_e=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,i.value){case"single":if(e&&Be(e))return B.value&&ke(e),void(q.value&&(J(),ee()));e&&qe(e),k.value&&G(),_.value&&(J(),ee()),e&&Se(e);break;case"multiple":if(e&&Be(e))return ke(e),void(q.value&&(J(),ee()));if(Ve())return void l.emit("max",H);e&&(qe(e),Se(e)),k.value&&G(),c.value&&J(),_.value&&ee();break;case"tags":if(e&&Be(e))return ke(e),void(q.value&&(J(),ee()));if(Ve())return void l.emit("max",H);e&&qe(e),k.value&&G(),e&&Se(e),c.value&&J(),_.value&&ee()}_.value||Q()},qe=e=>{void 0===De(e[L.value])&&ie.value&&(l.emit("tag",e[L.value],H),l.emit("option",e[L.value],H),l.emit("create",e[L.value],H),ue.value&&Re(e),G())},Pe=e=>void 0===e.find((e=>!Be(e)&&!e[M.value])),Ne=e=>void 0===e.find((e=>!Be(e))),De=e=>se.value[se.value.map((e=>String(e[L.value]))).indexOf(String(e))],Ae=e=>se.value.findIndex((t=>we.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),Re=e=>{ae.value.push(e)},Ie=e=>R.value?e.filter((e=>K.value?e.__VISIBLE__.length:e[A.value].length)):e.filter((e=>!K.value||e.__VISIBLE__.length)),je=(e,t=!0)=>{let a=e;if(K.value&&O.value){let e=W.value;e||(e=(e,t,a)=>we.value.some((a=>{let l=o(te(e[a]),V.value);return z.value?l.startsWith(o(t,V.value)):-1!==l.indexOf(o(t,V.value))}))),a=a.filter((t=>e(t,K.value,H)))}return c.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(i.value)&&c.value&&Be(e))(e)))),a},Me=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[L.value]:e,[we.value[0]]:a,[v.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[L.value]:e,[we.value[0]]:e,[v.value]:e})),t},ze=()=>{t($.value)||(F.value=Fe($.value))},We=e=>(ne.value=!0,new Promise(((t,a)=>{r.value(K.value,H).then((t=>{le.value=t||[],"function"==typeof e&&e(t),ne.value=!1})).catch((e=>{console.error(e),le.value=[],ne.value=!1})).finally((()=>{t()}))}))),He=()=>{if(me.value)if("single"===i.value){let e=De(F.value[L.value]);if(void 0!==e){let t=e[v.value];F.value[v.value]=t,g.value&&($.value[v.value]=t)}}else F.value.forEach(((e,t)=>{let a=De(F.value[t][L.value]);if(void 0!==a){let e=a[v.value];F.value[t][v.value]=e,g.value&&($.value[t][v.value]=e)}}))},Fe=e=>t(e)?"single"===i.value?{}:[]:g.value?e:"single"===i.value?De(e)||(E.value?{[v.value]:e,[L.value]:e,[we.value[0]]:e}:{}):e.filter((e=>!!De(e)||E.value)).map((e=>De(e)||{[v.value]:e,[L.value]:e,[we.value[0]]:e})),$e=()=>{re.value=e.watch(K,(e=>{e.length{e==K.value&&r.value(K.value,H).then((t=>{e!=K.value&&K.value||(le.value=t,X.value=de.value.filter((e=>!0!==e[M.value]))[0]||null,ne.value=!1)})).catch((e=>{console.error(e)}))}),y.value))}),{flush:"sync"})};if("single"!==i.value&&!t($.value)&&!Array.isArray($.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return r&&"function"==typeof r.value?w.value?We(ze):1==g.value&&ze():(le.value=r.value,ze()),y.value>-1&&$e(),e.watch(y,((e,t)=>{re.value&&re.value(),e>=0&&$e()})),e.watch($,(e=>{if(t(e))U(Fe(e),!1);else switch(i.value){case"single":(g.value?e[L.value]!=F.value[L.value]:e!=F.value[L.value])&&U(Fe(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(g.value?e.map((e=>e[L.value])):e,F.value.map((e=>e[L.value])))||U(Fe(e),!1)}}),{deep:!0}),e.watch(r,((e,t)=>{"function"==typeof a.options?w.value&&(!t||e&&e.toString()!==t.toString())&&We():(le.value=a.options,Object.keys(F.value).length||ze(),He())})),e.watch(v,He),e.watch(s,((e,t)=>{oe.value=D.value&&-1===e?10:e})),{pfo:ce,fo:de,filteredOptions:de,hasSelected:me,multipleLabelText:he,eo:se,extendedOptions:se,eg:pe,extendedGroups:pe,fg:fe,filteredGroups:fe,noOptions:ge,noResults:be,resolving:ne,busy:Oe,offset:oe,select:Se,deselect:ke,remove:Ee,selectAll:()=>{"single"!==i.value&&Se(de.value.filter((e=>!e.disabled&&!Be(e))))},clear:Ce,isSelected:Be,isDisabled:Te,isMax:Ve,getOption:De,handleOptionClick:e=>{if(!Te(e))return j&&j.value&&!Be(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=j.value(e,H))instanceof Promise)?(ne.value=!0,void e.then((e=>{ne.value=!1,_e(e)}))):void _e(e)},handleGroupClick:e=>{if(!Te(e)&&"single"!==i.value&&I.value){switch(i.value){case"multiple":case"tags":Pe(e[A.value])?ke(e[A.value]):Se(e[A.value].filter((e=>-1===F.value.map((e=>e[L.value])).indexOf(e[L.value]))).filter((e=>!e[M.value])).filter(((e,t)=>F.value.length+1+t<=T.value||-1===T.value))),c.value&&X.value&&Y(fe.value.filter((e=>!e[M.value]))[X.value.index])}_.value&&Z()}},handleTagRemove:(e,t)=>{0===t.button?Ee(e):t.preventDefault()},refreshOptions:e=>{We(e)},resolveOptions:We,refreshLabels:He}}function u(t,a,l){const{valueProp:n,showOptions:r,searchable:o,groupLabel:i,groups:u,mode:s,groupSelect:c,disabledProp:d,groupOptions:p}=e.toRefs(t),v=l.fo,f=l.fg,m=l.handleOptionClick,h=l.handleGroupClick,g=l.search,b=l.pointer,y=l.setPointer,w=l.clearPointer,x=l.multiselect,O=l.isOpen,S=e.computed((()=>v.value.filter((e=>!e[d.value])))),k=e.computed((()=>f.value.filter((e=>!e[d.value])))),L=e.computed((()=>"single"!==s.value&&c.value)),E=e.computed((()=>b.value&&b.value.group)),C=e.computed((()=>R(b.value))),B=e.computed((()=>{const e=E.value?b.value:R(b.value),t=k.value.map((e=>e[i.value])).indexOf(e[i.value]);let a=k.value[t-1];return void 0===a&&(a=V.value),a})),T=e.computed((()=>{let e=k.value.map((e=>e.label)).indexOf(E.value?b.value[i.value]:R(b.value)[i.value])+1;return k.value.length<=e&&(e=0),k.value[e]})),V=e.computed((()=>[...k.value].slice(-1)[0])),_=e.computed((()=>b.value.__VISIBLE__.filter((e=>!e[d.value]))[0])),q=e.computed((()=>{const e=C.value.__VISIBLE__.filter((e=>!e[d.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])-1]})),P=e.computed((()=>{const e=R(b.value).__VISIBLE__.filter((e=>!e[d.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])+1]})),N=e.computed((()=>[...B.value.__VISIBLE__.filter((e=>!e[d.value]))].slice(-1)[0])),D=e.computed((()=>[...V.value.__VISIBLE__.filter((e=>!e[d.value]))].slice(-1)[0])),A=()=>{y(S.value[0]||null)},R=e=>k.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[n.value])).indexOf(e[n.value]))),I=()=>{let e=x.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;u.value&&(t=E.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{o.value&&(e.length&&r.value?A():w())})),e.watch(O,(t=>{if(t&&x?.value){let t=x.value.querySelectorAll("[data-selected]")[0];if(!t)return;let a=t.parentElement.parentElement;e.nextTick((()=>{a.scrollTop>0||(a.scrollTop=t.offsetTop)}))}})),{pointer:b,canPointGroups:L,isPointed:e=>!(!b.value||!(!e.group&&b.value[n.value]===e[n.value]||void 0!==e.group&&b.value[i.value]===e[i.value]))||void 0,setPointerFirst:A,selectPointer:()=>{b.value&&!0!==b.value[d.value]&&(E.value?h(b.value):m(b.value))},forwardPointer:()=>{if(null===b.value)y((u.value&&L.value?k.value[0].__CREATE__?S.value[0]:k.value[0]:S.value[0])||null);else if(u.value&&L.value){let e=E.value?_.value:P.value;void 0===e&&(e=T.value,e.__CREATE__&&(e=e[p.value][0])),y(e||null)}else{let e=S.value.map((e=>e[n.value])).indexOf(b.value[n.value])+1;S.value.length<=e&&(e=0),y(S.value[e]||null)}e.nextTick((()=>{I()}))},backwardPointer:()=>{if(null===b.value){let e=S.value[S.value.length-1];u.value&&L.value&&(e=D.value,void 0===e&&(e=V.value)),y(e||null)}else if(u.value&&L.value){let e=E.value?N.value:q.value;void 0===e&&(e=E.value?B.value:C.value,e.__CREATE__&&(e=N.value,void 0===e&&(e=B.value))),y(e||null)}else{let e=S.value.map((e=>e[n.value])).indexOf(b.value[n.value])-1;e<0&&(e=S.value.length-1),y(S.value[e]||null)}e.nextTick((()=>{I()}))}}}function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof s(e).Element||e instanceof Element}function d(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,f=Math.min,m=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(h())}function b(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&d(e)&&(n=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);var o=(c(e)?s(e):window).visualViewport,i=!g()&&a,u=(l.left+(i&&o?o.offsetLeft:0))/n,p=(l.top+(i&&o?o.offsetTop:0))/r,v=l.width/n,f=l.height/r;return{width:v,height:f,top:p,right:u+v,bottom:p+f,left:u,x:u,y:p}}function y(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function O(e){return b(x(e)).left+y(e).scrollLeft}function S(e){return s(e).getComputedStyle(e)}function k(e){var t=S(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function L(e,t,a){void 0===a&&(a=!1);var l,n,r=d(t),o=d(t)&&function(e){var t=e.getBoundingClientRect(),a=m(t.width)/e.offsetWidth||1,l=m(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),i=x(t),u=b(e,o,a),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!a)&&(("body"!==w(t)||k(i))&&(c=(l=t)!==s(l)&&d(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:y(l)),d(t)?((p=b(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):i&&(p.x=O(i))),{x:u.left+c.scrollLeft-p.x,y:u.top+c.scrollTop-p.y,width:u.width,height:u.height}}function E(e){var t=b(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function C(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||x(e)}function B(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:d(e)&&k(e)?e:B(C(e))}function T(e,t){var a;void 0===t&&(t=[]);var l=B(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=s(l),o=n?[r].concat(r.visualViewport||[],k(l)?l:[]):l,i=t.concat(o);return n?i:i.concat(T(C(o)))}function V(e){return["table","td","th"].indexOf(w(e))>=0}function _(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function q(e){for(var t=s(e),a=_(e);a&&V(a)&&"static"===S(a).position;)a=_(a);return a&&("html"===w(a)||"body"===w(a)&&"static"===S(a).position)?t:a||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&d(e)&&"fixed"===S(e).position)return null;var a=C(e);for(p(a)&&(a=a.host);d(a)&&["html","body"].indexOf(w(a))<0;){var l=S(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var P="top",N="bottom",D="right",A="left",R="auto",I=[P,N,D,A],j="start",M="end",z="clippingParents",W="viewport",H="popper",F="reference",$=I.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+M])}),[]),K=[].concat(I,[R]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+M])}),[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function X(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t,a){return t===W?X(function(e,t){var a=s(e),l=x(e),n=a.visualViewport,r=l.clientWidth,o=l.clientHeight,i=0,u=0;if(n){r=n.width,o=n.height;var c=g();(c||!c&&"fixed"===t)&&(i=n.offsetLeft,u=n.offsetTop)}return{width:r,height:o,x:i+O(e),y:u}}(e,a)):c(t)?function(e,t){var a=b(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):X(function(e){var t,a=x(e),l=y(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=v(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=v(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-l.scrollLeft+O(e),u=-l.scrollTop;return"rtl"===S(n||a).direction&&(i+=v(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:i,y:u}}(x(e)))}function J(e){var t=T(C(e)),a=["absolute","fixed"].indexOf(S(e).position)>=0&&d(e)?q(e):e;return c(a)?t.filter((function(e){return c(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&p(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==w(e)})):[]}function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?Q(n):null,o=n?Z(n):null,i=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case P:t={x:i,y:a.y-l.height};break;case N:t={x:i,y:a.y+a.height};break;case D:t={x:a.x+a.width,y:u};break;case A:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?ee(r):null;if(null!=s){var c="y"===s?"height":"width";switch(o){case j:t[s]=t[s]-(a[c]/2-l[c]/2);break;case M:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function ae(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,o=l.strategy,i=void 0===o?e.strategy:o,u=l.boundary,s=void 0===u?z:u,d=l.rootBoundary,p=void 0===d?W:d,m=l.elementContext,h=void 0===m?H:m,g=l.altBoundary,y=void 0!==g&&g,w=l.padding,O=void 0===w?0:w,S=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof O?O:(a=O,I.reduce((function(e,t){return e[t]=a,e}),{}))),k=h===H?F:H,L=e.rects.popper,E=e.elements[y?k:h],C=function(e,t,a,l){var n="clippingParents"===t?J(e):[].concat(t),r=[].concat(n,[a]),o=r[0],i=r.reduce((function(t,a){var n=Y(e,a,l);return t.top=v(n.top,t.top),t.right=f(n.right,t.right),t.bottom=f(n.bottom,t.bottom),t.left=v(n.left,t.left),t}),Y(e,o,l));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(c(E)?E:E.contextElement||x(e.elements.popper),s,p,i),B=b(e.elements.reference),T=te({reference:B,element:L,strategy:"absolute",placement:r}),V=X(Object.assign({},L,T)),_=h===H?V:B,q={top:C.top-_.top+S.top,bottom:_.bottom-C.bottom+S.bottom,left:C.left-_.left+S.left,right:_.right-C.right+S.right},A=e.modifiersData.offset;if(h===H&&A){var R=A[r];Object.keys(q).forEach((function(e){var t=[D,N].indexOf(e)>=0?1:-1,a=[P,N].indexOf(e)>=0?"y":"x";q[e]+=R[a]*t}))}return q}var le={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(xe,me,Oe):ce(m?xe:ge,me,m?Oe:be);k[S]=Se,_[S]=Se-me}t.modifiersData[l]=_}},requiresIfExists:["offset"]},pe={left:"right",right:"left",bottom:"top",top:"bottom"};function ve(e){return e.replace(/left|right|bottom|top/g,(function(e){return pe[e]}))}var fe={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function he(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,o=a.padding,i=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?K:u,c=Z(l),d=c?i?$:$.filter((function(e){return Z(e)===c})):I,p=d.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=d);var v=p.reduce((function(t,a){return t[a]=ae(e,{placement:a,boundary:n,rootBoundary:r,padding:o})[Q(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,o=a.altAxis,i=void 0===o||o,u=a.fallbackPlacements,s=a.padding,c=a.boundary,d=a.rootBoundary,p=a.altBoundary,v=a.flipVariations,f=void 0===v||v,m=a.allowedAutoPlacements,h=t.options.placement,g=Q(h),b=u||(g===h||!f?[ve(h)]:function(e){if(Q(e)===R)return[];var t=ve(e);return[me(e),t,me(t)]}(h)),y=[h].concat(b).reduce((function(e,a){return e.concat(Q(a)===R?he(t,{placement:a,boundary:c,rootBoundary:d,padding:s,flipVariations:f,allowedAutoPlacements:m}):a)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,k=y[0],L=0;L=0,V=T?"width":"height",_=ae(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:p,padding:s}),q=T?B?D:A:B?N:P;w[V]>x[V]&&(q=ve(q));var I=ve(q),M=[];if(r&&M.push(_[C]<=0),i&&M.push(_[q]<=0,_[I]<=0),M.every((function(e){return e}))){k=E,S=!1;break}O.set(E,M)}if(S)for(var z=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},W=f?3:1;W>0;W--){if("break"===z(W))break}t.placement!==k&&(t.modifiersData[l]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(t,a,l){const{disabled:n,appendTo:r,appendToBody:o,openDirection:i}=e.toRefs(t),u=e.getCurrentInstance().proxy,s=l.multiselect,c=l.dropdown,d=e.ref(!1),p=e.ref(null),v=e.ref(null),f=e.computed((()=>r.value||o.value)),m=e.computed((()=>"top"===i.value&&"bottom"===v.value||"bottom"===i.value&&"top"!==v.value?"bottom":"top")),h=()=>{if(!p.value)return;let e=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));p.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===m.value?e:t)]}}]}))),p.value.update()},g=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return e.onMounted((()=>{f.value&&(p.value=se(s.value,c.value,{strategy:g(s.value)?"fixed":void 0,placement:i.value,modifiers:[de,ge,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){v.value=e.placement}}]}))})),e.onBeforeUnmount((()=>{f.value&&p.value&&(p.value.destroy(),p.value=null)})),{popper:p,isOpen:d,open:()=>{d.value||n.value||(d.value=!0,a.emit("open",u),f.value&&e.nextTick((()=>{h()})))},close:()=>{d.value&&(d.value=!1,a.emit("close",u))},placement:m,updatePopper:h}}function ye(t,a,l){const{searchable:n,disabled:r,clearOnBlur:o}=e.toRefs(t),i=l.input,u=l.open,s=l.close,c=l.clearSearch,d=l.isOpen,p=l.wrapper,v=l.tags,f=e.ref(!1),m=e.ref(!1),h=e.computed((()=>n.value||r.value?-1:0)),g=()=>{n.value&&i.value.blur(),p.value.blur()},b=(e=!0)=>{r.value||(f.value=!0,e&&u())},y=()=>{f.value=!1,setTimeout((()=>{f.value||(s(),o.value&&c())}),1)};return{tabindex:h,isActive:f,mouseClicked:m,blur:g,focus:()=>{n.value&&!r.value&&i.value.focus()},activate:b,deactivate:y,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||b(m.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),g()},handleMousedown:e=>{m.value=!0,d.value&&(e.target.isEqualNode(p.value)||e.target.isEqualNode(v.value))?setTimeout((()=>{y()}),0):d.value||!document.activeElement.isEqualNode(p.value)&&!document.activeElement.isEqualNode(i.value)||b(),setTimeout((()=>{m.value=!1}),0)}}}function we(t,a,l){const{mode:n,addTagOn:r,openDirection:o,searchable:i,showOptions:u,valueProp:s,groups:c,addOptionOn:d,createTag:p,createOption:v,reverse:f}=e.toRefs(t),m=e.getCurrentInstance().proxy,h=l.iv,g=l.update,b=l.deselect,y=l.search,w=l.setPointer,x=l.selectPointer,O=l.backwardPointer,S=l.forwardPointer,k=l.multiselect,L=l.wrapper,E=l.tags,C=l.isOpen,B=l.open,T=l.blur,V=l.fo,_=e.computed((()=>p.value||v.value||!1)),q=e.computed((()=>void 0!==r.value?r.value:void 0!==d.value?d.value:["enter"])),P=()=>{"tags"===n.value&&!u.value&&_.value&&i.value&&!c.value&&w(V.value[V.value.map((e=>e[s.value])).indexOf(y.value)])};return{handleKeydown:e=>{let t,l;switch(a.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===n.value&&(t=[...k.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==E.value)),l=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===n.value)return;if(i.value&&-1===[null,""].indexOf(y.value))return;if(0===h.value.length)return;let a=h.value.filter((e=>!e.disabled&&!1!==e.remove));a.length&&b(a[a.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==l&&void 0!==l)return g([...h.value].filter(((e,t)=>t!==l))),void(l===t.length-1&&(t.length-1?t[t.length-2].focus():i.value?E.value.querySelector("input").focus():L.value.focus()));if(-1===q.value.indexOf("enter")&&_.value)return;P(),x();break;case" ":if(!_.value&&!i.value)return e.preventDefault(),P(),void x();if(!_.value)return!1;if(-1===q.value.indexOf("space")&&_.value)return;e.preventDefault(),P(),x();break;case"Tab":case";":case",":if(-1===q.value.indexOf(e.key.toLowerCase())||!_.value)return;P(),x(),e.preventDefault();break;case"Escape":T();break;case"ArrowUp":if(e.preventDefault(),!u.value)return;C.value||B(),O();break;case"ArrowDown":if(e.preventDefault(),!u.value)return;C.value||B(),S();break;case"ArrowLeft":if(i.value&&E.value&&E.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),-1===l?t[t.length-1].focus():l>0&&t[l-1].focus();break;case"ArrowRight":if(-1===l||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),t.length>l+1?t[l+1].focus():i.value?E.value.querySelector("input").focus():i.value||L.value.focus()}},handleKeyup:e=>{a.emit("keyup",e,m)},preparePointer:P}}function xe(t,a,l){const{classes:n,disabled:r,showOptions:o,breakTags:i}=e.toRefs(t),u=l.isOpen,s=l.isPointed,c=l.isSelected,d=l.isDisabled,p=l.isActive,v=l.canPointGroups,f=l.resolving,m=l.fo,h=l.placement,g=e.computed((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value}))),b=e.computed((()=>!!(u.value&&o.value&&(!f.value||f.value&&m.value.length))));return{classList:e.computed((()=>{const e=g.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(b.value&&"top"===h.value?e.containerOpenTop:[]).concat(b.value&&"top"!==h.value?e.containerOpen:[]).concat(p.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,i.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(u.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===h.value?e.dropdownTop:[]).concat(u.value&&o.value&&b.value?[]:e.dropdownHidden),options:[e.options].concat("top"===h.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return s(t)?a.push(c(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):c(t)&&v.value?a.push(d(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):d(t)&&a.push(e.groupLabelDisabled),v.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return s(t)?l.push(c(t)?e.optionSelectedPointed:e.optionPointed):c(t)?l.push(d(t)?e.optionSelectedDisabled:e.optionSelected):(d(t)||a&&d(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:b}}function Oe(t,a,l){const{limit:n,infinite:r}=e.toRefs(t),o=l.isOpen,i=l.offset,u=l.search,s=l.pfo,c=l.eo,d=e.ref(null),p=e.ref(null),v=e.computed((()=>i.value{const{isIntersecting:a,target:l}=t[0];if(a){const t=l.offsetParent,a=t.scrollTop;i.value+=-1==n.value?10:n.value,e.nextTick((()=>{t.scrollTop=a}))}},m=()=>{o.value&&i.value{r.value&&m()})),e.watch(u,(()=>{r.value&&(i.value=n.value,m())}),{flush:"post"}),e.watch(c,(()=>{r.value&&m()}),{immediate:!1,flush:"post"}),e.onMounted((()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(f))})),{hasMore:v,infiniteLoader:p}}function Se(t,a,l){const{placeholder:n,id:r,valueProp:o,label:i,mode:u,groupLabel:s,aria:c,searchable:d}=e.toRefs(t),p=l.pointer,v=l.iv,f=l.hasSelected,m=l.multipleLabelText,h=e.ref(null),g=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("assist"),e.join("-")})),b=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("multiselect-options"),e.join("-")})),y=e.computed((()=>{let e=[];if(r&&r.value&&e.push(r.value),p.value)return e.push(p.value.group?"multiselect-group":"multiselect-option"),e.push(p.value.group?p.value.index:p.value[o.value]),e.join("-")})),w=e.computed((()=>n.value)),x=e.computed((()=>"single"!==u.value)),O=e.computed((()=>{let e="";return"single"===u.value&&f.value&&(e+=v.value[i.value]),"multiple"===u.value&&f.value&&(e+=m.value),"tags"===u.value&&f.value&&(e+=v.value.map((e=>e[i.value])).join(", ")),e})),S=e.computed((()=>{let e={...c.value};return d.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${g.value} ${e["aria-labelledby"]}`:g.value,O.value&&e["aria-label"]&&(e["aria-label"]=`${O.value}, ${e["aria-label"]}`)),e}));return e.onMounted((()=>{if(r&&r.value&&document&&document.querySelector){let e=document.querySelector(`[for="${r.value}"]`);h.value=e?e.innerText:null}})),{arias:S,ariaLabel:O,ariaAssist:g,ariaControls:b,ariaPlaceholder:w,ariaMultiselectable:x,ariaActiveDescendant:y,ariaOptionId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-option"),t.push(e[o.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function ke(t,a,l){const{locale:n,fallbackLocale:r}=e.toRefs(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Le(t,a,l){return{multiselect:e.ref(null),wrapper:e.ref(null),tags:e.ref(null),input:e.ref(null),dropdown:e.ref(null)}}var Ee={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Le,ke,l,r,be,n,a,ye,i,Oe,u,we,xe,Se]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Ce=["id","dir"],Be=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Te=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ve=["onKeyup","aria-label"],_e=["onClick"],qe=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Pe=["innerHTML"],Ne=["id"],De=["id"],Ae=["id","aria-label","aria-selected"],Re=["data-pointed","onMouseenter","onMousedown"],Ie=["innerHTML"],je=["aria-label"],Me=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],ze=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],We=["innerHTML"],He=["innerHTML"],Fe=["value"],$e=["name","value"],Ke=["name","value"],Ge=["id"];return Ee.render=function(t,a,l,n,r,o){return e.openBlock(),e.createElementBlock("div",{ref:"multiselect",class:e.normalizeClass(t.classList.container),id:l.searchable?void 0:l.id,dir:l.rtl?"rtl":void 0,onFocusin:a[12]||(a[12]=(...e)=>t.handleFocusIn&&t.handleFocusIn(...e)),onFocusout:a[13]||(a[13]=(...e)=>t.handleFocusOut&&t.handleFocusOut(...e)),onKeyup:a[14]||(a[14]=(...e)=>t.handleKeyup&&t.handleKeyup(...e)),onKeydown:a[15]||(a[15]=(...e)=>t.handleKeydown&&t.handleKeydown(...e))},[e.createElementVNode("div",e.mergeProps({class:t.classList.wrapper,onMousedown:a[9]||(a[9]=(...e)=>t.handleMousedown&&t.handleMousedown(...e)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":l.searchable?void 0:t.ariaControls,"aria-placeholder":l.searchable?void 0:t.ariaPlaceholder,"aria-expanded":l.searchable?void 0:t.isOpen,"aria-activedescendant":l.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":l.searchable?void 0:t.ariaMultiselectable,role:l.searchable?void 0:"combobox"},l.searchable?{}:t.arias),[e.createCommentVNode(" Search "),"tags"!==l.mode&&l.searchable&&!l.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:l.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:l.autocomplete,id:l.searchable?l.id:void 0,onInput:a[0]||(a[0]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:a[1]||(a[1]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:a[2]||(a[2]=e.withModifiers(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...l.attrs,...t.arias}),null,16,Te)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Tags (with search) "),"tags"==l.mode?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.classList.tags),"data-tags":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.iv,((a,n,r)=>e.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:l.disabled},(()=>[(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:e.withKeys((e=>t.handleTagRemove(a,e)),["enter"]),key:r,"aria-label":t.ariaTagLabel(t.localize(a[l.label]))},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagWrapper)},e.toDisplayString(t.localize(a[l.label])),3),l.disabled||a.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(t.classList.tagRemove),onClick:e.withModifiers((e=>t.handleTagRemove(a,e)),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,_e))],42,Ve))])))),256)),e.createElementVNode("div",{class:e.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[e.createCommentVNode(" Used for measuring search width "),e.createElementVNode("span",{class:e.normalizeClass(t.classList.tagsSearchCopy)},e.toDisplayString(t.search),3),e.createCommentVNode(" Actual search input "),l.searchable&&!l.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:l.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:l.searchable?l.id:void 0,autocomplete:l.autocomplete,onInput:a[3]||(a[3]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:a[4]||(a[4]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:a[5]||(a[5]=e.withModifiers(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...l.attrs,...t.arias}),null,16,qe)):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Single label "),"single"==l.mode&&t.hasSelected&&!t.search&&t.iv?e.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.singleLabel)},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.singleLabelText)},e.toDisplayString(t.localize(t.iv[l.label])),3)],2)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Multiple label "),"multiple"==l.mode&&t.hasSelected&&!t.search?e.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Pe)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Placeholder "),!l.placeholder||t.hasSelected||t.search?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"placeholder",{key:4},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},e.toDisplayString(l.placeholder),3)])),e.createCommentVNode(" Spinner "),l.loading||t.resolving?e.renderSlot(t.$slots,"spinner",{key:5},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Clear "),t.hasSelected&&!l.disabled&&l.canClear&&!t.busy?e.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},(()=>[e.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:e.normalizeClass(t.classList.clear),onClick:a[6]||(a[6]=(...e)=>t.clear&&t.clear(...e)),onKeyup:a[7]||(a[7]=e.withKeys(((...e)=>t.clear&&t.clear(...e)),["enter"]))},[e.createElementVNode("span",{class:e.normalizeClass(t.classList.clearIcon)},null,2)],34)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Caret "),l.caret&&l.showOptions?e.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.caret),onClick:a[8]||(a[8]=(...e)=>t.handleCaretClick&&t.handleCaretClick(...e)),"aria-hidden":"true"},null,2)])):e.createCommentVNode("v-if",!0)],16,Be),e.createCommentVNode(" Options "),(e.openBlock(),e.createBlock(e.Teleport,{to:l.appendTo||"body",disabled:!l.appendToBody&&!l.appendTo},[e.createElementVNode("div",{id:l.id?`${l.id}-dropdown`:void 0,class:e.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:a[10]||(a[10]=(...e)=>t.handleFocusIn&&t.handleFocusIn(...e)),onFocusout:a[11]||(a[11]=(...e)=>t.handleFocusOut&&t.handleFocusOut(...e))},[e.renderSlot(t.$slots,"beforelist",{options:t.fo}),e.createElementVNode("ul",{class:e.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[l.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fg,((a,n,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.group),key:r,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[l.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:e=>t.setPointer(a,n),onMousedown:e.withModifiers((e=>t.handleGroupClick(a)),["prevent"])},[e.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},(()=>[e.createElementVNode("span",{innerHTML:t.localize(a[l.groupLabel])},null,8,Ie)]))],42,Re)),e.createElementVNode("ul",{class:e.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[l.groupLabel])),role:"group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.__VISIBLE__,((n,r,o)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.option(n,a)),"data-pointed":t.isPointed(n),"data-selected":t.isSelected(n)||void 0,key:o,onMouseenter:e=>t.setPointer(n),onMousedown:e.withModifiers((e=>t.handleOptionClick(n)),["prevent"]),id:t.ariaOptionId(n),"aria-selected":t.isSelected(n),"aria-label":t.ariaOptionLabel(t.localize(n[l.label])),role:"option"},[e.renderSlot(t.$slots,"option",{option:n,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[e.createElementVNode("span",null,e.toDisplayString(t.localize(n[l.label])),1)]))],42,Me)))),128))],10,je)],10,Ae)))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.fo,((a,n,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:r,onMouseenter:e=>t.setPointer(a),onMousedown:e.withModifiers((e=>t.handleOptionClick(a)),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[l.label])),role:"option"},[e.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[e.createElementVNode("span",null,e.toDisplayString(t.localize(a[l.label])),1)]))],42,ze)))),128))],10,De),t.noOptions?e.renderSlot(t.$slots,"nooptions",{key:0},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.noOptions),innerHTML:t.localize(l.noOptionsText)},null,10,We)])):e.createCommentVNode("v-if",!0),t.noResults?e.renderSlot(t.$slots,"noresults",{key:1},(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.classList.noResults),innerHTML:t.localize(l.noResultsText)},null,10,He)])):e.createCommentVNode("v-if",!0),l.infinite&&t.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[e.renderSlot(t.$slots,"infinite",{},(()=>[e.createElementVNode("span",{class:e.normalizeClass(t.classList.inifiniteSpinner)},null,2)]))],2)):e.createCommentVNode("v-if",!0),e.renderSlot(t.$slots,"afterlist",{options:t.fo})],42,Ne)],8,["to","disabled"])),e.createCommentVNode(" Hacky input element to show HTML5 required warning "),l.required?(e.openBlock(),e.createElementBlock("input",{key:0,class:e.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Fe)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Native input support "),l.nativeSupport?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["single"==l.mode?(e.openBlock(),e.createElementBlock("input",{key:0,type:"hidden",name:l.name,value:void 0!==t.plainValue?t.plainValue:""},null,8,$e)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.plainValue,((t,a)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:`${l.name}[]`,value:t,key:a},null,8,Ke)))),128))],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Screen reader assistive text "),l.searchable&&t.hasSelected?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},e.toDisplayString(t.ariaLabel),11,Ge)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(t.classList.spacer)},null,2)],42,Ce)},Ee.__file="src/Multiselect.vue",Ee}(Vue); diff --git a/dist/multiselect.js b/dist/multiselect.js index a5450cd..ecd72c3 100644 --- a/dist/multiselect.js +++ b/dist/multiselect.js @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep) }); watch(isOpen, (val) => { - if (val) { + if (val && multiselect?.value) { let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0]; if (!firstSelected) { @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep) return } + /* istanbul ignore next: popper mock */ popper.value = createPopper(multiselect.value, dropdown.value, { strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined, placement: openDirection.value, @@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { class: normalizeClass(_ctx.classList.container), id: $props.searchable ? undefined : $props.id, dir: $props.rtl ? 'rtl' : undefined, - onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), - onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))), - onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))), - onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args))) + onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), + onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))), + onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))), + onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args))) }, [ createElementVNode("div", mergeProps({ class: _ctx.classList.wrapper, @@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, null, 2 /* CLASS */) ], 10 /* CLASS, PROPS */, _hoisted_5)) : createCommentVNode("v-if", true) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4)) ]) }), 256 /* UNKEYED_FRAGMENT */)), createElementVNode("div", { @@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { createElementVNode("span", { class: normalizeClass(_ctx.classList.clearIcon) }, null, 2 /* CLASS */) - ], 34 /* CLASS, HYDRATE_EVENTS */) + ], 34 /* CLASS, NEED_HYDRATION */) ]) : createCommentVNode("v-if", true), createCommentVNode(" Caret "), @@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { disabled: !$props.appendToBody && !$props.appendTo }, [ createElementVNode("div", { - id: `${$props.id}-dropdown`, + id: $props.id ? `${$props.id}-dropdown` : undefined, class: normalizeClass(_ctx.classList.dropdown), tabindex: "-1", - ref: "dropdown" + ref: "dropdown", + onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), + onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))) }, [ renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }), createElementVNode("ul", { @@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { innerHTML: _ctx.localize(group[$props.groupLabel]) }, null, 8 /* PROPS */, _hoisted_12) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11)) : createCommentVNode("v-if", true), createElementVNode("ul", { class: normalizeClass(_ctx.classList.groupOptions), @@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, () => [ createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14)) }), 128 /* KEYED_FRAGMENT */)) ], 10 /* CLASS, PROPS */, _hoisted_13) ], 10 /* CLASS, PROPS */, _hoisted_10)) @@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, () => [ createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15)) }), 128 /* KEYED_FRAGMENT */)) ], 10 /* CLASS, PROPS */, _hoisted_9), (_ctx.noOptions) @@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { ], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo }) - ], 10 /* CLASS, PROPS */, _hoisted_8) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8) ], 8 /* PROPS */, ["to", "disabled"])), createCommentVNode(" Hacky input element to show HTML5 required warning "), ($props.required) @@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { createElementVNode("div", { class: normalizeClass(_ctx.classList.spacer) }, null, 2 /* CLASS */) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1)) } script.render = render; diff --git a/dist/multiselect.min.js b/dist/multiselect.min.js index 3b9d3d4..ad1a834 100644 --- a/dist/multiselect.min.js +++ b/dist/multiselect.min.js @@ -1 +1 @@ -import{toRefs as e,getCurrentInstance as t,ref as a,computed as l,watch as n,nextTick as i,onMounted as r,onBeforeUnmount as o,openBlock as u,createElementBlock as s,normalizeClass as c,createElementVNode as d,mergeProps as p,createCommentVNode as v,withModifiers as f,Fragment as h,renderList as g,renderSlot as m,withKeys as b,toDisplayString as y,createBlock as w,Teleport as x}from"vue";function O(e){return-1!==[null,void 0].indexOf(e)}function L(a,l,n){const{object:i,valueProp:r,mode:o}=e(a),u=t().proxy,s=n.iv,c=e=>i.value||O(e)?e:Array.isArray(e)?e.map((e=>e[r.value])):e[r.value],d=e=>O(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=d(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function S(t,n){const{value:i,modelValue:r,mode:o,valueProp:u}=e(t),s=a("single"!==o.value?[]:{}),c=l((()=>r&&void 0!==r.value?r.value:i.value)),d=l((()=>"single"===o.value?s.value[u.value]:s.value.map((e=>e[u.value])))),p=l((()=>"single"!==o.value?s.value.map((e=>e[u.value])).join(","):s.value[u.value]));return{iv:s,internalValue:s,ev:c,externalValue:c,textValue:p,plainValue:d}}function k(l,i,r){const{regex:o}=e(l),u=t().proxy,s=r.isOpen,c=r.open,d=a(null);return n(d,(e=>{!s.value&&e&&c(),i.emit("search-change",e,u)})),{search:d,clearSearch:()=>{d.value=""},handleSearchInput:e=>{d.value=e.target.value},handleKeypress:e=>{if(o&&o.value){let t=o.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(o&&o.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=o.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}i.emit("paste",e,u)}}}function T(t,l,n){const{groupSelect:i,mode:r,groups:o,disabledProp:u}=e(t),s=a(null),c=e=>{void 0===e||null!==e&&e[u.value]||o.value&&e&&e.group&&("single"===r.value||!i.value)||(s.value=e)};return{pointer:s,setPointer:c,clearPointer:()=>{c(null)}}}function E(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function _(i,r,o){const{options:u,mode:s,trackBy:c,limit:d,hideSelected:p,createTag:v,createOption:f,label:h,appendNewTag:g,appendNewOption:m,multipleLabel:b,object:y,loading:w,delay:x,resolveOnLoad:L,minChars:S,filterResults:k,clearOnSearch:T,clearOnSelect:_,valueProp:q,allowAbsent:P,groupLabel:A,canDeselect:C,max:B,strict:D,closeOnSelect:j,closeOnDeselect:I,groups:R,reverse:M,infinite:V,groupOptions:W,groupHideEmpty:H,groupSelect:$,onCreate:N,disabledProp:F,searchStart:K,searchFilter:z}=e(i),G=t().proxy,U=o.iv,X=o.ev,Y=o.search,J=o.clearSearch,Q=o.update,Z=o.pointer,ee=o.setPointer,te=o.clearPointer,ae=o.focus,le=o.deactivate,ne=o.close,ie=o.localize,re=a([]),oe=a([]),ue=a(!1),se=a(null),ce=a(V.value&&-1===d.value?10:d.value),de=l((()=>v.value||f.value||!1)),pe=l((()=>void 0!==g.value?g.value:void 0===m.value||m.value)),ve=l((()=>{if(R.value){let e=ge.value||[],t=[];return e.forEach((e=>{Fe(e[W.value]).forEach((a=>{t.push(Object.assign({},a,e[F.value]?{[F.value]:!0}:{}))}))})),t}{let e=Fe(oe.value||[]);return re.value.length&&(e=e.concat(re.value)),e}})),fe=l((()=>{let e=ve.value;return M.value&&(e=e.reverse()),Le.value.length&&(e=Le.value.concat(e)),Ne(e)})),he=l((()=>{let e=fe.value;return ce.value>0&&(e=e.slice(0,ce.value)),e})),ge=l((()=>{if(!R.value)return[];let e=[],t=oe.value||[];return re.value.length&&e.push({[A.value]:" ",[W.value]:[...re.value],__CREATE__:!0}),e.concat(t)})),me=l((()=>{let e=[...ge.value].map((e=>({...e})));return Le.value.length&&(e[0]&&e[0].__CREATE__?e[0][W.value]=[...Le.value,...e[0][W.value]]:e=[{[A.value]:" ",[W.value]:[...Le.value],__CREATE__:!0}].concat(e)),e})),be=l((()=>{if(!R.value)return[];let e=me.value;return $e((e||[]).map(((e,t)=>{const a=Fe(e[W.value]);return{...e,index:t,group:!0,[W.value]:Ne(a,!1).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{}))),__VISIBLE__:Ne(a).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{})))}})))})),ye=l((()=>{switch(s.value){case"single":return!O(U.value[q.value]);case"multiple":case"tags":return!O(U.value)&&U.value.length>0}})),we=l((()=>void 0!==b&&void 0!==b.value?b.value(U.value,G):U.value&&U.value.length>1?`${U.value.length} options selected`:"1 option selected")),xe=l((()=>!ve.value.length&&!ue.value&&!Le.value.length)),Oe=l((()=>ve.value.length>0&&0==he.value.length&&(Y.value&&R.value||!R.value))),Le=l((()=>!1!==de.value&&Y.value?-1!==We(Y.value)?[]:[{[q.value]:Y.value,[Se.value[0]]:Y.value,[h.value]:Y.value,__CREATE__:!0}]:[])),Se=l((()=>c.value?Array.isArray(c.value)?c.value:[c.value]:[h.value])),ke=l((()=>{switch(s.value){case"single":return null;case"multiple":case"tags":return[]}})),Te=l((()=>w.value||ue.value)),Ee=e=>{switch("object"!=typeof e&&(e=Ve(e)),s.value){case"single":Q(e);break;case"multiple":case"tags":Q(U.value.concat(e))}r.emit("select",qe(e),e,G)},_e=e=>{switch("object"!=typeof e&&(e=Ve(e)),s.value){case"single":Ae();break;case"tags":case"multiple":Q(Array.isArray(e)?U.value.filter((t=>-1===e.map((e=>e[q.value])).indexOf(t[q.value]))):U.value.filter((t=>t[q.value]!=e[q.value])))}r.emit("deselect",qe(e),e,G)},qe=e=>y.value?e:e[q.value],Pe=e=>{_e(e)},Ae=()=>{Q(ke.value),r.emit("clear",G)},Ce=e=>{if(void 0!==e.group)return"single"!==s.value&&(Me(e[W.value])&&e[W.value].length);switch(s.value){case"single":return!O(U.value)&&U.value[q.value]==e[q.value];case"tags":case"multiple":return!O(U.value)&&-1!==U.value.map((e=>e[q.value])).indexOf(e[q.value])}},Be=e=>!0===e[F.value],De=()=>!(void 0===B||-1===B.value||!ye.value&&B.value>0)&&U.value.length>=B.value,je=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,s.value){case"single":if(e&&Ce(e))return C.value&&_e(e),void(I.value&&(te(),ne()));e&&Ie(e),_.value&&J(),j.value&&(te(),ne()),e&&Ee(e);break;case"multiple":if(e&&Ce(e))return _e(e),void(I.value&&(te(),ne()));if(De())return void r.emit("max",G);e&&(Ie(e),Ee(e)),_.value&&J(),p.value&&te(),j.value&&ne();break;case"tags":if(e&&Ce(e))return _e(e),void(I.value&&(te(),ne()));if(De())return void r.emit("max",G);e&&Ie(e),_.value&&J(),e&&Ee(e),p.value&&te(),j.value&&ne()}j.value||ae()},Ie=e=>{void 0===Ve(e[q.value])&&de.value&&(r.emit("tag",e[q.value],G),r.emit("option",e[q.value],G),r.emit("create",e[q.value],G),pe.value&&He(e),J())},Re=e=>void 0===e.find((e=>!Ce(e)&&!e[F.value])),Me=e=>void 0===e.find((e=>!Ce(e))),Ve=e=>ve.value[ve.value.map((e=>String(e[q.value]))).indexOf(String(e))],We=e=>ve.value.findIndex((t=>Se.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),He=e=>{re.value.push(e)},$e=e=>H.value?e.filter((e=>Y.value?e.__VISIBLE__.length:e[W.value].length)):e.filter((e=>!Y.value||e.__VISIBLE__.length)),Ne=(e,t=!0)=>{let a=e;if(Y.value&&k.value){let e=z.value;e||(e=(e,t,a)=>Se.value.some((a=>{let l=E(ie(e[a]),D.value);return K.value?l.startsWith(E(t,D.value)):-1!==l.indexOf(E(t,D.value))}))),a=a.filter((t=>e(t,Y.value,G)))}return p.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(s.value)&&p.value&&Ce(e))(e)))),a},Fe=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[q.value]:e,[Se.value[0]]:a,[h.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[q.value]:e,[Se.value[0]]:e,[h.value]:e})),t},Ke=()=>{O(X.value)||(U.value=Ue(X.value))},ze=e=>(ue.value=!0,new Promise(((t,a)=>{u.value(Y.value,G).then((t=>{oe.value=t||[],"function"==typeof e&&e(t),ue.value=!1})).catch((e=>{console.error(e),oe.value=[],ue.value=!1})).finally((()=>{t()}))}))),Ge=()=>{if(ye.value)if("single"===s.value){let e=Ve(U.value[q.value]);if(void 0!==e){let t=e[h.value];U.value[h.value]=t,y.value&&(X.value[h.value]=t)}}else U.value.forEach(((e,t)=>{let a=Ve(U.value[t][q.value]);if(void 0!==a){let e=a[h.value];U.value[t][h.value]=e,y.value&&(X.value[t][h.value]=e)}}))},Ue=e=>O(e)?"single"===s.value?{}:[]:y.value?e:"single"===s.value?Ve(e)||(P.value?{[h.value]:e,[q.value]:e,[Se.value[0]]:e}:{}):e.filter((e=>!!Ve(e)||P.value)).map((e=>Ve(e)||{[h.value]:e,[q.value]:e,[Se.value[0]]:e})),Xe=()=>{se.value=n(Y,(e=>{e.length{e==Y.value&&u.value(Y.value,G).then((t=>{e!=Y.value&&Y.value||(oe.value=t,Z.value=he.value.filter((e=>!0!==e[F.value]))[0]||null,ue.value=!1)})).catch((e=>{console.error(e)}))}),x.value))}),{flush:"sync"})};if("single"!==s.value&&!O(X.value)&&!Array.isArray(X.value))throw new Error(`v-model must be an array when using "${s.value}" mode`);return u&&"function"==typeof u.value?L.value?ze(Ke):1==y.value&&Ke():(oe.value=u.value,Ke()),x.value>-1&&Xe(),n(x,((e,t)=>{se.value&&se.value(),e>=0&&Xe()})),n(X,(e=>{if(O(e))Q(Ue(e),!1);else switch(s.value){case"single":(y.value?e[q.value]!=U.value[q.value]:e!=U.value[q.value])&&Q(Ue(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(y.value?e.map((e=>e[q.value])):e,U.value.map((e=>e[q.value])))||Q(Ue(e),!1)}}),{deep:!0}),n(u,((e,t)=>{"function"==typeof i.options?L.value&&(!t||e&&e.toString()!==t.toString())&&ze():(oe.value=i.options,Object.keys(U.value).length||Ke(),Ge())})),n(h,Ge),n(d,((e,t)=>{ce.value=V.value&&-1===e?10:e})),{pfo:fe,fo:he,filteredOptions:he,hasSelected:ye,multipleLabelText:we,eo:ve,extendedOptions:ve,eg:ge,extendedGroups:ge,fg:be,filteredGroups:be,noOptions:xe,noResults:Oe,resolving:ue,busy:Te,offset:ce,select:Ee,deselect:_e,remove:Pe,selectAll:()=>{"single"!==s.value&&Ee(he.value.filter((e=>!e.disabled&&!Ce(e))))},clear:Ae,isSelected:Ce,isDisabled:Be,isMax:De,getOption:Ve,handleOptionClick:e=>{if(!Be(e))return N&&N.value&&!Ce(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=N.value(e,G))instanceof Promise)?(ue.value=!0,void e.then((e=>{ue.value=!1,je(e)}))):void je(e)},handleGroupClick:e=>{if(!Be(e)&&"single"!==s.value&&$.value){switch(s.value){case"multiple":case"tags":Re(e[W.value])?_e(e[W.value]):Ee(e[W.value].filter((e=>-1===U.value.map((e=>e[q.value])).indexOf(e[q.value]))).filter((e=>!e[F.value])).filter(((e,t)=>U.value.length+1+t<=B.value||-1===B.value))),p.value&&Z.value&&ee(be.value.filter((e=>!e[F.value]))[Z.value.index])}j.value&&le()}},handleTagRemove:(e,t)=>{0===t.button?Pe(e):t.preventDefault()},refreshOptions:e=>{ze(e)},resolveOptions:ze,refreshLabels:Ge}}function q(t,a,r){const{valueProp:o,showOptions:u,searchable:s,groupLabel:c,groups:d,mode:p,groupSelect:v,disabledProp:f,groupOptions:h}=e(t),g=r.fo,m=r.fg,b=r.handleOptionClick,y=r.handleGroupClick,w=r.search,x=r.pointer,O=r.setPointer,L=r.clearPointer,S=r.multiselect,k=r.isOpen,T=l((()=>g.value.filter((e=>!e[f.value])))),E=l((()=>m.value.filter((e=>!e[f.value])))),_=l((()=>"single"!==p.value&&v.value)),q=l((()=>x.value&&x.value.group)),P=l((()=>W(x.value))),A=l((()=>{const e=q.value?x.value:W(x.value),t=E.value.map((e=>e[c.value])).indexOf(e[c.value]);let a=E.value[t-1];return void 0===a&&(a=B.value),a})),C=l((()=>{let e=E.value.map((e=>e.label)).indexOf(q.value?x.value[c.value]:W(x.value)[c.value])+1;return E.value.length<=e&&(e=0),E.value[e]})),B=l((()=>[...E.value].slice(-1)[0])),D=l((()=>x.value.__VISIBLE__.filter((e=>!e[f.value]))[0])),j=l((()=>{const e=P.value.__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(x.value[o.value])-1]})),I=l((()=>{const e=W(x.value).__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(x.value[o.value])+1]})),R=l((()=>[...A.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),M=l((()=>[...B.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),V=()=>{O(T.value[0]||null)},W=e=>E.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[o.value])).indexOf(e[o.value]))),H=()=>{let e=S.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;d.value&&(t=q.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{s.value&&(e.length&&u.value?V():L())})),n(k,(e=>{if(e){let e=S.value.querySelectorAll("[data-selected]")[0];if(!e)return;let t=e.parentElement.parentElement;i((()=>{t.scrollTop>0||(t.scrollTop=e.offsetTop)}))}})),{pointer:x,canPointGroups:_,isPointed:e=>!(!x.value||!(!e.group&&x.value[o.value]===e[o.value]||void 0!==e.group&&x.value[c.value]===e[c.value]))||void 0,setPointerFirst:V,selectPointer:()=>{x.value&&!0!==x.value[f.value]&&(q.value?y(x.value):b(x.value))},forwardPointer:()=>{if(null===x.value)O((d.value&&_.value?E.value[0].__CREATE__?T.value[0]:E.value[0]:T.value[0])||null);else if(d.value&&_.value){let e=q.value?D.value:I.value;void 0===e&&(e=C.value,e.__CREATE__&&(e=e[h.value][0])),O(e||null)}else{let e=T.value.map((e=>e[o.value])).indexOf(x.value[o.value])+1;T.value.length<=e&&(e=0),O(T.value[e]||null)}i((()=>{H()}))},backwardPointer:()=>{if(null===x.value){let e=T.value[T.value.length-1];d.value&&_.value&&(e=M.value,void 0===e&&(e=B.value)),O(e||null)}else if(d.value&&_.value){let e=q.value?R.value:j.value;void 0===e&&(e=q.value?A.value:P.value,e.__CREATE__&&(e=R.value,void 0===e&&(e=A.value))),O(e||null)}else{let e=T.value.map((e=>e[o.value])).indexOf(x.value[o.value])-1;e<0&&(e=T.value.length-1),O(T.value[e]||null)}i((()=>{H()}))}}}function P(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A(e){return e instanceof P(e).Element||e instanceof Element}function C(e){return e instanceof P(e).HTMLElement||e instanceof HTMLElement}function B(e){return"undefined"!=typeof ShadowRoot&&(e instanceof P(e).ShadowRoot||e instanceof ShadowRoot)}var D=Math.max,j=Math.min,I=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function M(){return!/^((?!chrome|android).)*safari/i.test(R())}function V(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,i=1;t&&C(e)&&(n=e.offsetWidth>0&&I(l.width)/e.offsetWidth||1,i=e.offsetHeight>0&&I(l.height)/e.offsetHeight||1);var r=(A(e)?P(e):window).visualViewport,o=!M()&&a,u=(l.left+(o&&r?r.offsetLeft:0))/n,s=(l.top+(o&&r?r.offsetTop:0))/i,c=l.width/n,d=l.height/i;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function W(e){var t=P(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(e){return e?(e.nodeName||"").toLowerCase():null}function $(e){return((A(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return V($(e)).left+W(e).scrollLeft}function F(e){return P(e).getComputedStyle(e)}function K(e){var t=F(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function z(e,t,a){void 0===a&&(a=!1);var l,n,i=C(t),r=C(t)&&function(e){var t=e.getBoundingClientRect(),a=I(t.width)/e.offsetWidth||1,l=I(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=$(t),u=V(e,r,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!a)&&(("body"!==H(t)||K(o))&&(s=(l=t)!==P(l)&&C(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:W(l)),C(t)?((c=V(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=N(o))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function G(e){var t=V(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function U(e){return"html"===H(e)?e:e.assignedSlot||e.parentNode||(B(e)?e.host:null)||$(e)}function X(e){return["html","body","#document"].indexOf(H(e))>=0?e.ownerDocument.body:C(e)&&K(e)?e:X(U(e))}function Y(e,t){var a;void 0===t&&(t=[]);var l=X(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),i=P(l),r=n?[i].concat(i.visualViewport||[],K(l)?l:[]):l,o=t.concat(r);return n?o:o.concat(Y(U(r)))}function J(e){return["table","td","th"].indexOf(H(e))>=0}function Q(e){return C(e)&&"fixed"!==F(e).position?e.offsetParent:null}function Z(e){for(var t=P(e),a=Q(e);a&&J(a)&&"static"===F(a).position;)a=Q(a);return a&&("html"===H(a)||"body"===H(a)&&"static"===F(a).position)?t:a||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&C(e)&&"fixed"===F(e).position)return null;var a=U(e);for(B(a)&&(a=a.host);C(a)&&["html","body"].indexOf(H(a))<0;){var l=F(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var ee="top",te="bottom",ae="right",le="left",ne="auto",ie=[ee,te,ae,le],re="start",oe="end",ue="clippingParents",se="viewport",ce="popper",de="reference",pe=ie.reduce((function(e,t){return e.concat([t+"-"+re,t+"-"+oe])}),[]),ve=[].concat(ie,[ne]).reduce((function(e,t){return e.concat([t,t+"-"+re,t+"-"+oe])}),[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function he(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function me(e,t,a){return t===se?ge(function(e,t){var a=P(e),l=$(e),n=a.visualViewport,i=l.clientWidth,r=l.clientHeight,o=0,u=0;if(n){i=n.width,r=n.height;var s=M();(s||!s&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:i,height:r,x:o+N(e),y:u}}(e,a)):A(t)?function(e,t){var a=V(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):ge(function(e){var t,a=$(e),l=W(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=D(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=D(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+N(e),u=-l.scrollTop;return"rtl"===F(n||a).direction&&(o+=D(a.clientWidth,n?n.clientWidth:0)-i),{width:i,height:r,x:o,y:u}}($(e)))}function be(e){var t=Y(U(e)),a=["absolute","fixed"].indexOf(F(e).position)>=0&&C(e)?Z(e):e;return A(a)?t.filter((function(e){return A(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&B(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==H(e)})):[]}function ye(e){return e.split("-")[0]}function we(e){return e.split("-")[1]}function xe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oe(e){var t,a=e.reference,l=e.element,n=e.placement,i=n?ye(n):null,r=n?we(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(i){case ee:t={x:o,y:a.y-l.height};break;case te:t={x:o,y:a.y+a.height};break;case ae:t={x:a.x+a.width,y:u};break;case le:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=i?xe(i):null;if(null!=s){var c="y"===s?"height":"width";switch(r){case re:t[s]=t[s]-(a[c]/2-l[c]/2);break;case oe:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function Le(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,i=void 0===n?e.placement:n,r=l.strategy,o=void 0===r?e.strategy:r,u=l.boundary,s=void 0===u?ue:u,c=l.rootBoundary,d=void 0===c?se:c,p=l.elementContext,v=void 0===p?ce:p,f=l.altBoundary,h=void 0!==f&&f,g=l.padding,m=void 0===g?0:g,b=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof m?m:(a=m,ie.reduce((function(e,t){return e[t]=a,e}),{}))),y=v===ce?de:ce,w=e.rects.popper,x=e.elements[h?y:v],O=function(e,t,a,l){var n="clippingParents"===t?be(e):[].concat(t),i=[].concat(n,[a]),r=i[0],o=i.reduce((function(t,a){var n=me(e,a,l);return t.top=D(n.top,t.top),t.right=j(n.right,t.right),t.bottom=j(n.bottom,t.bottom),t.left=D(n.left,t.left),t}),me(e,r,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(A(x)?x:x.contextElement||$(e.elements.popper),s,d,o),L=V(e.elements.reference),S=Oe({reference:L,element:w,strategy:"absolute",placement:i}),k=ge(Object.assign({},w,S)),T=v===ce?k:L,E={top:O.top-T.top+b.top,bottom:T.bottom-O.bottom+b.bottom,left:O.left-T.left+b.left,right:T.right-O.right+b.right},_=e.modifiersData.offset;if(v===ce&&_){var q=_[i];Object.keys(E).forEach((function(e){var t=[ae,te].indexOf(e)>=0?1:-1,a=[ee,te].indexOf(e)>=0?"y":"x";E[e]+=q[a]*t}))}return E}var Se={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(ge,ce,me):Ae(v?ge:pe,ce,v?me:ve);O[x]=be,_[x]=be-ce}t.modifiersData[l]=_}},requiresIfExists:["offset"]},Be={left:"right",right:"left",bottom:"top",top:"bottom"};function De(e){return e.replace(/left|right|bottom|top/g,(function(e){return Be[e]}))}var je={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,(function(e){return je[e]}))}function Re(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,i=a.rootBoundary,r=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?ve:u,c=we(l),d=c?o?pe:pe.filter((function(e){return we(e)===c})):ie,p=d.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=d);var v=p.reduce((function(t,a){return t[a]=Le(e,{placement:a,boundary:n,rootBoundary:i,padding:r})[ye(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var Me={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,i=void 0===n||n,r=a.altAxis,o=void 0===r||r,u=a.fallbackPlacements,s=a.padding,c=a.boundary,d=a.rootBoundary,p=a.altBoundary,v=a.flipVariations,f=void 0===v||v,h=a.allowedAutoPlacements,g=t.options.placement,m=ye(g),b=u||(m===g||!f?[De(g)]:function(e){if(ye(e)===ne)return[];var t=De(e);return[Ie(e),t,Ie(t)]}(g)),y=[g].concat(b).reduce((function(e,a){return e.concat(ye(a)===ne?Re(t,{placement:a,boundary:c,rootBoundary:d,padding:s,flipVariations:f,allowedAutoPlacements:h}):a)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,L=!0,S=y[0],k=0;k=0,P=q?"width":"height",A=Le(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:p,padding:s}),C=q?_?ae:le:_?te:ee;w[P]>x[P]&&(C=De(C));var B=De(C),D=[];if(i&&D.push(A[E]<=0),o&&D.push(A[C]<=0,A[B]<=0),D.every((function(e){return e}))){S=T,L=!1;break}O.set(T,D)}if(L)for(var j=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=f?3:1;I>0;I--){if("break"===j(I))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ve(n,u,s){const{disabled:c,appendTo:d,appendToBody:p,openDirection:v}=e(n),f=t().proxy,h=s.multiselect,g=s.dropdown,m=a(!1),b=a(null),y=a(null),w=l((()=>d.value||p.value)),x=l((()=>"top"===v.value&&"bottom"===y.value||"bottom"===v.value&&"top"!==y.value?"bottom":"top")),O=()=>{if(!b.value)return;let e=parseInt(window.getComputedStyle(g.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(g.value).borderBottomWidth.replace("px",""));b.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===x.value?e:t)]}}]}))),b.value.update()},L=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return r((()=>{w.value&&(b.value=Pe(h.value,g.value,{strategy:L(h.value)?"fixed":void 0,placement:v.value,modifiers:[Ce,Me,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){y.value=e.placement}}]}))})),o((()=>{w.value&&b.value&&(b.value.destroy(),b.value=null)})),{popper:b,isOpen:m,open:()=>{m.value||c.value||(m.value=!0,u.emit("open",f),w.value&&i((()=>{O()})))},close:()=>{m.value&&(m.value=!1,u.emit("close",f))},placement:x,updatePopper:O}}function We(t,n,i){const{searchable:r,disabled:o,clearOnBlur:u}=e(t),s=i.input,c=i.open,d=i.close,p=i.clearSearch,v=i.isOpen,f=i.wrapper,h=i.tags,g=a(!1),m=a(!1),b=l((()=>r.value||o.value?-1:0)),y=()=>{r.value&&s.value.blur(),f.value.blur()},w=(e=!0)=>{o.value||(g.value=!0,e&&c())},x=()=>{g.value=!1,setTimeout((()=>{g.value||(d(),u.value&&p())}),1)};return{tabindex:b,isActive:g,mouseClicked:m,blur:y,focus:()=>{r.value&&!o.value&&s.value.focus()},activate:w,deactivate:x,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||w(m.value)},handleFocusOut:()=>{x()},handleCaretClick:()=>{x(),y()},handleMousedown:e=>{m.value=!0,v.value&&(e.target.isEqualNode(f.value)||e.target.isEqualNode(h.value))?setTimeout((()=>{x()}),0):v.value||!document.activeElement.isEqualNode(f.value)&&!document.activeElement.isEqualNode(s.value)||w(),setTimeout((()=>{m.value=!1}),0)}}}function He(a,n,i){const{mode:r,addTagOn:o,openDirection:u,searchable:s,showOptions:c,valueProp:d,groups:p,addOptionOn:v,createTag:f,createOption:h,reverse:g}=e(a),m=t().proxy,b=i.iv,y=i.update,w=i.deselect,x=i.search,O=i.setPointer,L=i.selectPointer,S=i.backwardPointer,k=i.forwardPointer,T=i.multiselect,E=i.wrapper,_=i.tags,q=i.isOpen,P=i.open,A=i.blur,C=i.fo,B=l((()=>f.value||h.value||!1)),D=l((()=>void 0!==o.value?o.value:void 0!==v.value?v.value:["enter"])),j=()=>{"tags"===r.value&&!c.value&&B.value&&s.value&&!p.value&&O(C.value[C.value.map((e=>e[d.value])).indexOf(x.value)])};return{handleKeydown:e=>{let t,a;switch(n.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===r.value&&(t=[...T.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==_.value)),a=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===r.value)return;if(s.value&&-1===[null,""].indexOf(x.value))return;if(0===b.value.length)return;let l=b.value.filter((e=>!e.disabled&&!1!==e.remove));l.length&&w(l[l.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==a&&void 0!==a)return y([...b.value].filter(((e,t)=>t!==a))),void(a===t.length-1&&(t.length-1?t[t.length-2].focus():s.value?_.value.querySelector("input").focus():E.value.focus()));if(-1===D.value.indexOf("enter")&&B.value)return;j(),L();break;case" ":if(!B.value&&!s.value)return e.preventDefault(),j(),void L();if(!B.value)return!1;if(-1===D.value.indexOf("space")&&B.value)return;e.preventDefault(),j(),L();break;case"Tab":case";":case",":if(-1===D.value.indexOf(e.key.toLowerCase())||!B.value)return;j(),L(),e.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(e.preventDefault(),!c.value)return;q.value||P(),S();break;case"ArrowDown":if(e.preventDefault(),!c.value)return;q.value||P(),k();break;case"ArrowLeft":if(s.value&&_.value&&_.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==r.value||!b.value||!b.value.length)return;e.preventDefault(),-1===a?t[t.length-1].focus():a>0&&t[a-1].focus();break;case"ArrowRight":if(-1===a||e.shiftKey||"tags"!==r.value||!b.value||!b.value.length)return;e.preventDefault(),t.length>a+1?t[a+1].focus():s.value?_.value.querySelector("input").focus():s.value||E.value.focus()}},handleKeyup:e=>{n.emit("keyup",e,m)},preparePointer:j}}function $e(t,a,n){const{classes:i,disabled:r,showOptions:o,breakTags:u}=e(t),s=n.isOpen,c=n.isPointed,d=n.isSelected,p=n.isDisabled,v=n.isActive,f=n.canPointGroups,h=n.resolving,g=n.fo,m=n.placement,b=l((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...i.value}))),y=l((()=>!!(s.value&&o.value&&(!h.value||h.value&&g.value.length))));return{classList:l((()=>{const e=b.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(y.value&&"top"===m.value?e.containerOpenTop:[]).concat(y.value&&"top"!==m.value?e.containerOpen:[]).concat(v.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,u.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(s.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===m.value?e.dropdownTop:[]).concat(s.value&&o.value&&y.value?[]:e.dropdownHidden),options:[e.options].concat("top"===m.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return c(t)?a.push(d(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):d(t)&&f.value?a.push(p(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):p(t)&&a.push(e.groupLabelDisabled),f.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return c(t)?l.push(d(t)?e.optionSelectedPointed:e.optionPointed):d(t)?l.push(p(t)?e.optionSelectedDisabled:e.optionSelected):(p(t)||a&&p(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:y}}function Ne(t,o,u){const{limit:s,infinite:c}=e(t),d=u.isOpen,p=u.offset,v=u.search,f=u.pfo,h=u.eo,g=a(null),m=a(null),b=l((()=>p.value{const{isIntersecting:t,target:a}=e[0];if(t){const e=a.offsetParent,t=e.scrollTop;p.value+=-1==s.value?10:s.value,i((()=>{e.scrollTop=t}))}},w=()=>{d.value&&p.value{c.value&&w()})),n(v,(()=>{c.value&&(p.value=s.value,w())}),{flush:"post"}),n(h,(()=>{c.value&&w()}),{immediate:!1,flush:"post"}),r((()=>{window&&window.IntersectionObserver&&(g.value=new IntersectionObserver(y))})),{hasMore:b,infiniteLoader:m}}function Fe(t,n,i){const{placeholder:o,id:u,valueProp:s,label:c,mode:d,groupLabel:p,aria:v,searchable:f}=e(t),h=i.pointer,g=i.iv,m=i.hasSelected,b=i.multipleLabelText,y=a(null),w=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("assist"),e.join("-")})),x=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("multiselect-options"),e.join("-")})),O=l((()=>{let e=[];if(u&&u.value&&e.push(u.value),h.value)return e.push(h.value.group?"multiselect-group":"multiselect-option"),e.push(h.value.group?h.value.index:h.value[s.value]),e.join("-")})),L=l((()=>o.value)),S=l((()=>"single"!==d.value)),k=l((()=>{let e="";return"single"===d.value&&m.value&&(e+=g.value[c.value]),"multiple"===d.value&&m.value&&(e+=b.value),"tags"===d.value&&m.value&&(e+=g.value.map((e=>e[c.value])).join(", ")),e})),T=l((()=>{let e={...v.value};return f.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${w.value} ${e["aria-labelledby"]}`:w.value,k.value&&e["aria-label"]&&(e["aria-label"]=`${k.value}, ${e["aria-label"]}`)),e}));return r((()=>{if(u&&u.value&&document&&document.querySelector){let e=document.querySelector(`[for="${u.value}"]`);y.value=e?e.innerText:null}})),{arias:T,ariaLabel:k,ariaAssist:w,ariaControls:x,ariaPlaceholder:L,ariaMultiselectable:S,ariaActiveDescendant:O,ariaOptionId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-option"),t.push(e[s.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Ke(t,a,l){const{locale:n,fallbackLocale:i}=e(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[i.value]?e[i.value]:e&&i.value&&e[i.value.toUpperCase()]?e[i.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function ze(e,t,l){return{multiselect:a(null),wrapper:a(null),tags:a(null),input:a(null),dropdown:a(null)}}var Ge={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[ze,Ke,S,T,Ve,k,L,We,_,Ne,q,He,$e,Fe]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Ue=["id","dir"],Xe=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Ye=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Je=["onKeyup","aria-label"],Qe=["onClick"],Ze=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],et=["innerHTML"],tt=["id"],at=["id"],lt=["id","aria-label","aria-selected"],nt=["data-pointed","onMouseenter","onMousedown"],it=["innerHTML"],rt=["aria-label"],ot=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],ut=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],st=["innerHTML"],ct=["innerHTML"],dt=["value"],pt=["name","value"],vt=["name","value"],ft=["id"];Ge.render=function(e,t,a,l,n,i){return u(),s("div",{ref:"multiselect",class:c(e.classList.container),id:a.searchable?void 0:a.id,dir:a.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...t)=>e.handleFocusIn&&e.handleFocusIn(...t)),onFocusout:t[11]||(t[11]=(...t)=>e.handleFocusOut&&e.handleFocusOut(...t)),onKeyup:t[12]||(t[12]=(...t)=>e.handleKeyup&&e.handleKeyup(...t)),onKeydown:t[13]||(t[13]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[d("div",p({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":a.searchable?void 0:e.ariaControls,"aria-placeholder":a.searchable?void 0:e.ariaPlaceholder,"aria-expanded":a.searchable?void 0:e.isOpen,"aria-activedescendant":a.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":a.searchable?void 0:e.ariaMultiselectable,role:a.searchable?void 0:"combobox"},a.searchable?{}:e.arias),[v(" Search "),"tags"!==a.mode&&a.searchable&&!a.disabled?(u(),s("input",p({key:0,type:a.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:a.autocomplete,id:a.searchable?a.id:void 0,onInput:t[0]||(t[0]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:t[1]||(t[1]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:t[2]||(t[2]=f(((...t)=>e.handlePaste&&e.handlePaste(...t)),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...a.attrs,...e.arias}),null,16,Ye)):v("v-if",!0),v(" Tags (with search) "),"tags"==a.mode?(u(),s("div",{key:1,class:c(e.classList.tags),"data-tags":""},[(u(!0),s(h,null,g(e.iv,((t,l,n)=>m(e.$slots,"tag",{option:t,handleTagRemove:e.handleTagRemove,disabled:a.disabled},(()=>[(u(),s("span",{class:c([e.classList.tag,t.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:b((a=>e.handleTagRemove(t,a)),["enter"]),key:n,"aria-label":e.ariaTagLabel(e.localize(t[a.label]))},[d("span",{class:c(e.classList.tagWrapper)},y(e.localize(t[a.label])),3),a.disabled||t.disabled?v("v-if",!0):(u(),s("span",{key:0,class:c(e.classList.tagRemove),onClick:f((a=>e.handleTagRemove(t,a)),["stop"])},[d("span",{class:c(e.classList.tagRemoveIcon)},null,2)],10,Qe))],42,Je))])))),256)),d("div",{class:c(e.classList.tagsSearchWrapper),ref:"tags"},[v(" Used for measuring search width "),d("span",{class:c(e.classList.tagsSearchCopy)},y(e.search),3),v(" Actual search input "),a.searchable&&!a.disabled?(u(),s("input",p({key:0,type:a.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:a.searchable?a.id:void 0,autocomplete:a.autocomplete,onInput:t[3]||(t[3]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:t[4]||(t[4]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:t[5]||(t[5]=f(((...t)=>e.handlePaste&&e.handlePaste(...t)),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...a.attrs,...e.arias}),null,16,Ze)):v("v-if",!0)],2)],2)):v("v-if",!0),v(" Single label "),"single"==a.mode&&e.hasSelected&&!e.search&&e.iv?m(e.$slots,"singlelabel",{key:2,value:e.iv},(()=>[d("div",{class:c(e.classList.singleLabel)},[d("span",{class:c(e.classList.singleLabelText)},y(e.localize(e.iv[a.label])),3)],2)])):v("v-if",!0),v(" Multiple label "),"multiple"==a.mode&&e.hasSelected&&!e.search?m(e.$slots,"multiplelabel",{key:3,values:e.iv},(()=>[d("div",{class:c(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,et)])):v("v-if",!0),v(" Placeholder "),!a.placeholder||e.hasSelected||e.search?v("v-if",!0):m(e.$slots,"placeholder",{key:4},(()=>[d("div",{class:c(e.classList.placeholder),"aria-hidden":"true"},y(a.placeholder),3)])),v(" Spinner "),a.loading||e.resolving?m(e.$slots,"spinner",{key:5},(()=>[d("span",{class:c(e.classList.spinner),"aria-hidden":"true"},null,2)])):v("v-if",!0),v(" Clear "),e.hasSelected&&!a.disabled&&a.canClear&&!e.busy?m(e.$slots,"clear",{key:6,clear:e.clear},(()=>[d("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:c(e.classList.clear),onClick:t[6]||(t[6]=(...t)=>e.clear&&e.clear(...t)),onKeyup:t[7]||(t[7]=b(((...t)=>e.clear&&e.clear(...t)),["enter"]))},[d("span",{class:c(e.classList.clearIcon)},null,2)],34)])):v("v-if",!0),v(" Caret "),a.caret&&a.showOptions?m(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},(()=>[d("span",{class:c(e.classList.caret),onClick:t[8]||(t[8]=(...t)=>e.handleCaretClick&&e.handleCaretClick(...t)),"aria-hidden":"true"},null,2)])):v("v-if",!0)],16,Xe),v(" Options "),(u(),w(x,{to:a.appendTo||"body",disabled:!a.appendToBody&&!a.appendTo},[d("div",{id:`${a.id}-dropdown`,class:c(e.classList.dropdown),tabindex:"-1",ref:"dropdown"},[m(e.$slots,"beforelist",{options:e.fo}),d("ul",{class:c(e.classList.options),id:e.ariaControls,role:"listbox"},[a.groups?(u(!0),s(h,{key:0},g(e.fg,((t,l,n)=>(u(),s("li",{class:c(e.classList.group),key:n,id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[a.groupLabel])),"aria-selected":e.isSelected(t),role:"option"},[t.__CREATE__?v("v-if",!0):(u(),s("div",{key:0,class:c(e.classList.groupLabel(t)),"data-pointed":e.isPointed(t),onMouseenter:a=>e.setPointer(t,l),onMousedown:f((a=>e.handleGroupClick(t)),["prevent"])},[m(e.$slots,"grouplabel",{group:t,isSelected:e.isSelected,isPointed:e.isPointed},(()=>[d("span",{innerHTML:e.localize(t[a.groupLabel])},null,8,it)]))],42,nt)),d("ul",{class:c(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(t[a.groupLabel])),role:"group"},[(u(!0),s(h,null,g(t.__VISIBLE__,((l,n,i)=>(u(),s("li",{class:c(e.classList.option(l,t)),"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,key:i,onMouseenter:t=>e.setPointer(l),onMousedown:f((t=>e.handleOptionClick(l)),["prevent"]),id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[a.label])),role:"option"},[m(e.$slots,"option",{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},(()=>[d("span",null,y(e.localize(l[a.label])),1)]))],42,ot)))),128))],10,rt)],10,lt)))),128)):(u(!0),s(h,{key:1},g(e.fo,((t,l,n)=>(u(),s("li",{class:c(e.classList.option(t)),"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,key:n,onMouseenter:a=>e.setPointer(t),onMousedown:f((a=>e.handleOptionClick(t)),["prevent"]),id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[a.label])),role:"option"},[m(e.$slots,"option",{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},(()=>[d("span",null,y(e.localize(t[a.label])),1)]))],42,ut)))),128))],10,at),e.noOptions?m(e.$slots,"nooptions",{key:0},(()=>[d("div",{class:c(e.classList.noOptions),innerHTML:e.localize(a.noOptionsText)},null,10,st)])):v("v-if",!0),e.noResults?m(e.$slots,"noresults",{key:1},(()=>[d("div",{class:c(e.classList.noResults),innerHTML:e.localize(a.noResultsText)},null,10,ct)])):v("v-if",!0),a.infinite&&e.hasMore?(u(),s("div",{key:2,class:c(e.classList.inifinite),ref:"infiniteLoader"},[m(e.$slots,"infinite",{},(()=>[d("span",{class:c(e.classList.inifiniteSpinner)},null,2)]))],2)):v("v-if",!0),m(e.$slots,"afterlist",{options:e.fo})],10,tt)],8,["to","disabled"])),v(" Hacky input element to show HTML5 required warning "),a.required?(u(),s("input",{key:0,class:c(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,dt)):v("v-if",!0),v(" Native input support "),a.nativeSupport?(u(),s(h,{key:1},["single"==a.mode?(u(),s("input",{key:0,type:"hidden",name:a.name,value:void 0!==e.plainValue?e.plainValue:""},null,8,pt)):(u(!0),s(h,{key:1},g(e.plainValue,((e,t)=>(u(),s("input",{type:"hidden",name:`${a.name}[]`,value:e,key:t},null,8,vt)))),128))],64)):v("v-if",!0),v(" Screen reader assistive text "),a.searchable&&e.hasSelected?(u(),s("div",{key:2,class:c(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},y(e.ariaLabel),11,ft)):v("v-if",!0),v(" Create height for empty input "),d("div",{class:c(e.classList.spacer)},null,2)],42,Ue)},Ge.__file="src/Multiselect.vue";export{Ge as default}; +import{toRefs as e,getCurrentInstance as t,ref as a,computed as l,watch as n,nextTick as i,onMounted as r,onBeforeUnmount as o,openBlock as u,createElementBlock as s,normalizeClass as c,createElementVNode as d,mergeProps as p,createCommentVNode as v,withModifiers as f,Fragment as h,renderList as g,renderSlot as m,withKeys as b,toDisplayString as y,createBlock as w,Teleport as x}from"vue";function O(e){return-1!==[null,void 0].indexOf(e)}function L(a,l,n){const{object:i,valueProp:r,mode:o}=e(a),u=t().proxy,s=n.iv,c=e=>i.value||O(e)?e:Array.isArray(e)?e.map((e=>e[r.value])):e[r.value],d=e=>O(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=d(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function S(t,n){const{value:i,modelValue:r,mode:o,valueProp:u}=e(t),s=a("single"!==o.value?[]:{}),c=l((()=>r&&void 0!==r.value?r.value:i.value)),d=l((()=>"single"===o.value?s.value[u.value]:s.value.map((e=>e[u.value])))),p=l((()=>"single"!==o.value?s.value.map((e=>e[u.value])).join(","):s.value[u.value]));return{iv:s,internalValue:s,ev:c,externalValue:c,textValue:p,plainValue:d}}function k(l,i,r){const{regex:o}=e(l),u=t().proxy,s=r.isOpen,c=r.open,d=a(null);return n(d,(e=>{!s.value&&e&&c(),i.emit("search-change",e,u)})),{search:d,clearSearch:()=>{d.value=""},handleSearchInput:e=>{d.value=e.target.value},handleKeypress:e=>{if(o&&o.value){let t=o.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(o&&o.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=o.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}i.emit("paste",e,u)}}}function T(t,l,n){const{groupSelect:i,mode:r,groups:o,disabledProp:u}=e(t),s=a(null),c=e=>{void 0===e||null!==e&&e[u.value]||o.value&&e&&e.group&&("single"===r.value||!i.value)||(s.value=e)};return{pointer:s,setPointer:c,clearPointer:()=>{c(null)}}}function E(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function _(i,r,o){const{options:u,mode:s,trackBy:c,limit:d,hideSelected:p,createTag:v,createOption:f,label:h,appendNewTag:g,appendNewOption:m,multipleLabel:b,object:y,loading:w,delay:x,resolveOnLoad:L,minChars:S,filterResults:k,clearOnSearch:T,clearOnSelect:_,valueProp:q,allowAbsent:P,groupLabel:A,canDeselect:C,max:B,strict:D,closeOnSelect:j,closeOnDeselect:I,groups:R,reverse:M,infinite:V,groupOptions:W,groupHideEmpty:H,groupSelect:$,onCreate:F,disabledProp:N,searchStart:K,searchFilter:z}=e(i),G=t().proxy,U=o.iv,X=o.ev,Y=o.search,J=o.clearSearch,Q=o.update,Z=o.pointer,ee=o.setPointer,te=o.clearPointer,ae=o.focus,le=o.deactivate,ne=o.close,ie=o.localize,re=a([]),oe=a([]),ue=a(!1),se=a(null),ce=a(V.value&&-1===d.value?10:d.value),de=l((()=>v.value||f.value||!1)),pe=l((()=>void 0!==g.value?g.value:void 0===m.value||m.value)),ve=l((()=>{if(R.value){let e=ge.value||[],t=[];return e.forEach((e=>{Ne(e[W.value]).forEach((a=>{t.push(Object.assign({},a,e[N.value]?{[N.value]:!0}:{}))}))})),t}{let e=Ne(oe.value||[]);return re.value.length&&(e=e.concat(re.value)),e}})),fe=l((()=>{let e=ve.value;return M.value&&(e=e.reverse()),Le.value.length&&(e=Le.value.concat(e)),Fe(e)})),he=l((()=>{let e=fe.value;return ce.value>0&&(e=e.slice(0,ce.value)),e})),ge=l((()=>{if(!R.value)return[];let e=[],t=oe.value||[];return re.value.length&&e.push({[A.value]:" ",[W.value]:[...re.value],__CREATE__:!0}),e.concat(t)})),me=l((()=>{let e=[...ge.value].map((e=>({...e})));return Le.value.length&&(e[0]&&e[0].__CREATE__?e[0][W.value]=[...Le.value,...e[0][W.value]]:e=[{[A.value]:" ",[W.value]:[...Le.value],__CREATE__:!0}].concat(e)),e})),be=l((()=>{if(!R.value)return[];let e=me.value;return $e((e||[]).map(((e,t)=>{const a=Ne(e[W.value]);return{...e,index:t,group:!0,[W.value]:Fe(a,!1).map((t=>Object.assign({},t,e[N.value]?{[N.value]:!0}:{}))),__VISIBLE__:Fe(a).map((t=>Object.assign({},t,e[N.value]?{[N.value]:!0}:{})))}})))})),ye=l((()=>{switch(s.value){case"single":return!O(U.value[q.value]);case"multiple":case"tags":return!O(U.value)&&U.value.length>0}})),we=l((()=>void 0!==b&&void 0!==b.value?b.value(U.value,G):U.value&&U.value.length>1?`${U.value.length} options selected`:"1 option selected")),xe=l((()=>!ve.value.length&&!ue.value&&!Le.value.length)),Oe=l((()=>ve.value.length>0&&0==he.value.length&&(Y.value&&R.value||!R.value))),Le=l((()=>!1!==de.value&&Y.value?-1!==We(Y.value)?[]:[{[q.value]:Y.value,[Se.value[0]]:Y.value,[h.value]:Y.value,__CREATE__:!0}]:[])),Se=l((()=>c.value?Array.isArray(c.value)?c.value:[c.value]:[h.value])),ke=l((()=>{switch(s.value){case"single":return null;case"multiple":case"tags":return[]}})),Te=l((()=>w.value||ue.value)),Ee=e=>{switch("object"!=typeof e&&(e=Ve(e)),s.value){case"single":Q(e);break;case"multiple":case"tags":Q(U.value.concat(e))}r.emit("select",qe(e),e,G)},_e=e=>{switch("object"!=typeof e&&(e=Ve(e)),s.value){case"single":Ae();break;case"tags":case"multiple":Q(Array.isArray(e)?U.value.filter((t=>-1===e.map((e=>e[q.value])).indexOf(t[q.value]))):U.value.filter((t=>t[q.value]!=e[q.value])))}r.emit("deselect",qe(e),e,G)},qe=e=>y.value?e:e[q.value],Pe=e=>{_e(e)},Ae=()=>{Q(ke.value),r.emit("clear",G)},Ce=e=>{if(void 0!==e.group)return"single"!==s.value&&(Me(e[W.value])&&e[W.value].length);switch(s.value){case"single":return!O(U.value)&&U.value[q.value]==e[q.value];case"tags":case"multiple":return!O(U.value)&&-1!==U.value.map((e=>e[q.value])).indexOf(e[q.value])}},Be=e=>!0===e[N.value],De=()=>!(void 0===B||-1===B.value||!ye.value&&B.value>0)&&U.value.length>=B.value,je=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,s.value){case"single":if(e&&Ce(e))return C.value&&_e(e),void(I.value&&(te(),ne()));e&&Ie(e),_.value&&J(),j.value&&(te(),ne()),e&&Ee(e);break;case"multiple":if(e&&Ce(e))return _e(e),void(I.value&&(te(),ne()));if(De())return void r.emit("max",G);e&&(Ie(e),Ee(e)),_.value&&J(),p.value&&te(),j.value&&ne();break;case"tags":if(e&&Ce(e))return _e(e),void(I.value&&(te(),ne()));if(De())return void r.emit("max",G);e&&Ie(e),_.value&&J(),e&&Ee(e),p.value&&te(),j.value&&ne()}j.value||ae()},Ie=e=>{void 0===Ve(e[q.value])&&de.value&&(r.emit("tag",e[q.value],G),r.emit("option",e[q.value],G),r.emit("create",e[q.value],G),pe.value&&He(e),J())},Re=e=>void 0===e.find((e=>!Ce(e)&&!e[N.value])),Me=e=>void 0===e.find((e=>!Ce(e))),Ve=e=>ve.value[ve.value.map((e=>String(e[q.value]))).indexOf(String(e))],We=e=>ve.value.findIndex((t=>Se.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),He=e=>{re.value.push(e)},$e=e=>H.value?e.filter((e=>Y.value?e.__VISIBLE__.length:e[W.value].length)):e.filter((e=>!Y.value||e.__VISIBLE__.length)),Fe=(e,t=!0)=>{let a=e;if(Y.value&&k.value){let e=z.value;e||(e=(e,t,a)=>Se.value.some((a=>{let l=E(ie(e[a]),D.value);return K.value?l.startsWith(E(t,D.value)):-1!==l.indexOf(E(t,D.value))}))),a=a.filter((t=>e(t,Y.value,G)))}return p.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(s.value)&&p.value&&Ce(e))(e)))),a},Ne=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[q.value]:e,[Se.value[0]]:a,[h.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[q.value]:e,[Se.value[0]]:e,[h.value]:e})),t},Ke=()=>{O(X.value)||(U.value=Ue(X.value))},ze=e=>(ue.value=!0,new Promise(((t,a)=>{u.value(Y.value,G).then((t=>{oe.value=t||[],"function"==typeof e&&e(t),ue.value=!1})).catch((e=>{console.error(e),oe.value=[],ue.value=!1})).finally((()=>{t()}))}))),Ge=()=>{if(ye.value)if("single"===s.value){let e=Ve(U.value[q.value]);if(void 0!==e){let t=e[h.value];U.value[h.value]=t,y.value&&(X.value[h.value]=t)}}else U.value.forEach(((e,t)=>{let a=Ve(U.value[t][q.value]);if(void 0!==a){let e=a[h.value];U.value[t][h.value]=e,y.value&&(X.value[t][h.value]=e)}}))},Ue=e=>O(e)?"single"===s.value?{}:[]:y.value?e:"single"===s.value?Ve(e)||(P.value?{[h.value]:e,[q.value]:e,[Se.value[0]]:e}:{}):e.filter((e=>!!Ve(e)||P.value)).map((e=>Ve(e)||{[h.value]:e,[q.value]:e,[Se.value[0]]:e})),Xe=()=>{se.value=n(Y,(e=>{e.length{e==Y.value&&u.value(Y.value,G).then((t=>{e!=Y.value&&Y.value||(oe.value=t,Z.value=he.value.filter((e=>!0!==e[N.value]))[0]||null,ue.value=!1)})).catch((e=>{console.error(e)}))}),x.value))}),{flush:"sync"})};if("single"!==s.value&&!O(X.value)&&!Array.isArray(X.value))throw new Error(`v-model must be an array when using "${s.value}" mode`);return u&&"function"==typeof u.value?L.value?ze(Ke):1==y.value&&Ke():(oe.value=u.value,Ke()),x.value>-1&&Xe(),n(x,((e,t)=>{se.value&&se.value(),e>=0&&Xe()})),n(X,(e=>{if(O(e))Q(Ue(e),!1);else switch(s.value){case"single":(y.value?e[q.value]!=U.value[q.value]:e!=U.value[q.value])&&Q(Ue(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(y.value?e.map((e=>e[q.value])):e,U.value.map((e=>e[q.value])))||Q(Ue(e),!1)}}),{deep:!0}),n(u,((e,t)=>{"function"==typeof i.options?L.value&&(!t||e&&e.toString()!==t.toString())&&ze():(oe.value=i.options,Object.keys(U.value).length||Ke(),Ge())})),n(h,Ge),n(d,((e,t)=>{ce.value=V.value&&-1===e?10:e})),{pfo:fe,fo:he,filteredOptions:he,hasSelected:ye,multipleLabelText:we,eo:ve,extendedOptions:ve,eg:ge,extendedGroups:ge,fg:be,filteredGroups:be,noOptions:xe,noResults:Oe,resolving:ue,busy:Te,offset:ce,select:Ee,deselect:_e,remove:Pe,selectAll:()=>{"single"!==s.value&&Ee(he.value.filter((e=>!e.disabled&&!Ce(e))))},clear:Ae,isSelected:Ce,isDisabled:Be,isMax:De,getOption:Ve,handleOptionClick:e=>{if(!Be(e))return F&&F.value&&!Ce(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=F.value(e,G))instanceof Promise)?(ue.value=!0,void e.then((e=>{ue.value=!1,je(e)}))):void je(e)},handleGroupClick:e=>{if(!Be(e)&&"single"!==s.value&&$.value){switch(s.value){case"multiple":case"tags":Re(e[W.value])?_e(e[W.value]):Ee(e[W.value].filter((e=>-1===U.value.map((e=>e[q.value])).indexOf(e[q.value]))).filter((e=>!e[N.value])).filter(((e,t)=>U.value.length+1+t<=B.value||-1===B.value))),p.value&&Z.value&&ee(be.value.filter((e=>!e[N.value]))[Z.value.index])}j.value&&le()}},handleTagRemove:(e,t)=>{0===t.button?Pe(e):t.preventDefault()},refreshOptions:e=>{ze(e)},resolveOptions:ze,refreshLabels:Ge}}function q(t,a,r){const{valueProp:o,showOptions:u,searchable:s,groupLabel:c,groups:d,mode:p,groupSelect:v,disabledProp:f,groupOptions:h}=e(t),g=r.fo,m=r.fg,b=r.handleOptionClick,y=r.handleGroupClick,w=r.search,x=r.pointer,O=r.setPointer,L=r.clearPointer,S=r.multiselect,k=r.isOpen,T=l((()=>g.value.filter((e=>!e[f.value])))),E=l((()=>m.value.filter((e=>!e[f.value])))),_=l((()=>"single"!==p.value&&v.value)),q=l((()=>x.value&&x.value.group)),P=l((()=>W(x.value))),A=l((()=>{const e=q.value?x.value:W(x.value),t=E.value.map((e=>e[c.value])).indexOf(e[c.value]);let a=E.value[t-1];return void 0===a&&(a=B.value),a})),C=l((()=>{let e=E.value.map((e=>e.label)).indexOf(q.value?x.value[c.value]:W(x.value)[c.value])+1;return E.value.length<=e&&(e=0),E.value[e]})),B=l((()=>[...E.value].slice(-1)[0])),D=l((()=>x.value.__VISIBLE__.filter((e=>!e[f.value]))[0])),j=l((()=>{const e=P.value.__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(x.value[o.value])-1]})),I=l((()=>{const e=W(x.value).__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(x.value[o.value])+1]})),R=l((()=>[...A.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),M=l((()=>[...B.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),V=()=>{O(T.value[0]||null)},W=e=>E.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[o.value])).indexOf(e[o.value]))),H=()=>{let e=S.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;d.value&&(t=q.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{s.value&&(e.length&&u.value?V():L())})),n(k,(e=>{if(e&&S?.value){let e=S.value.querySelectorAll("[data-selected]")[0];if(!e)return;let t=e.parentElement.parentElement;i((()=>{t.scrollTop>0||(t.scrollTop=e.offsetTop)}))}})),{pointer:x,canPointGroups:_,isPointed:e=>!(!x.value||!(!e.group&&x.value[o.value]===e[o.value]||void 0!==e.group&&x.value[c.value]===e[c.value]))||void 0,setPointerFirst:V,selectPointer:()=>{x.value&&!0!==x.value[f.value]&&(q.value?y(x.value):b(x.value))},forwardPointer:()=>{if(null===x.value)O((d.value&&_.value?E.value[0].__CREATE__?T.value[0]:E.value[0]:T.value[0])||null);else if(d.value&&_.value){let e=q.value?D.value:I.value;void 0===e&&(e=C.value,e.__CREATE__&&(e=e[h.value][0])),O(e||null)}else{let e=T.value.map((e=>e[o.value])).indexOf(x.value[o.value])+1;T.value.length<=e&&(e=0),O(T.value[e]||null)}i((()=>{H()}))},backwardPointer:()=>{if(null===x.value){let e=T.value[T.value.length-1];d.value&&_.value&&(e=M.value,void 0===e&&(e=B.value)),O(e||null)}else if(d.value&&_.value){let e=q.value?R.value:j.value;void 0===e&&(e=q.value?A.value:P.value,e.__CREATE__&&(e=R.value,void 0===e&&(e=A.value))),O(e||null)}else{let e=T.value.map((e=>e[o.value])).indexOf(x.value[o.value])-1;e<0&&(e=T.value.length-1),O(T.value[e]||null)}i((()=>{H()}))}}}function P(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A(e){return e instanceof P(e).Element||e instanceof Element}function C(e){return e instanceof P(e).HTMLElement||e instanceof HTMLElement}function B(e){return"undefined"!=typeof ShadowRoot&&(e instanceof P(e).ShadowRoot||e instanceof ShadowRoot)}var D=Math.max,j=Math.min,I=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function M(){return!/^((?!chrome|android).)*safari/i.test(R())}function V(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,i=1;t&&C(e)&&(n=e.offsetWidth>0&&I(l.width)/e.offsetWidth||1,i=e.offsetHeight>0&&I(l.height)/e.offsetHeight||1);var r=(A(e)?P(e):window).visualViewport,o=!M()&&a,u=(l.left+(o&&r?r.offsetLeft:0))/n,s=(l.top+(o&&r?r.offsetTop:0))/i,c=l.width/n,d=l.height/i;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function W(e){var t=P(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(e){return e?(e.nodeName||"").toLowerCase():null}function $(e){return((A(e)?e.ownerDocument:e.document)||window.document).documentElement}function F(e){return V($(e)).left+W(e).scrollLeft}function N(e){return P(e).getComputedStyle(e)}function K(e){var t=N(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function z(e,t,a){void 0===a&&(a=!1);var l,n,i=C(t),r=C(t)&&function(e){var t=e.getBoundingClientRect(),a=I(t.width)/e.offsetWidth||1,l=I(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=$(t),u=V(e,r,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!a)&&(("body"!==H(t)||K(o))&&(s=(l=t)!==P(l)&&C(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:W(l)),C(t)?((c=V(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=F(o))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function G(e){var t=V(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function U(e){return"html"===H(e)?e:e.assignedSlot||e.parentNode||(B(e)?e.host:null)||$(e)}function X(e){return["html","body","#document"].indexOf(H(e))>=0?e.ownerDocument.body:C(e)&&K(e)?e:X(U(e))}function Y(e,t){var a;void 0===t&&(t=[]);var l=X(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),i=P(l),r=n?[i].concat(i.visualViewport||[],K(l)?l:[]):l,o=t.concat(r);return n?o:o.concat(Y(U(r)))}function J(e){return["table","td","th"].indexOf(H(e))>=0}function Q(e){return C(e)&&"fixed"!==N(e).position?e.offsetParent:null}function Z(e){for(var t=P(e),a=Q(e);a&&J(a)&&"static"===N(a).position;)a=Q(a);return a&&("html"===H(a)||"body"===H(a)&&"static"===N(a).position)?t:a||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&C(e)&&"fixed"===N(e).position)return null;var a=U(e);for(B(a)&&(a=a.host);C(a)&&["html","body"].indexOf(H(a))<0;){var l=N(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var ee="top",te="bottom",ae="right",le="left",ne="auto",ie=[ee,te,ae,le],re="start",oe="end",ue="clippingParents",se="viewport",ce="popper",de="reference",pe=ie.reduce((function(e,t){return e.concat([t+"-"+re,t+"-"+oe])}),[]),ve=[].concat(ie,[ne]).reduce((function(e,t){return e.concat([t,t+"-"+re,t+"-"+oe])}),[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function he(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function me(e,t,a){return t===se?ge(function(e,t){var a=P(e),l=$(e),n=a.visualViewport,i=l.clientWidth,r=l.clientHeight,o=0,u=0;if(n){i=n.width,r=n.height;var s=M();(s||!s&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:i,height:r,x:o+F(e),y:u}}(e,a)):A(t)?function(e,t){var a=V(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):ge(function(e){var t,a=$(e),l=W(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=D(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=D(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+F(e),u=-l.scrollTop;return"rtl"===N(n||a).direction&&(o+=D(a.clientWidth,n?n.clientWidth:0)-i),{width:i,height:r,x:o,y:u}}($(e)))}function be(e){var t=Y(U(e)),a=["absolute","fixed"].indexOf(N(e).position)>=0&&C(e)?Z(e):e;return A(a)?t.filter((function(e){return A(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&B(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==H(e)})):[]}function ye(e){return e.split("-")[0]}function we(e){return e.split("-")[1]}function xe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oe(e){var t,a=e.reference,l=e.element,n=e.placement,i=n?ye(n):null,r=n?we(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(i){case ee:t={x:o,y:a.y-l.height};break;case te:t={x:o,y:a.y+a.height};break;case ae:t={x:a.x+a.width,y:u};break;case le:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=i?xe(i):null;if(null!=s){var c="y"===s?"height":"width";switch(r){case re:t[s]=t[s]-(a[c]/2-l[c]/2);break;case oe:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function Le(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,i=void 0===n?e.placement:n,r=l.strategy,o=void 0===r?e.strategy:r,u=l.boundary,s=void 0===u?ue:u,c=l.rootBoundary,d=void 0===c?se:c,p=l.elementContext,v=void 0===p?ce:p,f=l.altBoundary,h=void 0!==f&&f,g=l.padding,m=void 0===g?0:g,b=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof m?m:(a=m,ie.reduce((function(e,t){return e[t]=a,e}),{}))),y=v===ce?de:ce,w=e.rects.popper,x=e.elements[h?y:v],O=function(e,t,a,l){var n="clippingParents"===t?be(e):[].concat(t),i=[].concat(n,[a]),r=i[0],o=i.reduce((function(t,a){var n=me(e,a,l);return t.top=D(n.top,t.top),t.right=j(n.right,t.right),t.bottom=j(n.bottom,t.bottom),t.left=D(n.left,t.left),t}),me(e,r,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(A(x)?x:x.contextElement||$(e.elements.popper),s,d,o),L=V(e.elements.reference),S=Oe({reference:L,element:w,strategy:"absolute",placement:i}),k=ge(Object.assign({},w,S)),T=v===ce?k:L,E={top:O.top-T.top+b.top,bottom:T.bottom-O.bottom+b.bottom,left:O.left-T.left+b.left,right:T.right-O.right+b.right},_=e.modifiersData.offset;if(v===ce&&_){var q=_[i];Object.keys(E).forEach((function(e){var t=[ae,te].indexOf(e)>=0?1:-1,a=[ee,te].indexOf(e)>=0?"y":"x";E[e]+=q[a]*t}))}return E}var Se={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(ge,ce,me):Ae(v?ge:pe,ce,v?me:ve);O[x]=be,_[x]=be-ce}t.modifiersData[l]=_}},requiresIfExists:["offset"]},Be={left:"right",right:"left",bottom:"top",top:"bottom"};function De(e){return e.replace(/left|right|bottom|top/g,(function(e){return Be[e]}))}var je={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,(function(e){return je[e]}))}function Re(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,i=a.rootBoundary,r=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?ve:u,c=we(l),d=c?o?pe:pe.filter((function(e){return we(e)===c})):ie,p=d.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=d);var v=p.reduce((function(t,a){return t[a]=Le(e,{placement:a,boundary:n,rootBoundary:i,padding:r})[ye(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var Me={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,i=void 0===n||n,r=a.altAxis,o=void 0===r||r,u=a.fallbackPlacements,s=a.padding,c=a.boundary,d=a.rootBoundary,p=a.altBoundary,v=a.flipVariations,f=void 0===v||v,h=a.allowedAutoPlacements,g=t.options.placement,m=ye(g),b=u||(m===g||!f?[De(g)]:function(e){if(ye(e)===ne)return[];var t=De(e);return[Ie(e),t,Ie(t)]}(g)),y=[g].concat(b).reduce((function(e,a){return e.concat(ye(a)===ne?Re(t,{placement:a,boundary:c,rootBoundary:d,padding:s,flipVariations:f,allowedAutoPlacements:h}):a)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,L=!0,S=y[0],k=0;k=0,P=q?"width":"height",A=Le(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:p,padding:s}),C=q?_?ae:le:_?te:ee;w[P]>x[P]&&(C=De(C));var B=De(C),D=[];if(i&&D.push(A[E]<=0),o&&D.push(A[C]<=0,A[B]<=0),D.every((function(e){return e}))){S=T,L=!1;break}O.set(T,D)}if(L)for(var j=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=f?3:1;I>0;I--){if("break"===j(I))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ve(n,u,s){const{disabled:c,appendTo:d,appendToBody:p,openDirection:v}=e(n),f=t().proxy,h=s.multiselect,g=s.dropdown,m=a(!1),b=a(null),y=a(null),w=l((()=>d.value||p.value)),x=l((()=>"top"===v.value&&"bottom"===y.value||"bottom"===v.value&&"top"!==y.value?"bottom":"top")),O=()=>{if(!b.value)return;let e=parseInt(window.getComputedStyle(g.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(g.value).borderBottomWidth.replace("px",""));b.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===x.value?e:t)]}}]}))),b.value.update()},L=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return r((()=>{w.value&&(b.value=Pe(h.value,g.value,{strategy:L(h.value)?"fixed":void 0,placement:v.value,modifiers:[Ce,Me,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){y.value=e.placement}}]}))})),o((()=>{w.value&&b.value&&(b.value.destroy(),b.value=null)})),{popper:b,isOpen:m,open:()=>{m.value||c.value||(m.value=!0,u.emit("open",f),w.value&&i((()=>{O()})))},close:()=>{m.value&&(m.value=!1,u.emit("close",f))},placement:x,updatePopper:O}}function We(t,n,i){const{searchable:r,disabled:o,clearOnBlur:u}=e(t),s=i.input,c=i.open,d=i.close,p=i.clearSearch,v=i.isOpen,f=i.wrapper,h=i.tags,g=a(!1),m=a(!1),b=l((()=>r.value||o.value?-1:0)),y=()=>{r.value&&s.value.blur(),f.value.blur()},w=(e=!0)=>{o.value||(g.value=!0,e&&c())},x=()=>{g.value=!1,setTimeout((()=>{g.value||(d(),u.value&&p())}),1)};return{tabindex:b,isActive:g,mouseClicked:m,blur:y,focus:()=>{r.value&&!o.value&&s.value.focus()},activate:w,deactivate:x,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||w(m.value)},handleFocusOut:()=>{x()},handleCaretClick:()=>{x(),y()},handleMousedown:e=>{m.value=!0,v.value&&(e.target.isEqualNode(f.value)||e.target.isEqualNode(h.value))?setTimeout((()=>{x()}),0):v.value||!document.activeElement.isEqualNode(f.value)&&!document.activeElement.isEqualNode(s.value)||w(),setTimeout((()=>{m.value=!1}),0)}}}function He(a,n,i){const{mode:r,addTagOn:o,openDirection:u,searchable:s,showOptions:c,valueProp:d,groups:p,addOptionOn:v,createTag:f,createOption:h,reverse:g}=e(a),m=t().proxy,b=i.iv,y=i.update,w=i.deselect,x=i.search,O=i.setPointer,L=i.selectPointer,S=i.backwardPointer,k=i.forwardPointer,T=i.multiselect,E=i.wrapper,_=i.tags,q=i.isOpen,P=i.open,A=i.blur,C=i.fo,B=l((()=>f.value||h.value||!1)),D=l((()=>void 0!==o.value?o.value:void 0!==v.value?v.value:["enter"])),j=()=>{"tags"===r.value&&!c.value&&B.value&&s.value&&!p.value&&O(C.value[C.value.map((e=>e[d.value])).indexOf(x.value)])};return{handleKeydown:e=>{let t,a;switch(n.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===r.value&&(t=[...T.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==_.value)),a=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===r.value)return;if(s.value&&-1===[null,""].indexOf(x.value))return;if(0===b.value.length)return;let l=b.value.filter((e=>!e.disabled&&!1!==e.remove));l.length&&w(l[l.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==a&&void 0!==a)return y([...b.value].filter(((e,t)=>t!==a))),void(a===t.length-1&&(t.length-1?t[t.length-2].focus():s.value?_.value.querySelector("input").focus():E.value.focus()));if(-1===D.value.indexOf("enter")&&B.value)return;j(),L();break;case" ":if(!B.value&&!s.value)return e.preventDefault(),j(),void L();if(!B.value)return!1;if(-1===D.value.indexOf("space")&&B.value)return;e.preventDefault(),j(),L();break;case"Tab":case";":case",":if(-1===D.value.indexOf(e.key.toLowerCase())||!B.value)return;j(),L(),e.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(e.preventDefault(),!c.value)return;q.value||P(),S();break;case"ArrowDown":if(e.preventDefault(),!c.value)return;q.value||P(),k();break;case"ArrowLeft":if(s.value&&_.value&&_.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==r.value||!b.value||!b.value.length)return;e.preventDefault(),-1===a?t[t.length-1].focus():a>0&&t[a-1].focus();break;case"ArrowRight":if(-1===a||e.shiftKey||"tags"!==r.value||!b.value||!b.value.length)return;e.preventDefault(),t.length>a+1?t[a+1].focus():s.value?_.value.querySelector("input").focus():s.value||E.value.focus()}},handleKeyup:e=>{n.emit("keyup",e,m)},preparePointer:j}}function $e(t,a,n){const{classes:i,disabled:r,showOptions:o,breakTags:u}=e(t),s=n.isOpen,c=n.isPointed,d=n.isSelected,p=n.isDisabled,v=n.isActive,f=n.canPointGroups,h=n.resolving,g=n.fo,m=n.placement,b=l((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...i.value}))),y=l((()=>!!(s.value&&o.value&&(!h.value||h.value&&g.value.length))));return{classList:l((()=>{const e=b.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(y.value&&"top"===m.value?e.containerOpenTop:[]).concat(y.value&&"top"!==m.value?e.containerOpen:[]).concat(v.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,u.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(s.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===m.value?e.dropdownTop:[]).concat(s.value&&o.value&&y.value?[]:e.dropdownHidden),options:[e.options].concat("top"===m.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return c(t)?a.push(d(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):d(t)&&f.value?a.push(p(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):p(t)&&a.push(e.groupLabelDisabled),f.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return c(t)?l.push(d(t)?e.optionSelectedPointed:e.optionPointed):d(t)?l.push(p(t)?e.optionSelectedDisabled:e.optionSelected):(p(t)||a&&p(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:y}}function Fe(t,o,u){const{limit:s,infinite:c}=e(t),d=u.isOpen,p=u.offset,v=u.search,f=u.pfo,h=u.eo,g=a(null),m=a(null),b=l((()=>p.value{const{isIntersecting:t,target:a}=e[0];if(t){const e=a.offsetParent,t=e.scrollTop;p.value+=-1==s.value?10:s.value,i((()=>{e.scrollTop=t}))}},w=()=>{d.value&&p.value{c.value&&w()})),n(v,(()=>{c.value&&(p.value=s.value,w())}),{flush:"post"}),n(h,(()=>{c.value&&w()}),{immediate:!1,flush:"post"}),r((()=>{window&&window.IntersectionObserver&&(g.value=new IntersectionObserver(y))})),{hasMore:b,infiniteLoader:m}}function Ne(t,n,i){const{placeholder:o,id:u,valueProp:s,label:c,mode:d,groupLabel:p,aria:v,searchable:f}=e(t),h=i.pointer,g=i.iv,m=i.hasSelected,b=i.multipleLabelText,y=a(null),w=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("assist"),e.join("-")})),x=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("multiselect-options"),e.join("-")})),O=l((()=>{let e=[];if(u&&u.value&&e.push(u.value),h.value)return e.push(h.value.group?"multiselect-group":"multiselect-option"),e.push(h.value.group?h.value.index:h.value[s.value]),e.join("-")})),L=l((()=>o.value)),S=l((()=>"single"!==d.value)),k=l((()=>{let e="";return"single"===d.value&&m.value&&(e+=g.value[c.value]),"multiple"===d.value&&m.value&&(e+=b.value),"tags"===d.value&&m.value&&(e+=g.value.map((e=>e[c.value])).join(", ")),e})),T=l((()=>{let e={...v.value};return f.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${w.value} ${e["aria-labelledby"]}`:w.value,k.value&&e["aria-label"]&&(e["aria-label"]=`${k.value}, ${e["aria-label"]}`)),e}));return r((()=>{if(u&&u.value&&document&&document.querySelector){let e=document.querySelector(`[for="${u.value}"]`);y.value=e?e.innerText:null}})),{arias:T,ariaLabel:k,ariaAssist:w,ariaControls:x,ariaPlaceholder:L,ariaMultiselectable:S,ariaActiveDescendant:O,ariaOptionId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-option"),t.push(e[s.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Ke(t,a,l){const{locale:n,fallbackLocale:i}=e(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[i.value]?e[i.value]:e&&i.value&&e[i.value.toUpperCase()]?e[i.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function ze(e,t,l){return{multiselect:a(null),wrapper:a(null),tags:a(null),input:a(null),dropdown:a(null)}}var Ge={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[ze,Ke,S,T,Ve,k,L,We,_,Fe,q,He,$e,Ne]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Ue=["id","dir"],Xe=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Ye=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Je=["onKeyup","aria-label"],Qe=["onClick"],Ze=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],et=["innerHTML"],tt=["id"],at=["id"],lt=["id","aria-label","aria-selected"],nt=["data-pointed","onMouseenter","onMousedown"],it=["innerHTML"],rt=["aria-label"],ot=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],ut=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],st=["innerHTML"],ct=["innerHTML"],dt=["value"],pt=["name","value"],vt=["name","value"],ft=["id"];Ge.render=function(e,t,a,l,n,i){return u(),s("div",{ref:"multiselect",class:c(e.classList.container),id:a.searchable?void 0:a.id,dir:a.rtl?"rtl":void 0,onFocusin:t[12]||(t[12]=(...t)=>e.handleFocusIn&&e.handleFocusIn(...t)),onFocusout:t[13]||(t[13]=(...t)=>e.handleFocusOut&&e.handleFocusOut(...t)),onKeyup:t[14]||(t[14]=(...t)=>e.handleKeyup&&e.handleKeyup(...t)),onKeydown:t[15]||(t[15]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[d("div",p({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":a.searchable?void 0:e.ariaControls,"aria-placeholder":a.searchable?void 0:e.ariaPlaceholder,"aria-expanded":a.searchable?void 0:e.isOpen,"aria-activedescendant":a.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":a.searchable?void 0:e.ariaMultiselectable,role:a.searchable?void 0:"combobox"},a.searchable?{}:e.arias),[v(" Search "),"tags"!==a.mode&&a.searchable&&!a.disabled?(u(),s("input",p({key:0,type:a.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:a.autocomplete,id:a.searchable?a.id:void 0,onInput:t[0]||(t[0]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:t[1]||(t[1]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:t[2]||(t[2]=f(((...t)=>e.handlePaste&&e.handlePaste(...t)),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...a.attrs,...e.arias}),null,16,Ye)):v("v-if",!0),v(" Tags (with search) "),"tags"==a.mode?(u(),s("div",{key:1,class:c(e.classList.tags),"data-tags":""},[(u(!0),s(h,null,g(e.iv,((t,l,n)=>m(e.$slots,"tag",{option:t,handleTagRemove:e.handleTagRemove,disabled:a.disabled},(()=>[(u(),s("span",{class:c([e.classList.tag,t.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:b((a=>e.handleTagRemove(t,a)),["enter"]),key:n,"aria-label":e.ariaTagLabel(e.localize(t[a.label]))},[d("span",{class:c(e.classList.tagWrapper)},y(e.localize(t[a.label])),3),a.disabled||t.disabled?v("v-if",!0):(u(),s("span",{key:0,class:c(e.classList.tagRemove),onClick:f((a=>e.handleTagRemove(t,a)),["stop"])},[d("span",{class:c(e.classList.tagRemoveIcon)},null,2)],10,Qe))],42,Je))])))),256)),d("div",{class:c(e.classList.tagsSearchWrapper),ref:"tags"},[v(" Used for measuring search width "),d("span",{class:c(e.classList.tagsSearchCopy)},y(e.search),3),v(" Actual search input "),a.searchable&&!a.disabled?(u(),s("input",p({key:0,type:a.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:a.searchable?a.id:void 0,autocomplete:a.autocomplete,onInput:t[3]||(t[3]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:t[4]||(t[4]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:t[5]||(t[5]=f(((...t)=>e.handlePaste&&e.handlePaste(...t)),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...a.attrs,...e.arias}),null,16,Ze)):v("v-if",!0)],2)],2)):v("v-if",!0),v(" Single label "),"single"==a.mode&&e.hasSelected&&!e.search&&e.iv?m(e.$slots,"singlelabel",{key:2,value:e.iv},(()=>[d("div",{class:c(e.classList.singleLabel)},[d("span",{class:c(e.classList.singleLabelText)},y(e.localize(e.iv[a.label])),3)],2)])):v("v-if",!0),v(" Multiple label "),"multiple"==a.mode&&e.hasSelected&&!e.search?m(e.$slots,"multiplelabel",{key:3,values:e.iv},(()=>[d("div",{class:c(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,et)])):v("v-if",!0),v(" Placeholder "),!a.placeholder||e.hasSelected||e.search?v("v-if",!0):m(e.$slots,"placeholder",{key:4},(()=>[d("div",{class:c(e.classList.placeholder),"aria-hidden":"true"},y(a.placeholder),3)])),v(" Spinner "),a.loading||e.resolving?m(e.$slots,"spinner",{key:5},(()=>[d("span",{class:c(e.classList.spinner),"aria-hidden":"true"},null,2)])):v("v-if",!0),v(" Clear "),e.hasSelected&&!a.disabled&&a.canClear&&!e.busy?m(e.$slots,"clear",{key:6,clear:e.clear},(()=>[d("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:c(e.classList.clear),onClick:t[6]||(t[6]=(...t)=>e.clear&&e.clear(...t)),onKeyup:t[7]||(t[7]=b(((...t)=>e.clear&&e.clear(...t)),["enter"]))},[d("span",{class:c(e.classList.clearIcon)},null,2)],34)])):v("v-if",!0),v(" Caret "),a.caret&&a.showOptions?m(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},(()=>[d("span",{class:c(e.classList.caret),onClick:t[8]||(t[8]=(...t)=>e.handleCaretClick&&e.handleCaretClick(...t)),"aria-hidden":"true"},null,2)])):v("v-if",!0)],16,Xe),v(" Options "),(u(),w(x,{to:a.appendTo||"body",disabled:!a.appendToBody&&!a.appendTo},[d("div",{id:a.id?`${a.id}-dropdown`:void 0,class:c(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...t)=>e.handleFocusIn&&e.handleFocusIn(...t)),onFocusout:t[11]||(t[11]=(...t)=>e.handleFocusOut&&e.handleFocusOut(...t))},[m(e.$slots,"beforelist",{options:e.fo}),d("ul",{class:c(e.classList.options),id:e.ariaControls,role:"listbox"},[a.groups?(u(!0),s(h,{key:0},g(e.fg,((t,l,n)=>(u(),s("li",{class:c(e.classList.group),key:n,id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[a.groupLabel])),"aria-selected":e.isSelected(t),role:"option"},[t.__CREATE__?v("v-if",!0):(u(),s("div",{key:0,class:c(e.classList.groupLabel(t)),"data-pointed":e.isPointed(t),onMouseenter:a=>e.setPointer(t,l),onMousedown:f((a=>e.handleGroupClick(t)),["prevent"])},[m(e.$slots,"grouplabel",{group:t,isSelected:e.isSelected,isPointed:e.isPointed},(()=>[d("span",{innerHTML:e.localize(t[a.groupLabel])},null,8,it)]))],42,nt)),d("ul",{class:c(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(t[a.groupLabel])),role:"group"},[(u(!0),s(h,null,g(t.__VISIBLE__,((l,n,i)=>(u(),s("li",{class:c(e.classList.option(l,t)),"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,key:i,onMouseenter:t=>e.setPointer(l),onMousedown:f((t=>e.handleOptionClick(l)),["prevent"]),id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[a.label])),role:"option"},[m(e.$slots,"option",{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},(()=>[d("span",null,y(e.localize(l[a.label])),1)]))],42,ot)))),128))],10,rt)],10,lt)))),128)):(u(!0),s(h,{key:1},g(e.fo,((t,l,n)=>(u(),s("li",{class:c(e.classList.option(t)),"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,key:n,onMouseenter:a=>e.setPointer(t),onMousedown:f((a=>e.handleOptionClick(t)),["prevent"]),id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[a.label])),role:"option"},[m(e.$slots,"option",{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},(()=>[d("span",null,y(e.localize(t[a.label])),1)]))],42,ut)))),128))],10,at),e.noOptions?m(e.$slots,"nooptions",{key:0},(()=>[d("div",{class:c(e.classList.noOptions),innerHTML:e.localize(a.noOptionsText)},null,10,st)])):v("v-if",!0),e.noResults?m(e.$slots,"noresults",{key:1},(()=>[d("div",{class:c(e.classList.noResults),innerHTML:e.localize(a.noResultsText)},null,10,ct)])):v("v-if",!0),a.infinite&&e.hasMore?(u(),s("div",{key:2,class:c(e.classList.inifinite),ref:"infiniteLoader"},[m(e.$slots,"infinite",{},(()=>[d("span",{class:c(e.classList.inifiniteSpinner)},null,2)]))],2)):v("v-if",!0),m(e.$slots,"afterlist",{options:e.fo})],42,tt)],8,["to","disabled"])),v(" Hacky input element to show HTML5 required warning "),a.required?(u(),s("input",{key:0,class:c(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,dt)):v("v-if",!0),v(" Native input support "),a.nativeSupport?(u(),s(h,{key:1},["single"==a.mode?(u(),s("input",{key:0,type:"hidden",name:a.name,value:void 0!==e.plainValue?e.plainValue:""},null,8,pt)):(u(!0),s(h,{key:1},g(e.plainValue,((e,t)=>(u(),s("input",{type:"hidden",name:`${a.name}[]`,value:e,key:t},null,8,vt)))),128))],64)):v("v-if",!0),v(" Screen reader assistive text "),a.searchable&&e.hasSelected?(u(),s("div",{key:2,class:c(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},y(e.ariaLabel),11,ft)):v("v-if",!0),v(" Create height for empty input "),d("div",{class:c(e.classList.spacer)},null,2)],42,Ue)},Ge.__file="src/Multiselect.vue";export{Ge as default}; diff --git a/dist/multiselect.mjs b/dist/multiselect.mjs index a5450cd..ecd72c3 100644 --- a/dist/multiselect.mjs +++ b/dist/multiselect.mjs @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep) }); watch(isOpen, (val) => { - if (val) { + if (val && multiselect?.value) { let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0]; if (!firstSelected) { @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep) return } + /* istanbul ignore next: popper mock */ popper.value = createPopper(multiselect.value, dropdown.value, { strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined, placement: openDirection.value, @@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { class: normalizeClass(_ctx.classList.container), id: $props.searchable ? undefined : $props.id, dir: $props.rtl ? 'rtl' : undefined, - onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), - onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))), - onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))), - onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args))) + onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), + onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))), + onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))), + onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args))) }, [ createElementVNode("div", mergeProps({ class: _ctx.classList.wrapper, @@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, null, 2 /* CLASS */) ], 10 /* CLASS, PROPS */, _hoisted_5)) : createCommentVNode("v-if", true) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4)) ]) }), 256 /* UNKEYED_FRAGMENT */)), createElementVNode("div", { @@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { createElementVNode("span", { class: normalizeClass(_ctx.classList.clearIcon) }, null, 2 /* CLASS */) - ], 34 /* CLASS, HYDRATE_EVENTS */) + ], 34 /* CLASS, NEED_HYDRATION */) ]) : createCommentVNode("v-if", true), createCommentVNode(" Caret "), @@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { disabled: !$props.appendToBody && !$props.appendTo }, [ createElementVNode("div", { - id: `${$props.id}-dropdown`, + id: $props.id ? `${$props.id}-dropdown` : undefined, class: normalizeClass(_ctx.classList.dropdown), tabindex: "-1", - ref: "dropdown" + ref: "dropdown", + onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))), + onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))) }, [ renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }), createElementVNode("ul", { @@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { innerHTML: _ctx.localize(group[$props.groupLabel]) }, null, 8 /* PROPS */, _hoisted_12) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11)) : createCommentVNode("v-if", true), createElementVNode("ul", { class: normalizeClass(_ctx.classList.groupOptions), @@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, () => [ createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14)) }), 128 /* KEYED_FRAGMENT */)) ], 10 /* CLASS, PROPS */, _hoisted_13) ], 10 /* CLASS, PROPS */, _hoisted_10)) @@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, () => [ createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */) ]) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15)) }), 128 /* KEYED_FRAGMENT */)) ], 10 /* CLASS, PROPS */, _hoisted_9), (_ctx.noOptions) @@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { ], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo }) - ], 10 /* CLASS, PROPS */, _hoisted_8) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8) ], 8 /* PROPS */, ["to", "disabled"])), createCommentVNode(" Hacky input element to show HTML5 required warning "), ($props.required) @@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { createElementVNode("div", { class: normalizeClass(_ctx.classList.spacer) }, null, 2 /* CLASS */) - ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1)) + ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1)) } script.render = render; diff --git a/dist/multiselect.vue2.global.js b/dist/multiselect.vue2.global.js index 167d6de..6a27495 100644 --- a/dist/multiselect.vue2.global.js +++ b/dist/multiselect.vue2.global.js @@ -1 +1 @@ -var VueformMultiselect=function(e){"use strict";function t(e){return-1!==[null,void 0].indexOf(e)}function a(a,l,n){const{object:r,valueProp:i,mode:o}=e.toRefs(a),u=e.getCurrentInstance().proxy,s=n.iv,c=e=>r.value||t(e)?e:Array.isArray(e)?e.map((e=>e[i.value])):e[i.value],p=e=>t(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=p(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function l(t,a){const{value:l,modelValue:n,mode:r,valueProp:i}=e.toRefs(t),o=e.ref("single"!==r.value?[]:{}),u=e.computed((()=>n&&void 0!==n.value?n.value:l.value)),s=e.computed((()=>"single"===r.value?o.value[i.value]:o.value.map((e=>e[i.value])))),c=e.computed((()=>"single"!==r.value?o.value.map((e=>e[i.value])).join(","):o.value[i.value]));return{iv:o,internalValue:o,ev:u,externalValue:u,textValue:c,plainValue:s}}function n(t,a,l){const{regex:n}=e.toRefs(t),r=e.getCurrentInstance().proxy,i=l.isOpen,o=l.open,u=e.ref(null);return e.watch(u,(e=>{!i.value&&e&&o(),a.emit("search-change",e,r)})),{search:u,clearSearch:()=>{u.value=""},handleSearchInput:e=>{u.value=e.target.value},handleKeypress:e=>{if(n&&n.value){let t=n.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(n&&n.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=n.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}a.emit("paste",e,r)}}}function r(t,a,l){const{groupSelect:n,mode:r,groups:i,disabledProp:o}=e.toRefs(t),u=e.ref(null),s=e=>{void 0===e||null!==e&&e[o.value]||i.value&&e&&e.group&&("single"===r.value||!n.value)||(u.value=e)};return{pointer:u,setPointer:s,clearPointer:()=>{s(null)}}}function i(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function o(a,l,n){const{options:r,mode:o,trackBy:u,limit:s,hideSelected:c,createTag:p,createOption:d,label:v,appendNewTag:f,appendNewOption:m,multipleLabel:h,object:g,loading:b,delay:y,resolveOnLoad:w,minChars:_,filterResults:x,clearOnSearch:O,clearOnSelect:S,valueProp:L,allowAbsent:T,groupLabel:E,canDeselect:k,max:P,strict:q,closeOnSelect:C,closeOnDeselect:R,groups:A,reverse:B,infinite:D,groupOptions:j,groupHideEmpty:I,groupSelect:V,onCreate:M,disabledProp:W,searchStart:H,searchFilter:N}=e.toRefs(a),$=e.getCurrentInstance().proxy,F=n.iv,z=n.ev,U=n.search,G=n.clearSearch,K=n.update,X=n.pointer,Y=n.setPointer,J=n.clearPointer,Q=n.focus,Z=n.deactivate,ee=n.close,te=n.localize,ae=e.ref([]),le=e.ref([]),ne=e.ref(!1),re=e.ref(null),ie=e.ref(D.value&&-1===s.value?10:s.value),oe=e.computed((()=>p.value||d.value||!1)),ue=e.computed((()=>void 0!==f.value?f.value:void 0===m.value||m.value)),se=e.computed((()=>{if(A.value){let e=de.value||[],t=[];return e.forEach((e=>{We(e[j.value]).forEach((a=>{t.push(Object.assign({},a,e[W.value]?{[W.value]:!0}:{}))}))})),t}{let e=We(le.value||[]);return ae.value.length&&(e=e.concat(ae.value)),e}})),ce=e.computed((()=>{let e=se.value;return B.value&&(e=e.reverse()),ye.value.length&&(e=ye.value.concat(e)),Me(e)})),pe=e.computed((()=>{let e=ce.value;return ie.value>0&&(e=e.slice(0,ie.value)),e})),de=e.computed((()=>{if(!A.value)return[];let e=[],t=le.value||[];return ae.value.length&&e.push({[E.value]:" ",[j.value]:[...ae.value],__CREATE__:!0}),e.concat(t)})),ve=e.computed((()=>{let e=[...de.value].map((e=>({...e})));return ye.value.length&&(e[0]&&e[0].__CREATE__?e[0][j.value]=[...ye.value,...e[0][j.value]]:e=[{[E.value]:" ",[j.value]:[...ye.value],__CREATE__:!0}].concat(e)),e})),fe=e.computed((()=>{if(!A.value)return[];let e=ve.value;return Ve((e||[]).map(((e,t)=>{const a=We(e[j.value]);return{...e,index:t,group:!0,[j.value]:Me(a,!1).map((t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{}))),__VISIBLE__:Me(a).map((t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{})))}})))})),me=e.computed((()=>{switch(o.value){case"single":return!t(F.value[L.value]);case"multiple":case"tags":return!t(F.value)&&F.value.length>0}})),he=e.computed((()=>void 0!==h&&void 0!==h.value?h.value(F.value,$):F.value&&F.value.length>1?`${F.value.length} options selected`:"1 option selected")),ge=e.computed((()=>!se.value.length&&!ne.value&&!ye.value.length)),be=e.computed((()=>se.value.length>0&&0==pe.value.length&&(U.value&&A.value||!A.value))),ye=e.computed((()=>!1!==oe.value&&U.value?-1!==je(U.value)?[]:[{[L.value]:U.value,[we.value[0]]:U.value,[v.value]:U.value,__CREATE__:!0}]:[])),we=e.computed((()=>u.value?Array.isArray(u.value)?u.value:[u.value]:[v.value])),_e=e.computed((()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}})),xe=e.computed((()=>b.value||ne.value)),Oe=e=>{switch("object"!=typeof e&&(e=De(e)),o.value){case"single":K(e);break;case"multiple":case"tags":K(F.value.concat(e))}l.emit("select",Le(e),e,$)},Se=e=>{switch("object"!=typeof e&&(e=De(e)),o.value){case"single":Ee();break;case"tags":case"multiple":K(Array.isArray(e)?F.value.filter((t=>-1===e.map((e=>e[L.value])).indexOf(t[L.value]))):F.value.filter((t=>t[L.value]!=e[L.value])))}l.emit("deselect",Le(e),e,$)},Le=e=>g.value?e:e[L.value],Te=e=>{Se(e)},Ee=()=>{K(_e.value),l.emit("clear",$)},ke=e=>{if(void 0!==e.group)return"single"!==o.value&&(Be(e[j.value])&&e[j.value].length);switch(o.value){case"single":return!t(F.value)&&F.value[L.value]==e[L.value];case"tags":case"multiple":return!t(F.value)&&-1!==F.value.map((e=>e[L.value])).indexOf(e[L.value])}},Pe=e=>!0===e[W.value],qe=()=>!(void 0===P||-1===P.value||!me.value&&P.value>0)&&F.value.length>=P.value,Ce=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,o.value){case"single":if(e&&ke(e))return k.value&&Se(e),void(R.value&&(J(),ee()));e&&Re(e),S.value&&G(),C.value&&(J(),ee()),e&&Oe(e);break;case"multiple":if(e&&ke(e))return Se(e),void(R.value&&(J(),ee()));if(qe())return void l.emit("max",$);e&&(Re(e),Oe(e)),S.value&&G(),c.value&&J(),C.value&&ee();break;case"tags":if(e&&ke(e))return Se(e),void(R.value&&(J(),ee()));if(qe())return void l.emit("max",$);e&&Re(e),S.value&&G(),e&&Oe(e),c.value&&J(),C.value&&ee()}C.value||Q()},Re=e=>{void 0===De(e[L.value])&&oe.value&&(l.emit("tag",e[L.value],$),l.emit("option",e[L.value],$),l.emit("create",e[L.value],$),ue.value&&Ie(e),G())},Ae=e=>void 0===e.find((e=>!ke(e)&&!e[W.value])),Be=e=>void 0===e.find((e=>!ke(e))),De=e=>se.value[se.value.map((e=>String(e[L.value]))).indexOf(String(e))],je=e=>se.value.findIndex((t=>we.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),Ie=e=>{ae.value.push(e)},Ve=e=>I.value?e.filter((e=>U.value?e.__VISIBLE__.length:e[j.value].length)):e.filter((e=>!U.value||e.__VISIBLE__.length)),Me=(e,t=!0)=>{let a=e;if(U.value&&x.value){let e=N.value;e||(e=(e,t,a)=>we.value.some((a=>{let l=i(te(e[a]),q.value);return H.value?l.startsWith(i(t,q.value)):-1!==l.indexOf(i(t,q.value))}))),a=a.filter((t=>e(t,U.value,$)))}return c.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(o.value)&&c.value&&ke(e))(e)))),a},We=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[L.value]:e,[we.value[0]]:a,[v.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[L.value]:e,[we.value[0]]:e,[v.value]:e})),t},He=()=>{t(z.value)||(F.value=Fe(z.value))},Ne=e=>(ne.value=!0,new Promise(((t,a)=>{r.value(U.value,$).then((t=>{le.value=t||[],"function"==typeof e&&e(t),ne.value=!1})).catch((e=>{console.error(e),le.value=[],ne.value=!1})).finally((()=>{t()}))}))),$e=()=>{if(me.value)if("single"===o.value){let e=De(F.value[L.value]);if(void 0!==e){let t=e[v.value];F.value[v.value]=t,g.value&&(z.value[v.value]=t)}}else F.value.forEach(((e,t)=>{let a=De(F.value[t][L.value]);if(void 0!==a){let e=a[v.value];F.value[t][v.value]=e,g.value&&(z.value[t][v.value]=e)}}))},Fe=e=>t(e)?"single"===o.value?{}:[]:g.value?e:"single"===o.value?De(e)||(T.value?{[v.value]:e,[L.value]:e,[we.value[0]]:e}:{}):e.filter((e=>!!De(e)||T.value)).map((e=>De(e)||{[v.value]:e,[L.value]:e,[we.value[0]]:e})),ze=()=>{re.value=e.watch(U,(e=>{e.length<_.value||!e&&0!==_.value||(ne.value=!0,O.value&&(le.value=[]),setTimeout((()=>{e==U.value&&r.value(U.value,$).then((t=>{e!=U.value&&U.value||(le.value=t,X.value=pe.value.filter((e=>!0!==e[W.value]))[0]||null,ne.value=!1)})).catch((e=>{console.error(e)}))}),y.value))}),{flush:"sync"})};if("single"!==o.value&&!t(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&"function"==typeof r.value?w.value?Ne(He):1==g.value&&He():(le.value=r.value,He()),y.value>-1&&ze(),e.watch(y,((e,t)=>{re.value&&re.value(),e>=0&&ze()})),e.watch(z,(e=>{if(t(e))K(Fe(e),!1);else switch(o.value){case"single":(g.value?e[L.value]!=F.value[L.value]:e!=F.value[L.value])&&K(Fe(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(g.value?e.map((e=>e[L.value])):e,F.value.map((e=>e[L.value])))||K(Fe(e),!1)}}),{deep:!0}),e.watch(r,((e,t)=>{"function"==typeof a.options?w.value&&(!t||e&&e.toString()!==t.toString())&&Ne():(le.value=a.options,Object.keys(F.value).length||He(),$e())})),e.watch(v,$e),e.watch(s,((e,t)=>{ie.value=D.value&&-1===e?10:e})),{pfo:ce,fo:pe,filteredOptions:pe,hasSelected:me,multipleLabelText:he,eo:se,extendedOptions:se,eg:de,extendedGroups:de,fg:fe,filteredGroups:fe,noOptions:ge,noResults:be,resolving:ne,busy:xe,offset:ie,select:Oe,deselect:Se,remove:Te,selectAll:()=>{"single"!==o.value&&Oe(pe.value.filter((e=>!e.disabled&&!ke(e))))},clear:Ee,isSelected:ke,isDisabled:Pe,isMax:qe,getOption:De,handleOptionClick:e=>{if(!Pe(e))return M&&M.value&&!ke(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=M.value(e,$))instanceof Promise)?(ne.value=!0,void e.then((e=>{ne.value=!1,Ce(e)}))):void Ce(e)},handleGroupClick:e=>{if(!Pe(e)&&"single"!==o.value&&V.value){switch(o.value){case"multiple":case"tags":Ae(e[j.value])?Se(e[j.value]):Oe(e[j.value].filter((e=>-1===F.value.map((e=>e[L.value])).indexOf(e[L.value]))).filter((e=>!e[W.value])).filter(((e,t)=>F.value.length+1+t<=P.value||-1===P.value))),c.value&&X.value&&Y(fe.value.filter((e=>!e[W.value]))[X.value.index])}C.value&&Z()}},handleTagRemove:(e,t)=>{0===t.button?Te(e):t.preventDefault()},refreshOptions:e=>{Ne(e)},resolveOptions:Ne,refreshLabels:$e}}function u(t,a,l){const{valueProp:n,showOptions:r,searchable:i,groupLabel:o,groups:u,mode:s,groupSelect:c,disabledProp:p,groupOptions:d}=e.toRefs(t),v=l.fo,f=l.fg,m=l.handleOptionClick,h=l.handleGroupClick,g=l.search,b=l.pointer,y=l.setPointer,w=l.clearPointer,_=l.multiselect,x=l.isOpen,O=e.computed((()=>v.value.filter((e=>!e[p.value])))),S=e.computed((()=>f.value.filter((e=>!e[p.value])))),L=e.computed((()=>"single"!==s.value&&c.value)),T=e.computed((()=>b.value&&b.value.group)),E=e.computed((()=>I(b.value))),k=e.computed((()=>{const e=T.value?b.value:I(b.value),t=S.value.map((e=>e[o.value])).indexOf(e[o.value]);let a=S.value[t-1];return void 0===a&&(a=q.value),a})),P=e.computed((()=>{let e=S.value.map((e=>e.label)).indexOf(T.value?b.value[o.value]:I(b.value)[o.value])+1;return S.value.length<=e&&(e=0),S.value[e]})),q=e.computed((()=>[...S.value].slice(-1)[0])),C=e.computed((()=>b.value.__VISIBLE__.filter((e=>!e[p.value]))[0])),R=e.computed((()=>{const e=E.value.__VISIBLE__.filter((e=>!e[p.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])-1]})),A=e.computed((()=>{const e=I(b.value).__VISIBLE__.filter((e=>!e[p.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])+1]})),B=e.computed((()=>[...k.value.__VISIBLE__.filter((e=>!e[p.value]))].slice(-1)[0])),D=e.computed((()=>[...q.value.__VISIBLE__.filter((e=>!e[p.value]))].slice(-1)[0])),j=()=>{y(O.value[0]||null)},I=e=>S.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[n.value])).indexOf(e[n.value]))),V=()=>{let e=_.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;u.value&&(t=T.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{i.value&&(e.length&&r.value?j():w())})),e.watch(x,(t=>{if(t){let t=_.value.querySelectorAll("[data-selected]")[0];if(!t)return;let a=t.parentElement.parentElement;e.nextTick((()=>{a.scrollTop>0||(a.scrollTop=t.offsetTop)}))}})),{pointer:b,canPointGroups:L,isPointed:e=>!(!b.value||!(!e.group&&b.value[n.value]===e[n.value]||void 0!==e.group&&b.value[o.value]===e[o.value]))||void 0,setPointerFirst:j,selectPointer:()=>{b.value&&!0!==b.value[p.value]&&(T.value?h(b.value):m(b.value))},forwardPointer:()=>{if(null===b.value)y((u.value&&L.value?S.value[0].__CREATE__?O.value[0]:S.value[0]:O.value[0])||null);else if(u.value&&L.value){let e=T.value?C.value:A.value;void 0===e&&(e=P.value,e.__CREATE__&&(e=e[d.value][0])),y(e||null)}else{let e=O.value.map((e=>e[n.value])).indexOf(b.value[n.value])+1;O.value.length<=e&&(e=0),y(O.value[e]||null)}e.nextTick((()=>{V()}))},backwardPointer:()=>{if(null===b.value){let e=O.value[O.value.length-1];u.value&&L.value&&(e=D.value,void 0===e&&(e=q.value)),y(e||null)}else if(u.value&&L.value){let e=T.value?B.value:R.value;void 0===e&&(e=T.value?k.value:E.value,e.__CREATE__&&(e=B.value,void 0===e&&(e=k.value))),y(e||null)}else{let e=O.value.map((e=>e[n.value])).indexOf(b.value[n.value])-1;e<0&&(e=O.value.length-1),y(O.value[e]||null)}e.nextTick((()=>{V()}))}}}function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof s(e).Element||e instanceof Element}function p(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,f=Math.min,m=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(h())}function b(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&p(e)&&(n=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);var i=(c(e)?s(e):window).visualViewport,o=!g()&&a,u=(l.left+(o&&i?i.offsetLeft:0))/n,d=(l.top+(o&&i?i.offsetTop:0))/r,v=l.width/n,f=l.height/r;return{width:v,height:f,top:d,right:u+v,bottom:d+f,left:u,x:u,y:d}}function y(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return b(_(e)).left+y(e).scrollLeft}function O(e){return s(e).getComputedStyle(e)}function S(e){var t=O(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function L(e,t,a){void 0===a&&(a=!1);var l,n,r=p(t),i=p(t)&&function(e){var t=e.getBoundingClientRect(),a=m(t.width)/e.offsetWidth||1,l=m(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=_(t),u=b(e,i,a),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!a)&&(("body"!==w(t)||S(o))&&(c=(l=t)!==s(l)&&p(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:y(l)),p(t)?((d=b(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=x(o))),{x:u.left+c.scrollLeft-d.x,y:u.top+c.scrollTop-d.y,width:u.width,height:u.height}}function T(e){var t=b(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function E(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||_(e)}function k(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:p(e)&&S(e)?e:k(E(e))}function P(e,t){var a;void 0===t&&(t=[]);var l=k(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=s(l),i=n?[r].concat(r.visualViewport||[],S(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(P(E(i)))}function q(e){return["table","td","th"].indexOf(w(e))>=0}function C(e){return p(e)&&"fixed"!==O(e).position?e.offsetParent:null}function R(e){for(var t=s(e),a=C(e);a&&q(a)&&"static"===O(a).position;)a=C(a);return a&&("html"===w(a)||"body"===w(a)&&"static"===O(a).position)?t:a||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&p(e)&&"fixed"===O(e).position)return null;var a=E(e);for(d(a)&&(a=a.host);p(a)&&["html","body"].indexOf(w(a))<0;){var l=O(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var A="top",B="bottom",D="right",j="left",I="auto",V=[A,B,D,j],M="start",W="end",H="clippingParents",N="viewport",$="popper",F="reference",z=V.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+W])}),[]),U=[].concat(V,[I]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+W])}),[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function K(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function X(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t,a){return t===N?X(function(e,t){var a=s(e),l=_(e),n=a.visualViewport,r=l.clientWidth,i=l.clientHeight,o=0,u=0;if(n){r=n.width,i=n.height;var c=g();(c||!c&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:r,height:i,x:o+x(e),y:u}}(e,a)):c(t)?function(e,t){var a=b(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):X(function(e){var t,a=_(e),l=y(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=v(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=v(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+x(e),u=-l.scrollTop;return"rtl"===O(n||a).direction&&(o+=v(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:o,y:u}}(_(e)))}function J(e){var t=P(E(e)),a=["absolute","fixed"].indexOf(O(e).position)>=0&&p(e)?R(e):e;return c(a)?t.filter((function(e){return c(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&d(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==w(e)})):[]}function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?Q(n):null,i=n?Z(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case A:t={x:o,y:a.y-l.height};break;case B:t={x:o,y:a.y+a.height};break;case D:t={x:a.x+a.width,y:u};break;case j:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?ee(r):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case M:t[s]=t[s]-(a[c]/2-l[c]/2);break;case W:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function ae(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,i=l.strategy,o=void 0===i?e.strategy:i,u=l.boundary,s=void 0===u?H:u,p=l.rootBoundary,d=void 0===p?N:p,m=l.elementContext,h=void 0===m?$:m,g=l.altBoundary,y=void 0!==g&&g,w=l.padding,x=void 0===w?0:w,O=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof x?x:(a=x,V.reduce((function(e,t){return e[t]=a,e}),{}))),S=h===$?F:$,L=e.rects.popper,T=e.elements[y?S:h],E=function(e,t,a,l){var n="clippingParents"===t?J(e):[].concat(t),r=[].concat(n,[a]),i=r[0],o=r.reduce((function(t,a){var n=Y(e,a,l);return t.top=v(n.top,t.top),t.right=f(n.right,t.right),t.bottom=f(n.bottom,t.bottom),t.left=v(n.left,t.left),t}),Y(e,i,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(c(T)?T:T.contextElement||_(e.elements.popper),s,d,o),k=b(e.elements.reference),P=te({reference:k,element:L,strategy:"absolute",placement:r}),q=X(Object.assign({},L,P)),C=h===$?q:k,R={top:E.top-C.top+O.top,bottom:C.bottom-E.bottom+O.bottom,left:E.left-C.left+O.left,right:C.right-E.right+O.right},j=e.modifiersData.offset;if(h===$&&j){var I=j[r];Object.keys(R).forEach((function(e){var t=[D,B].indexOf(e)>=0?1:-1,a=[A,B].indexOf(e)>=0?"y":"x";R[e]+=I[a]*t}))}return R}var le={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(_e,me,xe):ce(m?_e:ge,me,m?xe:be);S[O]=Oe,C[O]=Oe-me}t.modifiersData[l]=C}},requiresIfExists:["offset"]},de={left:"right",right:"left",bottom:"top",top:"bottom"};function ve(e){return e.replace(/left|right|bottom|top/g,(function(e){return de[e]}))}var fe={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function he(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,i=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?U:u,c=Z(l),p=c?o?z:z.filter((function(e){return Z(e)===c})):V,d=p.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=p);var v=d.reduce((function(t,a){return t[a]=ae(e,{placement:a,boundary:n,rootBoundary:r,padding:i})[Q(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,i=a.altAxis,o=void 0===i||i,u=a.fallbackPlacements,s=a.padding,c=a.boundary,p=a.rootBoundary,d=a.altBoundary,v=a.flipVariations,f=void 0===v||v,m=a.allowedAutoPlacements,h=t.options.placement,g=Q(h),b=u||(g===h||!f?[ve(h)]:function(e){if(Q(e)===I)return[];var t=ve(e);return[me(e),t,me(t)]}(h)),y=[h].concat(b).reduce((function(e,a){return e.concat(Q(a)===I?he(t,{placement:a,boundary:c,rootBoundary:p,padding:s,flipVariations:f,allowedAutoPlacements:m}):a)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,O=!0,S=y[0],L=0;L=0,q=P?"width":"height",C=ae(t,{placement:T,boundary:c,rootBoundary:p,altBoundary:d,padding:s}),R=P?k?D:j:k?B:A;w[q]>_[q]&&(R=ve(R));var V=ve(R),W=[];if(r&&W.push(C[E]<=0),o&&W.push(C[R]<=0,C[V]<=0),W.every((function(e){return e}))){S=T,O=!1;break}x.set(T,W)}if(O)for(var H=function(e){var t=y.find((function(t){var a=x.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=f?3:1;N>0;N--){if("break"===H(N))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(t,a,l){const{disabled:n,appendTo:r,appendToBody:i,openDirection:o}=e.toRefs(t),u=e.getCurrentInstance().proxy,s=l.multiselect,c=l.dropdown,p=e.ref(!1),d=e.ref(null),v=e.ref(null),f=e.computed((()=>r.value||i.value)),m=e.computed((()=>"top"===o.value&&"bottom"===v.value||"bottom"===o.value&&"top"!==v.value?"bottom":"top")),h=()=>{if(!d.value)return;let e=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));d.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===m.value?e:t)]}}]}))),d.value.update()},g=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return e.onMounted((()=>{f.value&&(d.value=se(s.value,c.value,{strategy:g(s.value)?"fixed":void 0,placement:o.value,modifiers:[pe,ge,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){v.value=e.placement}}]}))})),e.onBeforeUnmount((()=>{f.value&&d.value&&(d.value.destroy(),d.value=null)})),{popper:d,isOpen:p,open:()=>{p.value||n.value||(p.value=!0,a.emit("open",u),f.value&&e.nextTick((()=>{h()})))},close:()=>{p.value&&(p.value=!1,a.emit("close",u))},placement:m,updatePopper:h}}function ye(t,a,l){const{searchable:n,disabled:r,clearOnBlur:i}=e.toRefs(t),o=l.input,u=l.open,s=l.close,c=l.clearSearch,p=l.isOpen,d=l.wrapper,v=l.tags,f=e.ref(!1),m=e.ref(!1),h=e.computed((()=>n.value||r.value?-1:0)),g=()=>{n.value&&o.value.blur(),d.value.blur()},b=(e=!0)=>{r.value||(f.value=!0,e&&u())},y=()=>{f.value=!1,setTimeout((()=>{f.value||(s(),i.value&&c())}),1)};return{tabindex:h,isActive:f,mouseClicked:m,blur:g,focus:()=>{n.value&&!r.value&&o.value.focus()},activate:b,deactivate:y,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||b(m.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),g()},handleMousedown:e=>{m.value=!0,p.value&&(e.target.isEqualNode(d.value)||e.target.isEqualNode(v.value))?setTimeout((()=>{y()}),0):p.value||!document.activeElement.isEqualNode(d.value)&&!document.activeElement.isEqualNode(o.value)||b(),setTimeout((()=>{m.value=!1}),0)}}}function we(t,a,l){const{mode:n,addTagOn:r,openDirection:i,searchable:o,showOptions:u,valueProp:s,groups:c,addOptionOn:p,createTag:d,createOption:v,reverse:f}=e.toRefs(t),m=e.getCurrentInstance().proxy,h=l.iv,g=l.update,b=l.deselect,y=l.search,w=l.setPointer,_=l.selectPointer,x=l.backwardPointer,O=l.forwardPointer,S=l.multiselect,L=l.wrapper,T=l.tags,E=l.isOpen,k=l.open,P=l.blur,q=l.fo,C=e.computed((()=>d.value||v.value||!1)),R=e.computed((()=>void 0!==r.value?r.value:void 0!==p.value?p.value:["enter"])),A=()=>{"tags"===n.value&&!u.value&&C.value&&o.value&&!c.value&&w(q.value[q.value.map((e=>e[s.value])).indexOf(y.value)])};return{handleKeydown:e=>{let t,l;switch(a.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===n.value&&(t=[...S.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==T.value)),l=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===n.value)return;if(o.value&&-1===[null,""].indexOf(y.value))return;if(0===h.value.length)return;let a=h.value.filter((e=>!e.disabled&&!1!==e.remove));a.length&&b(a[a.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==l&&void 0!==l)return g([...h.value].filter(((e,t)=>t!==l))),void(l===t.length-1&&(t.length-1?t[t.length-2].focus():o.value?T.value.querySelector("input").focus():L.value.focus()));if(-1===R.value.indexOf("enter")&&C.value)return;A(),_();break;case" ":if(!C.value&&!o.value)return e.preventDefault(),A(),void _();if(!C.value)return!1;if(-1===R.value.indexOf("space")&&C.value)return;e.preventDefault(),A(),_();break;case"Tab":case";":case",":if(-1===R.value.indexOf(e.key.toLowerCase())||!C.value)return;A(),_(),e.preventDefault();break;case"Escape":P();break;case"ArrowUp":if(e.preventDefault(),!u.value)return;E.value||k(),x();break;case"ArrowDown":if(e.preventDefault(),!u.value)return;E.value||k(),O();break;case"ArrowLeft":if(o.value&&T.value&&T.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),-1===l?t[t.length-1].focus():l>0&&t[l-1].focus();break;case"ArrowRight":if(-1===l||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),t.length>l+1?t[l+1].focus():o.value?T.value.querySelector("input").focus():o.value||L.value.focus()}},handleKeyup:e=>{a.emit("keyup",e,m)},preparePointer:A}}function _e(t,a,l){const{classes:n,disabled:r,showOptions:i,breakTags:o}=e.toRefs(t),u=l.isOpen,s=l.isPointed,c=l.isSelected,p=l.isDisabled,d=l.isActive,v=l.canPointGroups,f=l.resolving,m=l.fo,h=l.placement,g=e.computed((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value}))),b=e.computed((()=>!!(u.value&&i.value&&(!f.value||f.value&&m.value.length))));return{classList:e.computed((()=>{const e=g.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(b.value&&"top"===h.value?e.containerOpenTop:[]).concat(b.value&&"top"!==h.value?e.containerOpen:[]).concat(d.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,o.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(u.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===h.value?e.dropdownTop:[]).concat(u.value&&i.value&&b.value?[]:e.dropdownHidden),options:[e.options].concat("top"===h.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return s(t)?a.push(c(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):c(t)&&v.value?a.push(p(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):p(t)&&a.push(e.groupLabelDisabled),v.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return s(t)?l.push(c(t)?e.optionSelectedPointed:e.optionPointed):c(t)?l.push(p(t)?e.optionSelectedDisabled:e.optionSelected):(p(t)||a&&p(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:b}}function xe(t,a,l){const{limit:n,infinite:r}=e.toRefs(t),i=l.isOpen,o=l.offset,u=l.search,s=l.pfo,c=l.eo,p=e.ref(null),d=e.ref(null),v=e.computed((()=>o.value{const{isIntersecting:a,target:l}=t[0];if(a){const t=l.offsetParent,a=t.scrollTop;o.value+=-1==n.value?10:n.value,e.nextTick((()=>{t.scrollTop=a}))}},m=()=>{i.value&&o.value{r.value&&m()})),e.watch(u,(()=>{r.value&&(o.value=n.value,m())}),{flush:"post"}),e.watch(c,(()=>{r.value&&m()}),{immediate:!1,flush:"post"}),e.onMounted((()=>{window&&window.IntersectionObserver&&(p.value=new IntersectionObserver(f))})),{hasMore:v,infiniteLoader:d}}function Oe(t,a,l){const{placeholder:n,id:r,valueProp:i,label:o,mode:u,groupLabel:s,aria:c,searchable:p}=e.toRefs(t),d=l.pointer,v=l.iv,f=l.hasSelected,m=l.multipleLabelText,h=e.ref(null),g=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("assist"),e.join("-")})),b=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("multiselect-options"),e.join("-")})),y=e.computed((()=>{let e=[];if(r&&r.value&&e.push(r.value),d.value)return e.push(d.value.group?"multiselect-group":"multiselect-option"),e.push(d.value.group?d.value.index:d.value[i.value]),e.join("-")})),w=e.computed((()=>n.value)),_=e.computed((()=>"single"!==u.value)),x=e.computed((()=>{let e="";return"single"===u.value&&f.value&&(e+=v.value[o.value]),"multiple"===u.value&&f.value&&(e+=m.value),"tags"===u.value&&f.value&&(e+=v.value.map((e=>e[o.value])).join(", ")),e})),O=e.computed((()=>{let e={...c.value};return p.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${g.value} ${e["aria-labelledby"]}`:g.value,x.value&&e["aria-label"]&&(e["aria-label"]=`${x.value}, ${e["aria-label"]}`)),e}));return e.onMounted((()=>{if(r&&r.value&&document&&document.querySelector){let e=document.querySelector(`[for="${r.value}"]`);h.value=e?e.innerText:null}})),{arias:O,ariaLabel:x,ariaAssist:g,ariaControls:b,ariaPlaceholder:w,ariaMultiselectable:_,ariaActiveDescendant:y,ariaOptionId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-option"),t.push(e[i.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Se(t,a,l){const{locale:n,fallbackLocale:r}=e.toRefs(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Le(t,a,l){return{multiselect:e.ref(null),wrapper:e.ref(null),tags:e.ref(null),input:e.ref(null),dropdown:e.ref(null)}}function Te(e,t,a,l,n,r,i,o,u,s){"boolean"!=typeof i&&(u=o,o=i,i=!1);const c="function"==typeof a?a.options:a;let p;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),l&&(c._scopeId=l),r?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=p):t&&(p=i?function(e){t.call(this,s(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),p)if(c.functional){const e=c.render;c.render=function(t,a){return p.call(a),e(t,a)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,p):[p]}return a}const Ee={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Le,Se,l,r,be,n,a,ye,o,xe,u,we,_e,Oe]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};var ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"multiselect",class:e.classList.container,attrs:{id:e.searchable?void 0:e.id,dir:e.rtl?"rtl":void 0},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut,keyup:e.handleKeyup,keydown:e.handleKeydown}},[a("div",e._b({ref:"wrapper",class:e.classList.wrapper,attrs:{tabindex:e.tabindex,"aria-controls":e.searchable?void 0:e.ariaControls,"aria-placeholder":e.searchable?void 0:e.ariaPlaceholder,"aria-expanded":e.searchable?void 0:e.isOpen,"aria-activedescendant":e.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":e.searchable?void 0:e.ariaMultiselectable,role:e.searchable?void 0:"combobox"},on:{mousedown:e.handleMousedown}},"div",e.searchable?{}:e.arias,!1),["tags"!==e.mode&&e.searchable&&!e.disabled?[a("input",e._b({ref:"input",class:e.classList.search,attrs:{type:e.inputType,modelValue:e.search,autocomplete:e.autocomplete,id:e.searchable?e.id:void 0,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1))]:e._e(),e._v(" "),"tags"==e.mode?[a("div",{class:e.classList.tags,attrs:{"data-tags":""}},[e._l(e.iv,(function(t,l,n){return e._t("tag",(function(){return[a("span",{key:n,class:[e.classList.tag,t.disabled?e.classList.tagDisabled:null],attrs:{tabindex:"-1","aria-label":e.ariaTagLabel(e.localize(t[e.label]))},on:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagWrapper},[e._v(e._s(e.localize(t[e.label])))]),e._v(" "),e.disabled||t.disabled?e._e():a("span",{class:e.classList.tagRemove,on:{click:function(a){return a.stopPropagation(),e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagRemoveIcon})])])]}),{option:t,handleTagRemove:e.handleTagRemove,disabled:e.disabled})})),e._v(" "),a("div",{ref:"tags",class:e.classList.tagsSearchWrapper},[a("span",{class:e.classList.tagsSearchCopy},[e._v(e._s(e.search))]),e._v(" "),e.searchable&&!e.disabled?a("input",e._b({ref:"input",class:e.classList.tagsSearch,attrs:{type:e.inputType,modelValue:e.search,id:e.searchable?e.id:void 0,autocomplete:e.autocomplete,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1)):e._e()])],2)]:e._e(),e._v(" "),"single"==e.mode&&e.hasSelected&&!e.search&&e.iv?[e._t("singlelabel",(function(){return[a("div",{class:e.classList.singleLabel},[a("span",{class:e.classList.singleLabelText},[e._v(e._s(e.localize(e.iv[e.label])))])])]}),{value:e.iv})]:e._e(),e._v(" "),"multiple"==e.mode&&e.hasSelected&&!e.search?[e._t("multiplelabel",(function(){return[a("div",{class:e.classList.multipleLabel,domProps:{innerHTML:e._s(e.multipleLabelText)}})]}),{values:e.iv})]:e._e(),e._v(" "),!e.placeholder||e.hasSelected||e.search?e._e():[e._t("placeholder",(function(){return[a("div",{class:e.classList.placeholder,attrs:{"aria-hidden":"true"}},[e._v("\n "+e._s(e.placeholder)+"\n ")])]}))],e._v(" "),e.loading||e.resolving?e._t("spinner",(function(){return[a("span",{class:e.classList.spinner,attrs:{"aria-hidden":"true"}})]})):e._e(),e._v(" "),e.hasSelected&&!e.disabled&&e.canClear&&!e.busy?e._t("clear",(function(){return[a("span",{class:e.classList.clear,attrs:{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎"},on:{click:e.clear,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clear.apply(null,arguments)}}},[a("span",{class:e.classList.clearIcon})])]}),{clear:e.clear}):e._e(),e._v(" "),e.caret&&e.showOptions?e._t("caret",(function(){return[a("span",{class:e.classList.caret,attrs:{"aria-hidden":"true"},on:{click:e.handleCaretClick}})]}),{handleCaretClick:e.handleCaretClick,isOpen:e.isOpen}):e._e()],2),e._v(" "),a("Teleport",{attrs:{to:e.appendTo||"body",disabled:!e.appendToBody&&!e.appendTo}},[a("div",{ref:"dropdown",class:e.classList.dropdown,attrs:{id:e.id+"-dropdown",tabindex:"-1"}},[e._t("beforelist",null,{options:e.fo}),e._v(" "),a("ul",{class:e.classList.options,attrs:{id:e.ariaControls,role:"listbox"}},[e.groups?e._l(e.fg,(function(t,l,n){return a("li",{key:n,class:e.classList.group,attrs:{id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),"aria-selected":e.isSelected(t),role:"option"}},[t.__CREATE__?e._e():a("div",{class:e.classList.groupLabel(t),attrs:{"data-pointed":e.isPointed(t)},on:{mouseenter:function(a){return e.setPointer(t,l)},mousedown:function(a){return a.preventDefault(),e.handleGroupClick(t)}}},[e._t("grouplabel",(function(){return[a("span",{domProps:{innerHTML:e._s(e.localize(t[e.groupLabel]))}})]}),{group:t,isSelected:e.isSelected,isPointed:e.isPointed})],2),e._v(" "),a("ul",{class:e.classList.groupOptions,attrs:{"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),role:"group"}},e._l(t.__VISIBLE__,(function(l,n,r){return a("li",{key:r,class:e.classList.option(l,t),attrs:{"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[e.label])),role:"option"},on:{mouseenter:function(t){return e.setPointer(l)},mousedown:function(t){return t.preventDefault(),e.handleOptionClick(l)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(l[e.label])))])]}),{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)})),0)])})):e._l(e.fo,(function(t,l,n){return a("li",{key:n,class:e.classList.option(t),attrs:{"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[e.label])),role:"option"},on:{mouseenter:function(a){return e.setPointer(t)},mousedown:function(a){return a.preventDefault(),e.handleOptionClick(t)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(t[e.label])))])]}),{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)}))],2),e._v(" "),e.noOptions?e._t("nooptions",(function(){return[a("div",{class:e.classList.noOptions,domProps:{innerHTML:e._s(e.localize(e.noOptionsText))}})]})):e._e(),e._v(" "),e.noResults?e._t("noresults",(function(){return[a("div",{class:e.classList.noResults,domProps:{innerHTML:e._s(e.localize(e.noResultsText))}})]})):e._e(),e._v(" "),e.infinite&&e.hasMore?a("div",{ref:"infiniteLoader",class:e.classList.inifinite},[e._t("infinite",(function(){return[a("span",{class:e.classList.inifiniteSpinner})]}))],2):e._e(),e._v(" "),e._t("afterlist",null,{options:e.fo})],2)]),e._v(" "),e.required?a("input",{class:e.classList.fakeInput,attrs:{tabindex:"-1",required:""},domProps:{value:e.textValue}}):e._e(),e._v(" "),e.nativeSupport?["single"==e.mode?a("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0!==e.plainValue?e.plainValue:""}}):e._l(e.plainValue,(function(t,l){return a("input",{key:l,attrs:{type:"hidden",name:e.name+"[]"},domProps:{value:t}})}))]:e._e(),e._v(" "),e.searchable&&e.hasSelected?a("div",{class:e.classList.assist,attrs:{id:e.ariaAssist,"aria-hidden":"true"}},[e._v("\n "+e._s(e.ariaLabel)+"\n ")]):e._e(),e._v(" "),a("div",{class:e.classList.spacer})],2)};ke._withStripped=!0;return Te({render:ke,staticRenderFns:[]},undefined,Ee,undefined,false,undefined,!1,void 0,void 0,void 0)}(Vue); +var VueformMultiselect=function(e){"use strict";function t(e){return-1!==[null,void 0].indexOf(e)}function a(a,l,n){const{object:r,valueProp:i,mode:o}=e.toRefs(a),u=e.getCurrentInstance().proxy,s=n.iv,c=e=>r.value||t(e)?e:Array.isArray(e)?e.map((e=>e[i.value])):e[i.value],p=e=>t(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{s.value=p(e);const a=c(e);l.emit("change",a,u),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function l(t,a){const{value:l,modelValue:n,mode:r,valueProp:i}=e.toRefs(t),o=e.ref("single"!==r.value?[]:{}),u=e.computed((()=>n&&void 0!==n.value?n.value:l.value)),s=e.computed((()=>"single"===r.value?o.value[i.value]:o.value.map((e=>e[i.value])))),c=e.computed((()=>"single"!==r.value?o.value.map((e=>e[i.value])).join(","):o.value[i.value]));return{iv:o,internalValue:o,ev:u,externalValue:u,textValue:c,plainValue:s}}function n(t,a,l){const{regex:n}=e.toRefs(t),r=e.getCurrentInstance().proxy,i=l.isOpen,o=l.open,u=e.ref(null);return e.watch(u,(e=>{!i.value&&e&&o(),a.emit("search-change",e,r)})),{search:u,clearSearch:()=>{u.value=""},handleSearchInput:e=>{u.value=e.target.value},handleKeypress:e=>{if(n&&n.value){let t=n.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(n&&n.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=n.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}a.emit("paste",e,r)}}}function r(t,a,l){const{groupSelect:n,mode:r,groups:i,disabledProp:o}=e.toRefs(t),u=e.ref(null),s=e=>{void 0===e||null!==e&&e[o.value]||i.value&&e&&e.group&&("single"===r.value||!n.value)||(u.value=e)};return{pointer:u,setPointer:s,clearPointer:()=>{s(null)}}}function i(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function o(a,l,n){const{options:r,mode:o,trackBy:u,limit:s,hideSelected:c,createTag:p,createOption:d,label:v,appendNewTag:f,appendNewOption:m,multipleLabel:h,object:g,loading:b,delay:y,resolveOnLoad:w,minChars:_,filterResults:x,clearOnSearch:O,clearOnSelect:S,valueProp:L,allowAbsent:T,groupLabel:E,canDeselect:k,max:P,strict:q,closeOnSelect:C,closeOnDeselect:R,groups:A,reverse:B,infinite:D,groupOptions:j,groupHideEmpty:I,groupSelect:V,onCreate:M,disabledProp:W,searchStart:H,searchFilter:N}=e.toRefs(a),$=e.getCurrentInstance().proxy,F=n.iv,z=n.ev,U=n.search,G=n.clearSearch,K=n.update,X=n.pointer,Y=n.setPointer,J=n.clearPointer,Q=n.focus,Z=n.deactivate,ee=n.close,te=n.localize,ae=e.ref([]),le=e.ref([]),ne=e.ref(!1),re=e.ref(null),ie=e.ref(D.value&&-1===s.value?10:s.value),oe=e.computed((()=>p.value||d.value||!1)),ue=e.computed((()=>void 0!==f.value?f.value:void 0===m.value||m.value)),se=e.computed((()=>{if(A.value){let e=de.value||[],t=[];return e.forEach((e=>{We(e[j.value]).forEach((a=>{t.push(Object.assign({},a,e[W.value]?{[W.value]:!0}:{}))}))})),t}{let e=We(le.value||[]);return ae.value.length&&(e=e.concat(ae.value)),e}})),ce=e.computed((()=>{let e=se.value;return B.value&&(e=e.reverse()),ye.value.length&&(e=ye.value.concat(e)),Me(e)})),pe=e.computed((()=>{let e=ce.value;return ie.value>0&&(e=e.slice(0,ie.value)),e})),de=e.computed((()=>{if(!A.value)return[];let e=[],t=le.value||[];return ae.value.length&&e.push({[E.value]:" ",[j.value]:[...ae.value],__CREATE__:!0}),e.concat(t)})),ve=e.computed((()=>{let e=[...de.value].map((e=>({...e})));return ye.value.length&&(e[0]&&e[0].__CREATE__?e[0][j.value]=[...ye.value,...e[0][j.value]]:e=[{[E.value]:" ",[j.value]:[...ye.value],__CREATE__:!0}].concat(e)),e})),fe=e.computed((()=>{if(!A.value)return[];let e=ve.value;return Ve((e||[]).map(((e,t)=>{const a=We(e[j.value]);return{...e,index:t,group:!0,[j.value]:Me(a,!1).map((t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{}))),__VISIBLE__:Me(a).map((t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{})))}})))})),me=e.computed((()=>{switch(o.value){case"single":return!t(F.value[L.value]);case"multiple":case"tags":return!t(F.value)&&F.value.length>0}})),he=e.computed((()=>void 0!==h&&void 0!==h.value?h.value(F.value,$):F.value&&F.value.length>1?`${F.value.length} options selected`:"1 option selected")),ge=e.computed((()=>!se.value.length&&!ne.value&&!ye.value.length)),be=e.computed((()=>se.value.length>0&&0==pe.value.length&&(U.value&&A.value||!A.value))),ye=e.computed((()=>!1!==oe.value&&U.value?-1!==je(U.value)?[]:[{[L.value]:U.value,[we.value[0]]:U.value,[v.value]:U.value,__CREATE__:!0}]:[])),we=e.computed((()=>u.value?Array.isArray(u.value)?u.value:[u.value]:[v.value])),_e=e.computed((()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}})),xe=e.computed((()=>b.value||ne.value)),Oe=e=>{switch("object"!=typeof e&&(e=De(e)),o.value){case"single":K(e);break;case"multiple":case"tags":K(F.value.concat(e))}l.emit("select",Le(e),e,$)},Se=e=>{switch("object"!=typeof e&&(e=De(e)),o.value){case"single":Ee();break;case"tags":case"multiple":K(Array.isArray(e)?F.value.filter((t=>-1===e.map((e=>e[L.value])).indexOf(t[L.value]))):F.value.filter((t=>t[L.value]!=e[L.value])))}l.emit("deselect",Le(e),e,$)},Le=e=>g.value?e:e[L.value],Te=e=>{Se(e)},Ee=()=>{K(_e.value),l.emit("clear",$)},ke=e=>{if(void 0!==e.group)return"single"!==o.value&&(Be(e[j.value])&&e[j.value].length);switch(o.value){case"single":return!t(F.value)&&F.value[L.value]==e[L.value];case"tags":case"multiple":return!t(F.value)&&-1!==F.value.map((e=>e[L.value])).indexOf(e[L.value])}},Pe=e=>!0===e[W.value],qe=()=>!(void 0===P||-1===P.value||!me.value&&P.value>0)&&F.value.length>=P.value,Ce=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,o.value){case"single":if(e&&ke(e))return k.value&&Se(e),void(R.value&&(J(),ee()));e&&Re(e),S.value&&G(),C.value&&(J(),ee()),e&&Oe(e);break;case"multiple":if(e&&ke(e))return Se(e),void(R.value&&(J(),ee()));if(qe())return void l.emit("max",$);e&&(Re(e),Oe(e)),S.value&&G(),c.value&&J(),C.value&&ee();break;case"tags":if(e&&ke(e))return Se(e),void(R.value&&(J(),ee()));if(qe())return void l.emit("max",$);e&&Re(e),S.value&&G(),e&&Oe(e),c.value&&J(),C.value&&ee()}C.value||Q()},Re=e=>{void 0===De(e[L.value])&&oe.value&&(l.emit("tag",e[L.value],$),l.emit("option",e[L.value],$),l.emit("create",e[L.value],$),ue.value&&Ie(e),G())},Ae=e=>void 0===e.find((e=>!ke(e)&&!e[W.value])),Be=e=>void 0===e.find((e=>!ke(e))),De=e=>se.value[se.value.map((e=>String(e[L.value]))).indexOf(String(e))],je=e=>se.value.findIndex((t=>we.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),Ie=e=>{ae.value.push(e)},Ve=e=>I.value?e.filter((e=>U.value?e.__VISIBLE__.length:e[j.value].length)):e.filter((e=>!U.value||e.__VISIBLE__.length)),Me=(e,t=!0)=>{let a=e;if(U.value&&x.value){let e=N.value;e||(e=(e,t,a)=>we.value.some((a=>{let l=i(te(e[a]),q.value);return H.value?l.startsWith(i(t,q.value)):-1!==l.indexOf(i(t,q.value))}))),a=a.filter((t=>e(t,U.value,$)))}return c.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(o.value)&&c.value&&ke(e))(e)))),a},We=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[L.value]:e,[we.value[0]]:a,[v.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[L.value]:e,[we.value[0]]:e,[v.value]:e})),t},He=()=>{t(z.value)||(F.value=Fe(z.value))},Ne=e=>(ne.value=!0,new Promise(((t,a)=>{r.value(U.value,$).then((t=>{le.value=t||[],"function"==typeof e&&e(t),ne.value=!1})).catch((e=>{console.error(e),le.value=[],ne.value=!1})).finally((()=>{t()}))}))),$e=()=>{if(me.value)if("single"===o.value){let e=De(F.value[L.value]);if(void 0!==e){let t=e[v.value];F.value[v.value]=t,g.value&&(z.value[v.value]=t)}}else F.value.forEach(((e,t)=>{let a=De(F.value[t][L.value]);if(void 0!==a){let e=a[v.value];F.value[t][v.value]=e,g.value&&(z.value[t][v.value]=e)}}))},Fe=e=>t(e)?"single"===o.value?{}:[]:g.value?e:"single"===o.value?De(e)||(T.value?{[v.value]:e,[L.value]:e,[we.value[0]]:e}:{}):e.filter((e=>!!De(e)||T.value)).map((e=>De(e)||{[v.value]:e,[L.value]:e,[we.value[0]]:e})),ze=()=>{re.value=e.watch(U,(e=>{e.length<_.value||!e&&0!==_.value||(ne.value=!0,O.value&&(le.value=[]),setTimeout((()=>{e==U.value&&r.value(U.value,$).then((t=>{e!=U.value&&U.value||(le.value=t,X.value=pe.value.filter((e=>!0!==e[W.value]))[0]||null,ne.value=!1)})).catch((e=>{console.error(e)}))}),y.value))}),{flush:"sync"})};if("single"!==o.value&&!t(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&"function"==typeof r.value?w.value?Ne(He):1==g.value&&He():(le.value=r.value,He()),y.value>-1&&ze(),e.watch(y,((e,t)=>{re.value&&re.value(),e>=0&&ze()})),e.watch(z,(e=>{if(t(e))K(Fe(e),!1);else switch(o.value){case"single":(g.value?e[L.value]!=F.value[L.value]:e!=F.value[L.value])&&K(Fe(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(g.value?e.map((e=>e[L.value])):e,F.value.map((e=>e[L.value])))||K(Fe(e),!1)}}),{deep:!0}),e.watch(r,((e,t)=>{"function"==typeof a.options?w.value&&(!t||e&&e.toString()!==t.toString())&&Ne():(le.value=a.options,Object.keys(F.value).length||He(),$e())})),e.watch(v,$e),e.watch(s,((e,t)=>{ie.value=D.value&&-1===e?10:e})),{pfo:ce,fo:pe,filteredOptions:pe,hasSelected:me,multipleLabelText:he,eo:se,extendedOptions:se,eg:de,extendedGroups:de,fg:fe,filteredGroups:fe,noOptions:ge,noResults:be,resolving:ne,busy:xe,offset:ie,select:Oe,deselect:Se,remove:Te,selectAll:()=>{"single"!==o.value&&Oe(pe.value.filter((e=>!e.disabled&&!ke(e))))},clear:Ee,isSelected:ke,isDisabled:Pe,isMax:qe,getOption:De,handleOptionClick:e=>{if(!Pe(e))return M&&M.value&&!ke(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=M.value(e,$))instanceof Promise)?(ne.value=!0,void e.then((e=>{ne.value=!1,Ce(e)}))):void Ce(e)},handleGroupClick:e=>{if(!Pe(e)&&"single"!==o.value&&V.value){switch(o.value){case"multiple":case"tags":Ae(e[j.value])?Se(e[j.value]):Oe(e[j.value].filter((e=>-1===F.value.map((e=>e[L.value])).indexOf(e[L.value]))).filter((e=>!e[W.value])).filter(((e,t)=>F.value.length+1+t<=P.value||-1===P.value))),c.value&&X.value&&Y(fe.value.filter((e=>!e[W.value]))[X.value.index])}C.value&&Z()}},handleTagRemove:(e,t)=>{0===t.button?Te(e):t.preventDefault()},refreshOptions:e=>{Ne(e)},resolveOptions:Ne,refreshLabels:$e}}function u(t,a,l){const{valueProp:n,showOptions:r,searchable:i,groupLabel:o,groups:u,mode:s,groupSelect:c,disabledProp:p,groupOptions:d}=e.toRefs(t),v=l.fo,f=l.fg,m=l.handleOptionClick,h=l.handleGroupClick,g=l.search,b=l.pointer,y=l.setPointer,w=l.clearPointer,_=l.multiselect,x=l.isOpen,O=e.computed((()=>v.value.filter((e=>!e[p.value])))),S=e.computed((()=>f.value.filter((e=>!e[p.value])))),L=e.computed((()=>"single"!==s.value&&c.value)),T=e.computed((()=>b.value&&b.value.group)),E=e.computed((()=>I(b.value))),k=e.computed((()=>{const e=T.value?b.value:I(b.value),t=S.value.map((e=>e[o.value])).indexOf(e[o.value]);let a=S.value[t-1];return void 0===a&&(a=q.value),a})),P=e.computed((()=>{let e=S.value.map((e=>e.label)).indexOf(T.value?b.value[o.value]:I(b.value)[o.value])+1;return S.value.length<=e&&(e=0),S.value[e]})),q=e.computed((()=>[...S.value].slice(-1)[0])),C=e.computed((()=>b.value.__VISIBLE__.filter((e=>!e[p.value]))[0])),R=e.computed((()=>{const e=E.value.__VISIBLE__.filter((e=>!e[p.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])-1]})),A=e.computed((()=>{const e=I(b.value).__VISIBLE__.filter((e=>!e[p.value]));return e[e.map((e=>e[n.value])).indexOf(b.value[n.value])+1]})),B=e.computed((()=>[...k.value.__VISIBLE__.filter((e=>!e[p.value]))].slice(-1)[0])),D=e.computed((()=>[...q.value.__VISIBLE__.filter((e=>!e[p.value]))].slice(-1)[0])),j=()=>{y(O.value[0]||null)},I=e=>S.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[n.value])).indexOf(e[n.value]))),V=()=>{let e=_.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;u.value&&(t=T.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{i.value&&(e.length&&r.value?j():w())})),e.watch(x,(t=>{if(t&&_?.value){let t=_.value.querySelectorAll("[data-selected]")[0];if(!t)return;let a=t.parentElement.parentElement;e.nextTick((()=>{a.scrollTop>0||(a.scrollTop=t.offsetTop)}))}})),{pointer:b,canPointGroups:L,isPointed:e=>!(!b.value||!(!e.group&&b.value[n.value]===e[n.value]||void 0!==e.group&&b.value[o.value]===e[o.value]))||void 0,setPointerFirst:j,selectPointer:()=>{b.value&&!0!==b.value[p.value]&&(T.value?h(b.value):m(b.value))},forwardPointer:()=>{if(null===b.value)y((u.value&&L.value?S.value[0].__CREATE__?O.value[0]:S.value[0]:O.value[0])||null);else if(u.value&&L.value){let e=T.value?C.value:A.value;void 0===e&&(e=P.value,e.__CREATE__&&(e=e[d.value][0])),y(e||null)}else{let e=O.value.map((e=>e[n.value])).indexOf(b.value[n.value])+1;O.value.length<=e&&(e=0),y(O.value[e]||null)}e.nextTick((()=>{V()}))},backwardPointer:()=>{if(null===b.value){let e=O.value[O.value.length-1];u.value&&L.value&&(e=D.value,void 0===e&&(e=q.value)),y(e||null)}else if(u.value&&L.value){let e=T.value?B.value:R.value;void 0===e&&(e=T.value?k.value:E.value,e.__CREATE__&&(e=B.value,void 0===e&&(e=k.value))),y(e||null)}else{let e=O.value.map((e=>e[n.value])).indexOf(b.value[n.value])-1;e<0&&(e=O.value.length-1),y(O.value[e]||null)}e.nextTick((()=>{V()}))}}}function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof s(e).Element||e instanceof Element}function p(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,f=Math.min,m=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(h())}function b(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&p(e)&&(n=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);var i=(c(e)?s(e):window).visualViewport,o=!g()&&a,u=(l.left+(o&&i?i.offsetLeft:0))/n,d=(l.top+(o&&i?i.offsetTop:0))/r,v=l.width/n,f=l.height/r;return{width:v,height:f,top:d,right:u+v,bottom:d+f,left:u,x:u,y:d}}function y(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return b(_(e)).left+y(e).scrollLeft}function O(e){return s(e).getComputedStyle(e)}function S(e){var t=O(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function L(e,t,a){void 0===a&&(a=!1);var l,n,r=p(t),i=p(t)&&function(e){var t=e.getBoundingClientRect(),a=m(t.width)/e.offsetWidth||1,l=m(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=_(t),u=b(e,i,a),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!a)&&(("body"!==w(t)||S(o))&&(c=(l=t)!==s(l)&&p(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:y(l)),p(t)?((d=b(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=x(o))),{x:u.left+c.scrollLeft-d.x,y:u.top+c.scrollTop-d.y,width:u.width,height:u.height}}function T(e){var t=b(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function E(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||_(e)}function k(e){return["html","body","#document"].indexOf(w(e))>=0?e.ownerDocument.body:p(e)&&S(e)?e:k(E(e))}function P(e,t){var a;void 0===t&&(t=[]);var l=k(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=s(l),i=n?[r].concat(r.visualViewport||[],S(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(P(E(i)))}function q(e){return["table","td","th"].indexOf(w(e))>=0}function C(e){return p(e)&&"fixed"!==O(e).position?e.offsetParent:null}function R(e){for(var t=s(e),a=C(e);a&&q(a)&&"static"===O(a).position;)a=C(a);return a&&("html"===w(a)||"body"===w(a)&&"static"===O(a).position)?t:a||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&p(e)&&"fixed"===O(e).position)return null;var a=E(e);for(d(a)&&(a=a.host);p(a)&&["html","body"].indexOf(w(a))<0;){var l=O(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var A="top",B="bottom",D="right",j="left",I="auto",V=[A,B,D,j],M="start",W="end",H="clippingParents",N="viewport",$="popper",F="reference",z=V.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+W])}),[]),U=[].concat(V,[I]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+W])}),[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function K(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function X(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t,a){return t===N?X(function(e,t){var a=s(e),l=_(e),n=a.visualViewport,r=l.clientWidth,i=l.clientHeight,o=0,u=0;if(n){r=n.width,i=n.height;var c=g();(c||!c&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:r,height:i,x:o+x(e),y:u}}(e,a)):c(t)?function(e,t){var a=b(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):X(function(e){var t,a=_(e),l=y(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=v(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=v(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+x(e),u=-l.scrollTop;return"rtl"===O(n||a).direction&&(o+=v(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:o,y:u}}(_(e)))}function J(e){var t=P(E(e)),a=["absolute","fixed"].indexOf(O(e).position)>=0&&p(e)?R(e):e;return c(a)?t.filter((function(e){return c(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&d(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==w(e)})):[]}function Q(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?Q(n):null,i=n?Z(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case A:t={x:o,y:a.y-l.height};break;case B:t={x:o,y:a.y+a.height};break;case D:t={x:a.x+a.width,y:u};break;case j:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?ee(r):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case M:t[s]=t[s]-(a[c]/2-l[c]/2);break;case W:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function ae(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,i=l.strategy,o=void 0===i?e.strategy:i,u=l.boundary,s=void 0===u?H:u,p=l.rootBoundary,d=void 0===p?N:p,m=l.elementContext,h=void 0===m?$:m,g=l.altBoundary,y=void 0!==g&&g,w=l.padding,x=void 0===w?0:w,O=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof x?x:(a=x,V.reduce((function(e,t){return e[t]=a,e}),{}))),S=h===$?F:$,L=e.rects.popper,T=e.elements[y?S:h],E=function(e,t,a,l){var n="clippingParents"===t?J(e):[].concat(t),r=[].concat(n,[a]),i=r[0],o=r.reduce((function(t,a){var n=Y(e,a,l);return t.top=v(n.top,t.top),t.right=f(n.right,t.right),t.bottom=f(n.bottom,t.bottom),t.left=v(n.left,t.left),t}),Y(e,i,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(c(T)?T:T.contextElement||_(e.elements.popper),s,d,o),k=b(e.elements.reference),P=te({reference:k,element:L,strategy:"absolute",placement:r}),q=X(Object.assign({},L,P)),C=h===$?q:k,R={top:E.top-C.top+O.top,bottom:C.bottom-E.bottom+O.bottom,left:E.left-C.left+O.left,right:C.right-E.right+O.right},j=e.modifiersData.offset;if(h===$&&j){var I=j[r];Object.keys(R).forEach((function(e){var t=[D,B].indexOf(e)>=0?1:-1,a=[A,B].indexOf(e)>=0?"y":"x";R[e]+=I[a]*t}))}return R}var le={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(_e,me,xe):ce(m?_e:ge,me,m?xe:be);S[O]=Oe,C[O]=Oe-me}t.modifiersData[l]=C}},requiresIfExists:["offset"]},de={left:"right",right:"left",bottom:"top",top:"bottom"};function ve(e){return e.replace(/left|right|bottom|top/g,(function(e){return de[e]}))}var fe={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function he(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,i=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?U:u,c=Z(l),p=c?o?z:z.filter((function(e){return Z(e)===c})):V,d=p.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=p);var v=d.reduce((function(t,a){return t[a]=ae(e,{placement:a,boundary:n,rootBoundary:r,padding:i})[Q(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,i=a.altAxis,o=void 0===i||i,u=a.fallbackPlacements,s=a.padding,c=a.boundary,p=a.rootBoundary,d=a.altBoundary,v=a.flipVariations,f=void 0===v||v,m=a.allowedAutoPlacements,h=t.options.placement,g=Q(h),b=u||(g===h||!f?[ve(h)]:function(e){if(Q(e)===I)return[];var t=ve(e);return[me(e),t,me(t)]}(h)),y=[h].concat(b).reduce((function(e,a){return e.concat(Q(a)===I?he(t,{placement:a,boundary:c,rootBoundary:p,padding:s,flipVariations:f,allowedAutoPlacements:m}):a)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,O=!0,S=y[0],L=0;L=0,q=P?"width":"height",C=ae(t,{placement:T,boundary:c,rootBoundary:p,altBoundary:d,padding:s}),R=P?k?D:j:k?B:A;w[q]>_[q]&&(R=ve(R));var V=ve(R),W=[];if(r&&W.push(C[E]<=0),o&&W.push(C[R]<=0,C[V]<=0),W.every((function(e){return e}))){S=T,O=!1;break}x.set(T,W)}if(O)for(var H=function(e){var t=y.find((function(t){var a=x.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=f?3:1;N>0;N--){if("break"===H(N))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(t,a,l){const{disabled:n,appendTo:r,appendToBody:i,openDirection:o}=e.toRefs(t),u=e.getCurrentInstance().proxy,s=l.multiselect,c=l.dropdown,p=e.ref(!1),d=e.ref(null),v=e.ref(null),f=e.computed((()=>r.value||i.value)),m=e.computed((()=>"top"===o.value&&"bottom"===v.value||"bottom"===o.value&&"top"!==v.value?"bottom":"top")),h=()=>{if(!d.value)return;let e=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));d.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===m.value?e:t)]}}]}))),d.value.update()},g=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return e.onMounted((()=>{f.value&&(d.value=se(s.value,c.value,{strategy:g(s.value)?"fixed":void 0,placement:o.value,modifiers:[pe,ge,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){v.value=e.placement}}]}))})),e.onBeforeUnmount((()=>{f.value&&d.value&&(d.value.destroy(),d.value=null)})),{popper:d,isOpen:p,open:()=>{p.value||n.value||(p.value=!0,a.emit("open",u),f.value&&e.nextTick((()=>{h()})))},close:()=>{p.value&&(p.value=!1,a.emit("close",u))},placement:m,updatePopper:h}}function ye(t,a,l){const{searchable:n,disabled:r,clearOnBlur:i}=e.toRefs(t),o=l.input,u=l.open,s=l.close,c=l.clearSearch,p=l.isOpen,d=l.wrapper,v=l.tags,f=e.ref(!1),m=e.ref(!1),h=e.computed((()=>n.value||r.value?-1:0)),g=()=>{n.value&&o.value.blur(),d.value.blur()},b=(e=!0)=>{r.value||(f.value=!0,e&&u())},y=()=>{f.value=!1,setTimeout((()=>{f.value||(s(),i.value&&c())}),1)};return{tabindex:h,isActive:f,mouseClicked:m,blur:g,focus:()=>{n.value&&!r.value&&o.value.focus()},activate:b,deactivate:y,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||b(m.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),g()},handleMousedown:e=>{m.value=!0,p.value&&(e.target.isEqualNode(d.value)||e.target.isEqualNode(v.value))?setTimeout((()=>{y()}),0):p.value||!document.activeElement.isEqualNode(d.value)&&!document.activeElement.isEqualNode(o.value)||b(),setTimeout((()=>{m.value=!1}),0)}}}function we(t,a,l){const{mode:n,addTagOn:r,openDirection:i,searchable:o,showOptions:u,valueProp:s,groups:c,addOptionOn:p,createTag:d,createOption:v,reverse:f}=e.toRefs(t),m=e.getCurrentInstance().proxy,h=l.iv,g=l.update,b=l.deselect,y=l.search,w=l.setPointer,_=l.selectPointer,x=l.backwardPointer,O=l.forwardPointer,S=l.multiselect,L=l.wrapper,T=l.tags,E=l.isOpen,k=l.open,P=l.blur,q=l.fo,C=e.computed((()=>d.value||v.value||!1)),R=e.computed((()=>void 0!==r.value?r.value:void 0!==p.value?p.value:["enter"])),A=()=>{"tags"===n.value&&!u.value&&C.value&&o.value&&!c.value&&w(q.value[q.value.map((e=>e[s.value])).indexOf(y.value)])};return{handleKeydown:e=>{let t,l;switch(a.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===n.value&&(t=[...S.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==T.value)),l=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===n.value)return;if(o.value&&-1===[null,""].indexOf(y.value))return;if(0===h.value.length)return;let a=h.value.filter((e=>!e.disabled&&!1!==e.remove));a.length&&b(a[a.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==l&&void 0!==l)return g([...h.value].filter(((e,t)=>t!==l))),void(l===t.length-1&&(t.length-1?t[t.length-2].focus():o.value?T.value.querySelector("input").focus():L.value.focus()));if(-1===R.value.indexOf("enter")&&C.value)return;A(),_();break;case" ":if(!C.value&&!o.value)return e.preventDefault(),A(),void _();if(!C.value)return!1;if(-1===R.value.indexOf("space")&&C.value)return;e.preventDefault(),A(),_();break;case"Tab":case";":case",":if(-1===R.value.indexOf(e.key.toLowerCase())||!C.value)return;A(),_(),e.preventDefault();break;case"Escape":P();break;case"ArrowUp":if(e.preventDefault(),!u.value)return;E.value||k(),x();break;case"ArrowDown":if(e.preventDefault(),!u.value)return;E.value||k(),O();break;case"ArrowLeft":if(o.value&&T.value&&T.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),-1===l?t[t.length-1].focus():l>0&&t[l-1].focus();break;case"ArrowRight":if(-1===l||e.shiftKey||"tags"!==n.value||!h.value||!h.value.length)return;e.preventDefault(),t.length>l+1?t[l+1].focus():o.value?T.value.querySelector("input").focus():o.value||L.value.focus()}},handleKeyup:e=>{a.emit("keyup",e,m)},preparePointer:A}}function _e(t,a,l){const{classes:n,disabled:r,showOptions:i,breakTags:o}=e.toRefs(t),u=l.isOpen,s=l.isPointed,c=l.isSelected,p=l.isDisabled,d=l.isActive,v=l.canPointGroups,f=l.resolving,m=l.fo,h=l.placement,g=e.computed((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value}))),b=e.computed((()=>!!(u.value&&i.value&&(!f.value||f.value&&m.value.length))));return{classList:e.computed((()=>{const e=g.value;return{container:[e.container].concat(r.value?e.containerDisabled:[]).concat(b.value&&"top"===h.value?e.containerOpenTop:[]).concat(b.value&&"top"!==h.value?e.containerOpen:[]).concat(d.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(r.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,o.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(u.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===h.value?e.dropdownTop:[]).concat(u.value&&i.value&&b.value?[]:e.dropdownHidden),options:[e.options].concat("top"===h.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return s(t)?a.push(c(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):c(t)&&v.value?a.push(p(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):p(t)&&a.push(e.groupLabelDisabled),v.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return s(t)?l.push(c(t)?e.optionSelectedPointed:e.optionPointed):c(t)?l.push(p(t)?e.optionSelectedDisabled:e.optionSelected):(p(t)||a&&p(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:b}}function xe(t,a,l){const{limit:n,infinite:r}=e.toRefs(t),i=l.isOpen,o=l.offset,u=l.search,s=l.pfo,c=l.eo,p=e.ref(null),d=e.ref(null),v=e.computed((()=>o.value{const{isIntersecting:a,target:l}=t[0];if(a){const t=l.offsetParent,a=t.scrollTop;o.value+=-1==n.value?10:n.value,e.nextTick((()=>{t.scrollTop=a}))}},m=()=>{i.value&&o.value{r.value&&m()})),e.watch(u,(()=>{r.value&&(o.value=n.value,m())}),{flush:"post"}),e.watch(c,(()=>{r.value&&m()}),{immediate:!1,flush:"post"}),e.onMounted((()=>{window&&window.IntersectionObserver&&(p.value=new IntersectionObserver(f))})),{hasMore:v,infiniteLoader:d}}function Oe(t,a,l){const{placeholder:n,id:r,valueProp:i,label:o,mode:u,groupLabel:s,aria:c,searchable:p}=e.toRefs(t),d=l.pointer,v=l.iv,f=l.hasSelected,m=l.multipleLabelText,h=e.ref(null),g=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("assist"),e.join("-")})),b=e.computed((()=>{let e=[];return r&&r.value&&e.push(r.value),e.push("multiselect-options"),e.join("-")})),y=e.computed((()=>{let e=[];if(r&&r.value&&e.push(r.value),d.value)return e.push(d.value.group?"multiselect-group":"multiselect-option"),e.push(d.value.group?d.value.index:d.value[i.value]),e.join("-")})),w=e.computed((()=>n.value)),_=e.computed((()=>"single"!==u.value)),x=e.computed((()=>{let e="";return"single"===u.value&&f.value&&(e+=v.value[o.value]),"multiple"===u.value&&f.value&&(e+=m.value),"tags"===u.value&&f.value&&(e+=v.value.map((e=>e[o.value])).join(", ")),e})),O=e.computed((()=>{let e={...c.value};return p.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${g.value} ${e["aria-labelledby"]}`:g.value,x.value&&e["aria-label"]&&(e["aria-label"]=`${x.value}, ${e["aria-label"]}`)),e}));return e.onMounted((()=>{if(r&&r.value&&document&&document.querySelector){let e=document.querySelector(`[for="${r.value}"]`);h.value=e?e.innerText:null}})),{arias:O,ariaLabel:x,ariaAssist:g,ariaControls:b,ariaPlaceholder:w,ariaMultiselectable:_,ariaActiveDescendant:y,ariaOptionId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-option"),t.push(e[i.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return r&&r.value&&t.push(r.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Se(t,a,l){const{locale:n,fallbackLocale:r}=e.toRefs(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Le(t,a,l){return{multiselect:e.ref(null),wrapper:e.ref(null),tags:e.ref(null),input:e.ref(null),dropdown:e.ref(null)}}function Te(e,t,a,l,n,r,i,o,u,s){"boolean"!=typeof i&&(u=o,o=i,i=!1);const c="function"==typeof a?a.options:a;let p;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),l&&(c._scopeId=l),r?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=p):t&&(p=i?function(e){t.call(this,s(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),p)if(c.functional){const e=c.render;c.render=function(t,a){return p.call(a),e(t,a)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,p):[p]}return a}const Ee={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Le,Se,l,r,be,n,a,ye,o,xe,u,we,_e,Oe]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};var ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"multiselect",class:e.classList.container,attrs:{id:e.searchable?void 0:e.id,dir:e.rtl?"rtl":void 0},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut,keyup:e.handleKeyup,keydown:e.handleKeydown}},[a("div",e._b({ref:"wrapper",class:e.classList.wrapper,attrs:{tabindex:e.tabindex,"aria-controls":e.searchable?void 0:e.ariaControls,"aria-placeholder":e.searchable?void 0:e.ariaPlaceholder,"aria-expanded":e.searchable?void 0:e.isOpen,"aria-activedescendant":e.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":e.searchable?void 0:e.ariaMultiselectable,role:e.searchable?void 0:"combobox"},on:{mousedown:e.handleMousedown}},"div",e.searchable?{}:e.arias,!1),["tags"!==e.mode&&e.searchable&&!e.disabled?[a("input",e._b({ref:"input",class:e.classList.search,attrs:{type:e.inputType,modelValue:e.search,autocomplete:e.autocomplete,id:e.searchable?e.id:void 0,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1))]:e._e(),e._v(" "),"tags"==e.mode?[a("div",{class:e.classList.tags,attrs:{"data-tags":""}},[e._l(e.iv,(function(t,l,n){return e._t("tag",(function(){return[a("span",{key:n,class:[e.classList.tag,t.disabled?e.classList.tagDisabled:null],attrs:{tabindex:"-1","aria-label":e.ariaTagLabel(e.localize(t[e.label]))},on:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagWrapper},[e._v(e._s(e.localize(t[e.label])))]),e._v(" "),e.disabled||t.disabled?e._e():a("span",{class:e.classList.tagRemove,on:{click:function(a){return a.stopPropagation(),e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagRemoveIcon})])])]}),{option:t,handleTagRemove:e.handleTagRemove,disabled:e.disabled})})),e._v(" "),a("div",{ref:"tags",class:e.classList.tagsSearchWrapper},[a("span",{class:e.classList.tagsSearchCopy},[e._v(e._s(e.search))]),e._v(" "),e.searchable&&!e.disabled?a("input",e._b({ref:"input",class:e.classList.tagsSearch,attrs:{type:e.inputType,modelValue:e.search,id:e.searchable?e.id:void 0,autocomplete:e.autocomplete,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1)):e._e()])],2)]:e._e(),e._v(" "),"single"==e.mode&&e.hasSelected&&!e.search&&e.iv?[e._t("singlelabel",(function(){return[a("div",{class:e.classList.singleLabel},[a("span",{class:e.classList.singleLabelText},[e._v(e._s(e.localize(e.iv[e.label])))])])]}),{value:e.iv})]:e._e(),e._v(" "),"multiple"==e.mode&&e.hasSelected&&!e.search?[e._t("multiplelabel",(function(){return[a("div",{class:e.classList.multipleLabel,domProps:{innerHTML:e._s(e.multipleLabelText)}})]}),{values:e.iv})]:e._e(),e._v(" "),!e.placeholder||e.hasSelected||e.search?e._e():[e._t("placeholder",(function(){return[a("div",{class:e.classList.placeholder,attrs:{"aria-hidden":"true"}},[e._v("\n "+e._s(e.placeholder)+"\n ")])]}))],e._v(" "),e.loading||e.resolving?e._t("spinner",(function(){return[a("span",{class:e.classList.spinner,attrs:{"aria-hidden":"true"}})]})):e._e(),e._v(" "),e.hasSelected&&!e.disabled&&e.canClear&&!e.busy?e._t("clear",(function(){return[a("span",{class:e.classList.clear,attrs:{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎"},on:{click:e.clear,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clear.apply(null,arguments)}}},[a("span",{class:e.classList.clearIcon})])]}),{clear:e.clear}):e._e(),e._v(" "),e.caret&&e.showOptions?e._t("caret",(function(){return[a("span",{class:e.classList.caret,attrs:{"aria-hidden":"true"},on:{click:e.handleCaretClick}})]}),{handleCaretClick:e.handleCaretClick,isOpen:e.isOpen}):e._e()],2),e._v(" "),a("Teleport",{attrs:{to:e.appendTo||"body",disabled:!e.appendToBody&&!e.appendTo}},[a("div",{ref:"dropdown",class:e.classList.dropdown,attrs:{id:e.id?e.id+"-dropdown":void 0,tabindex:"-1"},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut}},[e._t("beforelist",null,{options:e.fo}),e._v(" "),a("ul",{class:e.classList.options,attrs:{id:e.ariaControls,role:"listbox"}},[e.groups?e._l(e.fg,(function(t,l,n){return a("li",{key:n,class:e.classList.group,attrs:{id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),"aria-selected":e.isSelected(t),role:"option"}},[t.__CREATE__?e._e():a("div",{class:e.classList.groupLabel(t),attrs:{"data-pointed":e.isPointed(t)},on:{mouseenter:function(a){return e.setPointer(t,l)},mousedown:function(a){return a.preventDefault(),e.handleGroupClick(t)}}},[e._t("grouplabel",(function(){return[a("span",{domProps:{innerHTML:e._s(e.localize(t[e.groupLabel]))}})]}),{group:t,isSelected:e.isSelected,isPointed:e.isPointed})],2),e._v(" "),a("ul",{class:e.classList.groupOptions,attrs:{"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),role:"group"}},e._l(t.__VISIBLE__,(function(l,n,r){return a("li",{key:r,class:e.classList.option(l,t),attrs:{"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[e.label])),role:"option"},on:{mouseenter:function(t){return e.setPointer(l)},mousedown:function(t){return t.preventDefault(),e.handleOptionClick(l)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(l[e.label])))])]}),{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)})),0)])})):e._l(e.fo,(function(t,l,n){return a("li",{key:n,class:e.classList.option(t),attrs:{"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[e.label])),role:"option"},on:{mouseenter:function(a){return e.setPointer(t)},mousedown:function(a){return a.preventDefault(),e.handleOptionClick(t)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(t[e.label])))])]}),{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)}))],2),e._v(" "),e.noOptions?e._t("nooptions",(function(){return[a("div",{class:e.classList.noOptions,domProps:{innerHTML:e._s(e.localize(e.noOptionsText))}})]})):e._e(),e._v(" "),e.noResults?e._t("noresults",(function(){return[a("div",{class:e.classList.noResults,domProps:{innerHTML:e._s(e.localize(e.noResultsText))}})]})):e._e(),e._v(" "),e.infinite&&e.hasMore?a("div",{ref:"infiniteLoader",class:e.classList.inifinite},[e._t("infinite",(function(){return[a("span",{class:e.classList.inifiniteSpinner})]}))],2):e._e(),e._v(" "),e._t("afterlist",null,{options:e.fo})],2)]),e._v(" "),e.required?a("input",{class:e.classList.fakeInput,attrs:{tabindex:"-1",required:""},domProps:{value:e.textValue}}):e._e(),e._v(" "),e.nativeSupport?["single"==e.mode?a("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0!==e.plainValue?e.plainValue:""}}):e._l(e.plainValue,(function(t,l){return a("input",{key:l,attrs:{type:"hidden",name:e.name+"[]"},domProps:{value:t}})}))]:e._e(),e._v(" "),e.searchable&&e.hasSelected?a("div",{class:e.classList.assist,attrs:{id:e.ariaAssist,"aria-hidden":"true"}},[e._v("\n "+e._s(e.ariaLabel)+"\n ")]):e._e(),e._v(" "),a("div",{class:e.classList.spacer})],2)};ke._withStripped=!0;return Te({render:ke,staticRenderFns:[]},undefined,Ee,undefined,false,undefined,!1,void 0,void 0,void 0)}(Vue); diff --git a/dist/multiselect.vue2.js b/dist/multiselect.vue2.js index 8bb397b..862ffb0 100644 --- a/dist/multiselect.vue2.js +++ b/dist/multiselect.vue2.js @@ -1340,7 +1340,7 @@ function usePointer (props, context, dep) }); watch(isOpen, (val) => { - if (val) { + if (val && multiselect?.value) { let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0]; if (!firstSelected) { @@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep) return } + /* istanbul ignore next: popper mock */ popper.value = createPopper(multiselect.value, dropdown.value, { strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined, placement: openDirection.value, @@ -4830,7 +4831,11 @@ var __vue_render__ = function () { { ref: "dropdown", class: _vm.classList.dropdown, - attrs: { id: _vm.id + "-dropdown", tabindex: "-1" }, + attrs: { + id: _vm.id ? _vm.id + "-dropdown" : undefined, + tabindex: "-1", + }, + on: { focusin: _vm.handleFocusIn, focusout: _vm.handleFocusOut }, }, [ _vm._t("beforelist", null, { options: _vm.fo }), diff --git a/dist/multiselect.vue2.min.js b/dist/multiselect.vue2.min.js index 605ea03..5f2da83 100644 --- a/dist/multiselect.vue2.min.js +++ b/dist/multiselect.vue2.min.js @@ -1 +1 @@ -import{toRefs as e,getCurrentInstance as t,ref as a,computed as l,watch as n,nextTick as r,onMounted as i,onBeforeUnmount as o}from"vue";function u(e){return-1!==[null,void 0].indexOf(e)}function s(a,l,n){const{object:r,valueProp:i,mode:o}=e(a),s=t().proxy,c=n.iv,p=e=>r.value||u(e)?e:Array.isArray(e)?e.map((e=>e[i.value])):e[i.value],d=e=>u(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{c.value=d(e);const a=p(e);l.emit("change",a,s),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function c(t,n){const{value:r,modelValue:i,mode:o,valueProp:u}=e(t),s=a("single"!==o.value?[]:{}),c=l((()=>i&&void 0!==i.value?i.value:r.value)),p=l((()=>"single"===o.value?s.value[u.value]:s.value.map((e=>e[u.value])))),d=l((()=>"single"!==o.value?s.value.map((e=>e[u.value])).join(","):s.value[u.value]));return{iv:s,internalValue:s,ev:c,externalValue:c,textValue:d,plainValue:p}}function p(l,r,i){const{regex:o}=e(l),u=t().proxy,s=i.isOpen,c=i.open,p=a(null);return n(p,(e=>{!s.value&&e&&c(),r.emit("search-change",e,u)})),{search:p,clearSearch:()=>{p.value=""},handleSearchInput:e=>{p.value=e.target.value},handleKeypress:e=>{if(o&&o.value){let t=o.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(o&&o.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=o.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}r.emit("paste",e,u)}}}function d(t,l,n){const{groupSelect:r,mode:i,groups:o,disabledProp:u}=e(t),s=a(null),c=e=>{void 0===e||null!==e&&e[u.value]||o.value&&e&&e.group&&("single"===i.value||!r.value)||(s.value=e)};return{pointer:s,setPointer:c,clearPointer:()=>{c(null)}}}function v(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function f(r,i,o){const{options:s,mode:c,trackBy:p,limit:d,hideSelected:f,createTag:h,createOption:g,label:m,appendNewTag:b,appendNewOption:y,multipleLabel:_,object:w,loading:O,delay:x,resolveOnLoad:S,minChars:L,filterResults:E,clearOnSearch:T,clearOnSelect:k,valueProp:P,allowAbsent:q,groupLabel:A,canDeselect:C,max:B,strict:D,closeOnSelect:j,closeOnDeselect:R,groups:I,reverse:V,infinite:M,groupOptions:W,groupHideEmpty:H,groupSelect:N,onCreate:$,disabledProp:F,searchStart:z,searchFilter:G}=e(r),U=t().proxy,K=o.iv,X=o.ev,Y=o.search,J=o.clearSearch,Q=o.update,Z=o.pointer,ee=o.setPointer,te=o.clearPointer,ae=o.focus,le=o.deactivate,ne=o.close,re=o.localize,ie=a([]),oe=a([]),ue=a(!1),se=a(null),ce=a(M.value&&-1===d.value?10:d.value),pe=l((()=>h.value||g.value||!1)),de=l((()=>void 0!==b.value?b.value:void 0===y.value||y.value)),ve=l((()=>{if(I.value){let e=ge.value||[],t=[];return e.forEach((e=>{Fe(e[W.value]).forEach((a=>{t.push(Object.assign({},a,e[F.value]?{[F.value]:!0}:{}))}))})),t}{let e=Fe(oe.value||[]);return ie.value.length&&(e=e.concat(ie.value)),e}})),fe=l((()=>{let e=ve.value;return V.value&&(e=e.reverse()),xe.value.length&&(e=xe.value.concat(e)),$e(e)})),he=l((()=>{let e=fe.value;return ce.value>0&&(e=e.slice(0,ce.value)),e})),ge=l((()=>{if(!I.value)return[];let e=[],t=oe.value||[];return ie.value.length&&e.push({[A.value]:" ",[W.value]:[...ie.value],__CREATE__:!0}),e.concat(t)})),me=l((()=>{let e=[...ge.value].map((e=>({...e})));return xe.value.length&&(e[0]&&e[0].__CREATE__?e[0][W.value]=[...xe.value,...e[0][W.value]]:e=[{[A.value]:" ",[W.value]:[...xe.value],__CREATE__:!0}].concat(e)),e})),be=l((()=>{if(!I.value)return[];let e=me.value;return Ne((e||[]).map(((e,t)=>{const a=Fe(e[W.value]);return{...e,index:t,group:!0,[W.value]:$e(a,!1).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{}))),__VISIBLE__:$e(a).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{})))}})))})),ye=l((()=>{switch(c.value){case"single":return!u(K.value[P.value]);case"multiple":case"tags":return!u(K.value)&&K.value.length>0}})),_e=l((()=>void 0!==_&&void 0!==_.value?_.value(K.value,U):K.value&&K.value.length>1?`${K.value.length} options selected`:"1 option selected")),we=l((()=>!ve.value.length&&!ue.value&&!xe.value.length)),Oe=l((()=>ve.value.length>0&&0==he.value.length&&(Y.value&&I.value||!I.value))),xe=l((()=>!1!==pe.value&&Y.value?-1!==We(Y.value)?[]:[{[P.value]:Y.value,[Se.value[0]]:Y.value,[m.value]:Y.value,__CREATE__:!0}]:[])),Se=l((()=>p.value?Array.isArray(p.value)?p.value:[p.value]:[m.value])),Le=l((()=>{switch(c.value){case"single":return null;case"multiple":case"tags":return[]}})),Ee=l((()=>O.value||ue.value)),Te=e=>{switch("object"!=typeof e&&(e=Me(e)),c.value){case"single":Q(e);break;case"multiple":case"tags":Q(K.value.concat(e))}i.emit("select",Pe(e),e,U)},ke=e=>{switch("object"!=typeof e&&(e=Me(e)),c.value){case"single":Ae();break;case"tags":case"multiple":Q(Array.isArray(e)?K.value.filter((t=>-1===e.map((e=>e[P.value])).indexOf(t[P.value]))):K.value.filter((t=>t[P.value]!=e[P.value])))}i.emit("deselect",Pe(e),e,U)},Pe=e=>w.value?e:e[P.value],qe=e=>{ke(e)},Ae=()=>{Q(Le.value),i.emit("clear",U)},Ce=e=>{if(void 0!==e.group)return"single"!==c.value&&(Ve(e[W.value])&&e[W.value].length);switch(c.value){case"single":return!u(K.value)&&K.value[P.value]==e[P.value];case"tags":case"multiple":return!u(K.value)&&-1!==K.value.map((e=>e[P.value])).indexOf(e[P.value])}},Be=e=>!0===e[F.value],De=()=>!(void 0===B||-1===B.value||!ye.value&&B.value>0)&&K.value.length>=B.value,je=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,c.value){case"single":if(e&&Ce(e))return C.value&&ke(e),void(R.value&&(te(),ne()));e&&Re(e),k.value&&J(),j.value&&(te(),ne()),e&&Te(e);break;case"multiple":if(e&&Ce(e))return ke(e),void(R.value&&(te(),ne()));if(De())return void i.emit("max",U);e&&(Re(e),Te(e)),k.value&&J(),f.value&&te(),j.value&&ne();break;case"tags":if(e&&Ce(e))return ke(e),void(R.value&&(te(),ne()));if(De())return void i.emit("max",U);e&&Re(e),k.value&&J(),e&&Te(e),f.value&&te(),j.value&&ne()}j.value||ae()},Re=e=>{void 0===Me(e[P.value])&&pe.value&&(i.emit("tag",e[P.value],U),i.emit("option",e[P.value],U),i.emit("create",e[P.value],U),de.value&&He(e),J())},Ie=e=>void 0===e.find((e=>!Ce(e)&&!e[F.value])),Ve=e=>void 0===e.find((e=>!Ce(e))),Me=e=>ve.value[ve.value.map((e=>String(e[P.value]))).indexOf(String(e))],We=e=>ve.value.findIndex((t=>Se.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),He=e=>{ie.value.push(e)},Ne=e=>H.value?e.filter((e=>Y.value?e.__VISIBLE__.length:e[W.value].length)):e.filter((e=>!Y.value||e.__VISIBLE__.length)),$e=(e,t=!0)=>{let a=e;if(Y.value&&E.value){let e=G.value;e||(e=(e,t,a)=>Se.value.some((a=>{let l=v(re(e[a]),D.value);return z.value?l.startsWith(v(t,D.value)):-1!==l.indexOf(v(t,D.value))}))),a=a.filter((t=>e(t,Y.value,U)))}return f.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(c.value)&&f.value&&Ce(e))(e)))),a},Fe=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[P.value]:e,[Se.value[0]]:a,[m.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[P.value]:e,[Se.value[0]]:e,[m.value]:e})),t},ze=()=>{u(X.value)||(K.value=Ke(X.value))},Ge=e=>(ue.value=!0,new Promise(((t,a)=>{s.value(Y.value,U).then((t=>{oe.value=t||[],"function"==typeof e&&e(t),ue.value=!1})).catch((e=>{console.error(e),oe.value=[],ue.value=!1})).finally((()=>{t()}))}))),Ue=()=>{if(ye.value)if("single"===c.value){let e=Me(K.value[P.value]);if(void 0!==e){let t=e[m.value];K.value[m.value]=t,w.value&&(X.value[m.value]=t)}}else K.value.forEach(((e,t)=>{let a=Me(K.value[t][P.value]);if(void 0!==a){let e=a[m.value];K.value[t][m.value]=e,w.value&&(X.value[t][m.value]=e)}}))},Ke=e=>u(e)?"single"===c.value?{}:[]:w.value?e:"single"===c.value?Me(e)||(q.value?{[m.value]:e,[P.value]:e,[Se.value[0]]:e}:{}):e.filter((e=>!!Me(e)||q.value)).map((e=>Me(e)||{[m.value]:e,[P.value]:e,[Se.value[0]]:e})),Xe=()=>{se.value=n(Y,(e=>{e.length{e==Y.value&&s.value(Y.value,U).then((t=>{e!=Y.value&&Y.value||(oe.value=t,Z.value=he.value.filter((e=>!0!==e[F.value]))[0]||null,ue.value=!1)})).catch((e=>{console.error(e)}))}),x.value))}),{flush:"sync"})};if("single"!==c.value&&!u(X.value)&&!Array.isArray(X.value))throw new Error(`v-model must be an array when using "${c.value}" mode`);return s&&"function"==typeof s.value?S.value?Ge(ze):1==w.value&&ze():(oe.value=s.value,ze()),x.value>-1&&Xe(),n(x,((e,t)=>{se.value&&se.value(),e>=0&&Xe()})),n(X,(e=>{if(u(e))Q(Ke(e),!1);else switch(c.value){case"single":(w.value?e[P.value]!=K.value[P.value]:e!=K.value[P.value])&&Q(Ke(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(w.value?e.map((e=>e[P.value])):e,K.value.map((e=>e[P.value])))||Q(Ke(e),!1)}}),{deep:!0}),n(s,((e,t)=>{"function"==typeof r.options?S.value&&(!t||e&&e.toString()!==t.toString())&&Ge():(oe.value=r.options,Object.keys(K.value).length||ze(),Ue())})),n(m,Ue),n(d,((e,t)=>{ce.value=M.value&&-1===e?10:e})),{pfo:fe,fo:he,filteredOptions:he,hasSelected:ye,multipleLabelText:_e,eo:ve,extendedOptions:ve,eg:ge,extendedGroups:ge,fg:be,filteredGroups:be,noOptions:we,noResults:Oe,resolving:ue,busy:Ee,offset:ce,select:Te,deselect:ke,remove:qe,selectAll:()=>{"single"!==c.value&&Te(he.value.filter((e=>!e.disabled&&!Ce(e))))},clear:Ae,isSelected:Ce,isDisabled:Be,isMax:De,getOption:Me,handleOptionClick:e=>{if(!Be(e))return $&&$.value&&!Ce(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=$.value(e,U))instanceof Promise)?(ue.value=!0,void e.then((e=>{ue.value=!1,je(e)}))):void je(e)},handleGroupClick:e=>{if(!Be(e)&&"single"!==c.value&&N.value){switch(c.value){case"multiple":case"tags":Ie(e[W.value])?ke(e[W.value]):Te(e[W.value].filter((e=>-1===K.value.map((e=>e[P.value])).indexOf(e[P.value]))).filter((e=>!e[F.value])).filter(((e,t)=>K.value.length+1+t<=B.value||-1===B.value))),f.value&&Z.value&&ee(be.value.filter((e=>!e[F.value]))[Z.value.index])}j.value&&le()}},handleTagRemove:(e,t)=>{0===t.button?qe(e):t.preventDefault()},refreshOptions:e=>{Ge(e)},resolveOptions:Ge,refreshLabels:Ue}}function h(t,a,i){const{valueProp:o,showOptions:u,searchable:s,groupLabel:c,groups:p,mode:d,groupSelect:v,disabledProp:f,groupOptions:h}=e(t),g=i.fo,m=i.fg,b=i.handleOptionClick,y=i.handleGroupClick,_=i.search,w=i.pointer,O=i.setPointer,x=i.clearPointer,S=i.multiselect,L=i.isOpen,E=l((()=>g.value.filter((e=>!e[f.value])))),T=l((()=>m.value.filter((e=>!e[f.value])))),k=l((()=>"single"!==d.value&&v.value)),P=l((()=>w.value&&w.value.group)),q=l((()=>W(w.value))),A=l((()=>{const e=P.value?w.value:W(w.value),t=T.value.map((e=>e[c.value])).indexOf(e[c.value]);let a=T.value[t-1];return void 0===a&&(a=B.value),a})),C=l((()=>{let e=T.value.map((e=>e.label)).indexOf(P.value?w.value[c.value]:W(w.value)[c.value])+1;return T.value.length<=e&&(e=0),T.value[e]})),B=l((()=>[...T.value].slice(-1)[0])),D=l((()=>w.value.__VISIBLE__.filter((e=>!e[f.value]))[0])),j=l((()=>{const e=q.value.__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(w.value[o.value])-1]})),R=l((()=>{const e=W(w.value).__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(w.value[o.value])+1]})),I=l((()=>[...A.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),V=l((()=>[...B.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),M=()=>{O(E.value[0]||null)},W=e=>T.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[o.value])).indexOf(e[o.value]))),H=()=>{let e=S.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;p.value&&(t=P.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{s.value&&(e.length&&u.value?M():x())})),n(L,(e=>{if(e){let e=S.value.querySelectorAll("[data-selected]")[0];if(!e)return;let t=e.parentElement.parentElement;r((()=>{t.scrollTop>0||(t.scrollTop=e.offsetTop)}))}})),{pointer:w,canPointGroups:k,isPointed:e=>!(!w.value||!(!e.group&&w.value[o.value]===e[o.value]||void 0!==e.group&&w.value[c.value]===e[c.value]))||void 0,setPointerFirst:M,selectPointer:()=>{w.value&&!0!==w.value[f.value]&&(P.value?y(w.value):b(w.value))},forwardPointer:()=>{if(null===w.value)O((p.value&&k.value?T.value[0].__CREATE__?E.value[0]:T.value[0]:E.value[0])||null);else if(p.value&&k.value){let e=P.value?D.value:R.value;void 0===e&&(e=C.value,e.__CREATE__&&(e=e[h.value][0])),O(e||null)}else{let e=E.value.map((e=>e[o.value])).indexOf(w.value[o.value])+1;E.value.length<=e&&(e=0),O(E.value[e]||null)}r((()=>{H()}))},backwardPointer:()=>{if(null===w.value){let e=E.value[E.value.length-1];p.value&&k.value&&(e=V.value,void 0===e&&(e=B.value)),O(e||null)}else if(p.value&&k.value){let e=P.value?I.value:j.value;void 0===e&&(e=P.value?A.value:q.value,e.__CREATE__&&(e=I.value,void 0===e&&(e=A.value))),O(e||null)}else{let e=E.value.map((e=>e[o.value])).indexOf(w.value[o.value])-1;e<0&&(e=E.value.length-1),O(E.value[e]||null)}r((()=>{H()}))}}}function g(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof g(e).Element||e instanceof Element}function b(e){return e instanceof g(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof g(e).ShadowRoot||e instanceof ShadowRoot)}var _=Math.max,w=Math.min,O=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(x())}function L(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&b(e)&&(n=e.offsetWidth>0&&O(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&O(l.height)/e.offsetHeight||1);var i=(m(e)?g(e):window).visualViewport,o=!S()&&a,u=(l.left+(o&&i?i.offsetLeft:0))/n,s=(l.top+(o&&i?i.offsetTop:0))/r,c=l.width/n,p=l.height/r;return{width:c,height:p,top:s,right:u+c,bottom:s+p,left:u,x:u,y:s}}function E(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function T(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return L(k(e)).left+E(e).scrollLeft}function q(e){return g(e).getComputedStyle(e)}function A(e){var t=q(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function C(e,t,a){void 0===a&&(a=!1);var l,n,r=b(t),i=b(t)&&function(e){var t=e.getBoundingClientRect(),a=O(t.width)/e.offsetWidth||1,l=O(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=k(t),u=L(e,i,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!a)&&(("body"!==T(t)||A(o))&&(s=(l=t)!==g(l)&&b(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:E(l)),b(t)?((c=L(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=P(o))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function B(e){var t=L(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function D(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||k(e)}function j(e){return["html","body","#document"].indexOf(T(e))>=0?e.ownerDocument.body:b(e)&&A(e)?e:j(D(e))}function R(e,t){var a;void 0===t&&(t=[]);var l=j(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=g(l),i=n?[r].concat(r.visualViewport||[],A(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(R(D(i)))}function I(e){return["table","td","th"].indexOf(T(e))>=0}function V(e){return b(e)&&"fixed"!==q(e).position?e.offsetParent:null}function M(e){for(var t=g(e),a=V(e);a&&I(a)&&"static"===q(a).position;)a=V(a);return a&&("html"===T(a)||"body"===T(a)&&"static"===q(a).position)?t:a||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&b(e)&&"fixed"===q(e).position)return null;var a=D(e);for(y(a)&&(a=a.host);b(a)&&["html","body"].indexOf(T(a))<0;){var l=q(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var W="top",H="bottom",N="right",$="left",F="auto",z=[W,H,N,$],G="start",U="end",K="clippingParents",X="viewport",Y="popper",J="reference",Q=z.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+U])}),[]),Z=[].concat(z,[F]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+U])}),[]),ee=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function te(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function ae(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,a){return t===X?ae(function(e,t){var a=g(e),l=k(e),n=a.visualViewport,r=l.clientWidth,i=l.clientHeight,o=0,u=0;if(n){r=n.width,i=n.height;var s=S();(s||!s&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:r,height:i,x:o+P(e),y:u}}(e,a)):m(t)?function(e,t){var a=L(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):ae(function(e){var t,a=k(e),l=E(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=_(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=_(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+P(e),u=-l.scrollTop;return"rtl"===q(n||a).direction&&(o+=_(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:o,y:u}}(k(e)))}function ne(e){var t=R(D(e)),a=["absolute","fixed"].indexOf(q(e).position)>=0&&b(e)?M(e):e;return m(a)?t.filter((function(e){return m(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&y(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==T(e)})):[]}function re(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function oe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ue(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?re(n):null,i=n?ie(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case W:t={x:o,y:a.y-l.height};break;case H:t={x:o,y:a.y+a.height};break;case N:t={x:a.x+a.width,y:u};break;case $:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?oe(r):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case G:t[s]=t[s]-(a[c]/2-l[c]/2);break;case U:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function se(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,i=l.strategy,o=void 0===i?e.strategy:i,u=l.boundary,s=void 0===u?K:u,c=l.rootBoundary,p=void 0===c?X:c,d=l.elementContext,v=void 0===d?Y:d,f=l.altBoundary,h=void 0!==f&&f,g=l.padding,b=void 0===g?0:g,y=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof b?b:(a=b,z.reduce((function(e,t){return e[t]=a,e}),{}))),O=v===Y?J:Y,x=e.rects.popper,S=e.elements[h?O:v],E=function(e,t,a,l){var n="clippingParents"===t?ne(e):[].concat(t),r=[].concat(n,[a]),i=r[0],o=r.reduce((function(t,a){var n=le(e,a,l);return t.top=_(n.top,t.top),t.right=w(n.right,t.right),t.bottom=w(n.bottom,t.bottom),t.left=_(n.left,t.left),t}),le(e,i,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(m(S)?S:S.contextElement||k(e.elements.popper),s,p,o),T=L(e.elements.reference),P=ue({reference:T,element:x,strategy:"absolute",placement:r}),q=ae(Object.assign({},x,P)),A=v===Y?q:T,C={top:E.top-A.top+y.top,bottom:A.bottom-E.bottom+y.bottom,left:E.left-A.left+y.left,right:A.right-E.right+y.right},B=e.modifiersData.offset;if(v===Y&&B){var D=B[r];Object.keys(C).forEach((function(e){var t=[N,H].indexOf(e)>=0?1:-1,a=[W,H].indexOf(e)>=0?"y":"x";C[e]+=D[a]*t}))}return C}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function pe(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(we,fe,Oe):me(v?we:ge,fe,v?Oe:be);S[x]=xe,q[x]=xe-fe}t.modifiersData[l]=q}},requiresIfExists:["offset"]},ye={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(e){return e.replace(/left|right|bottom|top/g,(function(e){return ye[e]}))}var we={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,(function(e){return we[e]}))}function xe(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,i=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?Z:u,c=ie(l),p=c?o?Q:Q.filter((function(e){return ie(e)===c})):z,d=p.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=p);var v=d.reduce((function(t,a){return t[a]=se(e,{placement:a,boundary:n,rootBoundary:r,padding:i})[re(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var Se={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,i=a.altAxis,o=void 0===i||i,u=a.fallbackPlacements,s=a.padding,c=a.boundary,p=a.rootBoundary,d=a.altBoundary,v=a.flipVariations,f=void 0===v||v,h=a.allowedAutoPlacements,g=t.options.placement,m=re(g),b=u||(m===g||!f?[_e(g)]:function(e){if(re(e)===F)return[];var t=_e(e);return[Oe(e),t,Oe(t)]}(g)),y=[g].concat(b).reduce((function(e,a){return e.concat(re(a)===F?xe(t,{placement:a,boundary:c,rootBoundary:p,padding:s,flipVariations:f,allowedAutoPlacements:h}):a)}),[]),_=t.rects.reference,w=t.rects.popper,O=new Map,x=!0,S=y[0],L=0;L=0,q=P?"width":"height",A=se(t,{placement:E,boundary:c,rootBoundary:p,altBoundary:d,padding:s}),C=P?k?N:$:k?H:W;_[q]>w[q]&&(C=_e(C));var B=_e(C),D=[];if(r&&D.push(A[T]<=0),o&&D.push(A[C]<=0,A[B]<=0),D.every((function(e){return e}))){S=E,x=!1;break}O.set(E,D)}if(x)for(var j=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},R=f?3:1;R>0;R--){if("break"===j(R))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Le(n,u,s){const{disabled:c,appendTo:p,appendToBody:d,openDirection:v}=e(n),f=t().proxy,h=s.multiselect,g=s.dropdown,m=a(!1),b=a(null),y=a(null),_=l((()=>p.value||d.value)),w=l((()=>"top"===v.value&&"bottom"===y.value||"bottom"===v.value&&"top"!==y.value?"bottom":"top")),O=()=>{if(!b.value)return;let e=parseInt(window.getComputedStyle(g.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(g.value).borderBottomWidth.replace("px",""));b.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===w.value?e:t)]}}]}))),b.value.update()},x=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return i((()=>{_.value&&(b.value=ge(h.value,g.value,{strategy:x(h.value)?"fixed":void 0,placement:v.value,modifiers:[be,Se,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){y.value=e.placement}}]}))})),o((()=>{_.value&&b.value&&(b.value.destroy(),b.value=null)})),{popper:b,isOpen:m,open:()=>{m.value||c.value||(m.value=!0,u.emit("open",f),_.value&&r((()=>{O()})))},close:()=>{m.value&&(m.value=!1,u.emit("close",f))},placement:w,updatePopper:O}}function Ee(t,n,r){const{searchable:i,disabled:o,clearOnBlur:u}=e(t),s=r.input,c=r.open,p=r.close,d=r.clearSearch,v=r.isOpen,f=r.wrapper,h=r.tags,g=a(!1),m=a(!1),b=l((()=>i.value||o.value?-1:0)),y=()=>{i.value&&s.value.blur(),f.value.blur()},_=(e=!0)=>{o.value||(g.value=!0,e&&c())},w=()=>{g.value=!1,setTimeout((()=>{g.value||(p(),u.value&&d())}),1)};return{tabindex:b,isActive:g,mouseClicked:m,blur:y,focus:()=>{i.value&&!o.value&&s.value.focus()},activate:_,deactivate:w,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||_(m.value)},handleFocusOut:()=>{w()},handleCaretClick:()=>{w(),y()},handleMousedown:e=>{m.value=!0,v.value&&(e.target.isEqualNode(f.value)||e.target.isEqualNode(h.value))?setTimeout((()=>{w()}),0):v.value||!document.activeElement.isEqualNode(f.value)&&!document.activeElement.isEqualNode(s.value)||_(),setTimeout((()=>{m.value=!1}),0)}}}function Te(a,n,r){const{mode:i,addTagOn:o,openDirection:u,searchable:s,showOptions:c,valueProp:p,groups:d,addOptionOn:v,createTag:f,createOption:h,reverse:g}=e(a),m=t().proxy,b=r.iv,y=r.update,_=r.deselect,w=r.search,O=r.setPointer,x=r.selectPointer,S=r.backwardPointer,L=r.forwardPointer,E=r.multiselect,T=r.wrapper,k=r.tags,P=r.isOpen,q=r.open,A=r.blur,C=r.fo,B=l((()=>f.value||h.value||!1)),D=l((()=>void 0!==o.value?o.value:void 0!==v.value?v.value:["enter"])),j=()=>{"tags"===i.value&&!c.value&&B.value&&s.value&&!d.value&&O(C.value[C.value.map((e=>e[p.value])).indexOf(w.value)])};return{handleKeydown:e=>{let t,a;switch(n.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===i.value&&(t=[...E.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==k.value)),a=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===i.value)return;if(s.value&&-1===[null,""].indexOf(w.value))return;if(0===b.value.length)return;let l=b.value.filter((e=>!e.disabled&&!1!==e.remove));l.length&&_(l[l.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==a&&void 0!==a)return y([...b.value].filter(((e,t)=>t!==a))),void(a===t.length-1&&(t.length-1?t[t.length-2].focus():s.value?k.value.querySelector("input").focus():T.value.focus()));if(-1===D.value.indexOf("enter")&&B.value)return;j(),x();break;case" ":if(!B.value&&!s.value)return e.preventDefault(),j(),void x();if(!B.value)return!1;if(-1===D.value.indexOf("space")&&B.value)return;e.preventDefault(),j(),x();break;case"Tab":case";":case",":if(-1===D.value.indexOf(e.key.toLowerCase())||!B.value)return;j(),x(),e.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(e.preventDefault(),!c.value)return;P.value||q(),S();break;case"ArrowDown":if(e.preventDefault(),!c.value)return;P.value||q(),L();break;case"ArrowLeft":if(s.value&&k.value&&k.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==i.value||!b.value||!b.value.length)return;e.preventDefault(),-1===a?t[t.length-1].focus():a>0&&t[a-1].focus();break;case"ArrowRight":if(-1===a||e.shiftKey||"tags"!==i.value||!b.value||!b.value.length)return;e.preventDefault(),t.length>a+1?t[a+1].focus():s.value?k.value.querySelector("input").focus():s.value||T.value.focus()}},handleKeyup:e=>{n.emit("keyup",e,m)},preparePointer:j}}function ke(t,a,n){const{classes:r,disabled:i,showOptions:o,breakTags:u}=e(t),s=n.isOpen,c=n.isPointed,p=n.isSelected,d=n.isDisabled,v=n.isActive,f=n.canPointGroups,h=n.resolving,g=n.fo,m=n.placement,b=l((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value}))),y=l((()=>!!(s.value&&o.value&&(!h.value||h.value&&g.value.length))));return{classList:l((()=>{const e=b.value;return{container:[e.container].concat(i.value?e.containerDisabled:[]).concat(y.value&&"top"===m.value?e.containerOpenTop:[]).concat(y.value&&"top"!==m.value?e.containerOpen:[]).concat(v.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(i.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,u.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(s.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===m.value?e.dropdownTop:[]).concat(s.value&&o.value&&y.value?[]:e.dropdownHidden),options:[e.options].concat("top"===m.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return c(t)?a.push(p(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):p(t)&&f.value?a.push(d(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):d(t)&&a.push(e.groupLabelDisabled),f.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return c(t)?l.push(p(t)?e.optionSelectedPointed:e.optionPointed):p(t)?l.push(d(t)?e.optionSelectedDisabled:e.optionSelected):(d(t)||a&&d(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:y}}function Pe(t,o,u){const{limit:s,infinite:c}=e(t),p=u.isOpen,d=u.offset,v=u.search,f=u.pfo,h=u.eo,g=a(null),m=a(null),b=l((()=>d.value{const{isIntersecting:t,target:a}=e[0];if(t){const e=a.offsetParent,t=e.scrollTop;d.value+=-1==s.value?10:s.value,r((()=>{e.scrollTop=t}))}},_=()=>{p.value&&d.value{c.value&&_()})),n(v,(()=>{c.value&&(d.value=s.value,_())}),{flush:"post"}),n(h,(()=>{c.value&&_()}),{immediate:!1,flush:"post"}),i((()=>{window&&window.IntersectionObserver&&(g.value=new IntersectionObserver(y))})),{hasMore:b,infiniteLoader:m}}function qe(t,n,r){const{placeholder:o,id:u,valueProp:s,label:c,mode:p,groupLabel:d,aria:v,searchable:f}=e(t),h=r.pointer,g=r.iv,m=r.hasSelected,b=r.multipleLabelText,y=a(null),_=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("assist"),e.join("-")})),w=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("multiselect-options"),e.join("-")})),O=l((()=>{let e=[];if(u&&u.value&&e.push(u.value),h.value)return e.push(h.value.group?"multiselect-group":"multiselect-option"),e.push(h.value.group?h.value.index:h.value[s.value]),e.join("-")})),x=l((()=>o.value)),S=l((()=>"single"!==p.value)),L=l((()=>{let e="";return"single"===p.value&&m.value&&(e+=g.value[c.value]),"multiple"===p.value&&m.value&&(e+=b.value),"tags"===p.value&&m.value&&(e+=g.value.map((e=>e[c.value])).join(", ")),e})),E=l((()=>{let e={...v.value};return f.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${_.value} ${e["aria-labelledby"]}`:_.value,L.value&&e["aria-label"]&&(e["aria-label"]=`${L.value}, ${e["aria-label"]}`)),e}));return i((()=>{if(u&&u.value&&document&&document.querySelector){let e=document.querySelector(`[for="${u.value}"]`);y.value=e?e.innerText:null}})),{arias:E,ariaLabel:L,ariaAssist:_,ariaControls:w,ariaPlaceholder:x,ariaMultiselectable:S,ariaActiveDescendant:O,ariaOptionId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-option"),t.push(e[s.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Ae(t,a,l){const{locale:n,fallbackLocale:r}=e(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Ce(e,t,l){return{multiselect:a(null),wrapper:a(null),tags:a(null),input:a(null),dropdown:a(null)}}function Be(e,t,a,l,n,r,i,o,u,s){"boolean"!=typeof i&&(u=o,o=i,i=!1);const c="function"==typeof a?a.options:a;let p;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),l&&(c._scopeId=l),r?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=p):t&&(p=i?function(e){t.call(this,s(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),p)if(c.functional){const e=c.render;c.render=function(t,a){return p.call(a),e(t,a)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,p):[p]}return a}const De={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Ce,Ae,c,d,Le,p,s,Ee,f,Pe,h,Te,ke,qe]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};var je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"multiselect",class:e.classList.container,attrs:{id:e.searchable?void 0:e.id,dir:e.rtl?"rtl":void 0},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut,keyup:e.handleKeyup,keydown:e.handleKeydown}},[a("div",e._b({ref:"wrapper",class:e.classList.wrapper,attrs:{tabindex:e.tabindex,"aria-controls":e.searchable?void 0:e.ariaControls,"aria-placeholder":e.searchable?void 0:e.ariaPlaceholder,"aria-expanded":e.searchable?void 0:e.isOpen,"aria-activedescendant":e.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":e.searchable?void 0:e.ariaMultiselectable,role:e.searchable?void 0:"combobox"},on:{mousedown:e.handleMousedown}},"div",e.searchable?{}:e.arias,!1),["tags"!==e.mode&&e.searchable&&!e.disabled?[a("input",e._b({ref:"input",class:e.classList.search,attrs:{type:e.inputType,modelValue:e.search,autocomplete:e.autocomplete,id:e.searchable?e.id:void 0,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1))]:e._e(),e._v(" "),"tags"==e.mode?[a("div",{class:e.classList.tags,attrs:{"data-tags":""}},[e._l(e.iv,(function(t,l,n){return e._t("tag",(function(){return[a("span",{key:n,class:[e.classList.tag,t.disabled?e.classList.tagDisabled:null],attrs:{tabindex:"-1","aria-label":e.ariaTagLabel(e.localize(t[e.label]))},on:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagWrapper},[e._v(e._s(e.localize(t[e.label])))]),e._v(" "),e.disabled||t.disabled?e._e():a("span",{class:e.classList.tagRemove,on:{click:function(a){return a.stopPropagation(),e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagRemoveIcon})])])]}),{option:t,handleTagRemove:e.handleTagRemove,disabled:e.disabled})})),e._v(" "),a("div",{ref:"tags",class:e.classList.tagsSearchWrapper},[a("span",{class:e.classList.tagsSearchCopy},[e._v(e._s(e.search))]),e._v(" "),e.searchable&&!e.disabled?a("input",e._b({ref:"input",class:e.classList.tagsSearch,attrs:{type:e.inputType,modelValue:e.search,id:e.searchable?e.id:void 0,autocomplete:e.autocomplete,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1)):e._e()])],2)]:e._e(),e._v(" "),"single"==e.mode&&e.hasSelected&&!e.search&&e.iv?[e._t("singlelabel",(function(){return[a("div",{class:e.classList.singleLabel},[a("span",{class:e.classList.singleLabelText},[e._v(e._s(e.localize(e.iv[e.label])))])])]}),{value:e.iv})]:e._e(),e._v(" "),"multiple"==e.mode&&e.hasSelected&&!e.search?[e._t("multiplelabel",(function(){return[a("div",{class:e.classList.multipleLabel,domProps:{innerHTML:e._s(e.multipleLabelText)}})]}),{values:e.iv})]:e._e(),e._v(" "),!e.placeholder||e.hasSelected||e.search?e._e():[e._t("placeholder",(function(){return[a("div",{class:e.classList.placeholder,attrs:{"aria-hidden":"true"}},[e._v("\n "+e._s(e.placeholder)+"\n ")])]}))],e._v(" "),e.loading||e.resolving?e._t("spinner",(function(){return[a("span",{class:e.classList.spinner,attrs:{"aria-hidden":"true"}})]})):e._e(),e._v(" "),e.hasSelected&&!e.disabled&&e.canClear&&!e.busy?e._t("clear",(function(){return[a("span",{class:e.classList.clear,attrs:{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎"},on:{click:e.clear,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clear.apply(null,arguments)}}},[a("span",{class:e.classList.clearIcon})])]}),{clear:e.clear}):e._e(),e._v(" "),e.caret&&e.showOptions?e._t("caret",(function(){return[a("span",{class:e.classList.caret,attrs:{"aria-hidden":"true"},on:{click:e.handleCaretClick}})]}),{handleCaretClick:e.handleCaretClick,isOpen:e.isOpen}):e._e()],2),e._v(" "),a("Teleport",{attrs:{to:e.appendTo||"body",disabled:!e.appendToBody&&!e.appendTo}},[a("div",{ref:"dropdown",class:e.classList.dropdown,attrs:{id:e.id+"-dropdown",tabindex:"-1"}},[e._t("beforelist",null,{options:e.fo}),e._v(" "),a("ul",{class:e.classList.options,attrs:{id:e.ariaControls,role:"listbox"}},[e.groups?e._l(e.fg,(function(t,l,n){return a("li",{key:n,class:e.classList.group,attrs:{id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),"aria-selected":e.isSelected(t),role:"option"}},[t.__CREATE__?e._e():a("div",{class:e.classList.groupLabel(t),attrs:{"data-pointed":e.isPointed(t)},on:{mouseenter:function(a){return e.setPointer(t,l)},mousedown:function(a){return a.preventDefault(),e.handleGroupClick(t)}}},[e._t("grouplabel",(function(){return[a("span",{domProps:{innerHTML:e._s(e.localize(t[e.groupLabel]))}})]}),{group:t,isSelected:e.isSelected,isPointed:e.isPointed})],2),e._v(" "),a("ul",{class:e.classList.groupOptions,attrs:{"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),role:"group"}},e._l(t.__VISIBLE__,(function(l,n,r){return a("li",{key:r,class:e.classList.option(l,t),attrs:{"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[e.label])),role:"option"},on:{mouseenter:function(t){return e.setPointer(l)},mousedown:function(t){return t.preventDefault(),e.handleOptionClick(l)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(l[e.label])))])]}),{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)})),0)])})):e._l(e.fo,(function(t,l,n){return a("li",{key:n,class:e.classList.option(t),attrs:{"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[e.label])),role:"option"},on:{mouseenter:function(a){return e.setPointer(t)},mousedown:function(a){return a.preventDefault(),e.handleOptionClick(t)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(t[e.label])))])]}),{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)}))],2),e._v(" "),e.noOptions?e._t("nooptions",(function(){return[a("div",{class:e.classList.noOptions,domProps:{innerHTML:e._s(e.localize(e.noOptionsText))}})]})):e._e(),e._v(" "),e.noResults?e._t("noresults",(function(){return[a("div",{class:e.classList.noResults,domProps:{innerHTML:e._s(e.localize(e.noResultsText))}})]})):e._e(),e._v(" "),e.infinite&&e.hasMore?a("div",{ref:"infiniteLoader",class:e.classList.inifinite},[e._t("infinite",(function(){return[a("span",{class:e.classList.inifiniteSpinner})]}))],2):e._e(),e._v(" "),e._t("afterlist",null,{options:e.fo})],2)]),e._v(" "),e.required?a("input",{class:e.classList.fakeInput,attrs:{tabindex:"-1",required:""},domProps:{value:e.textValue}}):e._e(),e._v(" "),e.nativeSupport?["single"==e.mode?a("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0!==e.plainValue?e.plainValue:""}}):e._l(e.plainValue,(function(t,l){return a("input",{key:l,attrs:{type:"hidden",name:e.name+"[]"},domProps:{value:t}})}))]:e._e(),e._v(" "),e.searchable&&e.hasSelected?a("div",{class:e.classList.assist,attrs:{id:e.ariaAssist,"aria-hidden":"true"}},[e._v("\n "+e._s(e.ariaLabel)+"\n ")]):e._e(),e._v(" "),a("div",{class:e.classList.spacer})],2)};je._withStripped=!0;const Re=Be({render:je,staticRenderFns:[]},undefined,De,undefined,false,undefined,!1,void 0,void 0,void 0);export{Re as default}; +import{toRefs as e,getCurrentInstance as t,ref as a,computed as l,watch as n,nextTick as r,onMounted as i,onBeforeUnmount as o}from"vue";function u(e){return-1!==[null,void 0].indexOf(e)}function s(a,l,n){const{object:r,valueProp:i,mode:o}=e(a),s=t().proxy,c=n.iv,p=e=>r.value||u(e)?e:Array.isArray(e)?e.map((e=>e[i.value])):e[i.value],d=e=>u(e)?"single"===o.value?{}:[]:e;return{update:(e,t=!0)=>{c.value=d(e);const a=p(e);l.emit("change",a,s),t&&(l.emit("input",a),l.emit("update:modelValue",a))}}}function c(t,n){const{value:r,modelValue:i,mode:o,valueProp:u}=e(t),s=a("single"!==o.value?[]:{}),c=l((()=>i&&void 0!==i.value?i.value:r.value)),p=l((()=>"single"===o.value?s.value[u.value]:s.value.map((e=>e[u.value])))),d=l((()=>"single"!==o.value?s.value.map((e=>e[u.value])).join(","):s.value[u.value]));return{iv:s,internalValue:s,ev:c,externalValue:c,textValue:d,plainValue:p}}function p(l,r,i){const{regex:o}=e(l),u=t().proxy,s=i.isOpen,c=i.open,p=a(null);return n(p,(e=>{!s.value&&e&&c(),r.emit("search-change",e,u)})),{search:p,clearSearch:()=>{p.value=""},handleSearchInput:e=>{p.value=e.target.value},handleKeypress:e=>{if(o&&o.value){let t=o.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(o&&o.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=o.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every((e=>!!e.match(a)))||e.preventDefault()}r.emit("paste",e,u)}}}function d(t,l,n){const{groupSelect:r,mode:i,groups:o,disabledProp:u}=e(t),s=a(null),c=e=>{void 0===e||null!==e&&e[u.value]||o.value&&e&&e.group&&("single"===i.value||!r.value)||(s.value=e)};return{pointer:s,setPointer:c,clearPointer:()=>{c(null)}}}function v(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function f(r,i,o){const{options:s,mode:c,trackBy:p,limit:d,hideSelected:f,createTag:h,createOption:g,label:m,appendNewTag:b,appendNewOption:y,multipleLabel:_,object:w,loading:O,delay:x,resolveOnLoad:S,minChars:L,filterResults:E,clearOnSearch:T,clearOnSelect:k,valueProp:P,allowAbsent:q,groupLabel:A,canDeselect:C,max:B,strict:D,closeOnSelect:j,closeOnDeselect:R,groups:I,reverse:V,infinite:M,groupOptions:W,groupHideEmpty:H,groupSelect:N,onCreate:$,disabledProp:F,searchStart:z,searchFilter:G}=e(r),U=t().proxy,K=o.iv,X=o.ev,Y=o.search,J=o.clearSearch,Q=o.update,Z=o.pointer,ee=o.setPointer,te=o.clearPointer,ae=o.focus,le=o.deactivate,ne=o.close,re=o.localize,ie=a([]),oe=a([]),ue=a(!1),se=a(null),ce=a(M.value&&-1===d.value?10:d.value),pe=l((()=>h.value||g.value||!1)),de=l((()=>void 0!==b.value?b.value:void 0===y.value||y.value)),ve=l((()=>{if(I.value){let e=ge.value||[],t=[];return e.forEach((e=>{Fe(e[W.value]).forEach((a=>{t.push(Object.assign({},a,e[F.value]?{[F.value]:!0}:{}))}))})),t}{let e=Fe(oe.value||[]);return ie.value.length&&(e=e.concat(ie.value)),e}})),fe=l((()=>{let e=ve.value;return V.value&&(e=e.reverse()),xe.value.length&&(e=xe.value.concat(e)),$e(e)})),he=l((()=>{let e=fe.value;return ce.value>0&&(e=e.slice(0,ce.value)),e})),ge=l((()=>{if(!I.value)return[];let e=[],t=oe.value||[];return ie.value.length&&e.push({[A.value]:" ",[W.value]:[...ie.value],__CREATE__:!0}),e.concat(t)})),me=l((()=>{let e=[...ge.value].map((e=>({...e})));return xe.value.length&&(e[0]&&e[0].__CREATE__?e[0][W.value]=[...xe.value,...e[0][W.value]]:e=[{[A.value]:" ",[W.value]:[...xe.value],__CREATE__:!0}].concat(e)),e})),be=l((()=>{if(!I.value)return[];let e=me.value;return Ne((e||[]).map(((e,t)=>{const a=Fe(e[W.value]);return{...e,index:t,group:!0,[W.value]:$e(a,!1).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{}))),__VISIBLE__:$e(a).map((t=>Object.assign({},t,e[F.value]?{[F.value]:!0}:{})))}})))})),ye=l((()=>{switch(c.value){case"single":return!u(K.value[P.value]);case"multiple":case"tags":return!u(K.value)&&K.value.length>0}})),_e=l((()=>void 0!==_&&void 0!==_.value?_.value(K.value,U):K.value&&K.value.length>1?`${K.value.length} options selected`:"1 option selected")),we=l((()=>!ve.value.length&&!ue.value&&!xe.value.length)),Oe=l((()=>ve.value.length>0&&0==he.value.length&&(Y.value&&I.value||!I.value))),xe=l((()=>!1!==pe.value&&Y.value?-1!==We(Y.value)?[]:[{[P.value]:Y.value,[Se.value[0]]:Y.value,[m.value]:Y.value,__CREATE__:!0}]:[])),Se=l((()=>p.value?Array.isArray(p.value)?p.value:[p.value]:[m.value])),Le=l((()=>{switch(c.value){case"single":return null;case"multiple":case"tags":return[]}})),Ee=l((()=>O.value||ue.value)),Te=e=>{switch("object"!=typeof e&&(e=Me(e)),c.value){case"single":Q(e);break;case"multiple":case"tags":Q(K.value.concat(e))}i.emit("select",Pe(e),e,U)},ke=e=>{switch("object"!=typeof e&&(e=Me(e)),c.value){case"single":Ae();break;case"tags":case"multiple":Q(Array.isArray(e)?K.value.filter((t=>-1===e.map((e=>e[P.value])).indexOf(t[P.value]))):K.value.filter((t=>t[P.value]!=e[P.value])))}i.emit("deselect",Pe(e),e,U)},Pe=e=>w.value?e:e[P.value],qe=e=>{ke(e)},Ae=()=>{Q(Le.value),i.emit("clear",U)},Ce=e=>{if(void 0!==e.group)return"single"!==c.value&&(Ve(e[W.value])&&e[W.value].length);switch(c.value){case"single":return!u(K.value)&&K.value[P.value]==e[P.value];case"tags":case"multiple":return!u(K.value)&&-1!==K.value.map((e=>e[P.value])).indexOf(e[P.value])}},Be=e=>!0===e[F.value],De=()=>!(void 0===B||-1===B.value||!ye.value&&B.value>0)&&K.value.length>=B.value,je=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,c.value){case"single":if(e&&Ce(e))return C.value&&ke(e),void(R.value&&(te(),ne()));e&&Re(e),k.value&&J(),j.value&&(te(),ne()),e&&Te(e);break;case"multiple":if(e&&Ce(e))return ke(e),void(R.value&&(te(),ne()));if(De())return void i.emit("max",U);e&&(Re(e),Te(e)),k.value&&J(),f.value&&te(),j.value&&ne();break;case"tags":if(e&&Ce(e))return ke(e),void(R.value&&(te(),ne()));if(De())return void i.emit("max",U);e&&Re(e),k.value&&J(),e&&Te(e),f.value&&te(),j.value&&ne()}j.value||ae()},Re=e=>{void 0===Me(e[P.value])&&pe.value&&(i.emit("tag",e[P.value],U),i.emit("option",e[P.value],U),i.emit("create",e[P.value],U),de.value&&He(e),J())},Ie=e=>void 0===e.find((e=>!Ce(e)&&!e[F.value])),Ve=e=>void 0===e.find((e=>!Ce(e))),Me=e=>ve.value[ve.value.map((e=>String(e[P.value]))).indexOf(String(e))],We=e=>ve.value.findIndex((t=>Se.value.some((a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))))),He=e=>{ie.value.push(e)},Ne=e=>H.value?e.filter((e=>Y.value?e.__VISIBLE__.length:e[W.value].length)):e.filter((e=>!Y.value||e.__VISIBLE__.length)),$e=(e,t=!0)=>{let a=e;if(Y.value&&E.value){let e=G.value;e||(e=(e,t,a)=>Se.value.some((a=>{let l=v(re(e[a]),D.value);return z.value?l.startsWith(v(t,D.value)):-1!==l.indexOf(v(t,D.value))}))),a=a.filter((t=>e(t,Y.value,U)))}return f.value&&t&&(a=a.filter((e=>!(e=>-1!==["tags","multiple"].indexOf(c.value)&&f.value&&Ce(e))(e)))),a},Fe=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map((e=>{let a=t[e];return{[P.value]:e,[Se.value[0]]:a,[m.value]:a}}))),t=t.map((e=>"object"==typeof e?e:{[P.value]:e,[Se.value[0]]:e,[m.value]:e})),t},ze=()=>{u(X.value)||(K.value=Ke(X.value))},Ge=e=>(ue.value=!0,new Promise(((t,a)=>{s.value(Y.value,U).then((t=>{oe.value=t||[],"function"==typeof e&&e(t),ue.value=!1})).catch((e=>{console.error(e),oe.value=[],ue.value=!1})).finally((()=>{t()}))}))),Ue=()=>{if(ye.value)if("single"===c.value){let e=Me(K.value[P.value]);if(void 0!==e){let t=e[m.value];K.value[m.value]=t,w.value&&(X.value[m.value]=t)}}else K.value.forEach(((e,t)=>{let a=Me(K.value[t][P.value]);if(void 0!==a){let e=a[m.value];K.value[t][m.value]=e,w.value&&(X.value[t][m.value]=e)}}))},Ke=e=>u(e)?"single"===c.value?{}:[]:w.value?e:"single"===c.value?Me(e)||(q.value?{[m.value]:e,[P.value]:e,[Se.value[0]]:e}:{}):e.filter((e=>!!Me(e)||q.value)).map((e=>Me(e)||{[m.value]:e,[P.value]:e,[Se.value[0]]:e})),Xe=()=>{se.value=n(Y,(e=>{e.length{e==Y.value&&s.value(Y.value,U).then((t=>{e!=Y.value&&Y.value||(oe.value=t,Z.value=he.value.filter((e=>!0!==e[F.value]))[0]||null,ue.value=!1)})).catch((e=>{console.error(e)}))}),x.value))}),{flush:"sync"})};if("single"!==c.value&&!u(X.value)&&!Array.isArray(X.value))throw new Error(`v-model must be an array when using "${c.value}" mode`);return s&&"function"==typeof s.value?S.value?Ge(ze):1==w.value&&ze():(oe.value=s.value,ze()),x.value>-1&&Xe(),n(x,((e,t)=>{se.value&&se.value(),e>=0&&Xe()})),n(X,(e=>{if(u(e))Q(Ke(e),!1);else switch(c.value){case"single":(w.value?e[P.value]!=K.value[P.value]:e!=K.value[P.value])&&Q(Ke(e),!1);break;case"multiple":case"tags":(function(e,t){const a=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===a[t]}))})(w.value?e.map((e=>e[P.value])):e,K.value.map((e=>e[P.value])))||Q(Ke(e),!1)}}),{deep:!0}),n(s,((e,t)=>{"function"==typeof r.options?S.value&&(!t||e&&e.toString()!==t.toString())&&Ge():(oe.value=r.options,Object.keys(K.value).length||ze(),Ue())})),n(m,Ue),n(d,((e,t)=>{ce.value=M.value&&-1===e?10:e})),{pfo:fe,fo:he,filteredOptions:he,hasSelected:ye,multipleLabelText:_e,eo:ve,extendedOptions:ve,eg:ge,extendedGroups:ge,fg:be,filteredGroups:be,noOptions:we,noResults:Oe,resolving:ue,busy:Ee,offset:ce,select:Te,deselect:ke,remove:qe,selectAll:()=>{"single"!==c.value&&Te(he.value.filter((e=>!e.disabled&&!Ce(e))))},clear:Ae,isSelected:Ce,isDisabled:Be,isMax:De,getOption:Me,handleOptionClick:e=>{if(!Be(e))return $&&$.value&&!Ce(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=$.value(e,U))instanceof Promise)?(ue.value=!0,void e.then((e=>{ue.value=!1,je(e)}))):void je(e)},handleGroupClick:e=>{if(!Be(e)&&"single"!==c.value&&N.value){switch(c.value){case"multiple":case"tags":Ie(e[W.value])?ke(e[W.value]):Te(e[W.value].filter((e=>-1===K.value.map((e=>e[P.value])).indexOf(e[P.value]))).filter((e=>!e[F.value])).filter(((e,t)=>K.value.length+1+t<=B.value||-1===B.value))),f.value&&Z.value&&ee(be.value.filter((e=>!e[F.value]))[Z.value.index])}j.value&&le()}},handleTagRemove:(e,t)=>{0===t.button?qe(e):t.preventDefault()},refreshOptions:e=>{Ge(e)},resolveOptions:Ge,refreshLabels:Ue}}function h(t,a,i){const{valueProp:o,showOptions:u,searchable:s,groupLabel:c,groups:p,mode:d,groupSelect:v,disabledProp:f,groupOptions:h}=e(t),g=i.fo,m=i.fg,b=i.handleOptionClick,y=i.handleGroupClick,_=i.search,w=i.pointer,O=i.setPointer,x=i.clearPointer,S=i.multiselect,L=i.isOpen,E=l((()=>g.value.filter((e=>!e[f.value])))),T=l((()=>m.value.filter((e=>!e[f.value])))),k=l((()=>"single"!==d.value&&v.value)),P=l((()=>w.value&&w.value.group)),q=l((()=>W(w.value))),A=l((()=>{const e=P.value?w.value:W(w.value),t=T.value.map((e=>e[c.value])).indexOf(e[c.value]);let a=T.value[t-1];return void 0===a&&(a=B.value),a})),C=l((()=>{let e=T.value.map((e=>e.label)).indexOf(P.value?w.value[c.value]:W(w.value)[c.value])+1;return T.value.length<=e&&(e=0),T.value[e]})),B=l((()=>[...T.value].slice(-1)[0])),D=l((()=>w.value.__VISIBLE__.filter((e=>!e[f.value]))[0])),j=l((()=>{const e=q.value.__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(w.value[o.value])-1]})),R=l((()=>{const e=W(w.value).__VISIBLE__.filter((e=>!e[f.value]));return e[e.map((e=>e[o.value])).indexOf(w.value[o.value])+1]})),I=l((()=>[...A.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),V=l((()=>[...B.value.__VISIBLE__.filter((e=>!e[f.value]))].slice(-1)[0])),M=()=>{O(E.value[0]||null)},W=e=>T.value.find((t=>-1!==t.__VISIBLE__.map((e=>e[o.value])).indexOf(e[o.value]))),H=()=>{let e=S.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;p.value&&(t=P.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop{s.value&&(e.length&&u.value?M():x())})),n(L,(e=>{if(e&&S?.value){let e=S.value.querySelectorAll("[data-selected]")[0];if(!e)return;let t=e.parentElement.parentElement;r((()=>{t.scrollTop>0||(t.scrollTop=e.offsetTop)}))}})),{pointer:w,canPointGroups:k,isPointed:e=>!(!w.value||!(!e.group&&w.value[o.value]===e[o.value]||void 0!==e.group&&w.value[c.value]===e[c.value]))||void 0,setPointerFirst:M,selectPointer:()=>{w.value&&!0!==w.value[f.value]&&(P.value?y(w.value):b(w.value))},forwardPointer:()=>{if(null===w.value)O((p.value&&k.value?T.value[0].__CREATE__?E.value[0]:T.value[0]:E.value[0])||null);else if(p.value&&k.value){let e=P.value?D.value:R.value;void 0===e&&(e=C.value,e.__CREATE__&&(e=e[h.value][0])),O(e||null)}else{let e=E.value.map((e=>e[o.value])).indexOf(w.value[o.value])+1;E.value.length<=e&&(e=0),O(E.value[e]||null)}r((()=>{H()}))},backwardPointer:()=>{if(null===w.value){let e=E.value[E.value.length-1];p.value&&k.value&&(e=V.value,void 0===e&&(e=B.value)),O(e||null)}else if(p.value&&k.value){let e=P.value?I.value:j.value;void 0===e&&(e=P.value?A.value:q.value,e.__CREATE__&&(e=I.value,void 0===e&&(e=A.value))),O(e||null)}else{let e=E.value.map((e=>e[o.value])).indexOf(w.value[o.value])-1;e<0&&(e=E.value.length-1),O(E.value[e]||null)}r((()=>{H()}))}}}function g(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof g(e).Element||e instanceof Element}function b(e){return e instanceof g(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof g(e).ShadowRoot||e instanceof ShadowRoot)}var _=Math.max,w=Math.min,O=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(x())}function L(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var l=e.getBoundingClientRect(),n=1,r=1;t&&b(e)&&(n=e.offsetWidth>0&&O(l.width)/e.offsetWidth||1,r=e.offsetHeight>0&&O(l.height)/e.offsetHeight||1);var i=(m(e)?g(e):window).visualViewport,o=!S()&&a,u=(l.left+(o&&i?i.offsetLeft:0))/n,s=(l.top+(o&&i?i.offsetTop:0))/r,c=l.width/n,p=l.height/r;return{width:c,height:p,top:s,right:u+c,bottom:s+p,left:u,x:u,y:s}}function E(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function T(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return L(k(e)).left+E(e).scrollLeft}function q(e){return g(e).getComputedStyle(e)}function A(e){var t=q(e),a=t.overflow,l=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+n+l)}function C(e,t,a){void 0===a&&(a=!1);var l,n,r=b(t),i=b(t)&&function(e){var t=e.getBoundingClientRect(),a=O(t.width)/e.offsetWidth||1,l=O(t.height)/e.offsetHeight||1;return 1!==a||1!==l}(t),o=k(t),u=L(e,i,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!a)&&(("body"!==T(t)||A(o))&&(s=(l=t)!==g(l)&&b(l)?{scrollLeft:(n=l).scrollLeft,scrollTop:n.scrollTop}:E(l)),b(t)?((c=L(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=P(o))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function B(e){var t=L(e),a=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:l}}function D(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||k(e)}function j(e){return["html","body","#document"].indexOf(T(e))>=0?e.ownerDocument.body:b(e)&&A(e)?e:j(D(e))}function R(e,t){var a;void 0===t&&(t=[]);var l=j(e),n=l===(null==(a=e.ownerDocument)?void 0:a.body),r=g(l),i=n?[r].concat(r.visualViewport||[],A(l)?l:[]):l,o=t.concat(i);return n?o:o.concat(R(D(i)))}function I(e){return["table","td","th"].indexOf(T(e))>=0}function V(e){return b(e)&&"fixed"!==q(e).position?e.offsetParent:null}function M(e){for(var t=g(e),a=V(e);a&&I(a)&&"static"===q(a).position;)a=V(a);return a&&("html"===T(a)||"body"===T(a)&&"static"===q(a).position)?t:a||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&b(e)&&"fixed"===q(e).position)return null;var a=D(e);for(y(a)&&(a=a.host);b(a)&&["html","body"].indexOf(T(a))<0;){var l=q(a);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||t&&"filter"===l.willChange||t&&l.filter&&"none"!==l.filter)return a;a=a.parentNode}return null}(e)||t}var W="top",H="bottom",N="right",$="left",F="auto",z=[W,H,N,$],G="start",U="end",K="clippingParents",X="viewport",Y="popper",J="reference",Q=z.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+U])}),[]),Z=[].concat(z,[F]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+U])}),[]),ee=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function te(e){var t=new Map,a=new Set,l=[];function n(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!a.has(e)){var l=t.get(e);l&&n(l)}})),l.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){a.has(e.name)||n(e)})),l}function ae(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,a){return t===X?ae(function(e,t){var a=g(e),l=k(e),n=a.visualViewport,r=l.clientWidth,i=l.clientHeight,o=0,u=0;if(n){r=n.width,i=n.height;var s=S();(s||!s&&"fixed"===t)&&(o=n.offsetLeft,u=n.offsetTop)}return{width:r,height:i,x:o+P(e),y:u}}(e,a)):m(t)?function(e,t){var a=L(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):ae(function(e){var t,a=k(e),l=E(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=_(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=_(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-l.scrollLeft+P(e),u=-l.scrollTop;return"rtl"===q(n||a).direction&&(o+=_(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:o,y:u}}(k(e)))}function ne(e){var t=R(D(e)),a=["absolute","fixed"].indexOf(q(e).position)>=0&&b(e)?M(e):e;return m(a)?t.filter((function(e){return m(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&y(a)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}(e,a)&&"body"!==T(e)})):[]}function re(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function oe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ue(e){var t,a=e.reference,l=e.element,n=e.placement,r=n?re(n):null,i=n?ie(n):null,o=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2;switch(r){case W:t={x:o,y:a.y-l.height};break;case H:t={x:o,y:a.y+a.height};break;case N:t={x:a.x+a.width,y:u};break;case $:t={x:a.x-l.width,y:u};break;default:t={x:a.x,y:a.y}}var s=r?oe(r):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case G:t[s]=t[s]-(a[c]/2-l[c]/2);break;case U:t[s]=t[s]+(a[c]/2-l[c]/2)}}return t}function se(e,t){void 0===t&&(t={});var a,l=t,n=l.placement,r=void 0===n?e.placement:n,i=l.strategy,o=void 0===i?e.strategy:i,u=l.boundary,s=void 0===u?K:u,c=l.rootBoundary,p=void 0===c?X:c,d=l.elementContext,v=void 0===d?Y:d,f=l.altBoundary,h=void 0!==f&&f,g=l.padding,b=void 0===g?0:g,y=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof b?b:(a=b,z.reduce((function(e,t){return e[t]=a,e}),{}))),O=v===Y?J:Y,x=e.rects.popper,S=e.elements[h?O:v],E=function(e,t,a,l){var n="clippingParents"===t?ne(e):[].concat(t),r=[].concat(n,[a]),i=r[0],o=r.reduce((function(t,a){var n=le(e,a,l);return t.top=_(n.top,t.top),t.right=w(n.right,t.right),t.bottom=w(n.bottom,t.bottom),t.left=_(n.left,t.left),t}),le(e,i,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(m(S)?S:S.contextElement||k(e.elements.popper),s,p,o),T=L(e.elements.reference),P=ue({reference:T,element:x,strategy:"absolute",placement:r}),q=ae(Object.assign({},x,P)),A=v===Y?q:T,C={top:E.top-A.top+y.top,bottom:A.bottom-E.bottom+y.bottom,left:E.left-A.left+y.left,right:A.right-E.right+y.right},B=e.modifiersData.offset;if(v===Y&&B){var D=B[r];Object.keys(C).forEach((function(e){var t=[N,H].indexOf(e)>=0?1:-1,a=[W,H].indexOf(e)>=0?"y":"x";C[e]+=D[a]*t}))}return C}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function pe(){for(var e=arguments.length,t=new Array(e),a=0;aa?a:l}(we,fe,Oe):me(v?we:ge,fe,v?Oe:be);S[x]=xe,q[x]=xe-fe}t.modifiersData[l]=q}},requiresIfExists:["offset"]},ye={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(e){return e.replace(/left|right|bottom|top/g,(function(e){return ye[e]}))}var we={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,(function(e){return we[e]}))}function xe(e,t){void 0===t&&(t={});var a=t,l=a.placement,n=a.boundary,r=a.rootBoundary,i=a.padding,o=a.flipVariations,u=a.allowedAutoPlacements,s=void 0===u?Z:u,c=ie(l),p=c?o?Q:Q.filter((function(e){return ie(e)===c})):z,d=p.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=p);var v=d.reduce((function(t,a){return t[a]=se(e,{placement:a,boundary:n,rootBoundary:r,padding:i})[re(a)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var Se={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var n=a.mainAxis,r=void 0===n||n,i=a.altAxis,o=void 0===i||i,u=a.fallbackPlacements,s=a.padding,c=a.boundary,p=a.rootBoundary,d=a.altBoundary,v=a.flipVariations,f=void 0===v||v,h=a.allowedAutoPlacements,g=t.options.placement,m=re(g),b=u||(m===g||!f?[_e(g)]:function(e){if(re(e)===F)return[];var t=_e(e);return[Oe(e),t,Oe(t)]}(g)),y=[g].concat(b).reduce((function(e,a){return e.concat(re(a)===F?xe(t,{placement:a,boundary:c,rootBoundary:p,padding:s,flipVariations:f,allowedAutoPlacements:h}):a)}),[]),_=t.rects.reference,w=t.rects.popper,O=new Map,x=!0,S=y[0],L=0;L=0,q=P?"width":"height",A=se(t,{placement:E,boundary:c,rootBoundary:p,altBoundary:d,padding:s}),C=P?k?N:$:k?H:W;_[q]>w[q]&&(C=_e(C));var B=_e(C),D=[];if(r&&D.push(A[T]<=0),o&&D.push(A[C]<=0,A[B]<=0),D.every((function(e){return e}))){S=E,x=!1;break}O.set(E,D)}if(x)for(var j=function(e){var t=y.find((function(t){var a=O.get(t);if(a)return a.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},R=f?3:1;R>0;R--){if("break"===j(R))break}t.placement!==S&&(t.modifiersData[l]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Le(n,u,s){const{disabled:c,appendTo:p,appendToBody:d,openDirection:v}=e(n),f=t().proxy,h=s.multiselect,g=s.dropdown,m=a(!1),b=a(null),y=a(null),_=l((()=>p.value||d.value)),w=l((()=>"top"===v.value&&"bottom"===y.value||"bottom"===v.value&&"top"!==y.value?"bottom":"top")),O=()=>{if(!b.value)return;let e=parseInt(window.getComputedStyle(g.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(g.value).borderBottomWidth.replace("px",""));b.value.setOptions((a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===w.value?e:t)]}}]}))),b.value.update()},x=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return i((()=>{_.value&&(b.value=ge(h.value,g.value,{strategy:x(h.value)?"fixed":void 0,placement:v.value,modifiers:[be,Se,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){y.value=e.placement}}]}))})),o((()=>{_.value&&b.value&&(b.value.destroy(),b.value=null)})),{popper:b,isOpen:m,open:()=>{m.value||c.value||(m.value=!0,u.emit("open",f),_.value&&r((()=>{O()})))},close:()=>{m.value&&(m.value=!1,u.emit("close",f))},placement:w,updatePopper:O}}function Ee(t,n,r){const{searchable:i,disabled:o,clearOnBlur:u}=e(t),s=r.input,c=r.open,p=r.close,d=r.clearSearch,v=r.isOpen,f=r.wrapper,h=r.tags,g=a(!1),m=a(!1),b=l((()=>i.value||o.value?-1:0)),y=()=>{i.value&&s.value.blur(),f.value.blur()},_=(e=!0)=>{o.value||(g.value=!0,e&&c())},w=()=>{g.value=!1,setTimeout((()=>{g.value||(p(),u.value&&d())}),1)};return{tabindex:b,isActive:g,mouseClicked:m,blur:y,focus:()=>{i.value&&!o.value&&s.value.focus()},activate:_,deactivate:w,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||_(m.value)},handleFocusOut:()=>{w()},handleCaretClick:()=>{w(),y()},handleMousedown:e=>{m.value=!0,v.value&&(e.target.isEqualNode(f.value)||e.target.isEqualNode(h.value))?setTimeout((()=>{w()}),0):v.value||!document.activeElement.isEqualNode(f.value)&&!document.activeElement.isEqualNode(s.value)||_(),setTimeout((()=>{m.value=!1}),0)}}}function Te(a,n,r){const{mode:i,addTagOn:o,openDirection:u,searchable:s,showOptions:c,valueProp:p,groups:d,addOptionOn:v,createTag:f,createOption:h,reverse:g}=e(a),m=t().proxy,b=r.iv,y=r.update,_=r.deselect,w=r.search,O=r.setPointer,x=r.selectPointer,S=r.backwardPointer,L=r.forwardPointer,E=r.multiselect,T=r.wrapper,k=r.tags,P=r.isOpen,q=r.open,A=r.blur,C=r.fo,B=l((()=>f.value||h.value||!1)),D=l((()=>void 0!==o.value?o.value:void 0!==v.value?v.value:["enter"])),j=()=>{"tags"===i.value&&!c.value&&B.value&&s.value&&!d.value&&O(C.value[C.value.map((e=>e[p.value])).indexOf(w.value)])};return{handleKeydown:e=>{let t,a;switch(n.emit("keydown",e,m),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===i.value&&(t=[...E.value.querySelectorAll("[data-tags] > *")].filter((e=>e!==k.value)),a=t.findIndex((e=>e===document.activeElement))),e.key){case"Backspace":if("single"===i.value)return;if(s.value&&-1===[null,""].indexOf(w.value))return;if(0===b.value.length)return;let l=b.value.filter((e=>!e.disabled&&!1!==e.remove));l.length&&_(l[l.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==a&&void 0!==a)return y([...b.value].filter(((e,t)=>t!==a))),void(a===t.length-1&&(t.length-1?t[t.length-2].focus():s.value?k.value.querySelector("input").focus():T.value.focus()));if(-1===D.value.indexOf("enter")&&B.value)return;j(),x();break;case" ":if(!B.value&&!s.value)return e.preventDefault(),j(),void x();if(!B.value)return!1;if(-1===D.value.indexOf("space")&&B.value)return;e.preventDefault(),j(),x();break;case"Tab":case";":case",":if(-1===D.value.indexOf(e.key.toLowerCase())||!B.value)return;j(),x(),e.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(e.preventDefault(),!c.value)return;P.value||q(),S();break;case"ArrowDown":if(e.preventDefault(),!c.value)return;P.value||q(),L();break;case"ArrowLeft":if(s.value&&k.value&&k.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==i.value||!b.value||!b.value.length)return;e.preventDefault(),-1===a?t[t.length-1].focus():a>0&&t[a-1].focus();break;case"ArrowRight":if(-1===a||e.shiftKey||"tags"!==i.value||!b.value||!b.value.length)return;e.preventDefault(),t.length>a+1?t[a+1].focus():s.value?k.value.querySelector("input").focus():s.value||T.value.focus()}},handleKeyup:e=>{n.emit("keyup",e,m)},preparePointer:j}}function ke(t,a,n){const{classes:r,disabled:i,showOptions:o,breakTags:u}=e(t),s=n.isOpen,c=n.isPointed,p=n.isSelected,d=n.isDisabled,v=n.isActive,f=n.canPointGroups,h=n.resolving,g=n.fo,m=n.placement,b=l((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value}))),y=l((()=>!!(s.value&&o.value&&(!h.value||h.value&&g.value.length))));return{classList:l((()=>{const e=b.value;return{container:[e.container].concat(i.value?e.containerDisabled:[]).concat(y.value&&"top"===m.value?e.containerOpenTop:[]).concat(y.value&&"top"!==m.value?e.containerOpen:[]).concat(v.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(i.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,u.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(s.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===m.value?e.dropdownTop:[]).concat(s.value&&o.value&&y.value?[]:e.dropdownHidden),options:[e.options].concat("top"===m.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return c(t)?a.push(p(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):p(t)&&f.value?a.push(d(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):d(t)&&a.push(e.groupLabelDisabled),f.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let l=[e.option];return c(t)?l.push(p(t)?e.optionSelectedPointed:e.optionPointed):p(t)?l.push(d(t)?e.optionSelectedDisabled:e.optionSelected):(d(t)||a&&d(a))&&l.push(e.optionDisabled),l},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}})),showDropdown:y}}function Pe(t,o,u){const{limit:s,infinite:c}=e(t),p=u.isOpen,d=u.offset,v=u.search,f=u.pfo,h=u.eo,g=a(null),m=a(null),b=l((()=>d.value{const{isIntersecting:t,target:a}=e[0];if(t){const e=a.offsetParent,t=e.scrollTop;d.value+=-1==s.value?10:s.value,r((()=>{e.scrollTop=t}))}},_=()=>{p.value&&d.value{c.value&&_()})),n(v,(()=>{c.value&&(d.value=s.value,_())}),{flush:"post"}),n(h,(()=>{c.value&&_()}),{immediate:!1,flush:"post"}),i((()=>{window&&window.IntersectionObserver&&(g.value=new IntersectionObserver(y))})),{hasMore:b,infiniteLoader:m}}function qe(t,n,r){const{placeholder:o,id:u,valueProp:s,label:c,mode:p,groupLabel:d,aria:v,searchable:f}=e(t),h=r.pointer,g=r.iv,m=r.hasSelected,b=r.multipleLabelText,y=a(null),_=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("assist"),e.join("-")})),w=l((()=>{let e=[];return u&&u.value&&e.push(u.value),e.push("multiselect-options"),e.join("-")})),O=l((()=>{let e=[];if(u&&u.value&&e.push(u.value),h.value)return e.push(h.value.group?"multiselect-group":"multiselect-option"),e.push(h.value.group?h.value.index:h.value[s.value]),e.join("-")})),x=l((()=>o.value)),S=l((()=>"single"!==p.value)),L=l((()=>{let e="";return"single"===p.value&&m.value&&(e+=g.value[c.value]),"multiple"===p.value&&m.value&&(e+=b.value),"tags"===p.value&&m.value&&(e+=g.value.map((e=>e[c.value])).join(", ")),e})),E=l((()=>{let e={...v.value};return f.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${_.value} ${e["aria-labelledby"]}`:_.value,L.value&&e["aria-label"]&&(e["aria-label"]=`${L.value}, ${e["aria-label"]}`)),e}));return i((()=>{if(u&&u.value&&document&&document.querySelector){let e=document.querySelector(`[for="${u.value}"]`);y.value=e?e.innerText:null}})),{arias:E,ariaLabel:L,ariaAssist:_,ariaControls:w,ariaPlaceholder:x,ariaMultiselectable:S,ariaActiveDescendant:O,ariaOptionId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-option"),t.push(e[s.value]),t.join("-")},ariaOptionLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaGroupId:e=>{let t=[];return u&&u.value&&t.push(u.value),t.push("multiselect-group"),t.push(e.index),t.join("-")},ariaGroupLabel:e=>{let t=[];return t.push(e),t.join(" ")},ariaTagLabel:e=>`${e} ❎`}}function Ae(t,a,l){const{locale:n,fallbackLocale:r}=e(t);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[r.value]?e[r.value]:e&&r.value&&e[r.value.toUpperCase()]?e[r.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function Ce(e,t,l){return{multiselect:a(null),wrapper:a(null),tags:a(null),input:a(null),dropdown:a(null)}}function Be(e,t,a,l,n,r,i,o,u,s){"boolean"!=typeof i&&(u=o,o=i,i=!1);const c="function"==typeof a?a.options:a;let p;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),l&&(c._scopeId=l),r?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=p):t&&(p=i?function(e){t.call(this,s(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),p)if(c.functional){const e=c.render;c.render=function(t,a){return p.call(a),e(t,a)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,p):[p]}return a}const De={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup:(e,t)=>function(e,t,a,l={}){return a.forEach((a=>{a&&(l={...l,...a(e,t,l)})})),l}(e,t,[Ce,Ae,c,d,Le,p,s,Ee,f,Pe,h,Te,ke,qe]),beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};var je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"multiselect",class:e.classList.container,attrs:{id:e.searchable?void 0:e.id,dir:e.rtl?"rtl":void 0},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut,keyup:e.handleKeyup,keydown:e.handleKeydown}},[a("div",e._b({ref:"wrapper",class:e.classList.wrapper,attrs:{tabindex:e.tabindex,"aria-controls":e.searchable?void 0:e.ariaControls,"aria-placeholder":e.searchable?void 0:e.ariaPlaceholder,"aria-expanded":e.searchable?void 0:e.isOpen,"aria-activedescendant":e.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":e.searchable?void 0:e.ariaMultiselectable,role:e.searchable?void 0:"combobox"},on:{mousedown:e.handleMousedown}},"div",e.searchable?{}:e.arias,!1),["tags"!==e.mode&&e.searchable&&!e.disabled?[a("input",e._b({ref:"input",class:e.classList.search,attrs:{type:e.inputType,modelValue:e.search,autocomplete:e.autocomplete,id:e.searchable?e.id:void 0,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1))]:e._e(),e._v(" "),"tags"==e.mode?[a("div",{class:e.classList.tags,attrs:{"data-tags":""}},[e._l(e.iv,(function(t,l,n){return e._t("tag",(function(){return[a("span",{key:n,class:[e.classList.tag,t.disabled?e.classList.tagDisabled:null],attrs:{tabindex:"-1","aria-label":e.ariaTagLabel(e.localize(t[e.label]))},on:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagWrapper},[e._v(e._s(e.localize(t[e.label])))]),e._v(" "),e.disabled||t.disabled?e._e():a("span",{class:e.classList.tagRemove,on:{click:function(a){return a.stopPropagation(),e.handleTagRemove(t,a)}}},[a("span",{class:e.classList.tagRemoveIcon})])])]}),{option:t,handleTagRemove:e.handleTagRemove,disabled:e.disabled})})),e._v(" "),a("div",{ref:"tags",class:e.classList.tagsSearchWrapper},[a("span",{class:e.classList.tagsSearchCopy},[e._v(e._s(e.search))]),e._v(" "),e.searchable&&!e.disabled?a("input",e._b({ref:"input",class:e.classList.tagsSearch,attrs:{type:e.inputType,modelValue:e.search,id:e.searchable?e.id:void 0,autocomplete:e.autocomplete,"aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},domProps:{value:e.search},on:{input:e.handleSearchInput,keypress:e.handleKeypress,paste:function(t){return t.stopPropagation(),e.handlePaste.apply(null,arguments)}}},"input",Object.assign({},e.attrs,e.arias),!1)):e._e()])],2)]:e._e(),e._v(" "),"single"==e.mode&&e.hasSelected&&!e.search&&e.iv?[e._t("singlelabel",(function(){return[a("div",{class:e.classList.singleLabel},[a("span",{class:e.classList.singleLabelText},[e._v(e._s(e.localize(e.iv[e.label])))])])]}),{value:e.iv})]:e._e(),e._v(" "),"multiple"==e.mode&&e.hasSelected&&!e.search?[e._t("multiplelabel",(function(){return[a("div",{class:e.classList.multipleLabel,domProps:{innerHTML:e._s(e.multipleLabelText)}})]}),{values:e.iv})]:e._e(),e._v(" "),!e.placeholder||e.hasSelected||e.search?e._e():[e._t("placeholder",(function(){return[a("div",{class:e.classList.placeholder,attrs:{"aria-hidden":"true"}},[e._v("\n "+e._s(e.placeholder)+"\n ")])]}))],e._v(" "),e.loading||e.resolving?e._t("spinner",(function(){return[a("span",{class:e.classList.spinner,attrs:{"aria-hidden":"true"}})]})):e._e(),e._v(" "),e.hasSelected&&!e.disabled&&e.canClear&&!e.busy?e._t("clear",(function(){return[a("span",{class:e.classList.clear,attrs:{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎"},on:{click:e.clear,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clear.apply(null,arguments)}}},[a("span",{class:e.classList.clearIcon})])]}),{clear:e.clear}):e._e(),e._v(" "),e.caret&&e.showOptions?e._t("caret",(function(){return[a("span",{class:e.classList.caret,attrs:{"aria-hidden":"true"},on:{click:e.handleCaretClick}})]}),{handleCaretClick:e.handleCaretClick,isOpen:e.isOpen}):e._e()],2),e._v(" "),a("Teleport",{attrs:{to:e.appendTo||"body",disabled:!e.appendToBody&&!e.appendTo}},[a("div",{ref:"dropdown",class:e.classList.dropdown,attrs:{id:e.id?e.id+"-dropdown":void 0,tabindex:"-1"},on:{focusin:e.handleFocusIn,focusout:e.handleFocusOut}},[e._t("beforelist",null,{options:e.fo}),e._v(" "),a("ul",{class:e.classList.options,attrs:{id:e.ariaControls,role:"listbox"}},[e.groups?e._l(e.fg,(function(t,l,n){return a("li",{key:n,class:e.classList.group,attrs:{id:e.ariaGroupId(t),"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),"aria-selected":e.isSelected(t),role:"option"}},[t.__CREATE__?e._e():a("div",{class:e.classList.groupLabel(t),attrs:{"data-pointed":e.isPointed(t)},on:{mouseenter:function(a){return e.setPointer(t,l)},mousedown:function(a){return a.preventDefault(),e.handleGroupClick(t)}}},[e._t("grouplabel",(function(){return[a("span",{domProps:{innerHTML:e._s(e.localize(t[e.groupLabel]))}})]}),{group:t,isSelected:e.isSelected,isPointed:e.isPointed})],2),e._v(" "),a("ul",{class:e.classList.groupOptions,attrs:{"aria-label":e.ariaGroupLabel(e.localize(t[e.groupLabel])),role:"group"}},e._l(t.__VISIBLE__,(function(l,n,r){return a("li",{key:r,class:e.classList.option(l,t),attrs:{"data-pointed":e.isPointed(l),"data-selected":e.isSelected(l)||void 0,id:e.ariaOptionId(l),"aria-selected":e.isSelected(l),"aria-label":e.ariaOptionLabel(e.localize(l[e.label])),role:"option"},on:{mouseenter:function(t){return e.setPointer(l)},mousedown:function(t){return t.preventDefault(),e.handleOptionClick(l)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(l[e.label])))])]}),{option:l,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)})),0)])})):e._l(e.fo,(function(t,l,n){return a("li",{key:n,class:e.classList.option(t),attrs:{"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[e.label])),role:"option"},on:{mouseenter:function(a){return e.setPointer(t)},mousedown:function(a){return a.preventDefault(),e.handleOptionClick(t)}}},[e._t("option",(function(){return[a("span",[e._v(e._s(e.localize(t[e.label])))])]}),{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search})],2)}))],2),e._v(" "),e.noOptions?e._t("nooptions",(function(){return[a("div",{class:e.classList.noOptions,domProps:{innerHTML:e._s(e.localize(e.noOptionsText))}})]})):e._e(),e._v(" "),e.noResults?e._t("noresults",(function(){return[a("div",{class:e.classList.noResults,domProps:{innerHTML:e._s(e.localize(e.noResultsText))}})]})):e._e(),e._v(" "),e.infinite&&e.hasMore?a("div",{ref:"infiniteLoader",class:e.classList.inifinite},[e._t("infinite",(function(){return[a("span",{class:e.classList.inifiniteSpinner})]}))],2):e._e(),e._v(" "),e._t("afterlist",null,{options:e.fo})],2)]),e._v(" "),e.required?a("input",{class:e.classList.fakeInput,attrs:{tabindex:"-1",required:""},domProps:{value:e.textValue}}):e._e(),e._v(" "),e.nativeSupport?["single"==e.mode?a("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0!==e.plainValue?e.plainValue:""}}):e._l(e.plainValue,(function(t,l){return a("input",{key:l,attrs:{type:"hidden",name:e.name+"[]"},domProps:{value:t}})}))]:e._e(),e._v(" "),e.searchable&&e.hasSelected?a("div",{class:e.classList.assist,attrs:{id:e.ariaAssist,"aria-hidden":"true"}},[e._v("\n "+e._s(e.ariaLabel)+"\n ")]):e._e(),e._v(" "),a("div",{class:e.classList.spacer})],2)};je._withStripped=!0;const Re=Be({render:je,staticRenderFns:[]},undefined,De,undefined,false,undefined,!1,void 0,void 0,void 0);export{Re as default}; diff --git a/package-lock.json b/package-lock.json index a829420..96fab7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vueform/multiselect", - "version": "2.6.5", + "version": "2.6.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vueform/multiselect", - "version": "2.6.5", + "version": "2.6.7", "license": "MIT", "devDependencies": { "@babel/core": "^7.12.10", @@ -44,62 +44,62 @@ } }, "node_modules/@adobe/css-tools": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.1.tgz", - "integrity": "sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.3.tgz", + "integrity": "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==", "dev": true }, "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz", - "integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.1.tgz", + "integrity": "sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz", - "integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.1.tgz", + "integrity": "sha512-F82udohVyIgGAY2VVj/g34TpFUG606rumIHjTfVbssPg2zTR7PuuEpZcX8JA6sgBfIYmJrFtWgPvHQuJamVqZQ==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.0", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0", + "@babel/code-frame": "^7.24.1", + "@babel/generator": "^7.24.1", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.24.1", + "@babel/parser": "^7.24.1", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.1", + "@babel/types": "^7.24.0", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -115,14 +115,14 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.1.tgz", + "integrity": "sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", + "@babel/types": "^7.24.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" }, "engines": { @@ -154,14 +154,14 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -170,17 +170,17 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", - "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.1.tgz", + "integrity": "sha512-1yJa9dX9g//V6fDebXoEfEsxkZHk3Hcbm+zLhyu6qVgYFLvmTALTeV+jNU9e5RnYtioBrGEOdoI2joMSNQ/+aA==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.23.0", "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-replace-supers": "^7.24.1", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", "semver": "^6.3.1" @@ -210,9 +210,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", - "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.1.tgz", + "integrity": "sha512-o7SDgTJuvx5vLKD6SFvkydkSMBvahDKGiNJzG22IZYXhiqoe9efY7zocICBgzHV4IRg5wdgl2nEL/tulKIEIbA==", "dev": true, "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", @@ -272,21 +272,21 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.1.tgz", + "integrity": "sha512-HfEWzysMyOa7xI5uQHc/OcZf67/jc+xe/RZlznWQHhbb8Pg1SkRdbK4yEi61aY8wxQA7PkSfoojtLQP/Kpe3og==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15" + "@babel/types": "^7.24.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -315,9 +315,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", + "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", "dev": true, "engines": { "node": ">=6.9.0" @@ -341,13 +341,13 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz", + "integrity": "sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-member-expression-to-functions": "^7.23.0", "@babel/helper-optimise-call-expression": "^7.22.5" }, "engines": { @@ -394,9 +394,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -412,9 +412,9 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, "engines": { "node": ">=6.9.0" @@ -435,37 +435,38 @@ } }, "node_modules/@babel/helpers": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz", - "integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.1.tgz", + "integrity": "sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0" + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.1", + "@babel/types": "^7.24.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", + "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", - "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz", + "integrity": "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -475,12 +476,12 @@ } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz", - "integrity": "sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.1.tgz", + "integrity": "sha512-y4HqEnkelJIOQGd+3g1bTeKsA5c6qM7eOn7VggGVbBc0y8MLSKHacwcIE2PplNlQSj0PqS9rrXL/nkPVK+kUNg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -490,14 +491,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz", - "integrity": "sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.1.tgz", + "integrity": "sha512-Hj791Ii4ci8HqnaKHAlLNs+zaLXb0EzSDhiAWp5VNlyvCNymYfacs64pxTxbH1znW/NcArSmwpmG9IKE/TUVVQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.15" + "@babel/plugin-transform-optional-chaining": "^7.24.1" }, "engines": { "node": ">=6.9.0" @@ -506,6 +507,22 @@ "@babel/core": "^7.13.0" } }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.1.tgz", + "integrity": "sha512-m9m/fXsXLiHfwdgydIFnpk+7jlVbnvlK5B2EKiPdLUb6WX654ZaaEWJUjk8TftRbZpK0XibovlLWX4KIZhV6jw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", @@ -594,12 +611,12 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", - "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.1.tgz", + "integrity": "sha512-IuwnI5XnuF189t91XbxmXeCDz3qs6iDRO7GJ++wcfgeXNs/8FmIlKcpDSXNVyuLQxlwvskmI3Ct73wUODkJBlQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -609,12 +626,12 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz", - "integrity": "sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.1.tgz", + "integrity": "sha512-zhQTMH0X2nVLnb04tz+s7AMuasX8U0FnpE+nHTOhSOINjWMnopoZTxtIKsd45n4GQ/HIZLyfIpoul8e2m0DnRA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -750,12 +767,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", - "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", + "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -781,12 +798,12 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", - "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.1.tgz", + "integrity": "sha512-ngT/3NkRhsaep9ck9uj2Xhv9+xB1zShY3tM3g6om4xxCELwCDN4g4Aq5dRn48+0hasAql7s2hdBOysCfNpr4fw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -796,13 +813,13 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz", - "integrity": "sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.1.tgz", + "integrity": "sha512-OTkLJM0OtmzcpOgF7MREERUCdCnCBtBsq3vVFbuq/RKMK0/jdYqdMexWi3zNs7Nzd95ase65MbTGrpFJflOb6A==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-remap-async-to-generator": "^7.22.20", "@babel/plugin-syntax-async-generators": "^7.8.4" }, @@ -814,14 +831,14 @@ } }, "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz", - "integrity": "sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.1.tgz", + "integrity": "sha512-AawPptitRXp1y0n4ilKcGbRYWfbbzFWz2NqNu7dacYDtFtz0CMjG64b3LQsb3KIgnf4/obcUL78hfaOS7iCUfw==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.5" + "@babel/helper-module-imports": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-remap-async-to-generator": "^7.22.20" }, "engines": { "node": ">=6.9.0" @@ -831,12 +848,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", - "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz", + "integrity": "sha512-TWWC18OShZutrv9C6mye1xwtam+uNi2bnTOCBUd5sZxyHOiWbU6ztSROofIMrK84uweEZC219POICK/sTYwfgg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -846,12 +863,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz", - "integrity": "sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.1.tgz", + "integrity": "sha512-h71T2QQvDgM2SmT29UYU6ozjMlAt7s7CSs5Hvy8f8cf/GM/Z4a2zMfN+fjVGaieeCrXR3EdQl6C4gQG+OgmbKw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -861,13 +878,13 @@ } }, "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz", - "integrity": "sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.1.tgz", + "integrity": "sha512-OMLCXi0NqvJfORTaPQBwqLXHhb93wkBKZ4aNwMl6WtehO7ar+cmp+89iPEQPqxAnxsOKTaMcs3POz3rKayJ72g==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-class-features-plugin": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -877,13 +894,13 @@ } }, "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz", - "integrity": "sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.1.tgz", + "integrity": "sha512-FUHlKCn6J3ERiu8Dv+4eoz7w8+kFLSyeVG4vDAikwADGjUCoHw/JHokyGtr8OR4UjpwPVivyF+h8Q5iv/JmrtA==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.11", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-class-static-block": "^7.14.5" }, "engines": { @@ -894,18 +911,17 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", - "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.1.tgz", + "integrity": "sha512-ZTIe3W7UejJd3/3R4p7ScyyOoafetUShSf4kCqV0O7F/RiHxVj/wRaRnQlrGwflvcehNA8M42HkAiEDYZu2F1Q==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-replace-supers": "^7.24.1", "@babel/helper-split-export-declaration": "^7.22.6", "globals": "^11.1.0" }, @@ -917,13 +933,13 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", - "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.1.tgz", + "integrity": "sha512-5pJGVIUfJpOS+pAqBQd+QMaTD2vCL/HcePooON6pDpHgRp4gNRmzyHTPIkXntwKsq3ayUFVfJaIKPw2pOkOcTw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/template": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -933,12 +949,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz", - "integrity": "sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.1.tgz", + "integrity": "sha512-ow8jciWqNxR3RYbSNVuF4U2Jx130nwnBnhRw6N6h1bOejNkABmcI5X5oz29K4alWX7vf1C+o6gtKXikzRKkVdw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -948,13 +964,13 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", - "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.1.tgz", + "integrity": "sha512-p7uUxgSoZwZ2lPNMzUkqCts3xlp8n+o05ikjy7gbtFJSt9gdU88jAmtfmOxHM14noQXBxfgzf2yRWECiNVhTCw==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -964,12 +980,12 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", - "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.1.tgz", + "integrity": "sha512-msyzuUnvsjsaSaocV6L7ErfNsa5nDWL1XKNnDePLgmz+WdU4w/J8+AxBMrWfi9m4IxfL5sZQKUPQKDQeeAT6lA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -979,12 +995,12 @@ } }, "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz", - "integrity": "sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.1.tgz", + "integrity": "sha512-av2gdSTyXcJVdI+8aFZsCAtR29xJt0S5tas+Ef8NvBNmD1a+N/3ecMLeMBgfcK+xzsjdLDT6oHt+DFPyeqUbDA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-dynamic-import": "^7.8.3" }, "engines": { @@ -995,13 +1011,13 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", - "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.1.tgz", + "integrity": "sha512-U1yX13dVBSwS23DEAqU+Z/PkwE9/m7QQy8Y9/+Tdb8UWYaGNDYwTLi19wqIAiROr8sXVum9A/rtiH5H0boUcTw==", "dev": true, "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1011,12 +1027,12 @@ } }, "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz", - "integrity": "sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.1.tgz", + "integrity": "sha512-Ft38m/KFOyzKw2UaJFkWG9QnHPG/Q/2SkOrRk4pNBPg5IPZ+dOxcmkK5IyuBcxiNPyyYowPGUReyBvrvZs7IlQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" }, "engines": { @@ -1027,12 +1043,13 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", - "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz", + "integrity": "sha512-OxBdcnF04bpdQdR3i4giHZNZQn7cm8RQKcSwA17wAAqEELo1ZOwp5FFgeptWUQXFyT9kwHo10aqqauYkRZPCAg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1042,14 +1059,14 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", - "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz", + "integrity": "sha512-BXmDZpPlh7jwicKArQASrj8n22/w6iymRnvHYYd2zO30DbE277JO20/7yXJT3QxDPtiQiOxQBbZH4TpivNXIxA==", "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1059,12 +1076,12 @@ } }, "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz", - "integrity": "sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.1.tgz", + "integrity": "sha512-U7RMFmRvoasscrIFy5xA4gIp8iWnWubnKkKuUGJjsuOH7GfbMkB+XZzeslx2kLdEGdOJDamEmCqOks6e8nv8DQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-json-strings": "^7.8.3" }, "engines": { @@ -1075,12 +1092,12 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", - "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.1.tgz", + "integrity": "sha512-zn9pwz8U7nCqOYIiBaOxoQOtYmMODXTJnkxG4AtX8fPmnCRYWBOHD0qcpwS9e2VDSp1zNJYpdnFMIKb8jmwu6g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1090,12 +1107,12 @@ } }, "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz", - "integrity": "sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.1.tgz", + "integrity": "sha512-OhN6J4Bpz+hIBqItTeWJujDOfNP+unqv/NJgyhlpSqgBTPm37KkMmZV6SYcOj+pnDbdcl1qRGV/ZiIjX9Iy34w==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" }, "engines": { @@ -1106,12 +1123,12 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", - "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.1.tgz", + "integrity": "sha512-4ojai0KysTWXzHseJKa1XPNXKRbuUrhkOPY4rEGeR+7ChlJVKxFa3H3Bz+7tWaGKgJAXUWKOGmltN+u9B3+CVg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1121,13 +1138,13 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz", - "integrity": "sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.1.tgz", + "integrity": "sha512-lAxNHi4HVtjnHd5Rxg3D5t99Xm6H7b04hUS7EHIXcUl2EV4yl1gWdqZrNzXnSrHveL9qMdbODlLF55mvgjAfaQ==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1137,13 +1154,13 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz", - "integrity": "sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz", + "integrity": "sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-simple-access": "^7.22.5" }, "engines": { @@ -1154,14 +1171,14 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz", - "integrity": "sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.1.tgz", + "integrity": "sha512-mqQ3Zh9vFO1Tpmlt8QPnbwGHzNz3lpNEMxQb1kAemn/erstyqw1r9KeOlOfo3y6xAnFEcOv2tSyrXfmMk+/YZA==", "dev": true, "dependencies": { "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { @@ -1172,13 +1189,13 @@ } }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", - "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.1.tgz", + "integrity": "sha512-tuA3lpPj+5ITfcCluy6nWonSL7RvaG0AOTeAuvXqEKS34lnLzXpDb0dcP6K8jD0zWZFNDVly90AGFJPnm4fOYg==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1204,12 +1221,12 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", - "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.1.tgz", + "integrity": "sha512-/rurytBM34hYy0HKZQyA0nHbQgQNFm4Q/BOc9Hflxi2X3twRof7NaE5W46j4kQitm7SvACVRXsa6N/tSZxvPug==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1219,12 +1236,12 @@ } }, "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz", - "integrity": "sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.1.tgz", + "integrity": "sha512-iQ+caew8wRrhCikO5DrUYx0mrmdhkaELgFa+7baMcVuhxIkN7oxt06CZ51D65ugIb1UWRQ8oQe+HXAVM6qHFjw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" }, "engines": { @@ -1235,12 +1252,12 @@ } }, "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz", - "integrity": "sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.1.tgz", + "integrity": "sha512-7GAsGlK4cNL2OExJH1DzmDeKnRv/LXq0eLUSvudrehVA5Rgg4bIrqEUW29FbKMBRT0ztSqisv7kjP+XIC4ZMNw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-numeric-separator": "^7.10.4" }, "engines": { @@ -1251,16 +1268,15 @@ } }, "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz", - "integrity": "sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.1.tgz", + "integrity": "sha512-XjD5f0YqOtebto4HGISLNfiNMTTs6tbkFf2TOqJlYKYmbo+mN9Dnpl4SRoofiziuOWMIyq3sZEUqLo3hLITFEA==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.15" + "@babel/plugin-transform-parameters": "^7.24.1" }, "engines": { "node": ">=6.9.0" @@ -1270,13 +1286,13 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", - "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.1.tgz", + "integrity": "sha512-oKJqR3TeI5hSLRxudMjFQ9re9fBVUU0GICqM3J1mi8MqlhVr6hC/ZN4ttAyMuQR6EZZIY6h/exe5swqGNNIkWQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-replace-supers": "^7.24.1" }, "engines": { "node": ">=6.9.0" @@ -1286,12 +1302,12 @@ } }, "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz", - "integrity": "sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.1.tgz", + "integrity": "sha512-oBTH7oURV4Y+3EUrf6cWn1OHio3qG/PVwO5J03iSJmBg6m2EhKjkAu/xuaXaYwWW9miYtvbWv4LNf0AmR43LUA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" }, "engines": { @@ -1302,12 +1318,12 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz", - "integrity": "sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.1.tgz", + "integrity": "sha512-n03wmDt+987qXwAgcBlnUUivrZBPZ8z1plL0YvgQalLm+ZE5BMhGm94jhxXtA1wzv1Cu2aaOv1BM9vbVttrzSg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, @@ -1319,12 +1335,12 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", - "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.1.tgz", + "integrity": "sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1334,13 +1350,13 @@ } }, "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz", - "integrity": "sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.1.tgz", + "integrity": "sha512-tGvisebwBO5em4PaYNqt4fkw56K2VALsAbAakY0FjTYqJp7gfdrgr7YX76Or8/cpik0W6+tj3rZ0uHU9Oil4tw==", "dev": true, "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-class-features-plugin": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1350,14 +1366,14 @@ } }, "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz", - "integrity": "sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.1.tgz", + "integrity": "sha512-pTHxDVa0BpUbvAgX3Gat+7cSciXqUcY9j2VZKTbSB6+VQGpNgNO9ailxTGHSXlqOnX1Hcx1Enme2+yv7VqP9bg==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.11", - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.24.1", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, "engines": { @@ -1368,12 +1384,12 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", - "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.1.tgz", + "integrity": "sha512-LetvD7CrHmEx0G442gOomRr66d7q8HzzGGr4PMHGr+5YIm6++Yke+jxj246rpvsbyhJwCLxcTn6zW1P1BSenqA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1383,12 +1399,12 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz", - "integrity": "sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.1.tgz", + "integrity": "sha512-sJwZBCzIBE4t+5Q4IGLaaun5ExVMRY0lYwos/jNecjMrVCygCdph3IKv0tkP5Fc87e/1+bebAmEAGBfnRD+cnw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "regenerator-transform": "^0.15.2" }, "engines": { @@ -1399,12 +1415,12 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", - "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.1.tgz", + "integrity": "sha512-JAclqStUfIwKN15HrsQADFgeZt+wexNQ0uLhuqvqAUFoqPMjEcFCYZBhq0LUdz6dZK/mD+rErhW71fbx8RYElg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1414,12 +1430,12 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", - "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz", + "integrity": "sha512-LyjVB1nsJ6gTTUKRjRWx9C1s9hE7dLfP/knKdrfeH9UPtAGjYGgxIbFfx7xyLIEWs7Xe1Gnf8EWiUqfjLhInZA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1429,12 +1445,12 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", - "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.1.tgz", + "integrity": "sha512-KjmcIM+fxgY+KxPVbjelJC6hrH1CgtPmTvdXAfn3/a9CnWGSTY7nH4zm5+cjmWJybdcPSsD0++QssDsjcpe47g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-plugin-utils": "^7.24.0", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" }, "engines": { @@ -1445,12 +1461,12 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", - "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.1.tgz", + "integrity": "sha512-9v0f1bRXgPVcPrngOQvLXeGNNVLc8UjMVfebo9ka0WF3/7+aVUHmaJVT3sa0XCzEFioPfPHZiOcYG9qOsH63cw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1460,12 +1476,12 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", - "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.1.tgz", + "integrity": "sha512-WRkhROsNzriarqECASCNu/nojeXCDTE/F2HmRgOzi7NGvyfYGq1NEjKBK3ckLfRgGc6/lPAqP0vDOSw3YtG34g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1475,12 +1491,12 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", - "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.1.tgz", + "integrity": "sha512-CBfU4l/A+KruSUoW+vTQthwcAdwuqbpRNB8HQKlZABwHRhsdHZ9fezp4Sn18PeAlYxTNiLMlx4xUBV3AWfg1BA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1490,12 +1506,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz", - "integrity": "sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.1.tgz", + "integrity": "sha512-RlkVIcWT4TLI96zM660S877E7beKlQw7Ig+wqkKBiWfj0zH5Q4h50q6er4wzZKRNSYpfo6ILJ+hrJAGSX2qcNw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1505,13 +1521,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz", - "integrity": "sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.1.tgz", + "integrity": "sha512-Ss4VvlfYV5huWApFsF8/Sq0oXnGO+jB+rijFEFugTd3cwSObUSnUi88djgR5528Csl0uKlrI331kRqe56Ov2Ng==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1521,13 +1537,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", - "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.1.tgz", + "integrity": "sha512-2A/94wgZgxfTsiLaQ2E36XAOdcZmGAaEEgVmxQWwZXWkGhvoHbaqXcKnU8zny4ycpu3vNqg0L/PcCiYtHtA13g==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1537,13 +1553,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz", - "integrity": "sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.1.tgz", + "integrity": "sha512-fqj4WuzzS+ukpgerpAoOnMfQXwUHFxXUZUE84oL2Kao2N8uSlvcpnAidKASgsNgzZHBsHWvcm8s9FPWUhAb8fA==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.24.0" }, "engines": { "node": ">=6.9.0" @@ -1553,25 +1569,26 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.2.tgz", - "integrity": "sha512-BW3gsuDD+rvHL2VO2SjAUNTBe5YrjsTiDyqamPDWY723na3/yPQ65X5oQkFVJZ0o50/2d+svm1rkPoJeR1KxVQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.2", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.1.tgz", + "integrity": "sha512-CwCMz1Z28UHLI2iE+cbnWT2epPMV9bzzoBGM6A3mOS22VQd/1TPoWItV7S7iL9TkPmPEf5L/QzurmztyyDN9FA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.24.1", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-validator-option": "^7.23.5", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.1", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.1", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.24.1", "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-class-properties": "^7.12.13", "@babel/plugin-syntax-class-static-block": "^7.14.5", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.22.5", - "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-assertions": "^7.24.1", + "@babel/plugin-syntax-import-attributes": "^7.24.1", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", @@ -1583,59 +1600,58 @@ "@babel/plugin-syntax-private-property-in-object": "^7.14.5", "@babel/plugin-syntax-top-level-await": "^7.14.5", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.22.5", - "@babel/plugin-transform-async-generator-functions": "^7.23.2", - "@babel/plugin-transform-async-to-generator": "^7.22.5", - "@babel/plugin-transform-block-scoped-functions": "^7.22.5", - "@babel/plugin-transform-block-scoping": "^7.23.0", - "@babel/plugin-transform-class-properties": "^7.22.5", - "@babel/plugin-transform-class-static-block": "^7.22.11", - "@babel/plugin-transform-classes": "^7.22.15", - "@babel/plugin-transform-computed-properties": "^7.22.5", - "@babel/plugin-transform-destructuring": "^7.23.0", - "@babel/plugin-transform-dotall-regex": "^7.22.5", - "@babel/plugin-transform-duplicate-keys": "^7.22.5", - "@babel/plugin-transform-dynamic-import": "^7.22.11", - "@babel/plugin-transform-exponentiation-operator": "^7.22.5", - "@babel/plugin-transform-export-namespace-from": "^7.22.11", - "@babel/plugin-transform-for-of": "^7.22.15", - "@babel/plugin-transform-function-name": "^7.22.5", - "@babel/plugin-transform-json-strings": "^7.22.11", - "@babel/plugin-transform-literals": "^7.22.5", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.11", - "@babel/plugin-transform-member-expression-literals": "^7.22.5", - "@babel/plugin-transform-modules-amd": "^7.23.0", - "@babel/plugin-transform-modules-commonjs": "^7.23.0", - "@babel/plugin-transform-modules-systemjs": "^7.23.0", - "@babel/plugin-transform-modules-umd": "^7.22.5", + "@babel/plugin-transform-arrow-functions": "^7.24.1", + "@babel/plugin-transform-async-generator-functions": "^7.24.1", + "@babel/plugin-transform-async-to-generator": "^7.24.1", + "@babel/plugin-transform-block-scoped-functions": "^7.24.1", + "@babel/plugin-transform-block-scoping": "^7.24.1", + "@babel/plugin-transform-class-properties": "^7.24.1", + "@babel/plugin-transform-class-static-block": "^7.24.1", + "@babel/plugin-transform-classes": "^7.24.1", + "@babel/plugin-transform-computed-properties": "^7.24.1", + "@babel/plugin-transform-destructuring": "^7.24.1", + "@babel/plugin-transform-dotall-regex": "^7.24.1", + "@babel/plugin-transform-duplicate-keys": "^7.24.1", + "@babel/plugin-transform-dynamic-import": "^7.24.1", + "@babel/plugin-transform-exponentiation-operator": "^7.24.1", + "@babel/plugin-transform-export-namespace-from": "^7.24.1", + "@babel/plugin-transform-for-of": "^7.24.1", + "@babel/plugin-transform-function-name": "^7.24.1", + "@babel/plugin-transform-json-strings": "^7.24.1", + "@babel/plugin-transform-literals": "^7.24.1", + "@babel/plugin-transform-logical-assignment-operators": "^7.24.1", + "@babel/plugin-transform-member-expression-literals": "^7.24.1", + "@babel/plugin-transform-modules-amd": "^7.24.1", + "@babel/plugin-transform-modules-commonjs": "^7.24.1", + "@babel/plugin-transform-modules-systemjs": "^7.24.1", + "@babel/plugin-transform-modules-umd": "^7.24.1", "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.22.5", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", - "@babel/plugin-transform-numeric-separator": "^7.22.11", - "@babel/plugin-transform-object-rest-spread": "^7.22.15", - "@babel/plugin-transform-object-super": "^7.22.5", - "@babel/plugin-transform-optional-catch-binding": "^7.22.11", - "@babel/plugin-transform-optional-chaining": "^7.23.0", - "@babel/plugin-transform-parameters": "^7.22.15", - "@babel/plugin-transform-private-methods": "^7.22.5", - "@babel/plugin-transform-private-property-in-object": "^7.22.11", - "@babel/plugin-transform-property-literals": "^7.22.5", - "@babel/plugin-transform-regenerator": "^7.22.10", - "@babel/plugin-transform-reserved-words": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/plugin-transform-spread": "^7.22.5", - "@babel/plugin-transform-sticky-regex": "^7.22.5", - "@babel/plugin-transform-template-literals": "^7.22.5", - "@babel/plugin-transform-typeof-symbol": "^7.22.5", - "@babel/plugin-transform-unicode-escapes": "^7.22.10", - "@babel/plugin-transform-unicode-property-regex": "^7.22.5", - "@babel/plugin-transform-unicode-regex": "^7.22.5", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.24.1", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.1", + "@babel/plugin-transform-numeric-separator": "^7.24.1", + "@babel/plugin-transform-object-rest-spread": "^7.24.1", + "@babel/plugin-transform-object-super": "^7.24.1", + "@babel/plugin-transform-optional-catch-binding": "^7.24.1", + "@babel/plugin-transform-optional-chaining": "^7.24.1", + "@babel/plugin-transform-parameters": "^7.24.1", + "@babel/plugin-transform-private-methods": "^7.24.1", + "@babel/plugin-transform-private-property-in-object": "^7.24.1", + "@babel/plugin-transform-property-literals": "^7.24.1", + "@babel/plugin-transform-regenerator": "^7.24.1", + "@babel/plugin-transform-reserved-words": "^7.24.1", + "@babel/plugin-transform-shorthand-properties": "^7.24.1", + "@babel/plugin-transform-spread": "^7.24.1", + "@babel/plugin-transform-sticky-regex": "^7.24.1", + "@babel/plugin-transform-template-literals": "^7.24.1", + "@babel/plugin-transform-typeof-symbol": "^7.24.1", + "@babel/plugin-transform-unicode-escapes": "^7.24.1", + "@babel/plugin-transform-unicode-property-regex": "^7.24.1", + "@babel/plugin-transform-unicode-regex": "^7.24.1", + "@babel/plugin-transform-unicode-sets-regex": "^7.24.1", "@babel/preset-modules": "0.1.6-no-external-plugins", - "@babel/types": "^7.23.0", - "babel-plugin-polyfill-corejs2": "^0.4.6", - "babel-plugin-polyfill-corejs3": "^0.8.5", - "babel-plugin-polyfill-regenerator": "^0.5.3", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.1", + "babel-plugin-polyfill-regenerator": "^0.6.1", "core-js-compat": "^3.31.0", "semver": "^6.3.1" }, @@ -1667,9 +1683,9 @@ "dev": true }, "node_modules/@babel/runtime": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", - "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.1.tgz", + "integrity": "sha512-+BIznRzyqBf+2wCTxcKE3wDjfGeCoVE61KSHGpkzqrLi8qxqFwBeUFyId2cxkTmm55fzDGnm0+yCxaxygrLUnQ==", "dev": true, "dependencies": { "regenerator-runtime": "^0.14.0" @@ -1679,34 +1695,34 @@ } }, "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", + "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", + "@babel/code-frame": "^7.24.1", + "@babel/generator": "^7.24.1", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", + "@babel/parser": "^7.24.1", + "@babel/types": "^7.24.0", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1714,12 +1730,12 @@ } }, "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", + "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, @@ -1739,6 +1755,102 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "dev": true }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2796,45 +2908,45 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "node_modules/@jridgewell/sourcemap-codec": { @@ -2844,9 +2956,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -2876,9 +2988,9 @@ } }, "node_modules/@npmcli/fs/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2916,6 +3028,16 @@ "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", "dev": true }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -2990,9 +3112,9 @@ } }, "node_modules/@rollup/plugin-node-resolve/node_modules/@rollup/pluginutils": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.5.tgz", - "integrity": "sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", "dev": true, "dependencies": { "@types/estree": "^1.0.0", @@ -3012,9 +3134,9 @@ } }, "node_modules/@rollup/plugin-node-resolve/node_modules/@types/estree": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.3.tgz", - "integrity": "sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, "node_modules/@rollup/plugin-node-resolve/node_modules/estree-walker": { @@ -3172,9 +3294,9 @@ } }, "node_modules/@types/babel__core": { - "version": "7.20.3", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.3.tgz", - "integrity": "sha512-54fjTSeSHwfan8AyHWrKbfBWiEUrNTZsUwPTDSNaaP1QDQIZbeNUg3a59E9D+375MzUw/x1vx2/0F5LBz+AeYA==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "dependencies": { "@babel/parser": "^7.20.7", @@ -3185,18 +3307,18 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.6.6", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.6.tgz", - "integrity": "sha512-66BXMKb/sUWbMdBNdMvajU7i/44RkrA3z/Yt1c7R5xejt8qh84iU54yUWCtm0QwGJlDcf/gg4zd/x4mpLAlb/w==", + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.3.tgz", - "integrity": "sha512-ciwyCLeuRfxboZ4isgdNZi/tkt06m8Tw6uGbBSBgWrnnZGNXiEyM27xc/PjXGQLqlZ6ylbgHMnm7ccF9tCkOeQ==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "dependencies": { "@babel/parser": "^7.1.0", @@ -3204,9 +3326,9 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.3.tgz", - "integrity": "sha512-Lsh766rGEFbaxMIDH7Qa+Yha8cMVI3qAK6CHt3OR0YfxOIn5Z54iHiyDRycHrBqeIiqGa20Kpsv1cavfBKkRSw==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", "dev": true, "dependencies": { "@babel/types": "^7.20.7" @@ -3219,42 +3341,42 @@ "dev": true }, "node_modules/@types/graceful-fs": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.8.tgz", - "integrity": "sha512-NhRH7YzWq8WiNKVavKPBmtLYZHxNY19Hh+az28O/phfp68CF45pMFud+ZzJ8ewnxnC5smIdF3dqFeiSUQ5I+pw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", - "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", "dev": true }, "node_modules/@types/istanbul-lib-report": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.2.tgz", - "integrity": "sha512-8toY6FgdltSdONav1XtUHl4LN1yTmLza+EuDazb/fEmRNCwjyqNVIQWs2IfC74IqjHkREs/nQ2FWq5kZU9IC0w==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, "dependencies": { "@types/istanbul-lib-coverage": "*" } }, "node_modules/@types/istanbul-reports": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.3.tgz", - "integrity": "sha512-1nESsePMBlf0RPRffLZi5ujYh7IH1BWL4y9pr+Bn3cJBdxz+RTP8bUFljLz9HvzhhOSWKdyBZ4DIivdL6rvgZg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, "dependencies": { "@types/istanbul-lib-report": "*" } }, "node_modules/@types/jest": { - "version": "29.5.6", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.6.tgz", - "integrity": "sha512-/t9NnzkOpXb4Nfvg17ieHE6EeSjDS2SGSpNYfoLbUAeL/EOueU/RSdOWFpfQTXBEM7BguYW1XQ0EbM+6RlIh6w==", + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", "dev": true, "dependencies": { "expect": "^29.0.0", @@ -3262,24 +3384,24 @@ } }, "node_modules/@types/minimist": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.3.tgz", - "integrity": "sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", "dev": true }, "node_modules/@types/node": { - "version": "20.8.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.6.tgz", - "integrity": "sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==", + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", "dev": true, "dependencies": { - "undici-types": "~5.25.1" + "undici-types": "~5.26.4" } }, "node_modules/@types/normalize-package-data": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.2.tgz", - "integrity": "sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==", + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", "dev": true }, "node_modules/@types/prettier": { @@ -3295,9 +3417,9 @@ "dev": true }, "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, "node_modules/@types/strip-bom": { @@ -3322,28 +3444,29 @@ } }, "node_modules/@types/yargs": { - "version": "16.0.6", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.6.tgz", - "integrity": "sha512-oTP7/Q13GSPrgcwEwdlnkoZSQ1Hg9THe644qq8PG6hhJzjZ3qj1JjEFPIwWV/IXVs5XGIVqtkNOS9kh63WIJ+A==", + "version": "16.0.9", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.9.tgz", + "integrity": "sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==", "dev": true, "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@types/yargs-parser": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.1.tgz", - "integrity": "sha512-axdPBuLuEJt0c4yI5OZssC19K2Mq1uKdrfZBzuxLvaztgqUtFYZUNw7lETExPYJR9jdEoIg4mb7RQKRQzOkeGQ==", + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, "node_modules/@vue/compiler-core": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", - "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.21.tgz", + "integrity": "sha512-MjXawxZf2SbZszLPYxaFCjxfibYrzr3eYbKxwpLR9EQN+oaziSu3qKVbwBERj1IFIB8OLUewxB5m/BFzi613og==", "dev": true, "dependencies": { - "@babel/parser": "^7.21.3", - "@vue/shared": "3.3.4", + "@babel/parser": "^7.23.9", + "@vue/shared": "3.4.21", + "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.0.2" } @@ -3355,30 +3478,29 @@ "dev": true }, "node_modules/@vue/compiler-dom": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", - "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.21.tgz", + "integrity": "sha512-IZC6FKowtT1sl0CR5DpXSiEB5ayw75oT2bma1BEhV7RRR1+cfwLrxc2Z8Zq/RGFzJ8w5r9QtCOvTjQgdn0IKmA==", "dev": true, "dependencies": { - "@vue/compiler-core": "3.3.4", - "@vue/shared": "3.3.4" + "@vue/compiler-core": "3.4.21", + "@vue/shared": "3.4.21" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", - "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.21.tgz", + "integrity": "sha512-me7epoTxYlY+2CUM7hy9PCDdpMPfIwrOvAXud2Upk10g4YLv9UBW7kL798TvMeDhPthkZ0CONNrK2GoeI1ODiQ==", "dev": true, "dependencies": { - "@babel/parser": "^7.20.15", - "@vue/compiler-core": "3.3.4", - "@vue/compiler-dom": "3.3.4", - "@vue/compiler-ssr": "3.3.4", - "@vue/reactivity-transform": "3.3.4", - "@vue/shared": "3.3.4", + "@babel/parser": "^7.23.9", + "@vue/compiler-core": "3.4.21", + "@vue/compiler-dom": "3.4.21", + "@vue/compiler-ssr": "3.4.21", + "@vue/shared": "3.4.21", "estree-walker": "^2.0.2", - "magic-string": "^0.30.0", - "postcss": "^8.1.10", + "magic-string": "^0.30.7", + "postcss": "^8.4.35", "source-map-js": "^1.0.2" } }, @@ -3389,13 +3511,13 @@ "dev": true }, "node_modules/@vue/compiler-ssr": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", - "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.21.tgz", + "integrity": "sha512-M5+9nI2lPpAsgXOGQobnIueVqc9sisBFexh5yMIMRAPYLa7+5wEJs8iqOZc1WAa9WQbx9GR2twgznU8LTIiZ4Q==", "dev": true, "dependencies": { - "@vue/compiler-dom": "3.3.4", - "@vue/shared": "3.3.4" + "@vue/compiler-dom": "3.4.21", + "@vue/shared": "3.4.21" } }, "node_modules/@vue/component-compiler": { @@ -3492,77 +3614,59 @@ "dev": true }, "node_modules/@vue/reactivity": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz", - "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.21.tgz", + "integrity": "sha512-UhenImdc0L0/4ahGCyEzc/pZNwVgcglGy9HVzJ1Bq2Mm9qXOpP8RyNTjookw/gOCUlXSEtuZ2fUg5nrHcoqJcw==", "dev": true, "dependencies": { - "@vue/shared": "3.3.4" + "@vue/shared": "3.4.21" } }, - "node_modules/@vue/reactivity-transform": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", - "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.15", - "@vue/compiler-core": "3.3.4", - "@vue/shared": "3.3.4", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.0" - } - }, - "node_modules/@vue/reactivity-transform/node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, "node_modules/@vue/runtime-core": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz", - "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.21.tgz", + "integrity": "sha512-pQthsuYzE1XcGZznTKn73G0s14eCJcjaLvp3/DKeYWoFacD9glJoqlNBxt3W2c5S40t6CCcpPf+jG01N3ULyrA==", "dev": true, "dependencies": { - "@vue/reactivity": "3.3.4", - "@vue/shared": "3.3.4" + "@vue/reactivity": "3.4.21", + "@vue/shared": "3.4.21" } }, "node_modules/@vue/runtime-dom": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", - "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.21.tgz", + "integrity": "sha512-gvf+C9cFpevsQxbkRBS1NpU8CqxKw0ebqMvLwcGQrNpx6gqRDodqKqA+A2VZZpQ9RpK2f9yfg8VbW/EpdFUOJw==", "dev": true, "dependencies": { - "@vue/runtime-core": "3.3.4", - "@vue/shared": "3.3.4", - "csstype": "^3.1.1" + "@vue/runtime-core": "3.4.21", + "@vue/shared": "3.4.21", + "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz", - "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.21.tgz", + "integrity": "sha512-aV1gXyKSN6Rz+6kZ6kr5+Ll14YzmIbeuWe7ryJl5muJ4uwSwY/aStXTixx76TwkZFJLm1aAlA/HSWEJ4EyiMkg==", "dev": true, "dependencies": { - "@vue/compiler-ssr": "3.3.4", - "@vue/shared": "3.3.4" + "@vue/compiler-ssr": "3.4.21", + "@vue/shared": "3.4.21" }, "peerDependencies": { - "vue": "3.3.4" + "vue": "3.4.21" } }, "node_modules/@vue/shared": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz", - "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.21.tgz", + "integrity": "sha512-PuJe7vDIi6VYSinuEbUIQgMIRZGgM8e4R+G+/dQTk0X1NEdvgvvgv7m+rfmDH1gZzyA1OjjoWskvHlfRNfQf3g==", "dev": true }, "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "deprecated": "Use your platform's native atob() and btoa() methods instead", "dev": true }, "node_modules/abbrev": { @@ -3572,9 +3676,9 @@ "dev": true }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -3823,9 +3927,9 @@ } }, "node_modules/autoprefixer": { - "version": "10.4.16", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", - "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", + "version": "10.4.18", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.18.tgz", + "integrity": "sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g==", "dev": true, "funding": [ { @@ -3842,9 +3946,9 @@ } ], "dependencies": { - "browserslist": "^4.21.10", - "caniuse-lite": "^1.0.30001538", - "fraction.js": "^4.3.6", + "browserslist": "^4.23.0", + "caniuse-lite": "^1.0.30001591", + "fraction.js": "^4.3.7", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", "postcss-value-parser": "^4.2.0" @@ -4007,13 +4111,13 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", - "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", + "version": "0.4.10", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.10.tgz", + "integrity": "sha512-rpIuu//y5OX6jVU+a5BCn1R5RSZYWAl2Nar76iwaOdycqb6JPxediskWFMMl7stfwNJR4b7eiQvh5fB5TEQJTQ==", "dev": true, "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.3", + "@babel/helper-define-polyfill-provider": "^0.6.1", "semver": "^6.3.1" }, "peerDependencies": { @@ -4021,25 +4125,25 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz", - "integrity": "sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.1.tgz", + "integrity": "sha512-XiFei6VGwM4ii6nKC1VCenGD8Z4bjiNYcrdkM8oqM3pbuemmyb8biMgrDX1ZHSbIuMLXatM6JJ/StPYIuTl6MQ==", "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.32.2" + "@babel/helper-define-polyfill-provider": "^0.6.1", + "core-js-compat": "^3.36.0" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", - "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.1.tgz", + "integrity": "sha512-JfTApdE++cgcTWjsiCQlLyFBMbTUft9ja17saCc93lgV33h4tuCVj7tlvu//qpLwaG+3yEz7/KhahGrUMkVq9g==", "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3" + "@babel/helper-define-polyfill-provider": "^0.6.1" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -4164,13 +4268,16 @@ } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, "optional": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/bluebird": { @@ -4214,9 +4321,9 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", "dev": true, "funding": [ { @@ -4233,9 +4340,9 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", "update-browserslist-db": "^1.0.13" }, "bin": { @@ -4320,14 +4427,20 @@ "dev": true }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dev": true, "optional": true, "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4381,9 +4494,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001550", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001550.tgz", - "integrity": "sha512-p82WjBYIypO0ukTsd/FG3Xxs+4tFeaY9pfT4amQL8KWtYH7H9nYwReGAbMTJ0hsmRO8IfDtsS6p3ZWj8+1c2RQ==", + "version": "1.0.30001599", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001599.tgz", + "integrity": "sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==", "dev": true, "funding": [ { @@ -4440,16 +4553,10 @@ } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], "optional": true, "dependencies": { "anymatch": "~3.1.2", @@ -4463,6 +4570,9 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } @@ -4705,12 +4815,12 @@ "hasInstallScript": true }, "node_modules/core-js-compat": { - "version": "3.33.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.0.tgz", - "integrity": "sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw==", + "version": "3.36.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.36.1.tgz", + "integrity": "sha512-Dk997v9ZCt3X/npqzyGdTlq6t7lDBhZwGvV94PKzDArjp7BTRm7WlDAXYd/OWdeFHO8OChQYRJNJvUCqCbrtKA==", "dev": true, "dependencies": { - "browserslist": "^4.22.1" + "browserslist": "^4.23.0" }, "funding": { "type": "opencollective", @@ -4954,9 +5064,9 @@ "dev": true }, "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "dev": true }, "node_modules/dashdash": { @@ -5073,6 +5183,24 @@ "node": ">=0.10.0" } }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -5148,6 +5276,15 @@ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", @@ -5164,6 +5301,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "deprecated": "Use your platform's native DOMException instead", "dev": true, "dependencies": { "webidl-conversions": "^5.0.0" @@ -5210,6 +5348,12 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -5220,6 +5364,12 @@ "safer-buffer": "^2.1.0" } }, + "node_modules/ecc-jsbn/node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true + }, "node_modules/editorconfig": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-1.0.4.tgz", @@ -5284,9 +5434,9 @@ } }, "node_modules/editorconfig/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -5305,9 +5455,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.557", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.557.tgz", - "integrity": "sha512-6x0zsxyMXpnMJnHrondrD3SuAeKcwij9S+83j2qHAQPXbGTDDfgImzzwgGlzrIcXbHQ42tkG4qA6U860cImNhw==", + "version": "1.4.711", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.711.tgz", + "integrity": "sha512-hRg81qzvUEibX2lDxnFlVCHACa+LtrCPIsWAxo161LDYIB3jauf57RGsMZV9mvGwE98yGH06icj3zBEoOkxd/w==", "dev": true }, "node_modules/emittery": { @@ -5348,10 +5498,13 @@ } }, "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, + "engines": { + "node": ">=0.12" + }, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } @@ -5393,10 +5546,33 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dev": true, + "optional": true, + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, "engines": { "node": ">=6" @@ -5541,9 +5717,9 @@ } }, "node_modules/expect/node_modules/@types/yargs": { - "version": "17.0.28", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.28.tgz", - "integrity": "sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==", + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -5721,6 +5897,34 @@ "integrity": "sha512-G0sYfLQERwKz4+4iOZYQEZVpOt9zQrlItIxQAAYAWpfby3gbHrx0osCHz5RLl/XoXevXk0xoN4hDFky/VV9TrA==", "dev": true }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -5794,7 +5998,6 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "optional": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5859,16 +6062,20 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, "optional": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6001,6 +6208,19 @@ "node": "*" } }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "optional": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -6039,15 +6259,6 @@ "node": ">=6" } }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", @@ -6078,10 +6289,23 @@ "node": ">=4" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", "dev": true, "optional": true, "engines": { @@ -6105,13 +6329,13 @@ } }, "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, "optional": true, "dependencies": { - "has-symbols": "^1.0.2" + "has-symbols": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -6132,6 +6356,18 @@ "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", "dev": true }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -6300,9 +6536,9 @@ } }, "node_modules/immutable": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", - "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", + "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", "dev": true, "optional": true }, @@ -6395,10 +6631,23 @@ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true }, - "node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/ip-address/node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "dev": true }, "node_modules/is-arrayish": { @@ -6460,12 +6709,12 @@ "dev": true }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dev": true, "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6658,9 +6907,9 @@ "dev": true }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, "engines": { "node": ">=8" @@ -6732,9 +6981,9 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, "dependencies": { "html-escaper": "^2.0.0", @@ -6744,6 +6993,24 @@ "node": ">=8" } }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", @@ -7561,9 +7828,9 @@ "dev": true }, "node_modules/jest-environment-jsdom-sixteen/node_modules/@types/yargs": { - "version": "15.0.16", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.16.tgz", - "integrity": "sha512-2FeD5qezW3FvLpZ0JpfuaEWepgNLl9b2gQYiz/ce0NhoB1W/D+VZu98phITXkADYerfr/jb7JcDcVhITsc9bwg==", + "version": "15.0.19", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.19.tgz", + "integrity": "sha512-2XUaGVmyQjgyAZldf0D0c14vvo/yv0MhQBSTJcejMMaitsn3nxCB6TmH4G0ZQf+uxROOa9mpanoSm8h6SG/1ZA==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -8161,9 +8428,9 @@ } }, "node_modules/jest-message-util/node_modules/@types/yargs": { - "version": "17.0.28", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.28.tgz", - "integrity": "sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==", + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -8924,9 +9191,9 @@ "dev": true }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -9316,15 +9583,16 @@ "dev": true }, "node_modules/js-beautify": { - "version": "1.14.9", - "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.9.tgz", - "integrity": "sha512-coM7xq1syLcMyuVGyToxcj2AlzhkDjmfklL8r0JgJ7A76wyGMpJ1oA35mr4APdYNO/o/4YY8H54NQIJzhMbhBg==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.15.1.tgz", + "integrity": "sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==", "dev": true, "dependencies": { "config-chain": "^1.1.13", - "editorconfig": "^1.0.3", - "glob": "^8.1.0", - "nopt": "^6.0.0" + "editorconfig": "^1.0.4", + "glob": "^10.3.3", + "js-cookie": "^3.0.5", + "nopt": "^7.2.0" }, "bin": { "css-beautify": "js/bin/css-beautify.js", @@ -9332,7 +9600,16 @@ "js-beautify": "js/bin/js-beautify.js" }, "engines": { - "node": ">=12" + "node": ">=14" + } + }, + "node_modules/js-beautify/node_modules/abbrev": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", + "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, "node_modules/js-beautify/node_modules/brace-expansion": { @@ -9345,49 +9622,73 @@ } }, "node_modules/js-beautify/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=12" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/js-beautify/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/js-beautify/node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/js-beautify/node_modules/nopt": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", - "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.2.0.tgz", + "integrity": "sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==", "dev": true, "dependencies": { - "abbrev": "^1.0.0" + "abbrev": "^2.0.0" }, "bin": { "nopt": "bin/nopt.js" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/js-cookie": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", + "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==", + "dev": true, + "engines": { + "node": ">=14" } }, "node_modules/js-stringify": { @@ -9417,9 +9718,9 @@ } }, "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", "dev": true }, "node_modules/jsdom": { @@ -9714,9 +10015,9 @@ } }, "node_modules/magic-string": { - "version": "0.30.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", - "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "version": "0.30.8", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz", + "integrity": "sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==", "dev": true, "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" @@ -9753,9 +10054,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -10110,15 +10411,15 @@ "dev": true }, "node_modules/nan": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", - "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", + "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", "dev": true }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "dev": true, "funding": [ { @@ -10239,9 +10540,9 @@ } }, "node_modules/node-gyp/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -10266,9 +10567,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", "dev": true }, "node_modules/node-sass": { @@ -10414,9 +10715,9 @@ } }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -10693,6 +10994,40 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dev": true, + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -10751,9 +11086,9 @@ } }, "node_modules/postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "version": "8.4.37", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.37.tgz", + "integrity": "sha512-7iB/v/r7Woof0glKLH8b1SPHrsX7uhdO+Geb41QpF/+mWZHU3uxxSlN+UXGVit1PawOYDToO+AbZzhBzWRDwbQ==", "dev": true, "funding": [ { @@ -10770,9 +11105,9 @@ } ], "dependencies": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "source-map-js": "^1.2.0" }, "engines": { "node": "^10 || ^12 || >=14" @@ -11032,9 +11367,9 @@ } }, "node_modules/postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.4.tgz", + "integrity": "sha512-L4QzMnOdVwRm1Qb8m4x8jsZzKAaPAgrUF1r/hjDR2Xj7R+8Zsf97jAlSQzWtKx5YNiNGN8QxmPFIc/sh+RQl+Q==", "dev": true, "dependencies": { "icss-utils": "^5.0.0", @@ -11049,9 +11384,9 @@ } }, "node_modules/postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.1.1.tgz", + "integrity": "sha512-uZgqzdTleelWjzJY+Fhti6F3C9iF1JR/dODLs/JDefozYcKTBCdD8BIl6nNPbTbcLnGrk56hzwZC2DaGNvYjzA==", "dev": true, "dependencies": { "postcss-selector-parser": "^6.0.4" @@ -11564,9 +11899,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "version": "6.0.16", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz", + "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==", "dev": true, "dependencies": { "cssesc": "^3.0.0", @@ -11888,9 +12223,9 @@ "optional": true }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -12081,9 +12416,9 @@ } }, "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==", + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", "dev": true }, "node_modules/regenerator-transform": { @@ -12497,9 +12832,9 @@ "dev": true }, "node_modules/sass": { - "version": "1.69.4", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.69.4.tgz", - "integrity": "sha512-+qEreVhqAy8o++aQfCJwp0sklr2xyEzkm9Pp/Igu9wNPoe7EZEQ8X/MBvvXggI2ql607cxKg/RKOwDj6pp2XDA==", + "version": "1.72.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.72.0.tgz", + "integrity": "sha512-Gpczt3WA56Ly0Mn8Sl21Vj94s1axi9hDIzDFn9Ph9x3C3p4nNyvsqJoQyVXKou6cBlfFWEgRW4rT8Tb4i3XnVA==", "dev": true, "optional": true, "dependencies": { @@ -12635,6 +12970,24 @@ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "optional": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -12688,16 +13041,16 @@ } }, "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", + "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", "dev": true, "dependencies": { - "ip": "^2.0.0", + "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" }, "engines": { - "node": ">= 10.13.0", + "node": ">= 10.0.0", "npm": ">= 3.0.0" } }, @@ -12725,9 +13078,9 @@ } }, "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -12784,9 +13137,9 @@ } }, "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", "dev": true }, "node_modules/spdx-expression-parse": { @@ -12800,9 +13153,9 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", - "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz", + "integrity": "sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==", "dev": true }, "node_modules/sprintf-js": { @@ -12812,9 +13165,9 @@ "dev": true }, "node_modules/sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dev": true, "dependencies": { "asn1": "~0.2.3", @@ -12836,6 +13189,12 @@ "node": ">=0.10.0" } }, + "node_modules/sshpk/node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true + }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -12957,6 +13316,21 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -12969,6 +13343,19 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -13217,9 +13604,9 @@ } }, "node_modules/terser": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.22.0.tgz", - "integrity": "sha512-hHZVLgRA2z4NWcN6aS5rQDc+7Dcy58HOf2zbYwmFcQ+ua3h6eEFf5lIDKTzbWwlazPyOZsFQO8V80/IjVNExEw==", + "version": "5.29.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.29.2.tgz", + "integrity": "sha512-ZiGkhUBIM+7LwkNjXYJq8svgkd+QK3UUr0wJqY4MieaezBSAIPgbSPZyIx0idM6XWK5CMzSWa8MJIzmRcB8Caw==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -13438,9 +13825,9 @@ } }, "node_modules/undici-types": { - "version": "5.25.3", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", - "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", "dev": true }, "node_modules/unicode-canonical-property-names-ecmascript": { @@ -13648,16 +14035,24 @@ }, "node_modules/vue-next": { "name": "vue", - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz", - "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", + "version": "3.4.21", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.21.tgz", + "integrity": "sha512-5hjyV/jLEIKD/jYl4cavMcnzKwjMKohureP8ejn3hhEjwhWIhWeuzL2kJAjzl/WyVsgPY56Sy4Z40C3lVshxXA==", "dev": true, "dependencies": { - "@vue/compiler-dom": "3.3.4", - "@vue/compiler-sfc": "3.3.4", - "@vue/runtime-dom": "3.3.4", - "@vue/server-renderer": "3.3.4", - "@vue/shared": "3.3.4" + "@vue/compiler-dom": "3.4.21", + "@vue/compiler-sfc": "3.4.21", + "@vue/runtime-dom": "3.4.21", + "@vue/server-renderer": "3.4.21", + "@vue/shared": "3.4.21" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/vue-next-jest": { @@ -13752,12 +14147,13 @@ }, "node_modules/vue-prev": { "name": "vue", - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.14.tgz", - "integrity": "sha512-b2qkFyOM0kwqWFuQmgd4o+uHGU7T+2z3T+WQp8UBjADfEv2n4FEMffzBmCKNP0IGzOEEfYjvtcC62xaSKeQDrQ==", + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.16.tgz", + "integrity": "sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==", + "deprecated": "Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.", "dev": true, "dependencies": { - "@vue/compiler-sfc": "2.7.14", + "@vue/compiler-sfc": "2.7.16", "csstype": "^3.1.0" } }, @@ -13878,14 +14274,17 @@ } }, "node_modules/vue-prev/node_modules/@vue/compiler-sfc": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz", - "integrity": "sha512-aNmNHyLPsw+sVvlQFQ2/8sjNuLtK54TC6cuKnVzAY93ks4ZBrvwQSnkkIh7bsbNhum5hJBS00wSDipQ937f5DA==", + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.16.tgz", + "integrity": "sha512-KWhJ9k5nXuNtygPU7+t1rX6baZeqOYLEforUPjgNDBnLicfHCoi48H87Q8XyLZOrNNsmhuwKqtpDQWjEFe6Ekg==", "dev": true, "dependencies": { - "@babel/parser": "^7.18.4", + "@babel/parser": "^7.23.5", "postcss": "^8.4.14", "source-map": "^0.6.1" + }, + "optionalDependencies": { + "prettier": "^1.18.2 || ^2.0.0" } }, "node_modules/vue-runtime-helpers": { @@ -13895,9 +14294,9 @@ "dev": true }, "node_modules/vue-template-compiler": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", - "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.16.tgz", + "integrity": "sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==", "dev": true, "dependencies": { "de-indent": "^1.0.2", @@ -14048,6 +14447,57 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/wrap-ansi/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", diff --git a/package.json b/package.json index 196c143..1d2e822 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vueform/multiselect", - "version": "2.6.6", + "version": "2.6.7", "private": false, "description": "Vue 3 multiselect component with single select, multiselect and tagging options.", "license": "MIT",