!function(){function e(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,a,l=[],o=!0,u=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(l.push(t.value),!n||l.length!==n);o=!0);}catch(i){u=!0,a=i}finally{try{o||null==r.return||r.return()}finally{if(u)throw a}}return l}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}System.register(["./index-legacy.5d6d69c8.js","./index-legacy.2df97cf9.js"],(function(n){"use strict";var r,t,a,l,o,u,i,c,d,f,s,v,p,y,b,m,g,h,x,S,A,j,k,w;return{setters:[function(e){r=e.t,t=e.v,a=e.d,l=e.x,o=e.W,u=e.c,i=e.G,c=e.D,d=e.N,f=e.z,s=e.R,v=e.C,p=e.y,y=e.b2,b=e.Z,m=e.aT,g=e._,h=e.aI,x=e.am,S=e.E,A=e.ac,j=e.ay},function(e){k=e.c,w=e.C}],execute:function(){var C=e(r("collapse"),2),V=C[0],E=C[1],I=Symbol(V),N={border:t,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}},O=a({name:V,props:N,emits:["change","update:modelValue"],setup:function(e,n){var r=n.emit,t=n.slots,a=l(I),c=a.linkChildren,d=a.children,f=function(e){r("change",e),r("update:modelValue",e)};return o({toggleAll:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.accordion){"boolean"==typeof n&&(n={expanded:n});var r=n,t=r.expanded,a=r.skipDisabled,l=d.filter((function(e){return e.disabled&&a?e.expanded.value:null!=t?t:!e.expanded.value})),o=l.map((function(e){return e.itemName.value}));f(o)}}}),c({toggle:function(n,r){var t=e.accordion,a=e.modelValue;f(t?n===a?"":n:r?a.concat(n):a.filter((function(e){return e!==n})))},isExpanded:function(n){var r=e.accordion,t=e.modelValue;return r?t===n:t.includes(n)}}),function(){var n,r,a,l;return u("div",{class:[E(),(r={},a=i,l=e.border,a in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,r)]},[null==(n=t.default)?void 0:n.call(t)])}}}),z=(n("C",c(O)),e(r("collapse-item"),2)),B=z[0],R=z[1],T=["icon","title","value","label","right-icon"],D=d({},k,{name:f,isLink:t,disabled:Boolean,readonly:Boolean,lazyRender:t}),L=a({name:B,props:D,setup:function(e,n){var r=n.slots,t=s(),a=s(),l=v(I),i=l.parent,c=l.index;if(i){var d=p((function(){var n;return null!=(n=e.name)?n:c.value})),f=p((function(){return i.isExpanded(d.value)})),C=s(f.value),V=y((function(){return C.value||!e.lazyRender})),E=function(){f.value?t.value&&(t.value.style.height=""):C.value=!1};b(f,(function(e,n){null!==n&&(e&&(C.value=!0),(e?g:h)((function(){if(a.value&&t.value){var n=a.value.offsetHeight;if(n){var r="".concat(n,"px");t.value.style.height=e?"0":r,m((function(){t.value&&(t.value.style.height=e?r:"0")}))}else E()}})))}));var N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!f.value;i.toggle(d.value,e)},O=function(){e.disabled||e.readonly||N()},z=V((function(){var e;return A(u("div",{ref:t,class:R("wrapper"),onTransitionend:E},[u("div",{ref:a,class:R("content")},[null==(e=r.default)?void 0:e.call(r)])]),[[j,C.value]])}));return o({toggle:N,expanded:f,itemName:d}),function(){return u("div",{class:[R({border:c.value&&e.border})]},[(n=e.border,t=e.disabled,a=e.readonly,l=x(e,Object.keys(k)),a&&(l.isLink=!1),(t||a)&&(l.clickable=!1),u(w,S({role:"button",class:R("title",{disabled:t,expanded:f.value,borderless:!n}),"aria-expanded":String(f.value),onClick:O},l),x(r,T))),z()]);var n,t,a,l}}}});n("a",c(L))}}}))}();
