@bobbykim/mcl-forms 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,2 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.switch[data-v-2ee4a4f0]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-2ee4a4f0]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-2ee4a4f0]:before{-webkit-transform:translateX(var(--slider-size));-ms-transform:translateX(var(--slider-size));transform:translate(var(--slider-size))}.options-enter-active[data-v-dba14247],.options-leave-active[data-v-dba14247]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-dba14247],.options-leave-to[data-v-dba14247]{opacity:0;transform:translateY(-10px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- (function(q,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("@bobbykim/manguito-theme"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme","@vueuse/core"],i):(q=typeof globalThis<"u"?globalThis:q||self,i(q.MclForms={},q.Vue,q.ManguitoTheme,q.core))})(this,(function(q,i,R,nn){"use strict";const on=["for"],ln=i.defineComponent({__name:"MclFormGroup",props:{labelFor:{},textColor:{default:"dark-3"},textSize:{default:"md"},textBold:{type:Boolean,default:!1},label:{}},setup(e){const t=e;i.useSlots();const r=i.computed(()=>{const{textColor:n,textSize:l,textBold:a}=t,s=[R.generateClass.textColorVariant({color:n}),R.generateClass.bodyTextVariant({size:l})];return a&&s.push("font-bold"),s.join(" ")});return(n,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",{for:e.labelFor,class:"inline-block"},[i.renderSlot(n.$slots,"label",{},()=>[i.createElementVNode("p",{class:i.normalizeClass(["mb-2xs",r.value])},i.toDisplayString(e.label),3)])],8,on),i.renderSlot(n.$slots,"default")]))}}),an={class:"my-3xs mr-xs ml-3xs shrink-0"},sn=["aria-controls"],cn=["id","required","accept"],dn=i.defineComponent({__name:"MclInputFile",props:i.mergeModels({id:{},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},bgColor:{default:"light-1"},buttonText:{default:"Browse File"},buttonTextColor:{default:"dark-3"},buttonColor:{default:"light-4"},showShadow:{type:Boolean,default:!0},textColor:{default:"black"},showClear:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{default:"image/jpg,image/jpeg,image/png"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=i.useModel(e,"modelValue"),n=i.ref(),l=i.ref(0),a=()=>{n.value.click()},s=p=>{const f=p.target.files[0];r.value=f},u=()=>{r.value=null,l.value++},h=i.computed(()=>{const{rounded:p,showBorder:f,borderColor:x,showShadow:C,bgColor:E}=t,w=[R.generateClass.bgColorVariant({color:E})];return p&&w.push("rounded-md"),f&&(w.push("border-2"),w.push(R.generateClass.borderColorVariant({color:x}))),C&&w.push("shadow-md"),w.join(" ")}),d=i.computed(()=>{const{textColor:p}=t;return[R.generateClass.textColorVariant({color:p})].join(" ")}),g=i.computed(()=>{const{buttonColor:p,buttonTextColor:f,rounded:x}=t,C=[R.generateClass.bgColorVariant({color:p}),R.generateClass.textColorVariant({color:f})];return x&&C.push("rounded-l-md"),C.join(" ")}),c=i.computed(()=>{const{buttonColor:p,rounded:f}=t,x=[R.generateClass.bgColorVariant({color:p})];return f&&x.push("rounded-r-md"),x.join(" ")});return(p,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center overflow-hidden",h.value])},[i.createElementVNode("div",an,[i.createElementVNode("button",{type:"button","aria-controls":e.id,class:i.normalizeClass(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70",g.value]),onClick:a},i.toDisplayString(e.buttonText),11,sn)]),(i.openBlock(),i.createElementBlock("input",{type:"file",id:e.id,ref_key:"inputRef",ref:n,class:i.normalizeClass(["w-full bg-transparent file:hidden",[d.value]]),required:e.required,accept:e.accept,key:l.value,onChange:s},null,42,cn)),e.showClear?(i.openBlock(),i.createElementBlock("div",{key:0,class:"my-3xs mr-3xs self-stretch",onClick:u},[i.createElementVNode("button",{class:i.normalizeClass(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70",[c.value]]),"aria-label":"clear"},[(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","aria-hidden":"true",class:i.normalizeClass(["h-xs",i.unref(R.generateClass).svgFillColorVariant({color:e.buttonTextColor})])},[...f[0]||(f[0]=[i.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))],2)])):i.createCommentVNode("",!0)],2))}}),un={class:"flex items-center"},fn=["id","value","checked"],gn=i.defineComponent({__name:"MclInputRadio",props:{id:{},radioSize:{default:"md"},bgColor:{default:"success"},checkedColor:{default:"light-1"},showShadow:{type:Boolean,default:!1},value:{default:""},checked:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const r=e,n=i.ref(),l=t,a=()=>{n.value?.click()},s=i.computed(()=>{const{radioSize:g}=r;return g==="sm"?"h-xs w-xs":g==="lg"?"h-md w-md":"h-sm w-sm"}),u=i.computed(()=>{const{radioSize:g}=r;return g==="sm"?"peer-checked:before:h-2xs peer-checked:before:w-2xs":g==="lg"?"peer-checked:before:h-xs peer-checked:before:w-xs":"peer-checked:before:h-[12px] peer-checked:before:w-[12px]"}),h=i.computed(()=>{const{bgColor:g,checkedColor:c,showShadow:p}=r,f=[R.generateClass.bgColorVariant({color:g}),R.generateClass.beforeBgColorVariant({color:c})];return p&&f.push("drop-shadow-md"),f.join(" ")}),d=g=>{const c=g.target.value;l("change",g,c)};return(g,c)=>(i.openBlock(),i.createElementBlock("div",un,[i.createElementVNode("input",{id:e.id,type:"radio",class:"peer appearance-none",ref_key:"radioRef",ref:n,value:e.value,checked:e.checked,onChange:d},null,40,fn),i.createElementVNode("span",{"aria-hidden":"true",class:i.normalizeClass(["relative inline-block rounded-full before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full",[s.value,u.value,h.value]]),onClick:a},null,2)]))}}),pn=["id","aria-checked"],hn=i.defineComponent({__name:"MclInputSwitch",props:i.mergeModels({id:{},sliderColor:{default:"light-1"},onColor:{default:"success"},offColor:{default:"dark-1"},switchSize:{default:"md"},rounded:{type:Boolean,default:!0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=i.useModel(e,"modelValue"),n=i.ref(),l={primary:"peer-checked/input:bg-primary",secondary:"peer-checked/input:bg-secondary",success:"peer-checked/input:bg-success",info:"peer-checked/input:bg-info",warning:"peer-checked/input:bg-warning",danger:"peer-checked/input:bg-danger","light-1":"peer-checked/input:bg-light-1","light-2":"peer-checked/input:bg-light-2","light-3":"peer-checked/input:bg-light-3","light-4":"peer-checked/input:bg-light-4","dark-1":"peer-checked/input:bg-dark-1","dark-2":"peer-checked/input:bg-dark-2","dark-3":"peer-checked/input:bg-dark-3","dark-4":"peer-checked/input:bg-dark-1",transparent:"peer-checked/input:bg-transparent",black:"peer-checked/input:bg-black",white:"peer-checked/input:bg-white"},a=()=>{n.value?.click()},s=i.computed(()=>t.switchSize==="sm"?{"--switch-width":"30px","--switch-height":"17px","--slider-size":"13px","--gutter-size":"2px"}:t.switchSize==="lg"?{"--switch-width":"60px","--switch-height":"34px","--slider-size":"26px","--gutter-size":"4px"}:{"--switch-width":"45px","--switch-height":"25.5px","--slider-size":"19.5px","--gutter-size":"3px"}),u=i.computed(()=>{const{sliderColor:h,onColor:d,offColor:g,rounded:c}=t,p=[R.generateClass.bgColorVariant({color:g}),R.generateClass.beforeBgColorVariant({color:h}),l[d]];return c&&p.push("rounded-full before:rounded-full"),p.join(" ")});return(h,d)=>(i.openBlock(),i.createElementBlock("div",{class:"switch relative",style:i.normalizeStyle(s.value),onClick:a},[i.withDirectives(i.createElementVNode("input",{id:e.id,class:"peer/input sr-only","onUpdate:modelValue":d[0]||(d[0]=g=>r.value=g),ref_key:"inputRef",ref:n,type:"checkbox",role:"switch","aria-checked":!!r.value},null,8,pn),[[i.vModelCheckbox,r.value]]),i.createElementVNode("span",{"aria-hidden":"true",class:i.normalizeClass(["slider absolute inset-0 cursor-pointer transition-all duration-300 before:absolute before:transition-all before:duration-300",u.value])},null,2)],4))}}),Gt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},mn=Gt(hn,[["__scopeId","data-v-2ee4a4f0"]]),qt=i.defineComponent({__name:"InputHighlight",props:{color:{default:"primary"},rounded:{type:Boolean,default:!1},offset:{default:1}},setup(e){const t=e,r={1:"-top-1",2.5:"-top-2.5"},n=i.computed(()=>{const l=[R.generateClass.beforeBgColorVariant({color:t.color})];return t.rounded&&l.push("rounded-b-md"),l.push(r[t.offset]),l.join(" ")});return(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full",n.value])},null,2))}}),bn=["id","type","placeholder","required","aria-invalid","aria-describedby","minlength","maxlength","pattern"],xn=["id"],yn={class:"text-xs text-danger"},kn=i.defineComponent({__name:"MclInputText",props:i.mergeModels({id:{},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},textColor:{default:"black"},bgColor:{default:"light-1"},placeholder:{default:""},type:{default:"text"},showShadow:{type:Boolean,default:!0},required:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},invalidFeedback:{},minLength:{},maxLength:{},pattern:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=i.useModel(e,"modelValue"),n=i.computed(()=>{const{bgColor:l,showBorder:a,borderColor:s,showHighlight:u,showShadow:h,rounded:d,textColor:g}=t,c=[R.generateClass.bgColorVariant({color:l}),R.generateClass.textColorVariant({color:g})];return a&&(c.push("border-2"),c.push(R.generateClass.borderColorVariant({color:s}))),u||(c.push("focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"),c.push(R.generateClass.focusRingColorVariant({color:s}))),h&&c.push("shadow-md"),d&&c.push("rounded-md"),c.join(" ")});return(l,a)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("input",{id:e.id,type:e.type,class:i.normalizeClass(["peer peer/validation w-full p-2xs outline-none",n.value]),"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),placeholder:e.placeholder,required:e.required,"aria-invalid":e.invalid||void 0,"aria-describedby":e.invalid?`${e.id}-error`:void 0,minlength:e.minLength,maxlength:e.maxLength,pattern:e.pattern},null,10,bn),[[i.vModelDynamic,r.value]]),e.showHighlight?(i.openBlock(),i.createBlock(qt,{key:0,color:e.highlightColor,rounded:e.rounded},null,8,["color","rounded"])):i.createCommentVNode("",!0),i.createElementVNode("div",{id:`${e.id}-error`,role:"alert",class:"ml-3xs peer-valid/validation:hidden peer-invalid/validation:block"},[i.renderSlot(l.$slots,"invalid-feedback",{},()=>[i.createElementVNode("span",yn,i.toDisplayString(e.invalidFeedback),1)])],8,xn)]))}});function Yt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=Yt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wn(){for(var e,t,r=0,n="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=Yt(e))&&(n&&(n+=" "),n+=t);return n}const Xt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kt=wn,k=(e,t)=>r=>{var n;if(t?.variants==null)return Kt(e,r?.class,r?.className);const{variants:l,defaultVariants:a}=t,s=Object.keys(l).map(d=>{const g=r?.[d],c=a?.[d];if(g===null)return null;const p=Xt(g)||Xt(c);return l[d][p]}),u=r&&Object.entries(r).reduce((d,g)=>{let[c,p]=g;return p===void 0||(d[c]=p),d},{}),h=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,g)=>{let{class:c,className:p,...f}=g;return Object.entries(f).every(x=>{let[C,E]=x;return Array.isArray(E)?E.includes({...a,...u}[C]):{...a,...u}[C]===E})?[...d,c,p]:d},[]);return Kt(e,s,h,r?.class,r?.className)},vn=k("",{variants:{color:{primary:"mcl-bg-primary",secondary:"mcl-bg-secondary",success:"mcl-bg-success",danger:"mcl-bg-danger",info:"mcl-bg-info",warning:"mcl-bg-warning","light-1":"mcl-bg-light-1","light-2":"mcl-bg-light-2","light-3":"mcl-bg-light-3","light-4":"mcl-bg-light-4","dark-1":"mcl-bg-dark-1","dark-2":"mcl-bg-dark-2","dark-3":"mcl-bg-dark-3","dark-4":"mcl-bg-dark-4",black:"mcl-bg-black",white:"mcl-bg-white",transparent:"mcl-bg-transparent"}}}),Cn=k("",{variants:{color:{primary:"hover:bg-primary",secondary:"hover:bg-secondary",success:"hover:bg-success",danger:"hover:bg-danger",info:"hover:bg-info",warning:"hover:bg-warning","light-1":"hover:bg-light-1","light-2":"hover:bg-light-2","light-3":"hover:bg-light-3","light-4":"hover:bg-light-4","dark-1":"hover:bg-dark-1","dark-2":"hover:bg-dark-2","dark-3":"hover:bg-dark-3","dark-4":"hover:bg-dark-4",black:"hover:bg-black",white:"hover:bg-white",transparent:"hover:bg-transparent"}}}),En=k("",{variants:{color:{primary:"focus:bg-primary",secondary:"focus:bg-secondary",success:"focus:bg-success",danger:"focus:bg-danger",info:"focus:bg-info",warning:"focus:bg-warning","light-1":"focus:bg-light-1","light-2":"focus:bg-light-2","light-3":"focus:bg-light-3","light-4":"focus:bg-light-4","dark-1":"focus:bg-dark-1","dark-2":"focus:bg-dark-2","dark-3":"focus:bg-dark-3","dark-4":"focus:bg-dark-4",black:"focus:bg-black",white:"focus:bg-white",transparent:"focus:bg-transparent"}}}),An=k("",{variants:{color:{primary:"before:bg-primary",secondary:"before:bg-secondary",success:"before:bg-success",danger:"before:bg-danger",info:"before:bg-info",warning:"before:bg-warning","light-1":"before:bg-light-1","light-2":"before:bg-light-2","light-3":"before:bg-light-3","light-4":"before:bg-light-4","dark-1":"before:bg-dark-1","dark-2":"before:bg-dark-2","dark-3":"before:bg-dark-3","dark-4":"before:bg-dark-4",black:"before:bg-black",white:"before:bg-white",transparent:"before:bg-transparent"}}}),Tn=k("",{variants:{color:{primary:"after:bg-primary",secondary:"after:bg-secondary",success:"after:bg-success",danger:"after:bg-danger",info:"after:bg-info",warning:"after:bg-warning","light-1":"after:bg-light-1","light-2":"after:bg-light-2","light-3":"after:bg-light-3","light-4":"after:bg-light-4","dark-1":"after:bg-dark-1","dark-2":"after:bg-dark-2","dark-3":"after:bg-dark-3","dark-4":"after:bg-dark-4",black:"after:bg-black",white:"after:bg-white",transparent:"after:bg-transparent"}}}),Sn=k("",{variants:{color:{primary:"active:bg-primary",secondary:"active:bg-secondary",success:"active:bg-success",danger:"active:bg-danger",info:"active:bg-info",warning:"active:bg-warning","light-1":"active:bg-light-1","light-2":"active:bg-light-2","light-3":"active:bg-light-3","light-4":"active:bg-light-4","dark-1":"active:bg-dark-1","dark-2":"active:bg-dark-2","dark-3":"active:bg-dark-3","dark-4":"active:bg-dark-4",black:"active:bg-black",white:"active:bg-white",transparent:"active:bg-transparent"}}}),Rn=k("",{variants:{color:{primary:"text-primary",secondary:"text-secondary",success:"text-success",danger:"text-danger",info:"text-info",warning:"text-warning","light-1":"text-light-1","light-2":"text-light-2","light-3":"text-light-3","light-4":"text-light-4","dark-1":"text-dark-1","dark-2":"text-dark-2","dark-3":"text-dark-3","dark-4":"text-dark-4",black:"text-black",white:"text-white",transparent:"text-transparent"}}}),On=k("",{variants:{color:{primary:"hover:text-primary",secondary:"hover:text-secondary",success:"hover:text-success",danger:"hover:text-danger",info:"hover:text-info",warning:"hover:text-warning","light-1":"hover:text-light-1","light-2":"hover:text-light-2","light-3":"hover:text-light-3","light-4":"hover:text-light-4","dark-1":"hover:text-dark-1","dark-2":"hover:text-dark-2","dark-3":"hover:text-dark-3","dark-4":"hover:text-dark-4",black:"hover:text-black",white:"hover:text-white",transparent:"hover:text-transparent"}}}),Nn=k("",{variants:{color:{primary:"focus:text-primary",secondary:"focus:text-secondary",success:"focus:text-success",danger:"focus:text-danger",info:"focus:text-info",warning:"focus:text-warning","light-1":"focus:text-light-1","light-2":"focus:text-light-2","light-3":"focus:text-light-3","light-4":"focus:text-light-4","dark-1":"focus:text-dark-1","dark-2":"focus:text-dark-2","dark-3":"focus:text-dark-3","dark-4":"focus:text-dark-4",black:"focus:text-black",white:"focus:text-white",transparent:"focus:text-transparent"}}}),Vn=k("",{variants:{color:{primary:"disabled:text-primary",secondary:"disabled:text-secondary",success:"disabled:text-success",danger:"disabled:text-danger",info:"disabled:text-info",warning:"disabled:text-warning","light-1":"disabled:text-light-1","light-2":"disabled:text-light-2","light-3":"disabled:text-light-3","light-4":"disabled:text-light-4","dark-1":"disabled:text-dark-1","dark-2":"disabled:text-dark-2","dark-3":"disabled:text-dark-3","dark-4":"disabled:text-dark-4",black:"disabled:text-black",white:"disabled:text-white",transparent:"disabled:text-transparent"}}}),Dn=k("",{variants:{color:{primary:"fill-primary",secondary:"fill-secondary",success:"fill-success",danger:"fill-danger",info:"fill-info",warning:"fill-warning","light-1":"fill-light-1","light-2":"fill-light-2","light-3":"fill-light-3","light-4":"fill-light-4","dark-1":"fill-dark-1","dark-2":"fill-dark-2","dark-3":"fill-dark-3","dark-4":"fill-dark-4",black:"fill-black",white:"fill-white",transparent:"fill-transparent"}}}),Ln=k("",{variants:{color:{primary:"ring-primary",secondary:"ring-secondary",success:"ring-success",danger:"ring-danger",info:"ring-info",warning:"ring-warning","light-1":"ring-light-1","light-2":"ring-light-2","light-3":"ring-light-3","light-4":"ring-light-4","dark-1":"ring-dark-1","dark-2":"ring-dark-2","dark-3":"ring-dark-3","dark-4":"ring-dark-4",black:"ring-black",white:"ring-white",transparent:"ring-transparent"}}}),_n=k("",{variants:{color:{primary:"focus:ring-primary",secondary:"focus:ring-secondary",success:"focus:ring-success",danger:"focus:ring-danger",info:"focus:ring-info",warning:"focus:ring-warning","light-1":"focus:ring-light-1","light-2":"focus:ring-light-2","light-3":"focus:ring-light-3","light-4":"focus:ring-light-4","dark-1":"focus:ring-dark-1","dark-2":"focus:ring-dark-2","dark-3":"focus:ring-dark-3","dark-4":"focus:ring-dark-4",black:"focus:ring-black",white:"focus:ring-white",transparent:"focus:ring-transparent"}}}),Bn=k("",{variants:{color:{primary:"active:ring-primary",secondary:"active:ring-secondary",success:"active:ring-success",danger:"active:ring-danger",info:"active:ring-info",warning:"active:ring-warning","light-1":"active:ring-light-1","light-2":"active:ring-light-2","light-3":"active:ring-light-3","light-4":"active:ring-light-4","dark-1":"active:ring-dark-1","dark-2":"active:ring-dark-2","dark-3":"active:ring-dark-3","dark-4":"active:ring-dark-4",black:"active:ring-black",white:"active:ring-white",transparent:"active:ring-transparent"}}}),Mn=k("",{variants:{color:{primary:"peer-checked:bg-primary",secondary:"peer-checked:bg-secondary",success:"peer-checked:bg-success",danger:"peer-checked:bg-danger",info:"peer-checked:bg-info",warning:"peer-checked:bg-warning","light-1":"peer-checked:bg-light-1","light-2":"peer-checked:bg-light-2","light-3":"peer-checked:bg-light-3","light-4":"peer-checked:bg-light-4","dark-1":"peer-checked:bg-dark-1","dark-2":"peer-checked:bg-dark-2","dark-3":"peer-checked:bg-dark-3","dark-4":"peer-checked:bg-dark-4",black:"peer-checked:bg-black",white:"peer-checked:bg-white",transparent:"peer-checked:bg-transparent"}}}),In=k("",{variants:{color:{primary:"peer-focus-visible:ring-primary",secondary:"peer-focus-visible:ring-secondary",success:"peer-focus-visible:ring-success",danger:"peer-focus-visible:ring-danger",info:"peer-focus-visible:ring-info",warning:"peer-focus-visible:ring-warning","light-1":"peer-focus-visible:ring-light-1","light-2":"peer-focus-visible:ring-light-2","light-3":"peer-focus-visible:ring-light-3","light-4":"peer-focus-visible:ring-light-4","dark-1":"peer-focus-visible:ring-dark-1","dark-2":"peer-focus-visible:ring-dark-2","dark-3":"peer-focus-visible:ring-dark-3","dark-4":"peer-focus-visible:ring-dark-4",black:"peer-focus-visible:ring-black",white:"peer-focus-visible:ring-white",transparent:"peer-focus-visible:ring-transparent"}}}),zn=k("",{variants:{color:{primary:"focus-visible:ring-primary",secondary:"focus-visible:ring-secondary",success:"focus-visible:ring-success",danger:"focus-visible:ring-danger",info:"focus-visible:ring-info",warning:"focus-visible:ring-warning","light-1":"focus-visible:ring-light-1","light-2":"focus-visible:ring-light-2","light-3":"focus-visible:ring-light-3","light-4":"focus-visible:ring-light-4","dark-1":"focus-visible:ring-dark-1","dark-2":"focus-visible:ring-dark-2","dark-3":"focus-visible:ring-dark-3","dark-4":"focus-visible:ring-dark-4",black:"focus-visible:ring-black",white:"focus-visible:ring-white",transparent:"focus-visible:ring-transparent"}}}),Fn=k("",{variants:{color:{primary:"ring-offset-primary",secondary:"ring-offset-secondary",success:"ring-offset-success",danger:"ring-offset-danger",info:"ring-offset-info",warning:"ring-offset-warning","light-1":"ring-offset-light-1","light-2":"ring-offset-light-2","light-3":"ring-offset-light-3","light-4":"ring-offset-light-4","dark-1":"ring-offset-dark-1","dark-2":"ring-offset-dark-2","dark-3":"ring-offset-dark-3","dark-4":"ring-offset-dark-4",black:"ring-offset-black",white:"ring-offset-white",transparent:"ring-offset-transparent"}}}),Pn=k("",{variants:{color:{primary:"mcl-outline-primary",secondary:"mcl-outline-secondary",success:"mcl-outline-success",danger:"mcl-outline-danger",info:"mcl-outline-info",warning:"mcl-outline-warning","light-1":"mcl-outline-light-1","light-2":"mcl-outline-light-2","light-3":"mcl-outline-light-3","light-4":"mcl-outline-light-4","dark-1":"mcl-outline-dark-1","dark-2":"mcl-outline-dark-2","dark-3":"mcl-outline-dark-3","dark-4":"mcl-outline-dark-4",black:"mcl-outline-black",white:"mcl-outline-white",transparent:"mcl-outline-transparent"}}}),Hn=k("",{variants:{color:{primary:"focus:mcl-outline-primary",secondary:"focus:mcl-outline-secondary",success:"focus:mcl-outline-success",danger:"focus:mcl-outline-danger",info:"focus:mcl-outline-info",warning:"focus:mcl-outline-warning","light-1":"focus:mcl-outline-light-1","light-2":"focus:mcl-outline-light-2","light-3":"focus:mcl-outline-light-3","light-4":"focus:mcl-outline-light-4","dark-1":"focus:mcl-outline-dark-1","dark-2":"focus:mcl-outline-dark-2","dark-3":"focus:mcl-outline-dark-3","dark-4":"focus:mcl-outline-dark-4",black:"focus:mcl-outline-black",white:"focus:mcl-outline-white",transparent:"focus:mcl-outline-transparent"}}}),$n=k("",{variants:{color:{primary:"active:mcl-outline-primary",secondary:"active:mcl-outline-secondary",success:"active:mcl-outline-success",danger:"active:mcl-outline-danger",info:"active:mcl-outline-info",warning:"active:mcl-outline-warning","light-1":"active:mcl-outline-light-1","light-2":"active:mcl-outline-light-2","light-3":"active:mcl-outline-light-3","light-4":"active:mcl-outline-light-4","dark-1":"active:mcl-outline-dark-1","dark-2":"active:mcl-outline-dark-2","dark-3":"active:mcl-outline-dark-3","dark-4":"active:mcl-outline-dark-4",black:"active:mcl-outline-black",white:"active:mcl-outline-white",transparent:"active:mcl-outline-transparent"}}}),Un=k("",{variants:{color:{primary:"btn-primary",secondary:"btn-secondary",success:"btn-success",danger:"btn-danger",info:"btn-info",warning:"btn-warning","light-1":"btn-light-1","light-2":"btn-light-2","light-3":"btn-light-3","light-4":"btn-light-4","dark-1":"btn-dark-1","dark-2":"btn-dark-2","dark-3":"btn-dark-3","dark-4":"btn-dark-4",black:"btn-black",white:"btn-white",transparent:"btn-transparent"}}}),Wn=k("",{variants:{color:{primary:"mcl-list-primary",secondary:"mcl-list-secondary",success:"mcl-list-success",danger:"mcl-list-danger",info:"mcl-list-info",warning:"mcl-list-warning","light-1":"mcl-list-light-1","light-2":"mcl-list-light-2","light-3":"mcl-list-light-3","light-4":"mcl-list-light-4","dark-1":"mcl-list-dark-1","dark-2":"mcl-list-dark-2","dark-3":"mcl-list-dark-3","dark-4":"mcl-list-dark-4",black:"mcl-list-black",white:"mcl-list-white",transparent:"mcl-list-transparent"}}}),jn=k("",{variants:{color:{primary:"border-primary",secondary:"border-secondary",success:"border-success",danger:"border-danger",info:"border-info",warning:"border-warning","light-1":"border-light-1","light-2":"border-light-2","light-3":"border-light-3","light-4":"border-light-4","dark-1":"border-dark-1","dark-2":"border-dark-2","dark-3":"border-dark-3","dark-4":"border-dark-4",black:"border-black",white:"border-white",transparent:"border-transparent"}}}),Gn=k("",{variants:{color:{primary:"border-x-primary",secondary:"border-x-secondary",success:"border-x-success",danger:"border-x-danger",info:"border-x-info",warning:"border-x-warning","light-1":"border-x-light-1","light-2":"border-x-light-2","light-3":"border-x-light-3","light-4":"border-x-light-4","dark-1":"border-x-dark-1","dark-2":"border-x-dark-2","dark-3":"border-x-dark-3","dark-4":"border-x-dark-4",black:"border-x-black",white:"border-x-white",transparent:"border-x-transparent"}}}),qn=k("",{variants:{color:{primary:"border-y-primary",secondary:"border-y-secondary",success:"border-y-success",danger:"border-y-danger",info:"border-y-info",warning:"border-y-warning","light-1":"border-y-light-1","light-2":"border-y-light-2","light-3":"border-y-light-3","light-4":"border-y-light-4","dark-1":"border-y-dark-1","dark-2":"border-y-dark-2","dark-3":"border-y-dark-3","dark-4":"border-y-dark-4",black:"border-y-black",white:"border-y-white",transparent:"border-y-transparent"}}}),Yn=k("",{variants:{color:{primary:"border-t-primary",secondary:"border-t-secondary",success:"border-t-success",danger:"border-t-danger",info:"border-t-info",warning:"border-t-warning","light-1":"border-t-light-1","light-2":"border-t-light-2","light-3":"border-t-light-3","light-4":"border-t-light-4","dark-1":"border-t-dark-1","dark-2":"border-t-dark-2","dark-3":"border-t-dark-3","dark-4":"border-t-dark-4",black:"border-t-black",white:"border-t-white",transparent:"border-t-transparent"}}}),Xn=k("",{variants:{color:{primary:"border-b-primary",secondary:"border-b-secondary",success:"border-b-success",danger:"border-b-danger",info:"border-b-info",warning:"border-b-warning","light-1":"border-b-light-1","light-2":"border-b-light-2","light-3":"border-b-light-3","light-4":"border-b-light-4","dark-1":"border-b-dark-1","dark-2":"border-b-dark-2","dark-3":"border-b-dark-3","dark-4":"border-b-dark-4",black:"border-b-black",white:"border-b-white",transparent:"border-b-transparent"}}}),Kn=k("",{variants:{color:{primary:"border-l-primary",secondary:"border-l-secondary",success:"border-l-success",danger:"border-l-danger",info:"border-l-info",warning:"border-l-warning","light-1":"border-l-light-1","light-2":"border-l-light-2","light-3":"border-l-light-3","light-4":"border-l-light-4","dark-1":"border-l-dark-1","dark-2":"border-l-dark-2","dark-3":"border-l-dark-3","dark-4":"border-l-dark-4",black:"border-l-black",white:"border-l-white",transparent:"border-l-transparent"}}}),Zn=k("",{variants:{color:{primary:"border-r-primary",secondary:"border-r-secondary",success:"border-r-success",danger:"border-r-danger",info:"border-r-info",warning:"border-r-warning","light-1":"border-r-light-1","light-2":"border-r-light-2","light-3":"border-r-light-3","light-4":"border-r-light-4","dark-1":"border-r-dark-1","dark-2":"border-r-dark-2","dark-3":"border-r-dark-3","dark-4":"border-r-dark-4",black:"border-r-black",white:"border-r-white",transparent:"border-r-transparent"}}}),Jn=k("",{variants:{size:{xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl"}}}),Qn=k("",{variants:{weight:{light:"font-light",normal:"font-normal",bold:"font-bold"}}}),eo=k("",{variants:{align:{left:"text-left",center:"text-center",right:"text-right"}}}),to=k("",{variants:{size:{sm:"h1-sm",md:"h1-md",lg:"h1-lg",xl:"h1-xl"}}}),ro=k("",{variants:{size:{sm:"h2-sm",md:"h2-md",lg:"h2-lg",xl:"h2-xl"}}}),no=k("",{variants:{size:{sm:"h3-sm",md:"h3-md",lg:"h3-lg",xl:"h3-xl"}}}),oo=k("",{variants:{size:{sm:"h4-sm",md:"h4-md",lg:"h4-lg",xl:"h4-xl"}}}),io={1:"border-[1px]",2:"border-[2px]",3:"border-[3px]",4:"border-[4px]",5:"border-[5px]",6:"border-[6px]",7:"border-[7px]",8:"border-[8px]",9:"border-[9px]",10:"border-[10px]",11:"border-[11px]",12:"border-[12px]"},lo={1:"border-x-[1px]",2:"border-x-[2px]",3:"border-x-[3px]",4:"border-x-[4px]",5:"border-x-[5px]",6:"border-x-[6px]",7:"border-x-[7px]",8:"border-x-[8px]",9:"border-x-[9px]",10:"border-x-[10px]",11:"border-x-[11px]",12:"border-x-[12px]"},ao={1:"border-y-[1px]",2:"border-y-[2px]",3:"border-y-[3px]",4:"border-y-[4px]",5:"border-y-[5px]",6:"border-y-[6px]",7:"border-y-[7px]",8:"border-y-[8px]",9:"border-y-[9px]",10:"border-y-[10px]",11:"border-y-[11px]",12:"border-y-[12px]"},so={1:"border-t-[1px]",2:"border-t-[2px]",3:"border-t-[3px]",4:"border-t-[4px]",5:"border-t-[5px]",6:"border-t-[6px]",7:"border-t-[7px]",8:"border-t-[8px]",9:"border-t-[9px]",10:"border-t-[10px]",11:"border-t-[11px]",12:"border-t-[12px]"},co={1:"border-b-[1px]",2:"border-b-[2px]",3:"border-b-[3px]",4:"border-b-[4px]",5:"border-b-[5px]",6:"border-b-[6px]",7:"border-b-[7px]",8:"border-b-[8px]",9:"border-b-[9px]",10:"border-b-[10px]",11:"border-b-[11px]",12:"border-b-[12px]"},uo={1:"border-l-[1px]",2:"border-l-[2px]",3:"border-l-[3px]",4:"border-l-[4px]",5:"border-l-[5px]",6:"border-l-[6px]",7:"border-l-[7px]",8:"border-l-[8px]",9:"border-l-[9px]",10:"border-l-[10px]",11:"border-l-[11px]",12:"border-l-[12px]"},fo={1:"border-r-[1px]",2:"border-r-[2px]",3:"border-r-[3px]",4:"border-r-[4px]",5:"border-r-[5px]",6:"border-r-[6px]",7:"border-r-[7px]",8:"border-r-[8px]",9:"border-r-[9px]",10:"border-r-[10px]",11:"border-r-[11px]",12:"border-r-[12px]"},go=e=>io[e.width]??"",po=e=>lo[e.width]??"",ho=e=>ao[e.width]??"",mo=e=>so[e.width]??"",bo=e=>co[e.width]??"",xo=e=>uo[e.width]??"",yo=e=>fo[e.width]??"",ko={10:"opacity-10",20:"opacity-20",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",80:"opacity-80",90:"opacity-90",100:"opacity-100"},wo={10:"bg-opacity-10",20:"bg-opacity-20",30:"bg-opacity-30",40:"bg-opacity-40",50:"bg-opacity-50",60:"bg-opacity-60",70:"bg-opacity-70",80:"bg-opacity-80",90:"bg-opacity-90",100:"bg-opacity-100"},vo={10:"outline-opacity-10",20:"outline-opacity-20",30:"outline-opacity-30",40:"outline-opacity-40",50:"outline-opacity-50",60:"outline-opacity-60",70:"outline-opacity-70",80:"outline-opacity-80",90:"outline-opacity-90",100:"outline-opacity-100"},Co=e=>ko[e.opacity]??"",Eo=e=>wo[e.opacity]??"",Ao=e=>vo[e.opacity]??"",To=k("",{variants:{spacing:{0:"m-0","3xs":"m-3xs","2xs":"m-2xs",xs:"m-xs",sm:"m-sm",md:"m-md",lg:"m-lg",xl:"m-xl","2xl":"m-2xl","3xl":"m-3xl"}}}),So=k("",{variants:{spacing:{0:"mx-0","3xs":"mx-3xs","2xs":"mx-2xs",xs:"mx-xs",sm:"mx-sm",md:"mx-md",lg:"mx-lg",xl:"mx-xl","2xl":"mx-2xl","3xl":"mx-3xl"}}}),Ro=k("",{variants:{spacing:{0:"my-0","3xs":"my-3xs","2xs":"my-2xs",xs:"my-xs",sm:"my-sm",md:"my-md",lg:"my-lg",xl:"my-xl","2xl":"my-2xl","3xl":"my-3xl"}}}),Oo=k("",{variants:{spacing:{0:"mt-0","3xs":"mt-3xs","2xs":"mt-2xs",xs:"mt-xs",sm:"mt-sm",md:"mt-md",lg:"mt-lg",xl:"mt-xl","2xl":"mt-2xl","3xl":"mt-3xl"}}}),No=k("",{variants:{spacing:{0:"mb-0","3xs":"mb-3xs","2xs":"mb-2xs",xs:"mb-xs",sm:"mb-sm",md:"mb-md",lg:"mb-lg",xl:"mb-xl","2xl":"mb-2xl","3xl":"mb-3xl"}}}),Vo=k("",{variants:{spacing:{0:"ml-0","3xs":"ml-3xs","2xs":"ml-2xs",xs:"ml-xs",sm:"ml-sm",md:"ml-md",lg:"ml-lg",xl:"ml-xl","2xl":"ml-2xl","3xl":"ml-3xl"}}}),Do=k("",{variants:{spacing:{0:"mr-0","3xs":"mr-3xs","2xs":"mr-2xs",xs:"mr-xs",sm:"mr-sm",md:"mr-md",lg:"mr-lg",xl:"mr-xl","2xl":"mr-2xl","3xl":"mr-3xl"}}}),Lo=k("",{variants:{spacing:{0:"p-0","3xs":"p-3xs","2xs":"p-2xs",xs:"p-xs",sm:"p-sm",md:"p-md",lg:"p-lg",xl:"p-xl","2xl":"p-2xl","3xl":"p-3xl"}}}),_o=k("",{variants:{spacing:{0:"px-0","3xs":"px-3xs","2xs":"px-2xs",xs:"px-xs",sm:"px-sm",md:"px-md",lg:"px-lg",xl:"px-xl","2xl":"px-2xl","3xl":"px-3xl"}}}),Bo=k("",{variants:{spacing:{0:"py-0","3xs":"py-3xs","2xs":"py-2xs",xs:"py-xs",sm:"py-sm",md:"py-md",lg:"py-lg",xl:"py-xl","2xl":"py-2xl","3xl":"py-3xl"}}}),Mo=k("",{variants:{spacing:{0:"pt-0","3xs":"pt-3xs","2xs":"pt-2xs",xs:"pt-xs",sm:"pt-sm",md:"pt-md",lg:"pt-lg",xl:"pt-xl","2xl":"pt-2xl","3xl":"pt-3xl"}}}),Io=k("",{variants:{spacing:{0:"pb-0","3xs":"pb-3xs","2xs":"pb-2xs",xs:"pb-xs",sm:"pb-sm",md:"pb-md",lg:"pb-lg",xl:"pb-xl","2xl":"pb-2xl","3xl":"pb-3xl"}}}),zo=k("",{variants:{spacing:{0:"pl-0","3xs":"pl-3xs","2xs":"pl-2xs",xs:"pl-xs",sm:"pl-sm",md:"pl-md",lg:"pl-lg",xl:"pl-xl","2xl":"pl-2xl","3xl":"pl-3xl"}}}),Fo=k("",{variants:{spacing:{0:"pr-0","3xs":"pr-3xs","2xs":"pr-2xs",xs:"pr-xs",sm:"pr-sm",md:"pr-md",lg:"pr-lg",xl:"pr-xl","2xl":"pr-2xl","3xl":"pr-3xl"}}}),Po=k("",{variants:{spacing:{0:"gap-0","3xs":"gap-3xs","2xs":"gap-2xs",xs:"gap-xs",sm:"gap-sm",md:"gap-md",lg:"gap-lg",xl:"gap-xl","2xl":"gap-2xl","3xl":"gap-3xl"}}}),Zt={bgColorVariant:vn,hoverBgColorVariant:Cn,focusBgColorVariant:En,beforeBgColorVariant:An,afterBgColorVariant:Tn,activeBgColorVariant:Sn,textColorVariant:Rn,hoverTextColorVariant:On,focusTextColorVariant:Nn,disabledTextColorVariant:Vn,svgFillColorVariant:Dn,ringColorVariant:Ln,focusRingColorVariant:_n,activeRingColorVariant:Bn,peerCheckedBgColorVariant:Mn,peerFocusVisibleRingColorVariant:In,focusVisibleRingColorVariant:zn,ringOffsetColorVariant:Fn,outlineColorVariant:Pn,focusOutlineColorVariant:Hn,activeOutlineColorVariant:$n,btnColorVariant:Un,listColorVariant:Wn,borderColorVariant:jn,borderXColorVariant:Gn,borderYColorVariant:qn,borderTopColorVariant:Yn,borderBottomColorVariant:Xn,borderLeftColorVariant:Kn,borderRightColorVariant:Zn,bodyTextVariant:Jn,fontWeightVariant:Qn,textAlignVariant:eo,h1Variant:to,h2Variant:ro,h3Variant:no,h4Variant:oo,borderWidthVariant:go,borderXWidthVariant:po,borderYWidthVariant:ho,borderTopWidthVariant:mo,borderBottomWidthVariant:bo,borderLeftWidthVariant:xo,borderRightWidthVariant:yo,opacityVariant:Co,bgOpacityVariant:Eo,outlineOpacityVariant:Ao,marginVariant:To,marginXVariant:So,marginYVariant:Ro,marginTopVariant:Oo,marginBottomVariant:No,marginLeftVariant:Vo,marginRightVariant:Do,paddingVariant:Lo,paddingXVariant:_o,paddingYVariant:Bo,paddingTopVariant:Mo,paddingBottomVariant:Io,paddingLeftVariant:zo,paddingRightVariant:Fo,gapVariant:Po},Ho=(e,t,r)=>!t||!(t instanceof Node)||e===t||e.contains(t)?!1:r?.length?!r.some(n=>n===t||n.contains(t)):!0,Qe=e=>typeof e.value=="function"?{handler:e.value,events:["click"]}:{handler:e.value.handler,events:e.value.events||["click"],excludeElements:e.value.excludeElements},Jt=(e,t,r)=>n=>{Ho(e,n.target,r)&&t(n)},$o={mounted(e,t){const{handler:r,events:n,excludeElements:l}=Qe(t);e.__ClickOutsideHandler=Jt(e,r,l),n.forEach(a=>{document.addEventListener(a,e.__ClickOutsideHandler,!0)})},updated(e,t){e.__ClickOutsideHandler&&Qe({...t,value:t.oldValue}).events.forEach(a=>{document.removeEventListener(a,e.__ClickOutsideHandler,!0)});const{handler:r,events:n,excludeElements:l}=Qe(t);e.__ClickOutsideHandler=Jt(e,r,l),n.forEach(a=>{document.addEventListener(a,e.__ClickOutsideHandler,!0)})},unmounted(e,t){if(e.__ClickOutsideHandler){const{events:r}=Qe(t);r.forEach(n=>{document.removeEventListener(n,e.__ClickOutsideHandler,!0)}),delete e.__ClickOutsideHandler}}},{entries:Qt,setPrototypeOf:er,isFrozen:Uo,getPrototypeOf:Wo,getOwnPropertyDescriptor:jo}=Object;let{freeze:X,seal:re,create:De}=Object,{apply:yt,construct:kt}=typeof Reflect<"u"&&Reflect;X||(X=function(e){return e}),re||(re=function(e){return e}),yt||(yt=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),l=2;l<r;l++)n[l-2]=arguments[l];return e.apply(t,n)}),kt||(kt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const He=P(Array.prototype.forEach),Go=P(Array.prototype.lastIndexOf),tr=P(Array.prototype.pop),$e=P(Array.prototype.push),qo=P(Array.prototype.splice),K=Array.isArray,Ue=P(String.prototype.toLowerCase),wt=P(String.prototype.toString),rr=P(String.prototype.match),Le=P(String.prototype.replace),nr=P(String.prototype.indexOf),Yo=P(String.prototype.trim),Xo=P(Number.prototype.toString),Ko=P(Boolean.prototype.toString),or=typeof BigInt>"u"?null:P(BigInt.prototype.toString),ir=typeof Symbol>"u"?null:P(Symbol.prototype.toString),I=P(Object.prototype.hasOwnProperty),We=P(Object.prototype.toString),j=P(RegExp.prototype.test),et=Zo(TypeError);function P(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return yt(e,t,n)}}function Zo(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kt(e,r)}}function A(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue;if(er&&er(e,null),!K(t))return e;let n=t.length;for(;n--;){let l=t[n];if(typeof l=="string"){const a=r(l);a!==l&&(Uo(t)||(t[n]=a),l=a)}e[l]=!0}return e}function Jo(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}function J(e){const t=De(null);for(const[r,n]of Qt(e))I(e,r)&&(K(n)?t[r]=Jo(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=J(n):t[r]=n);return t}function Qo(e){switch(typeof e){case"string":return e;case"number":return Xo(e);case"boolean":return Ko(e);case"bigint":return or?or(e):"0";case"symbol":return ir?ir(e):"Symbol()";case"undefined":return We(e);case"function":case"object":{if(e===null)return We(e);const t=e,r=_e(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:We(n)}return We(e)}default:return We(e)}}function _e(e,t){for(;e!==null;){const n=jo(e,t);if(n){if(n.get)return P(n.get);if(typeof n.value=="function")return P(n.value)}e=Wo(e)}function r(){return null}return r}function ei(e){try{return j(e,""),!0}catch{return!1}}const lr=X(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vt=X(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=X(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ti=X(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Et=X(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ri=X(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ar=X(["#text"]),sr=X(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),At=X(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cr=X(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),tt=X(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ni=re(/\{\{[\w\W]*|[\w\W]*\}\}/gm),oi=re(/<%[\w\W]*|[\w\W]*%>/gm),ii=re(/\$\{[\w\W]*/gm),li=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),ai=re(/^aria-[\-\w]+$/),dr=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),si=re(/^(?:\w+script|data):/i),ci=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ur=re(/^html$/i),di=re(/^[a-z][.\w]*(-[.\w]+)+$/i);var fr=Object.freeze({__proto__:null,ARIA_ATTR:ai,ATTR_WHITESPACE:ci,CUSTOM_ELEMENT:di,DATA_ATTR:li,DOCTYPE_NAME:ur,ERB_EXPR:oi,IS_ALLOWED_URI:dr,IS_SCRIPT_OR_DATA:si,MUSTACHE_EXPR:ni,TMPLIT_EXPR:ii});const je={element:1,text:3,progressingInstruction:7,comment:8,document:9},ui=function(){return typeof window>"u"?null:window},fi=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const l="dompurify"+(r?"#"+r:"");try{return e.createPolicy(l,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},gr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function pr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ui();const t=o=>pr(o);if(t.version="3.4.2",t.removed=[],!e||!e.document||e.document.nodeType!==je.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,l=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:u,Element:h,NodeFilter:d,NamedNodeMap:g=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:f}=e,x=h.prototype,C=_e(x,"cloneNode"),E=_e(x,"remove"),w=_e(x,"nextSibling"),S=_e(x,"childNodes"),O=_e(x,"parentNode");if(typeof s=="function"){const o=r.createElement("template");o.content&&o.content.ownerDocument&&(r=o.content.ownerDocument)}let T,z="";const{implementation:F,createNodeIterator:V,createDocumentFragment:Y,getElementsByTagName:ie}=r,{importNode:de}=n;let B=gr();t.isSupported=typeof Qt=="function"&&typeof O=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ue,ERB_EXPR:he,TMPLIT_EXPR:Q,DATA_ATTR:Se,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:le,ATTR_WHITESPACE:y,CUSTOM_ELEMENT:v}=fr;let{IS_ALLOWED_URI:_}=fr,D=null;const te=A({},[...lr,...vt,...Ct,...Et,...ar]);let $=null;const gt=A({},[...sr,...At,...cr,...tt]);let L=Object.seal(De(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xe=null,pt=null;const we=Object.seal(De(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ir=!0,Lt=!0,zr=!1,Fr=!0,Re=!1,Ke=!0,Oe=!1,_t=!1,Bt=!1,Ie=!1,ht=!1,mt=!1,Pr=!0,Hr=!1;const $r="user-content-";let Mt=!0,Ze=!1,ze={},fe=null;const It=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ur=null;const Wr=A({},["audio","video","img","source","image","track"]);let zt=null;const jr=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let Fe=ge,Ft=!1,Pt=null;const yl=A({},[bt,xt,ge],wt);let Ht=A({},["mi","mo","mn","ms","mtext"]),$t=A({},["annotation-xml"]);const kl=A({},["title","style","font","a","script"]);let Je=null;const wl=["application/xhtml+xml","text/html"],vl="text/html";let U=null,Pe=null;const Cl=r.createElement("form"),Gr=function(o){return o instanceof RegExp||o instanceof Function},Ut=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Pe&&Pe===o)return;(!o||typeof o!="object")&&(o={}),o=J(o),Je=wl.indexOf(o.PARSER_MEDIA_TYPE)===-1?vl:o.PARSER_MEDIA_TYPE,U=Je==="application/xhtml+xml"?wt:Ue,D=I(o,"ALLOWED_TAGS")&&K(o.ALLOWED_TAGS)?A({},o.ALLOWED_TAGS,U):te,$=I(o,"ALLOWED_ATTR")&&K(o.ALLOWED_ATTR)?A({},o.ALLOWED_ATTR,U):gt,Pt=I(o,"ALLOWED_NAMESPACES")&&K(o.ALLOWED_NAMESPACES)?A({},o.ALLOWED_NAMESPACES,wt):yl,zt=I(o,"ADD_URI_SAFE_ATTR")&&K(o.ADD_URI_SAFE_ATTR)?A(J(jr),o.ADD_URI_SAFE_ATTR,U):jr,Ur=I(o,"ADD_DATA_URI_TAGS")&&K(o.ADD_DATA_URI_TAGS)?A(J(Wr),o.ADD_DATA_URI_TAGS,U):Wr,fe=I(o,"FORBID_CONTENTS")&&K(o.FORBID_CONTENTS)?A({},o.FORBID_CONTENTS,U):It,Xe=I(o,"FORBID_TAGS")&&K(o.FORBID_TAGS)?A({},o.FORBID_TAGS,U):J({}),pt=I(o,"FORBID_ATTR")&&K(o.FORBID_ATTR)?A({},o.FORBID_ATTR,U):J({}),ze=I(o,"USE_PROFILES")?o.USE_PROFILES&&typeof o.USE_PROFILES=="object"?J(o.USE_PROFILES):o.USE_PROFILES:!1,Ir=o.ALLOW_ARIA_ATTR!==!1,Lt=o.ALLOW_DATA_ATTR!==!1,zr=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Fr=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=o.SAFE_FOR_TEMPLATES||!1,Ke=o.SAFE_FOR_XML!==!1,Oe=o.WHOLE_DOCUMENT||!1,Ie=o.RETURN_DOM||!1,ht=o.RETURN_DOM_FRAGMENT||!1,mt=o.RETURN_TRUSTED_TYPE||!1,Bt=o.FORCE_BODY||!1,Pr=o.SANITIZE_DOM!==!1,Hr=o.SANITIZE_NAMED_PROPS||!1,Mt=o.KEEP_CONTENT!==!1,Ze=o.IN_PLACE||!1,_=ei(o.ALLOWED_URI_REGEXP)?o.ALLOWED_URI_REGEXP:dr,Fe=typeof o.NAMESPACE=="string"?o.NAMESPACE:ge,Ht=I(o,"MATHML_TEXT_INTEGRATION_POINTS")&&o.MATHML_TEXT_INTEGRATION_POINTS&&typeof o.MATHML_TEXT_INTEGRATION_POINTS=="object"?J(o.MATHML_TEXT_INTEGRATION_POINTS):A({},["mi","mo","mn","ms","mtext"]),$t=I(o,"HTML_INTEGRATION_POINTS")&&o.HTML_INTEGRATION_POINTS&&typeof o.HTML_INTEGRATION_POINTS=="object"?J(o.HTML_INTEGRATION_POINTS):A({},["annotation-xml"]);const m=I(o,"CUSTOM_ELEMENT_HANDLING")&&o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING=="object"?J(o.CUSTOM_ELEMENT_HANDLING):De(null);if(L=De(null),I(m,"tagNameCheck")&&Gr(m.tagNameCheck)&&(L.tagNameCheck=m.tagNameCheck),I(m,"attributeNameCheck")&&Gr(m.attributeNameCheck)&&(L.attributeNameCheck=m.attributeNameCheck),I(m,"allowCustomizedBuiltInElements")&&typeof m.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=m.allowCustomizedBuiltInElements),Re&&(Lt=!1),ht&&(Ie=!0),ze&&(D=A({},ar),$=De(null),ze.html===!0&&(A(D,lr),A($,sr)),ze.svg===!0&&(A(D,vt),A($,At),A($,tt)),ze.svgFilters===!0&&(A(D,Ct),A($,At),A($,tt)),ze.mathMl===!0&&(A(D,Et),A($,cr),A($,tt))),we.tagCheck=null,we.attributeCheck=null,I(o,"ADD_TAGS")&&(typeof o.ADD_TAGS=="function"?we.tagCheck=o.ADD_TAGS:K(o.ADD_TAGS)&&(D===te&&(D=J(D)),A(D,o.ADD_TAGS,U))),I(o,"ADD_ATTR")&&(typeof o.ADD_ATTR=="function"?we.attributeCheck=o.ADD_ATTR:K(o.ADD_ATTR)&&($===gt&&($=J($)),A($,o.ADD_ATTR,U))),I(o,"ADD_URI_SAFE_ATTR")&&K(o.ADD_URI_SAFE_ATTR)&&A(zt,o.ADD_URI_SAFE_ATTR,U),I(o,"FORBID_CONTENTS")&&K(o.FORBID_CONTENTS)&&(fe===It&&(fe=J(fe)),A(fe,o.FORBID_CONTENTS,U)),I(o,"ADD_FORBID_CONTENTS")&&K(o.ADD_FORBID_CONTENTS)&&(fe===It&&(fe=J(fe)),A(fe,o.ADD_FORBID_CONTENTS,U)),Mt&&(D["#text"]=!0),Oe&&A(D,["html","head","body"]),D.table&&(A(D,["tbody"]),delete Xe.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=o.TRUSTED_TYPES_POLICY,z=T.createHTML("")}else T===void 0&&(T=fi(f,l)),T!==null&&typeof z=="string"&&(z=T.createHTML(""));X&&X(o),Pe=o},qr=A({},[...vt,...Ct,...ti]),Yr=A({},[...Et,...ri]),El=function(o){let m=O(o);(!m||!m.tagName)&&(m={namespaceURI:Fe,tagName:"template"});const b=Ue(o.tagName),N=Ue(m.tagName);return Pt[o.namespaceURI]?o.namespaceURI===xt?m.namespaceURI===ge?b==="svg":m.namespaceURI===bt?b==="svg"&&(N==="annotation-xml"||Ht[N]):!!qr[b]:o.namespaceURI===bt?m.namespaceURI===ge?b==="math":m.namespaceURI===xt?b==="math"&&$t[N]:!!Yr[b]:o.namespaceURI===ge?m.namespaceURI===xt&&!$t[N]||m.namespaceURI===bt&&!Ht[N]?!1:!Yr[b]&&(kl[b]||!qr[b]):!!(Je==="application/xhtml+xml"&&Pt[o.namespaceURI]):!1},Ne=function(o){$e(t.removed,{element:o});try{O(o).removeChild(o)}catch{E(o)}},Ve=function(o,m){try{$e(t.removed,{attribute:m.getAttributeNode(o),from:m})}catch{$e(t.removed,{attribute:null,from:m})}if(m.removeAttribute(o),o==="is")if(Ie||ht)try{Ne(m)}catch{}else try{m.setAttribute(o,"")}catch{}},Xr=function(o){let m=null,b=null;if(Bt)o="<remove></remove>"+o;else{const M=rr(o,/^[\r\n\t ]+/);b=M&&M[0]}Je==="application/xhtml+xml"&&Fe===ge&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const N=T?T.createHTML(o):o;if(Fe===ge)try{m=new p().parseFromString(N,Je)}catch{}if(!m||!m.documentElement){m=F.createDocument(Fe,"template",null);try{m.documentElement.innerHTML=Ft?z:N}catch{}}const G=m.body||m.documentElement;return o&&b&&G.insertBefore(r.createTextNode(b),G.childNodes[0]||null),Fe===ge?ie.call(m,Oe?"html":"body")[0]:Oe?m.documentElement:G},Kr=function(o){return V.call(o.ownerDocument||o,o,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Wt=function(o){return o instanceof c&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof g)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},jt=function(o){return typeof u=="function"&&o instanceof u};function be(o,m,b){He(o,N=>{N.call(t,m,b,Pe)})}const Zr=function(o){let m=null;if(be(B.beforeSanitizeElements,o,null),Wt(o))return Ne(o),!0;const b=U(o.nodeName);if(be(B.uponSanitizeElement,o,{tagName:b,allowedTags:D}),Ke&&o.hasChildNodes()&&!jt(o.firstElementChild)&&j(/<[/\w!]/g,o.innerHTML)&&j(/<[/\w!]/g,o.textContent)||Ke&&o.namespaceURI===ge&&b==="style"&&jt(o.firstElementChild)||o.nodeType===je.progressingInstruction||Ke&&o.nodeType===je.comment&&j(/<[/\w]/g,o.data))return Ne(o),!0;if(Xe[b]||!(we.tagCheck instanceof Function&&we.tagCheck(b))&&!D[b]){if(!Xe[b]&&Qr(b)&&(L.tagNameCheck instanceof RegExp&&j(L.tagNameCheck,b)||L.tagNameCheck instanceof Function&&L.tagNameCheck(b)))return!1;if(Mt&&!fe[b]){const N=O(o)||o.parentNode,G=S(o)||o.childNodes;if(G&&N){const M=G.length;for(let xe=M-1;xe>=0;--xe){const pe=C(G[xe],!0);N.insertBefore(pe,w(o))}}}return Ne(o),!0}return o instanceof h&&!El(o)||(b==="noscript"||b==="noembed"||b==="noframes")&&j(/<\/no(script|embed|frames)/i,o.innerHTML)?(Ne(o),!0):(Re&&o.nodeType===je.text&&(m=o.textContent,He([ue,he,Q],N=>{m=Le(m,N," ")}),o.textContent!==m&&($e(t.removed,{element:o.cloneNode()}),o.textContent=m)),be(B.afterSanitizeElements,o,null),!1)},Jr=function(o,m,b){if(pt[m]||Pr&&(m==="id"||m==="name")&&(b in r||b in Cl))return!1;const N=$[m]||we.attributeCheck instanceof Function&&we.attributeCheck(m,o);if(!(Lt&&!pt[m]&&j(Se,m))&&!(Ir&&j(me,m))){if(!N||pt[m]){if(!(Qr(o)&&(L.tagNameCheck instanceof RegExp&&j(L.tagNameCheck,o)||L.tagNameCheck instanceof Function&&L.tagNameCheck(o))&&(L.attributeNameCheck instanceof RegExp&&j(L.attributeNameCheck,m)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(m,o))||m==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&j(L.tagNameCheck,b)||L.tagNameCheck instanceof Function&&L.tagNameCheck(b))))return!1}else if(!zt[m]&&!j(_,Le(b,y,""))&&!((m==="src"||m==="xlink:href"||m==="href")&&o!=="script"&&nr(b,"data:")===0&&Ur[o])&&!(zr&&!j(le,Le(b,y,"")))&&b)return!1}return!0},Al=A({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qr=function(o){return!Al[Ue(o)]&&j(v,o)},en=function(o){be(B.beforeSanitizeAttributes,o,null);const{attributes:m}=o;if(!m||Wt(o))return;const b={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let N=m.length;for(;N--;){const G=m[N],{name:M,namespaceURI:xe,value:pe}=G,Z=U(M),ve=pe;let W=M==="value"?ve:Yo(ve);if(b.attrName=Z,b.attrValue=W,b.keepAttr=!0,b.forceKeepAttr=void 0,be(B.uponSanitizeAttribute,o,b),W=b.attrValue,Hr&&(Z==="id"||Z==="name")&&nr(W,$r)!==0&&(Ve(M,o),W=$r+W),Ke&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){Ve(M,o);continue}if(Z==="attributename"&&rr(W,"href")){Ve(M,o);continue}if(b.forceKeepAttr)continue;if(!b.keepAttr){Ve(M,o);continue}if(!Fr&&j(/\/>/i,W)){Ve(M,o);continue}Re&&He([ue,he,Q],Tl=>{W=Le(W,Tl," ")});const rn=U(o.nodeName);if(!Jr(rn,Z,W)){Ve(M,o);continue}if(T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!xe)switch(f.getAttributeType(rn,Z)){case"TrustedHTML":{W=T.createHTML(W);break}case"TrustedScriptURL":{W=T.createScriptURL(W);break}}if(W!==ve)try{xe?o.setAttributeNS(xe,M,W):o.setAttribute(M,W),Wt(o)?Ne(o):tr(t.removed)}catch{Ve(M,o)}}be(B.afterSanitizeAttributes,o,null)},tn=function(o){let m=null;const b=Kr(o);for(be(B.beforeSanitizeShadowDOM,o,null);m=b.nextNode();)be(B.uponSanitizeShadowNode,m,null),Zr(m),en(m),m.content instanceof a&&tn(m.content);be(B.afterSanitizeShadowDOM,o,null)};return t.sanitize=function(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,N=null,G=null,M=null;if(Ft=!o,Ft&&(o="<!-->"),typeof o!="string"&&!jt(o)&&(o=Qo(o),typeof o!="string"))throw et("dirty is not a string, aborting");if(!t.isSupported)return o;if(_t||Ut(m),t.removed=[],typeof o=="string"&&(Ze=!1),Ze){const Z=o.nodeName;if(typeof Z=="string"){const ve=U(Z);if(!D[ve]||Xe[ve])throw et("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof u)b=Xr("<!---->"),N=b.ownerDocument.importNode(o,!0),N.nodeType===je.element&&N.nodeName==="BODY"||N.nodeName==="HTML"?b=N:b.appendChild(N);else{if(!Ie&&!Re&&!Oe&&o.indexOf("<")===-1)return T&&mt?T.createHTML(o):o;if(b=Xr(o),!b)return Ie?null:mt?z:""}b&&Bt&&Ne(b.firstChild);const xe=Kr(Ze?o:b);for(;G=xe.nextNode();)Zr(G),en(G),G.content instanceof a&&tn(G.content);if(Ze)return o;if(Ie){if(Re){b.normalize();let Z=b.innerHTML;He([ue,he,Q],ve=>{Z=Le(Z,ve," ")}),b.innerHTML=Z}if(ht)for(M=Y.call(b.ownerDocument);b.firstChild;)M.appendChild(b.firstChild);else M=b;return($.shadowroot||$.shadowrootmode)&&(M=de.call(n,M,!0)),M}let pe=Oe?b.outerHTML:b.innerHTML;return Oe&&D["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&j(ur,b.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
3
- `+pe),Re&&He([ue,he,Q],Z=>{pe=Le(pe,Z," ")}),T&&mt?T.createHTML(pe):pe},t.setConfig=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(o),_t=!0},t.clearConfig=function(){Pe=null,_t=!1},t.isValidAttribute=function(o,m,b){Pe||Ut({});const N=U(o),G=U(m);return Jr(N,G,b)},t.addHook=function(o,m){typeof m=="function"&&$e(B[o],m)},t.removeHook=function(o,m){if(m!==void 0){const b=Go(B[o],m);return b===-1?void 0:qo(B[o],b,1)[0]}return tr(B[o])},t.removeHooks=function(o){B[o]=[]},t.removeAllHooks=function(){B=gr()},t}var H=pr(),gi=H;H.sanitize.bind(H),H.isSupported,H.addHook.bind(H),H.removeHook.bind(H),H.removeHooks.bind(H),H.removeAllHooks.bind(H),H.setConfig.bind(H),H.clearConfig.bind(H),H.isValidAttribute.bind(H),H.version,H.removed;const hr={left:"tooltip-left",top:"tooltip-top",bottom:"tooltip-bottom",right:"tooltip-right"};i.defineComponent({name:"Tooltip",props:{id:{type:String,default:void 0},direction:{type:String,default:"right"},color:{type:String,default:"dark-3"},textColor:{type:String,default:"white"},width:{type:[Number,String],default:80},customClass:{type:String,default:""},content:{type:String,required:!0}},setup(e){const t="invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip",r=i.computed(()=>[Zt.bgColorVariant({color:e.color}),Zt.textColorVariant({color:e.textColor})].join(" ")),n=i.computed(()=>({width:`${e.width}px`})),l=i.computed(()=>hr[e.direction]||hr.right),a=i.computed(()=>[t,l.value,r.value,e.customClass]);return()=>i.h("div",{id:e.id,class:a.value,role:"tooltip",innerHTML:gi.sanitize(e.content),style:[n.value]})}});const rt=Math.min,Ce=Math.max,nt=Math.round,ot=Math.floor,ae=e=>({x:e,y:e}),pi={left:"right",right:"left",bottom:"top",top:"bottom"},hi={start:"end",end:"start"};function mr(e,t,r){return Ce(e,rt(t,r))}function it(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function br(e){return e==="x"?"y":"x"}function xr(e){return e==="y"?"height":"width"}const mi=new Set(["top","bottom"]);function ye(e){return mi.has(Ee(e))?"y":"x"}function yr(e){return br(ye(e))}function bi(e,t,r){r===void 0&&(r=!1);const n=lt(e),l=yr(e),a=xr(l);let s=l==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=at(s)),[s,at(s)]}function xi(e){const t=at(e);return[Tt(e),t,Tt(t)]}function Tt(e){return e.replace(/start|end/g,t=>hi[t])}const kr=["left","right"],wr=["right","left"],yi=["top","bottom"],ki=["bottom","top"];function wi(e,t,r){switch(e){case"top":case"bottom":return r?t?wr:kr:t?kr:wr;case"left":case"right":return t?yi:ki;default:return[]}}function vi(e,t,r,n){const l=lt(e);let a=wi(Ee(e),r==="start",n);return l&&(a=a.map(s=>s+"-"+l),t&&(a=a.concat(a.map(Tt)))),a}function at(e){return e.replace(/left|right|bottom|top/g,t=>pi[t])}function Ci(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ei(e){return typeof e!="number"?Ci(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:r,width:n,height:l}=e;return{width:n,height:l,top:r,left:t,right:t+n,bottom:r+l,x:t,y:r}}function vr(e,t,r){let{reference:n,floating:l}=e;const a=ye(t),s=yr(t),u=xr(s),h=Ee(t),d=a==="y",g=n.x+n.width/2-l.width/2,c=n.y+n.height/2-l.height/2,p=n[u]/2-l[u]/2;let f;switch(h){case"top":f={x:g,y:n.y-l.height};break;case"bottom":f={x:g,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:c};break;case"left":f={x:n.x-l.width,y:c};break;default:f={x:n.x,y:n.y}}switch(lt(t)){case"start":f[s]-=p*(r&&d?-1:1);break;case"end":f[s]+=p*(r&&d?-1:1);break}return f}async function Ai(e,t){var r;t===void 0&&(t={});const{x:n,y:l,platform:a,rects:s,elements:u,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=it(t,e),x=Ei(f),E=u[p?c==="floating"?"reference":"floating":c],w=st(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:d,rootBoundary:g,strategy:h})),S=c==="floating"?{x:n,y:l,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),T=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=st(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:S,offsetParent:O,strategy:h}):S);return{top:(w.top-z.top+x.top)/T.y,bottom:(z.bottom-w.bottom+x.bottom)/T.y,left:(w.left-z.left+x.left)/T.x,right:(z.right-w.right+x.right)/T.x}}const Ti=async(e,t,r)=>{const{placement:n="bottom",strategy:l="absolute",middleware:a=[],platform:s}=r,u=a.filter(Boolean),h=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:g,y:c}=vr(d,n,h),p=n,f={},x=0;for(let E=0;E<u.length;E++){var C;const{name:w,fn:S}=u[E],{x:O,y:T,data:z,reset:F}=await S({x:g,y:c,initialPlacement:n,placement:p,strategy:l,middlewareData:f,rects:d,platform:{...s,detectOverflow:(C=s.detectOverflow)!=null?C:Ai},elements:{reference:e,floating:t}});g=O??g,c=T??c,f={...f,[w]:{...f[w],...z}},F&&x<=50&&(x++,typeof F=="object"&&(F.placement&&(p=F.placement),F.rects&&(d=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:l}):F.rects),{x:g,y:c}=vr(d,p,h)),E=-1)}return{x:g,y:c,placement:p,strategy:l,middlewareData:f}},Si=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:l,middlewareData:a,rects:s,initialPlacement:u,platform:h,elements:d}=t,{mainAxis:g=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...E}=it(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Ee(l),S=ye(u),O=Ee(u)===u,T=await(h.isRTL==null?void 0:h.isRTL(d.floating)),z=p||(O||!C?[at(u)]:xi(u)),F=x!=="none";!p&&F&&z.push(...vi(u,C,x,T));const V=[u,...z],Y=await h.detectOverflow(t,E),ie=[];let de=((n=a.flip)==null?void 0:n.overflows)||[];if(g&&ie.push(Y[w]),c){const Q=bi(l,s,T);ie.push(Y[Q[0]],Y[Q[1]])}if(de=[...de,{placement:l,overflows:ie}],!ie.every(Q=>Q<=0)){var B,ue;const Q=(((B=a.flip)==null?void 0:B.index)||0)+1,Se=V[Q];if(Se&&(!(c==="alignment"?S!==ye(Se):!1)||de.every(y=>ye(y.placement)===S?y.overflows[0]>0:!0)))return{data:{index:Q,overflows:de},reset:{placement:Se}};let me=(ue=de.filter(le=>le.overflows[0]<=0).sort((le,y)=>le.overflows[1]-y.overflows[1])[0])==null?void 0:ue.placement;if(!me)switch(f){case"bestFit":{var he;const le=(he=de.filter(y=>{if(F){const v=ye(y.placement);return v===S||v==="y"}return!0}).map(y=>[y.placement,y.overflows.filter(v=>v>0).reduce((v,_)=>v+_,0)]).sort((y,v)=>y[1]-v[1])[0])==null?void 0:he[0];le&&(me=le);break}case"initialPlacement":me=u;break}if(l!==me)return{reset:{placement:me}}}return{}}}},Ri=new Set(["left","top"]);async function Oi(e,t){const{placement:r,platform:n,elements:l}=e,a=await(n.isRTL==null?void 0:n.isRTL(l.floating)),s=Ee(r),u=lt(r),h=ye(r)==="y",d=Ri.has(s)?-1:1,g=a&&h?-1:1,c=it(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:x}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return u&&typeof x=="number"&&(f=u==="end"?x*-1:x),h?{x:f*g,y:p*d}:{x:p*d,y:f*g}}const Ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:l,y:a,placement:s,middlewareData:u}=t,h=await Oi(t,e);return s===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:l+h.x,y:a+h.y,data:{...h,placement:s}}}}},Vi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:l,platform:a}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:h={fn:w=>{let{x:S,y:O}=w;return{x:S,y:O}}},...d}=it(e,t),g={x:r,y:n},c=await a.detectOverflow(t,d),p=ye(Ee(l)),f=br(p);let x=g[f],C=g[p];if(s){const w=f==="y"?"top":"left",S=f==="y"?"bottom":"right",O=x+c[w],T=x-c[S];x=mr(O,x,T)}if(u){const w=p==="y"?"top":"left",S=p==="y"?"bottom":"right",O=C+c[w],T=C-c[S];C=mr(O,C,T)}const E=h.fn({...t,[f]:x,[p]:C});return{...E,data:{x:E.x-r,y:E.y-n,enabled:{[f]:s,[p]:u}}}}}};function ct(){return typeof window<"u"}function Ae(e){return St(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function se(e){var t;return(t=(St(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function St(e){return ct()?e instanceof Node||e instanceof ee(e).Node:!1}function ne(e){return ct()?e instanceof Element||e instanceof ee(e).Element:!1}function ce(e){return ct()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function Cr(e){return!ct()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const Di=new Set(["inline","contents"]);function Ge(e){const{overflow:t,overflowX:r,overflowY:n,display:l}=oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Di.has(l)}const Li=new Set(["table","td","th"]);function _i(e){return Li.has(Ae(e))}const Bi=[":popover-open",":modal"];function dt(e){return Bi.some(t=>{try{return e.matches(t)}catch{return!1}})}const Mi=["transform","translate","scale","rotate","perspective"],Ii=["transform","translate","scale","rotate","perspective","filter"],zi=["paint","layout","strict","content"];function Rt(e){const t=Ot(),r=ne(e)?oe(e):e;return Mi.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ii.some(n=>(r.willChange||"").includes(n))||zi.some(n=>(r.contain||"").includes(n))}function Fi(e){let t=ke(e);for(;ce(t)&&!Be(t);){if(Rt(t))return t;if(dt(t))return null;t=ke(t)}return null}function Ot(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pi=new Set(["html","body","#document"]);function Be(e){return Pi.has(Ae(e))}function oe(e){return ee(e).getComputedStyle(e)}function ut(e){return ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cr(e)&&e.host||se(e);return Cr(t)?t.host:t}function Er(e){const t=ke(e);return Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&Ge(t)?t:Er(t)}function qe(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=Er(e),a=l===((n=e.ownerDocument)==null?void 0:n.body),s=ee(l);if(a){const u=Nt(s);return t.concat(s,s.visualViewport||[],Ge(l)?l:[],u&&r?qe(u):[])}return t.concat(l,qe(l,[],r))}function Nt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ar(e){const t=oe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const l=ce(e),a=l?e.offsetWidth:r,s=l?e.offsetHeight:n,u=nt(r)!==a||nt(n)!==s;return u&&(r=a,n=s),{width:r,height:n,$:u}}function Vt(e){return ne(e)?e:e.contextElement}function Me(e){const t=Vt(e);if(!ce(t))return ae(1);const r=t.getBoundingClientRect(),{width:n,height:l,$:a}=Ar(t);let s=(a?nt(r.width):r.width)/n,u=(a?nt(r.height):r.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Hi=ae(0);function Tr(e){const t=ee(e);return!Ot()||!t.visualViewport?Hi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $i(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ee(e)?!1:t}function Te(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),a=Vt(e);let s=ae(1);t&&(n?ne(n)&&(s=Me(n)):s=Me(e));const u=$i(a,r,n)?Tr(a):ae(0);let h=(l.left+u.x)/s.x,d=(l.top+u.y)/s.y,g=l.width/s.x,c=l.height/s.y;if(a){const p=ee(a),f=n&&ne(n)?ee(n):n;let x=p,C=Nt(x);for(;C&&n&&f!==x;){const E=Me(C),w=C.getBoundingClientRect(),S=oe(C),O=w.left+(C.clientLeft+parseFloat(S.paddingLeft))*E.x,T=w.top+(C.clientTop+parseFloat(S.paddingTop))*E.y;h*=E.x,d*=E.y,g*=E.x,c*=E.y,h+=O,d+=T,x=ee(C),C=Nt(x)}}return st({width:g,height:c,x:h,y:d})}function ft(e,t){const r=ut(e).scrollLeft;return t?t.left+r:Te(se(e)).left+r}function Sr(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ft(e,r),l=r.top+t.scrollTop;return{x:n,y:l}}function Ui(e){let{elements:t,rect:r,offsetParent:n,strategy:l}=e;const a=l==="fixed",s=se(n),u=t?dt(t.floating):!1;if(n===s||u&&a)return r;let h={scrollLeft:0,scrollTop:0},d=ae(1);const g=ae(0),c=ce(n);if((c||!c&&!a)&&((Ae(n)!=="body"||Ge(s))&&(h=ut(n)),ce(n))){const f=Te(n);d=Me(n),g.x=f.x+n.clientLeft,g.y=f.y+n.clientTop}const p=s&&!c&&!a?Sr(s,h):ae(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-h.scrollLeft*d.x+g.x+p.x,y:r.y*d.y-h.scrollTop*d.y+g.y+p.y}}function Wi(e){return Array.from(e.getClientRects())}function ji(e){const t=se(e),r=ut(e),n=e.ownerDocument.body,l=Ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ft(e);const u=-r.scrollTop;return oe(n).direction==="rtl"&&(s+=Ce(t.clientWidth,n.clientWidth)-l),{width:l,height:a,x:s,y:u}}const Rr=25;function Gi(e,t){const r=ee(e),n=se(e),l=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,u=0,h=0;if(l){a=l.width,s=l.height;const g=Ot();(!g||g&&t==="fixed")&&(u=l.offsetLeft,h=l.offsetTop)}const d=ft(n);if(d<=0){const g=n.ownerDocument,c=g.body,p=getComputedStyle(c),f=g.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(n.clientWidth-c.clientWidth-f);x<=Rr&&(a-=x)}else d<=Rr&&(a+=d);return{width:a,height:s,x:u,y:h}}const qi=new Set(["absolute","fixed"]);function Yi(e,t){const r=Te(e,!0,t==="fixed"),n=r.top+e.clientTop,l=r.left+e.clientLeft,a=ce(e)?Me(e):ae(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,h=l*a.x,d=n*a.y;return{width:s,height:u,x:h,y:d}}function Or(e,t,r){let n;if(t==="viewport")n=Gi(e,r);else if(t==="document")n=ji(se(e));else if(ne(t))n=Yi(t,r);else{const l=Tr(e);n={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return st(n)}function Nr(e,t){const r=ke(e);return r===t||!ne(r)||Be(r)?!1:oe(r).position==="fixed"||Nr(r,t)}function Xi(e,t){const r=t.get(e);if(r)return r;let n=qe(e,[],!1).filter(u=>ne(u)&&Ae(u)!=="body"),l=null;const a=oe(e).position==="fixed";let s=a?ke(e):e;for(;ne(s)&&!Be(s);){const u=oe(s),h=Rt(s);!h&&u.position==="fixed"&&(l=null),(a?!h&&!l:!h&&u.position==="static"&&!!l&&qi.has(l.position)||Ge(s)&&!h&&Nr(e,s))?n=n.filter(g=>g!==s):l=u,s=ke(s)}return t.set(e,n),n}function Ki(e){let{element:t,boundary:r,rootBoundary:n,strategy:l}=e;const s=[...r==="clippingAncestors"?dt(t)?[]:Xi(t,this._c):[].concat(r),n],u=s[0],h=s.reduce((d,g)=>{const c=Or(t,g,l);return d.top=Ce(c.top,d.top),d.right=rt(c.right,d.right),d.bottom=rt(c.bottom,d.bottom),d.left=Ce(c.left,d.left),d},Or(t,u,l));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Zi(e){const{width:t,height:r}=Ar(e);return{width:t,height:r}}function Ji(e,t,r){const n=ce(t),l=se(t),a=r==="fixed",s=Te(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const h=ae(0);function d(){h.x=ft(l)}if(n||!n&&!a)if((Ae(t)!=="body"||Ge(l))&&(u=ut(t)),n){const f=Te(t,!0,a,t);h.x=f.x+t.clientLeft,h.y=f.y+t.clientTop}else l&&d();a&&!n&&l&&d();const g=l&&!n&&!a?Sr(l,u):ae(0),c=s.left+u.scrollLeft-h.x-g.x,p=s.top+u.scrollTop-h.y-g.y;return{x:c,y:p,width:s.width,height:s.height}}function Dt(e){return oe(e).position==="static"}function Vr(e,t){if(!ce(e)||oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return se(e)===r&&(r=r.ownerDocument.body),r}function Dr(e,t){const r=ee(e);if(dt(e))return r;if(!ce(e)){let l=ke(e);for(;l&&!Be(l);){if(ne(l)&&!Dt(l))return l;l=ke(l)}return r}let n=Vr(e,t);for(;n&&_i(n)&&Dt(n);)n=Vr(n,t);return n&&Be(n)&&Dt(n)&&!Rt(n)?r:n||Fi(e)||r}const Qi=async function(e){const t=this.getOffsetParent||Dr,r=this.getDimensions,n=await r(e.floating);return{reference:Ji(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function el(e){return oe(e).direction==="rtl"}const tl={convertOffsetParentRelativeRectToViewportRelativeRect:Ui,getDocumentElement:se,getClippingRect:Ki,getOffsetParent:Dr,getElementRects:Qi,getClientRects:Wi,getDimensions:Zi,getScale:Me,isElement:ne,isRTL:el};function Lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rl(e,t){let r=null,n;const l=se(e);function a(){var u;clearTimeout(n),(u=r)==null||u.disconnect(),r=null}function s(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),a();const d=e.getBoundingClientRect(),{left:g,top:c,width:p,height:f}=d;if(u||t(),!p||!f)return;const x=ot(c),C=ot(l.clientWidth-(g+p)),E=ot(l.clientHeight-(c+f)),w=ot(g),O={rootMargin:-x+"px "+-C+"px "+-E+"px "+-w+"px",threshold:Ce(0,rt(1,h))||1};let T=!0;function z(F){const V=F[0].intersectionRatio;if(V!==h){if(!T)return s();V?s(!1,V):n=setTimeout(()=>{s(!1,1e-7)},1e3)}V===1&&!Lr(d,e.getBoundingClientRect())&&s(),T=!1}try{r=new IntersectionObserver(z,{...O,root:l.ownerDocument})}catch{r=new IntersectionObserver(z,O)}r.observe(e)}return s(!0),a}function nl(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:h=!1}=n,d=Vt(e),g=l||a?[...d?qe(d):[],...qe(t)]:[];g.forEach(w=>{l&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const c=d&&u?rl(d,r):null;let p=-1,f=null;s&&(f=new ResizeObserver(w=>{let[S]=w;S&&S.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var O;(O=f)==null||O.observe(t)})),r()}),d&&!h&&f.observe(d),f.observe(t));let x,C=h?Te(e):null;h&&E();function E(){const w=Te(e);C&&!Lr(C,w)&&r(),C=w,x=requestAnimationFrame(E)}return r(),()=>{var w;g.forEach(S=>{l&&S.removeEventListener("scroll",r),a&&S.removeEventListener("resize",r)}),c?.(),(w=f)==null||w.disconnect(),f=null,h&&cancelAnimationFrame(x)}}const ol=Ni,il=Vi,ll=Si,al=(e,t,r)=>{const n=new Map,l={platform:tl,...r},a={...l.platform,_c:n};return Ti(e,t,{...l,platform:a})};function sl(e){return e!=null&&typeof e=="object"&&"$el"in e}function _r(e){if(sl(e)){const t=e.$el;return St(t)&&Ae(t)==="#comment"?null:t}return e}function Ye(e){return typeof e=="function"?e():i.unref(e)}function Br(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mr(e,t){const r=Br(e);return Math.round(t*r)/r}function cl(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,l=i.computed(()=>{var V;return(V=Ye(r.open))!=null?V:!0}),a=i.computed(()=>Ye(r.middleware)),s=i.computed(()=>{var V;return(V=Ye(r.placement))!=null?V:"bottom"}),u=i.computed(()=>{var V;return(V=Ye(r.strategy))!=null?V:"absolute"}),h=i.computed(()=>{var V;return(V=Ye(r.transform))!=null?V:!0}),d=i.computed(()=>_r(e.value)),g=i.computed(()=>_r(t.value)),c=i.ref(0),p=i.ref(0),f=i.ref(u.value),x=i.ref(s.value),C=i.shallowRef({}),E=i.ref(!1),w=i.computed(()=>{const V={position:f.value,left:"0",top:"0"};if(!g.value)return V;const Y=Mr(g.value,c.value),ie=Mr(g.value,p.value);return h.value?{...V,transform:"translate("+Y+"px, "+ie+"px)",...Br(g.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:Y+"px",top:ie+"px"}});let S;function O(){if(d.value==null||g.value==null)return;const V=l.value;al(d.value,g.value,{middleware:a.value,placement:s.value,strategy:u.value}).then(Y=>{c.value=Y.x,p.value=Y.y,f.value=Y.strategy,x.value=Y.placement,C.value=Y.middlewareData,E.value=V!==!1})}function T(){typeof S=="function"&&(S(),S=void 0)}function z(){if(T(),n===void 0){O();return}if(d.value!=null&&g.value!=null){S=n(d.value,g.value,O);return}}function F(){l.value||(E.value=!1)}return i.watch([a,s,u,l],O,{flush:"sync"}),i.watch([d,g],z,{flush:"sync"}),i.watch(l,F,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(T),{x:i.shallowReadonly(c),y:i.shallowReadonly(p),strategy:i.shallowReadonly(f),placement:i.shallowReadonly(x),middlewareData:i.shallowReadonly(C),isPositioned:i.shallowReadonly(E),floatingStyles:w,update:O}}const dl=["id","placeholder","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],ul=["id"],fl=["id","aria-selected","onClick","onMouseenter"],gl=Gt(i.defineComponent({__name:"MclSelect",props:i.mergeModels({id:{},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},textColor:{default:"black"},bgColor:{default:"light-1"},iconColor:{default:"dark-4"},placeholder:{default:""},showShadow:{type:Boolean,default:!0},required:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},options:{},optionHoverColor:{default:"primary"},noMatchText:{default:"No match."}},{modelValue:{default:null},modelModifiers:{}}),emits:i.mergeModels(["open","close","clear","changed","select"],["update:modelValue"]),setup(e,{emit:t}){const r=e;i.useSlots();const n=t,l=i.useModel(e,"modelValue"),a=i.ref(),s=i.ref(),u=i.ref(),h=i.ref([]),d=i.ref(null),g=i.ref(),c=i.ref(!1),p=i.ref(""),f=i.ref(0),x=()=>{c.value=!0},C=()=>{p.value="",c.value=!1,d.value=null,s.value?.blur(),l.value=""},E=()=>{c.value=!1,f.value=0},w=()=>{c.value=!c.value,f.value=0,c.value===!0&&s.value?.focus()},S=y=>{y.preventDefault(),p.value!==""&&(p.value=""),f.value=0,l.value="",n("clear")},O=(y,v)=>{h.value[v]=y},T=y=>{y.style.pointerEvents="none"},z=y=>{y.style.pointerEvents="auto"},F=y=>{f.value=y},V=(y,v)=>{y.preventDefault(),p.value=typeof v=="string"?v:v.text;const _=typeof v=="string"?v:v.value;l.value=_,c.value=!1,n("select",_)},Y=i.computed(()=>{const{bgColor:y,showBorder:v,borderColor:_,showHighlight:D,showShadow:te,rounded:$,textColor:gt}=r,L=[R.generateClass.bgColorVariant({color:y}),R.generateClass.textColorVariant({color:gt})];return v&&(L.push("border-2"),L.push(R.generateClass.borderColorVariant({color:_}))),D||L.push("ring-offset-2 transition-all duration-300 ease-linear"),te&&L.push("shadow-md"),$&&L.push("rounded-md"),L.join(" ")}),ie=i.computed(()=>{const{highlightColor:y,rounded:v}=r,_=[R.generateClass.beforeBgColorVariant({color:y})];return v&&_.push("rounded-b-md"),_.join(" ")}),de=i.computed(()=>{const{showHighlight:y,bgColor:v,borderColor:_,rounded:D}=r,te=[R.generateClass.bgColorVariant({color:v}),R.generateClass.borderColorVariant({color:_})];return y||te.push("mt-2xs"),D&&te.push("rounded-md"),te.join(" ")}),B=i.computed(()=>p.value===""?r.options:r.options.filter(v=>{const _=new RegExp(`${p.value}`,"gi");return typeof v=="string"?v.match(_):v.text.match(_)})),ue=y=>{c.value&&(y==="up"&&f.value>0&&f.value--,y==="down"&&f.value<B.value.length-1&&f.value++)},he=()=>{if(!c.value)return;const y=B.value[f.value];let v;typeof y=="string"?(p.value=y,v=y):(p.value=y.text,v=y.value),l.value=v,c.value=!1,n("select",v)},Q=i.computed(()=>({width:`${g.value}px`})),Se=y=>l.value===null||l.value===""?!1:typeof y=="string"?y===l.value:y.value===l.value,me=i.computed(()=>c.value&&B.value.length>0?`${r.id}-option-${f.value}`:void 0),{floatingStyles:le}=cl(a,u,{whileElementsMounted:nl,strategy:"absolute",open:c,transform:!1,placement:"bottom",middleware:[ll(),ol(-2.2),il()]});return nn.useResizeObserver(a,()=>{a.value&&(g.value=a.value.clientWidth)}),i.watch(c,y=>{n(y===!0?"open":"close")}),i.watch(l,y=>{if(y===null){c.value=!1,d.value=null;return}n("changed",y)}),i.watch(f,()=>{d.value=h.value[f.value],d.value&&d.value.scrollIntoView&&d.value.scrollIntoView({block:"nearest"})}),(y,v)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{onKeyup:[i.withKeys(C,["esc"]),v[1]||(v[1]=i.withKeys(_=>ue("down"),["down"])),v[2]||(v[2]=i.withKeys(_=>ue("up"),["up"])),i.withKeys(he,["enter"])],ref_key:"componentRef",ref:a,class:"relative"},[i.createElementVNode("div",{class:i.normalizeClass(["relative flex gap-3xs p-2xs",[!e.showHighlight&&c.value&&i.unref(R.generateClass).ringColorVariant({color:e.borderColor})+" ring-4",Y.value]])},[i.withDirectives(i.createElementVNode("input",{id:e.id,type:"text",class:"w-full bg-transparent outline-none","onUpdate:modelValue":v[0]||(v[0]=_=>p.value=_),ref_key:"inputBox",ref:s,role:"combobox",autocomplete:"off",placeholder:e.placeholder,"aria-autocomplete":"list","aria-expanded":c.value,"aria-controls":`${e.id}-listbox`,"aria-activedescendant":me.value,"aria-invalid":e.invalid||void 0,onFocus:x},null,40,dl),[[i.vModelText,p.value]]),i.createElementVNode("div",{class:i.normalizeClass(["flex items-center px-3xs",[p.value===""?"hidden cursor-text":"block cursor-pointer"]]),onClick:S},[(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",class:i.normalizeClass(["h-xs opacity-70",[i.unref(R.generateClass).svgFillColorVariant({color:e.iconColor})]])},[...v[3]||(v[3]=[i.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))],2),i.createElementVNode("div",{class:"flex items-center px-3xs",onClick:w},[(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",class:i.normalizeClass(["h-xs",[c.value?"rotate-180":"rotate-0","transition-transform duration-300 ease-in",i.unref(R.generateClass).svgFillColorVariant({color:e.iconColor})]])},[...v[4]||(v[4]=[i.createElementVNode("path",{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},null,-1)])],2))])],2),e.showHighlight?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear",[c.value?"before:w-full":"before:w-0",ie.value]])},null,2)):i.createCommentVNode("",!0),i.createVNode(i.Transition,{name:"options",onBeforeLeave:T,onEnter:z},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createElementBlock("ul",{key:0,id:`${e.id}-listbox`,class:i.normalizeClass([[de.value],"max-h-50 overflow-y-auto border-2"]),style:i.normalizeStyle({...Q.value,...i.unref(le)}),role:"listbox",ref_key:"dropdownRef",ref:u},[B.value.length>0?i.renderSlot(y.$slots,"dropdown",{key:0,optionClick:V,options:B.value,activeIndex:f.value,setRef:O,hover:F},()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(B.value,(_,D)=>(i.openBlock(),i.createElementBlock("li",{key:D,id:`${e.id}-option-${D}`,class:i.normalizeClass(["cursor-pointer p-2xs",[f.value===D&&i.unref(R.generateClass).bgColorVariant({color:e.highlightColor})]]),role:"option","aria-selected":Se(_),ref_for:!0,ref:te=>O(te,D),onClick:te=>V(te,_),onMouseenter:te=>F(D)},i.toDisplayString(typeof _=="string"?_:_.text),43,fl))),128))],!0):i.renderSlot(y.$slots,"no-match",{key:1},()=>[i.createElementVNode("li",{class:i.normalizeClass(["cursor-pointer p-2xs",[i.unref(R.generateClass).hoverBgColorVariant({color:e.optionHoverColor})]]),"aria-live":"polite"},[i.createElementVNode("span",null,i.toDisplayString(e.noMatchText),1)],2)],!0)],14,ul)):i.createCommentVNode("",!0)]),_:3})],32)),[[i.unref($o),E]])}}),[["__scopeId","data-v-dba14247"]]),pl=["id","placeholder","required","aria-invalid","rows"],hl=i.defineComponent({__name:"MclTextArea",props:i.mergeModels({id:{},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},bgColor:{default:"light-1"},textColor:{default:"black"},placeholder:{default:""},showShadow:{type:Boolean,default:!0},required:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},rows:{default:5}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=i.useModel(e,"modelValue"),n=i.computed(()=>{const{bgColor:l,showBorder:a,borderColor:s,showHighlight:u,showShadow:h,rounded:d,textColor:g}=t,c=[R.generateClass.bgColorVariant({color:l}),R.generateClass.textColorVariant({color:g})];return a&&(c.push("border-2"),c.push(R.generateClass.borderColorVariant({color:s}))),u||(c.push("focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"),c.push(R.generateClass.focusRingColorVariant({color:s}))),h&&c.push("shadow-md"),d&&c.push("rounded-md"),c.join(" ")});return(l,a)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("textarea",{id:e.id,class:i.normalizeClass(["input__text peer w-full p-2xs outline-none",n.value]),"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),placeholder:e.placeholder,required:e.required,"aria-invalid":e.invalid||void 0,rows:e.rows},null,10,pl),[[i.vModelText,r.value]]),e.showHighlight?(i.openBlock(),i.createBlock(qt,{key:0,color:e.highlightColor,rounded:e.rounded,offset:2.5},null,8,["color","rounded"])):i.createCommentVNode("",!0)]))}}),ml={class:"relative"},bl=["id","value","checked"],xl=i.defineComponent({__name:"MclCheckbox",props:i.mergeModels({id:{},inputSize:{default:"md"},bgColor:{default:"light-1"},checkedBgColor:{default:"warning"},checkColor:{default:"dark-3"},borderColor:{default:"dark-1"},showShadow:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},value:{},checked:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["checkbox-click"],["update:modelValue"]),setup(e,{emit:t}){const r={primary:"peer-checked/input:bg-primary",secondary:"peer-checked/input:bg-secondary",success:"peer-checked/input:bg-success",info:"peer-checked/input:bg-info",warning:"peer-checked/input:bg-warning",danger:"peer-checked/input:bg-danger","light-1":"peer-checked/input:bg-light-1","light-2":"peer-checked/input:bg-light-2","light-3":"peer-checked/input:bg-light-3","light-4":"peer-checked/input:bg-light-4","dark-1":"peer-checked/input:bg-dark-1","dark-2":"peer-checked/input:bg-dark-2","dark-3":"peer-checked/input:bg-dark-3","dark-4":"peer-checked/input:bg-dark-1",transparent:"peer-checked/input:bg-transparent",black:"peer-checked/input:bg-black",white:"peer-checked/input:bg-white"},n={primary:"before:bg-primary",secondary:"before:bg-secondary",success:"before:bg-success",info:"before:bg-info",warning:"before:bg-warning",danger:"before:bg-danger","light-1":"before:bg-light-1","light-2":"before:bg-light-2","light-3":"before:bg-light-3","light-4":"before:bg-light-4","dark-1":"before:bg-dark-1","dark-2":"before:bg-dark-2","dark-3":"before:bg-dark-3","dark-4":"before:bg-dark-1",transparent:"before:bg-transparent",black:"before:bg-black",white:"before:bg-white"},l=e,a=i.useModel(e,"modelValue"),s=i.ref(),u=t,h=()=>{s.value?.click()},d=p=>{const f=p.target.value;u("checkbox-click",p,s.value.checked,s.value?.checked?f:"")},g=i.computed(()=>{const{inputSize:p}=l;return p==="sm"?"h-xs w-xs before:h-2xs before:w-2xs":p==="lg"?"h-md w-md before:h-xs before:w-xs":"h-sm w-sm before:w-[12px] before:h-[12px]"}),c=i.computed(()=>{const{bgColor:p,borderColor:f,showShadow:x,rounded:C,checkedBgColor:E,checkColor:w}=l,S=[R.generateClass.bgColorVariant({color:p}),R.generateClass.borderColorVariant({color:f}),n[w],r[E]];return x&&S.push("drop-shadow-md"),C&&S.push("rounded-md before:rounded-[3px]"),S.join(" ")});return(p,f)=>(i.openBlock(),i.createElementBlock("div",ml,[i.withDirectives(i.createElementVNode("input",{id:e.id,ref_key:"checkboxRef",ref:s,type:"checkbox",value:e.value,checked:e.checked,"onUpdate:modelValue":f[0]||(f[0]=x=>a.value=x),class:"peer/input appearance-none",onChange:d},null,40,bl),[[i.vModelCheckbox,a.value]]),i.createElementVNode("span",{"aria-hidden":"true",class:i.normalizeClass(["before:ease-linar relative inline-block border p-3xs transition-colors duration-200 ease-linear before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked/input:before:opacity-100 hover:bg-opacity-60 peer-checked/input:hover:bg-opacity-60",[c.value,g.value]]),onClick:h},null,2)]))}});q.MclCheckbox=xl,q.MclFormGroup=ln,q.MclInputFile=dn,q.MclInputRadio=gn,q.MclInputSwitch=mn,q.MclInputText=kn,q.MclSelect=gl,q.MclTextArea=hl,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-784930f6]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-784930f6]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-784930f6]:before{transform:translate(var(--slider-size))}.options-enter-active[data-v-2695c901],.options-leave-active[data-v-2695c901]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-2695c901],.options-leave-to[data-v-2695c901]{opacity:0;transform:translateY(-10px)}.options-leave-active[data-v-2695c901]{pointer-events:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ (function(M,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@bobbykim/manguito-theme"),require("@bobbykim/manguito-theme/directives"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme","@bobbykim/manguito-theme/directives","@vueuse/core"],e):(M=typeof globalThis<"u"?globalThis:M||self,e(M.MclForms={},M.Vue,M.ManguitoTheme,M.ManguitoThemeDirectives,M.core))})(this,(function(M,e,v,et,tt){"use strict";const ot=["id"],nt={class:"text-xs text-danger"},X=e.defineComponent({__name:"FieldFeedback",props:{id:{},invalid:{type:Boolean,default:!1},text:{default:""}},setup(t){return(o,n)=>t.invalid?(e.openBlock(),e.createElementBlock("div",{key:0,id:t.id,role:"alert",class:"ml-3xs"},[e.renderSlot(o.$slots,"default",{},()=>[e.createElementVNode("span",nt,e.toDisplayString(t.text),1)])],8,ot)):e.createCommentVNode("",!0)}}),Ee=Symbol("mcl-field");let lt=0;const oe=t=>t!==void 0&&t!==""?t:void 0,Re=t=>oe(t)??oe(e.useId())??`mcl-field-${++lt}`,Me=(t,o,n)=>e.computed(()=>{const l=[];return t&&l.push(t),n.value&&o!==void 0&&l.push(o),l.length>0?l.join(" "):void 0}),rt=t=>{const o=Re(t.fieldId),n=e.computed(()=>e.toValue(t.invalid)??!1),l=`${o}-error`,a=t.hasHelpText?`${o}-description`:void 0,r={id:o,name:e.computed(()=>e.toValue(t.name)??o),errorId:l,descriptionId:a,invalid:n,required:e.computed(()=>e.toValue(t.required)??!1),disabled:e.computed(()=>e.toValue(t.disabled)??!1),describedBy:Me(a,l,n),feedbackOwnedByGroup:t.ownsFeedback,isGroupLabel:t.isGroupLabel};return e.provide(Ee,r),r},W=(t,o)=>{const n=e.inject(Ee,null),l=o?.rendersOwnFeedback??!0,a=Re(void 0),r=oe(t.id),i=n!==null&&!n.isGroupLabel?oe(n.id):void 0,s=r??i??a,d=n?.feedbackOwnedByGroup??!1,c=d?n.errorId:`${s}-error`,f=d||l,m=n?.descriptionId,u=e.computed(()=>t.invalid??n?.invalid.value??!1);return{id:s,name:e.computed(()=>t.name??e.toValue(n?.name)),errorId:c,descriptionId:m,invalid:u,required:e.computed(()=>t.required??n?.required.value??!1),disabled:e.computed(()=>t.disabled??n?.disabled.value??!1),describedBy:Me(m,f?c:void 0,u),feedbackOwnedByGroup:d,isGroupLabel:n?.isGroupLabel??!1}},at={key:0,class:"m-0 min-w-0 border-0 p-0"},it={key:0,class:"inline-block"},st=["id"],ct={key:1},dt=["for"],ft=["id"],ut=e.defineComponent({__name:"MclFormGroup",props:{fieldId:{},groupLabel:{type:Boolean,default:!1},label:{},helpText:{},invalidFeedback:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},textColor:{default:"dark-3"},textSize:{default:"md"},textBold:{type:Boolean,default:!1}},setup(t){const o=t,n=e.useSlots(),l=n["invalid-feedback"]!==void 0,a=o.helpText!==void 0||n.help!==void 0,r=o.invalidFeedback!==void 0||l,i=o.groupLabel,s=rt({fieldId:o.fieldId,invalid:()=>o.invalid,required:()=>o.required,disabled:()=>o.disabled,hasHelpText:a,ownsFeedback:r,isGroupLabel:i}),d=e.computed(()=>{const c=[v.generateClass.textColorVariant({color:o.textColor}),v.generateClass.bodyTextVariant({size:o.textSize})];return o.textBold&&c.push("font-bold"),c.join(" ")});return(c,f)=>e.unref(i)?(e.openBlock(),e.createElementBlock("fieldset",at,[t.label||c.$slots.label?(e.openBlock(),e.createElementBlock("legend",it,[e.renderSlot(c.$slots,"label",{},()=>[e.createElementVNode("span",{class:e.normalizeClass(["mb-2xs block",d.value])},e.toDisplayString(t.label),3)])])):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("p",{key:1,id:e.unref(s).descriptionId,class:"mb-2xs text-xs"},[e.renderSlot(c.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)])],8,st)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default"),e.unref(r)?(e.openBlock(),e.createBlock(X,{key:2,id:e.unref(s).errorId,invalid:e.unref(s).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[l?e.renderSlot(c.$slots,"invalid-feedback",{key:0}):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ct,[t.label||c.$slots.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(s).id,class:"inline-block"},[e.renderSlot(c.$slots,"label",{},()=>[e.createElementVNode("span",{class:e.normalizeClass(["mb-2xs block",d.value])},e.toDisplayString(t.label),3)])],8,dt)):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("p",{key:1,id:e.unref(s).descriptionId,class:"mb-2xs text-xs"},[e.renderSlot(c.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)])],8,ft)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default"),e.unref(r)?(e.openBlock(),e.createBlock(X,{key:2,id:e.unref(s).errorId,invalid:e.unref(s).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[l?e.renderSlot(c.$slots,"invalid-feedback",{key:0}):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"])):e.createCommentVNode("",!0)]))}}),Oe=e.defineComponent({__name:"XMark",props:{color:{default:"dark-4"},className:{default:""}},setup(t){const o=t,n=e.computed(()=>[v.generateClass.svgFillColorVariant({color:o.color}),o.className].filter(Boolean).join(" "));return(l,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","aria-hidden":"true",focusable:"false",class:e.normalizeClass(n.value)},[...a[0]||(a[0]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))}}),ne=t=>e.computed(()=>{const{bgColor:o,textColor:n,borderColor:l,showBorder:a,showShadow:r,rounded:i}=t,s=t.showHighlight??!1,d=[v.generateClass.bgColorVariant({color:o}),v.generateClass.textColorVariant({color:n})];return a&&d.push("border-2",v.generateClass.borderColorVariant({color:l})),s||d.push("focus-visible:ring-4 ring-offset-2 transition-all duration-300 ease-linear",v.generateClass.focusVisibleRingColorVariant({color:l})),r&&d.push("shadow-md"),i&&d.push("rounded-md"),d.join(" ")}),mt={class:"my-3xs mr-xs ml-3xs shrink-0"},pt=["aria-controls","disabled"],ht=["id","name","accept","required","disabled","aria-invalid","aria-describedby"],bt={key:0,class:"my-3xs mr-3xs self-stretch"},gt=["disabled"],yt=e.defineComponent({__name:"MclInputFile",props:e.mergeModels({id:{},name:{},accept:{default:"image/jpg,image/jpeg,image/png"},buttonText:{default:"Browse File"},buttonTextColor:{default:"dark-3"},buttonColor:{default:"light-4"},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},bgColor:{default:"light-1"},textColor:{default:"black"},showShadow:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},invalidFeedback:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue"),l=W(o),a=ne(o),r=e.ref(),i=e.ref(0),s=()=>{r.value?.click()},d=u=>{const p=u.target.files;n.value=p&&p.length>0?p[0]:null},c=()=>{n.value=null,i.value++},f=e.computed(()=>{const u=[v.generateClass.bgColorVariant({color:o.buttonColor}),v.generateClass.textColorVariant({color:o.buttonTextColor})];return o.rounded&&u.push("rounded-l-md"),u.join(" ")}),m=e.computed(()=>{const u=[v.generateClass.bgColorVariant({color:o.buttonColor})];return o.rounded&&u.push("rounded-r-md"),u.join(" ")});return(u,p)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center overflow-hidden",e.unref(a)])},[e.createElementVNode("div",mt,[e.createElementVNode("button",{type:"button","aria-controls":e.unref(l).id,disabled:e.unref(l).disabled.value,class:e.normalizeClass(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50",f.value]),onClick:s},e.toDisplayString(t.buttonText),11,pt)]),(e.openBlock(),e.createElementBlock("input",{id:e.unref(l).id,ref_key:"inputRef",ref:r,key:i.value,type:"file",class:"w-full bg-transparent file:hidden",name:e.unref(l).name.value,accept:t.accept,required:e.unref(l).required.value,disabled:e.unref(l).disabled.value,"aria-invalid":e.unref(l).invalid.value||void 0,"aria-describedby":e.unref(l).describedBy.value,onChange:d},null,40,ht)),t.showClear?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("button",{type:"button","aria-label":"Clear selected file",disabled:e.unref(l).disabled.value,class:e.normalizeClass(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50",m.value]),onClick:c},[e.createVNode(Oe,{color:t.buttonTextColor,"class-name":"h-xs"},null,8,["color"])],10,gt)])):e.createCommentVNode("",!0)],2),e.unref(l).feedbackOwnedByGroup?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(X,{key:0,id:e.unref(l).errorId,invalid:e.unref(l).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[u.$slots["invalid-feedback"]?e.renderSlot(u.$slots,"invalid-feedback",{key:0}):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}}),wt={sm:"h-xs w-xs before:h-2xs before:w-2xs",md:"h-sm w-sm before:h-[12px] before:w-[12px]",lg:"h-md w-md before:h-xs before:w-xs"},xt={sm:{"--switch-width":"30px","--switch-height":"17px","--slider-size":"13px","--gutter-size":"2px"},md:{"--switch-width":"45px","--switch-height":"25.5px","--slider-size":"19.5px","--gutter-size":"3px"},lg:{"--switch-width":"60px","--switch-height":"34px","--slider-size":"26px","--gutter-size":"4px"}},Ct="rounded-md before:rounded-[3px]",ye=t=>{const o=e.computed(()=>{const{bgColor:a,borderColor:r,indicatorColor:i,checkedBgColor:s,showShadow:d}=t,c=t.rounded??!1,f=[v.generateClass.bgColorVariant({color:a}),v.generateClass.borderColorVariant({color:r}),v.generateClass.beforeBgColorVariant({color:i}),v.generateClass.peerCheckedBgColorVariant({color:s}),"peer-focus-visible:ring-2 ring-offset-2",v.generateClass.peerFocusVisibleRingColorVariant({color:r})];return d&&f.push("drop-shadow-md"),c&&f.push(t.roundedClass??Ct),f.join(" ")}),n=e.computed(()=>wt[t.size]),l=e.computed(()=>({...xt[t.size]}));return{boxClass:o,sizeClass:n,switchVars:l}},kt={class:"relative inline-flex"},Bt=["id","name","value","required","disabled","aria-invalid","aria-describedby"],Vt=e.defineComponent({__name:"MclInputRadio",props:e.mergeModels({id:{},name:{},size:{default:"md"},bgColor:{default:"light-1"},checkedBgColor:{default:"success"},indicatorColor:{default:"light-1"},borderColor:{default:"dark-1"},showShadow:{type:Boolean,default:!1},value:{default:""},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{default:null},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:o}){const n=t,l=e.useModel(t,"modelValue"),a=o,r=W(n,{rendersOwnFeedback:!1}),{boxClass:i,sizeClass:s}=ye(n),d=e.computed(()=>r.name.value??r.id),c=f=>{a("change",f)};return(f,m)=>(e.openBlock(),e.createElementBlock("div",kt,[e.withDirectives(e.createElementVNode("input",{id:e.unref(r).id,"onUpdate:modelValue":m[0]||(m[0]=u=>l.value=u),type:"radio",class:"peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",name:d.value,value:t.value,required:e.unref(r).required.value,disabled:e.unref(r).disabled.value,"aria-invalid":e.unref(r).invalid.value||void 0,"aria-describedby":e.unref(r).describedBy.value,onChange:c},null,40,Bt),[[e.vModelRadio,l.value]]),e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass(["relative inline-block rounded-full border transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100",[e.unref(i),e.unref(s)]])},null,2)]))}}),vt=["id","name","required","disabled","aria-invalid","aria-describedby"],St="rounded-full before:rounded-full",Et=e.defineComponent({__name:"MclInputSwitch",props:e.mergeModels({id:{},name:{},size:{default:"md"},bgColor:{default:"dark-1"},checkedBgColor:{default:"success"},indicatorColor:{default:"light-1"},borderColor:{default:"dark-1"},showShadow:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:o}){const n=t,l=e.useModel(t,"modelValue"),a=o,r=W(n,{rendersOwnFeedback:!1}),i={get size(){return n.size},get bgColor(){return n.bgColor},get checkedBgColor(){return n.checkedBgColor},get indicatorColor(){return n.indicatorColor},get borderColor(){return n.borderColor},get showShadow(){return n.showShadow},get rounded(){return n.rounded},roundedClass:St},{boxClass:s,switchVars:d}=ye(i),c=f=>{a("change",f)};return(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:"switch relative",style:e.normalizeStyle(e.unref(d))},[e.withDirectives(e.createElementVNode("input",{id:e.unref(r).id,"onUpdate:modelValue":m[0]||(m[0]=u=>l.value=u),type:"checkbox",role:"switch",class:"peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",name:e.unref(r).name.value,required:e.unref(r).required.value,disabled:e.unref(r).disabled.value,"aria-invalid":e.unref(r).invalid.value||void 0,"aria-describedby":e.unref(r).describedBy.value,onChange:c},null,40,vt),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300",e.unref(s)])},null,2)],4))}}),$e=(t,o)=>{const n=t.__vccOpts||t;for(const[l,a]of o)n[l]=a;return n},Rt=$e(Et,[["__scopeId","data-v-784930f6"]]),Ae=e.defineComponent({__name:"InputHighlight",props:{color:{default:"primary"},rounded:{type:Boolean,default:!1},offset:{default:1}},setup(t){const o=t,n={1:"-top-1",2.5:"-top-2.5"},l=e.computed(()=>{const a=[v.generateClass.beforeBgColorVariant({color:o.color})];return o.rounded&&a.push("rounded-b-md"),a.push(n[o.offset]),a.join(" ")});return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full",l.value])},null,2))}}),Mt=["id","type","name","placeholder","autocomplete","minlength","maxlength","pattern","required","disabled","aria-invalid","aria-describedby"],Ot=e.defineComponent({__name:"MclInputText",props:e.mergeModels({id:{},name:{},type:{default:"text"},placeholder:{default:""},autocomplete:{},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},textColor:{default:"black"},bgColor:{default:"light-1"},showShadow:{type:Boolean,default:!0},invalidFeedback:{},minLength:{},maxLength:{},pattern:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue"),l=W(o),a=ne(o);return(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(l).id,"onUpdate:modelValue":i[0]||(i[0]=s=>n.value=s),class:e.normalizeClass(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50",e.unref(a)]),type:t.type,name:e.unref(l).name.value,placeholder:t.placeholder,autocomplete:t.autocomplete,minlength:t.minLength,maxlength:t.maxLength,pattern:t.pattern,required:e.unref(l).required.value,disabled:e.unref(l).disabled.value,"aria-invalid":e.unref(l).invalid.value||void 0,"aria-describedby":e.unref(l).describedBy.value},null,10,Mt),[[e.vModelDynamic,n.value]]),t.showHighlight?(e.openBlock(),e.createBlock(Ae,{key:0,color:t.highlightColor,rounded:t.rounded},null,8,["color","rounded"])):e.createCommentVNode("",!0),e.unref(l).feedbackOwnedByGroup?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(X,{key:1,id:e.unref(l).errorId,invalid:e.unref(l).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[r.$slots["invalid-feedback"]?e.renderSlot(r.$slots,"invalid-feedback",{key:0}):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}}),le=Math.min,j=Math.max,re=Math.round,ae=Math.floor,D=t=>({x:t,y:t}),$t={left:"right",right:"left",bottom:"top",top:"bottom"},At={start:"end",end:"start"};function Ne(t,o,n){return j(t,le(o,n))}function ie(t,o){return typeof t=="function"?t(o):t}function G(t){return t.split("-")[0]}function se(t){return t.split("-")[1]}function Fe(t){return t==="x"?"y":"x"}function Le(t){return t==="y"?"height":"width"}const Nt=new Set(["top","bottom"]);function P(t){return Nt.has(G(t))?"y":"x"}function De(t){return Fe(P(t))}function Ft(t,o,n){n===void 0&&(n=!1);const l=se(t),a=De(t),r=Le(a);let i=a==="x"?l===(n?"end":"start")?"right":"left":l==="start"?"bottom":"top";return o.reference[r]>o.floating[r]&&(i=ce(i)),[i,ce(i)]}function Lt(t){const o=ce(t);return[we(t),o,we(o)]}function we(t){return t.replace(/start|end/g,o=>At[o])}const Ie=["left","right"],Te=["right","left"],Dt=["top","bottom"],It=["bottom","top"];function Tt(t,o,n){switch(t){case"top":case"bottom":return n?o?Te:Ie:o?Ie:Te;case"left":case"right":return o?Dt:It;default:return[]}}function zt(t,o,n,l){const a=se(t);let r=Tt(G(t),n==="start",l);return a&&(r=r.map(i=>i+"-"+a),o&&(r=r.concat(r.map(we)))),r}function ce(t){return t.replace(/left|right|bottom|top/g,o=>$t[o])}function qt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pt(t){return typeof t!="number"?qt(t):{top:t,right:t,bottom:t,left:t}}function de(t){const{x:o,y:n,width:l,height:a}=t;return{width:l,height:a,top:n,left:o,right:o+l,bottom:n+a,x:o,y:n}}function ze(t,o,n){let{reference:l,floating:a}=t;const r=P(o),i=De(o),s=Le(i),d=G(o),c=r==="y",f=l.x+l.width/2-a.width/2,m=l.y+l.height/2-a.height/2,u=l[s]/2-a[s]/2;let p;switch(d){case"top":p={x:f,y:l.y-a.height};break;case"bottom":p={x:f,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:m};break;case"left":p={x:l.x-a.width,y:m};break;default:p={x:l.x,y:l.y}}switch(se(o)){case"start":p[i]-=u*(n&&c?-1:1);break;case"end":p[i]+=u*(n&&c?-1:1);break}return p}async function _t(t,o){var n;o===void 0&&(o={});const{x:l,y:a,platform:r,rects:i,elements:s,strategy:d}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:u=!1,padding:p=0}=ie(o,t),h=Pt(p),y=s[u?m==="floating"?"reference":"floating":m],b=de(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:d})),x=m==="floating"?{x:l,y:a,width:i.floating.width,height:i.floating.height}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),B=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},R=de(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:C,strategy:d}):x);return{top:(b.top-R.top+h.top)/B.y,bottom:(R.bottom-b.bottom+h.bottom)/B.y,left:(b.left-R.left+h.left)/B.x,right:(R.right-b.right+h.right)/B.x}}const Ht=async(t,o,n)=>{const{placement:l="bottom",strategy:a="absolute",middleware:r=[],platform:i}=n,s=r.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(o));let c=await i.getElementRects({reference:t,floating:o,strategy:a}),{x:f,y:m}=ze(c,l,d),u=l,p={},h=0;for(let y=0;y<s.length;y++){var g;const{name:b,fn:x}=s[y],{x:C,y:B,data:R,reset:E}=await x({x:f,y:m,initialPlacement:l,placement:u,strategy:a,middlewareData:p,rects:c,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:_t},elements:{reference:t,floating:o}});f=C??f,m=B??m,p={...p,[b]:{...p[b],...R}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(u=E.placement),E.rects&&(c=E.rects===!0?await i.getElementRects({reference:t,floating:o,strategy:a}):E.rects),{x:f,y:m}=ze(c,u,d)),y=-1)}return{x:f,y:m,placement:u,strategy:a,middlewareData:p}},Wt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var n,l;const{placement:a,middlewareData:r,rects:i,initialPlacement:s,platform:d,elements:c}=o,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ie(t,o);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const b=G(a),x=P(s),C=G(s)===s,B=await(d.isRTL==null?void 0:d.isRTL(c.floating)),R=u||(C||!g?[ce(s)]:Lt(s)),E=h!=="none";!u&&E&&R.push(...zt(s,g,h,B));const k=[s,...R],$=await d.detectOverflow(o,y),q=[];let H=((l=r.flip)==null?void 0:l.overflows)||[];if(f&&q.push($[b]),m){const z=Ft(a,i,B);q.push($[z[0]],$[z[1]])}if(H=[...H,{placement:a,overflows:q}],!q.every(z=>z<=0)){var be,te;const z=(((be=r.flip)==null?void 0:be.index)||0)+1,w=k[z];if(w&&(!(m==="alignment"?x!==P(w):!1)||H.every(O=>P(O.placement)===x?O.overflows[0]>0:!0)))return{data:{index:z,overflows:H},reset:{placement:w}};let V=(te=H.filter(S=>S.overflows[0]<=0).sort((S,O)=>S.overflows[1]-O.overflows[1])[0])==null?void 0:te.placement;if(!V)switch(p){case"bestFit":{var ge;const S=(ge=H.filter(O=>{if(E){const N=P(O.placement);return N===x||N==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(N=>N>0).reduce((N,jo)=>N+jo,0)]).sort((O,N)=>O[1]-N[1])[0])==null?void 0:ge[0];S&&(V=S);break}case"initialPlacement":V=s;break}if(a!==V)return{reset:{placement:V}}}return{}}}},jt=new Set(["left","top"]);async function Gt(t,o){const{placement:n,platform:l,elements:a}=t,r=await(l.isRTL==null?void 0:l.isRTL(a.floating)),i=G(n),s=se(n),d=P(n)==="y",c=jt.has(i)?-1:1,f=r&&d?-1:1,m=ie(o,t);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),d?{x:p*f,y:u*c}:{x:u*c,y:p*f}}const Ut=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var n,l;const{x:a,y:r,placement:i,middlewareData:s}=o,d=await Gt(o,t);return i===((n=s.offset)==null?void 0:n.placement)&&(l=s.arrow)!=null&&l.alignmentOffset?{}:{x:a+d.x,y:r+d.y,data:{...d,placement:i}}}}},Kt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:n,y:l,placement:a,platform:r}=o,{mainAxis:i=!0,crossAxis:s=!1,limiter:d={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...c}=ie(t,o),f={x:n,y:l},m=await r.detectOverflow(o,c),u=P(G(a)),p=Fe(u);let h=f[p],g=f[u];if(i){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+m[b],B=h-m[x];h=Ne(C,h,B)}if(s){const b=u==="y"?"top":"left",x=u==="y"?"bottom":"right",C=g+m[b],B=g-m[x];g=Ne(C,g,B)}const y=d.fn({...o,[p]:h,[u]:g});return{...y,data:{x:y.x-n,y:y.y-l,enabled:{[p]:i,[u]:s}}}}}};function fe(){return typeof window<"u"}function U(t){return xe(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function I(t){var o;return(o=(xe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function xe(t){return fe()?t instanceof Node||t instanceof A(t).Node:!1}function F(t){return fe()?t instanceof Element||t instanceof A(t).Element:!1}function T(t){return fe()?t instanceof HTMLElement||t instanceof A(t).HTMLElement:!1}function qe(t){return!fe()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof A(t).ShadowRoot}const Xt=new Set(["inline","contents"]);function J(t){const{overflow:o,overflowX:n,overflowY:l,display:a}=L(t);return/auto|scroll|overlay|hidden|clip/.test(o+l+n)&&!Xt.has(a)}const Yt=new Set(["table","td","th"]);function Zt(t){return Yt.has(U(t))}const Jt=[":popover-open",":modal"];function ue(t){return Jt.some(o=>{try{return t.matches(o)}catch{return!1}})}const Qt=["transform","translate","scale","rotate","perspective"],eo=["transform","translate","scale","rotate","perspective","filter"],to=["paint","layout","strict","content"];function Ce(t){const o=ke(),n=F(t)?L(t):t;return Qt.some(l=>n[l]?n[l]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||eo.some(l=>(n.willChange||"").includes(l))||to.some(l=>(n.contain||"").includes(l))}function oo(t){let o=_(t);for(;T(o)&&!Y(o);){if(Ce(o))return o;if(ue(o))return null;o=_(o)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const no=new Set(["html","body","#document"]);function Y(t){return no.has(U(t))}function L(t){return A(t).getComputedStyle(t)}function me(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if(U(t)==="html")return t;const o=t.assignedSlot||t.parentNode||qe(t)&&t.host||I(t);return qe(o)?o.host:o}function Pe(t){const o=_(t);return Y(o)?t.ownerDocument?t.ownerDocument.body:t.body:T(o)&&J(o)?o:Pe(o)}function Q(t,o,n){var l;o===void 0&&(o=[]),n===void 0&&(n=!0);const a=Pe(t),r=a===((l=t.ownerDocument)==null?void 0:l.body),i=A(a);if(r){const s=Be(i);return o.concat(i,i.visualViewport||[],J(a)?a:[],s&&n?Q(s):[])}return o.concat(a,Q(a,[],n))}function Be(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _e(t){const o=L(t);let n=parseFloat(o.width)||0,l=parseFloat(o.height)||0;const a=T(t),r=a?t.offsetWidth:n,i=a?t.offsetHeight:l,s=re(n)!==r||re(l)!==i;return s&&(n=r,l=i),{width:n,height:l,$:s}}function Ve(t){return F(t)?t:t.contextElement}function Z(t){const o=Ve(t);if(!T(o))return D(1);const n=o.getBoundingClientRect(),{width:l,height:a,$:r}=_e(o);let i=(r?re(n.width):n.width)/l,s=(r?re(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const lo=D(0);function He(t){const o=A(t);return!ke()||!o.visualViewport?lo:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ro(t,o,n){return o===void 0&&(o=!1),!n||o&&n!==A(t)?!1:o}function K(t,o,n,l){o===void 0&&(o=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),r=Ve(t);let i=D(1);o&&(l?F(l)&&(i=Z(l)):i=Z(t));const s=ro(r,n,l)?He(r):D(0);let d=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,f=a.width/i.x,m=a.height/i.y;if(r){const u=A(r),p=l&&F(l)?A(l):l;let h=u,g=Be(h);for(;g&&l&&p!==h;){const y=Z(g),b=g.getBoundingClientRect(),x=L(g),C=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,B=b.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;d*=y.x,c*=y.y,f*=y.x,m*=y.y,d+=C,c+=B,h=A(g),g=Be(h)}}return de({width:f,height:m,x:d,y:c})}function pe(t,o){const n=me(t).scrollLeft;return o?o.left+n:K(I(t)).left+n}function We(t,o){const n=t.getBoundingClientRect(),l=n.left+o.scrollLeft-pe(t,n),a=n.top+o.scrollTop;return{x:l,y:a}}function ao(t){let{elements:o,rect:n,offsetParent:l,strategy:a}=t;const r=a==="fixed",i=I(l),s=o?ue(o.floating):!1;if(l===i||s&&r)return n;let d={scrollLeft:0,scrollTop:0},c=D(1);const f=D(0),m=T(l);if((m||!m&&!r)&&((U(l)!=="body"||J(i))&&(d=me(l)),T(l))){const p=K(l);c=Z(l),f.x=p.x+l.clientLeft,f.y=p.y+l.clientTop}const u=i&&!m&&!r?We(i,d):D(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+f.x+u.x,y:n.y*c.y-d.scrollTop*c.y+f.y+u.y}}function io(t){return Array.from(t.getClientRects())}function so(t){const o=I(t),n=me(t),l=t.ownerDocument.body,a=j(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),r=j(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let i=-n.scrollLeft+pe(t);const s=-n.scrollTop;return L(l).direction==="rtl"&&(i+=j(o.clientWidth,l.clientWidth)-a),{width:a,height:r,x:i,y:s}}const je=25;function co(t,o){const n=A(t),l=I(t),a=n.visualViewport;let r=l.clientWidth,i=l.clientHeight,s=0,d=0;if(a){r=a.width,i=a.height;const f=ke();(!f||f&&o==="fixed")&&(s=a.offsetLeft,d=a.offsetTop)}const c=pe(l);if(c<=0){const f=l.ownerDocument,m=f.body,u=getComputedStyle(m),p=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(l.clientWidth-m.clientWidth-p);h<=je&&(r-=h)}else c<=je&&(r+=c);return{width:r,height:i,x:s,y:d}}const fo=new Set(["absolute","fixed"]);function uo(t,o){const n=K(t,!0,o==="fixed"),l=n.top+t.clientTop,a=n.left+t.clientLeft,r=T(t)?Z(t):D(1),i=t.clientWidth*r.x,s=t.clientHeight*r.y,d=a*r.x,c=l*r.y;return{width:i,height:s,x:d,y:c}}function Ge(t,o,n){let l;if(o==="viewport")l=co(t,n);else if(o==="document")l=so(I(t));else if(F(o))l=uo(o,n);else{const a=He(t);l={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return de(l)}function Ue(t,o){const n=_(t);return n===o||!F(n)||Y(n)?!1:L(n).position==="fixed"||Ue(n,o)}function mo(t,o){const n=o.get(t);if(n)return n;let l=Q(t,[],!1).filter(s=>F(s)&&U(s)!=="body"),a=null;const r=L(t).position==="fixed";let i=r?_(t):t;for(;F(i)&&!Y(i);){const s=L(i),d=Ce(i);!d&&s.position==="fixed"&&(a=null),(r?!d&&!a:!d&&s.position==="static"&&!!a&&fo.has(a.position)||J(i)&&!d&&Ue(t,i))?l=l.filter(f=>f!==i):a=s,i=_(i)}return o.set(t,l),l}function po(t){let{element:o,boundary:n,rootBoundary:l,strategy:a}=t;const i=[...n==="clippingAncestors"?ue(o)?[]:mo(o,this._c):[].concat(n),l],s=i[0],d=i.reduce((c,f)=>{const m=Ge(o,f,a);return c.top=j(m.top,c.top),c.right=le(m.right,c.right),c.bottom=le(m.bottom,c.bottom),c.left=j(m.left,c.left),c},Ge(o,s,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ho(t){const{width:o,height:n}=_e(t);return{width:o,height:n}}function bo(t,o,n){const l=T(o),a=I(o),r=n==="fixed",i=K(t,!0,r,o);let s={scrollLeft:0,scrollTop:0};const d=D(0);function c(){d.x=pe(a)}if(l||!l&&!r)if((U(o)!=="body"||J(a))&&(s=me(o)),l){const p=K(o,!0,r,o);d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}else a&&c();r&&!l&&a&&c();const f=a&&!l&&!r?We(a,s):D(0),m=i.left+s.scrollLeft-d.x-f.x,u=i.top+s.scrollTop-d.y-f.y;return{x:m,y:u,width:i.width,height:i.height}}function ve(t){return L(t).position==="static"}function Ke(t,o){if(!T(t)||L(t).position==="fixed")return null;if(o)return o(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function Xe(t,o){const n=A(t);if(ue(t))return n;if(!T(t)){let a=_(t);for(;a&&!Y(a);){if(F(a)&&!ve(a))return a;a=_(a)}return n}let l=Ke(t,o);for(;l&&Zt(l)&&ve(l);)l=Ke(l,o);return l&&Y(l)&&ve(l)&&!Ce(l)?n:l||oo(t)||n}const go=async function(t){const o=this.getOffsetParent||Xe,n=this.getDimensions,l=await n(t.floating);return{reference:bo(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function yo(t){return L(t).direction==="rtl"}const wo={convertOffsetParentRelativeRectToViewportRelativeRect:ao,getDocumentElement:I,getClippingRect:po,getOffsetParent:Xe,getElementRects:go,getClientRects:io,getDimensions:ho,getScale:Z,isElement:F,isRTL:yo};function Ye(t,o){return t.x===o.x&&t.y===o.y&&t.width===o.width&&t.height===o.height}function xo(t,o){let n=null,l;const a=I(t);function r(){var s;clearTimeout(l),(s=n)==null||s.disconnect(),n=null}function i(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),r();const c=t.getBoundingClientRect(),{left:f,top:m,width:u,height:p}=c;if(s||o(),!u||!p)return;const h=ae(m),g=ae(a.clientWidth-(f+u)),y=ae(a.clientHeight-(m+p)),b=ae(f),C={rootMargin:-h+"px "+-g+"px "+-y+"px "+-b+"px",threshold:j(0,le(1,d))||1};let B=!0;function R(E){const k=E[0].intersectionRatio;if(k!==d){if(!B)return i();k?i(!1,k):l=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Ye(c,t.getBoundingClientRect())&&i(),B=!1}try{n=new IntersectionObserver(R,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(R,C)}n.observe(t)}return i(!0),r}function Co(t,o,n,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=l,c=Ve(t),f=a||r?[...c?Q(c):[],...Q(o)]:[];f.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),r&&b.addEventListener("resize",n)});const m=c&&s?xo(c,n):null;let u=-1,p=null;i&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&p&&(p.unobserve(o),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(o)})),n()}),c&&!d&&p.observe(c),p.observe(o));let h,g=d?K(t):null;d&&y();function y(){const b=K(t);g&&!Ye(g,b)&&n(),g=b,h=requestAnimationFrame(y)}return n(),()=>{var b;f.forEach(x=>{a&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),m?.(),(b=p)==null||b.disconnect(),p=null,d&&cancelAnimationFrame(h)}}const ko=Ut,Bo=Kt,Vo=Wt,vo=(t,o,n)=>{const l=new Map,a={platform:wo,...n},r={...a.platform,_c:l};return Ht(t,o,{...a,platform:r})};function So(t){return t!=null&&typeof t=="object"&&"$el"in t}function Ze(t){if(So(t)){const o=t.$el;return xe(o)&&U(o)==="#comment"?null:o}return t}function ee(t){return typeof t=="function"?t():e.unref(t)}function Je(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Qe(t,o){const n=Je(t);return Math.round(o*n)/n}function Eo(t,o,n){n===void 0&&(n={});const l=n.whileElementsMounted,a=e.computed(()=>{var k;return(k=ee(n.open))!=null?k:!0}),r=e.computed(()=>ee(n.middleware)),i=e.computed(()=>{var k;return(k=ee(n.placement))!=null?k:"bottom"}),s=e.computed(()=>{var k;return(k=ee(n.strategy))!=null?k:"absolute"}),d=e.computed(()=>{var k;return(k=ee(n.transform))!=null?k:!0}),c=e.computed(()=>Ze(t.value)),f=e.computed(()=>Ze(o.value)),m=e.ref(0),u=e.ref(0),p=e.ref(s.value),h=e.ref(i.value),g=e.shallowRef({}),y=e.ref(!1),b=e.computed(()=>{const k={position:p.value,left:"0",top:"0"};if(!f.value)return k;const $=Qe(f.value,m.value),q=Qe(f.value,u.value);return d.value?{...k,transform:"translate("+$+"px, "+q+"px)",...Je(f.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:$+"px",top:q+"px"}});let x;function C(){if(c.value==null||f.value==null)return;const k=a.value;vo(c.value,f.value,{middleware:r.value,placement:i.value,strategy:s.value}).then($=>{m.value=$.x,u.value=$.y,p.value=$.strategy,h.value=$.placement,g.value=$.middlewareData,y.value=k!==!1})}function B(){typeof x=="function"&&(x(),x=void 0)}function R(){if(B(),l===void 0){C();return}if(c.value!=null&&f.value!=null){x=l(c.value,f.value,C);return}}function E(){a.value||(y.value=!1)}return e.watch([r,i,s,a],C,{flush:"sync"}),e.watch([c,f],R,{flush:"sync"}),e.watch(a,E,{flush:"sync"}),e.getCurrentScope()&&e.onScopeDispose(B),{x:e.shallowReadonly(m),y:e.shallowReadonly(u),strategy:e.shallowReadonly(p),placement:e.shallowReadonly(h),middlewareData:e.shallowReadonly(g),isPositioned:e.shallowReadonly(y),floatingStyles:b,update:C}}const Ro=e.defineComponent({__name:"CaretDown",props:{color:{default:"dark-4"},className:{default:""}},setup(t){const o=t,n=e.computed(()=>[v.generateClass.svgFillColorVariant({color:o.color}),o.className].filter(Boolean).join(" "));return(l,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","aria-hidden":"true",focusable:"false",class:e.normalizeClass(n.value)},[...a[0]||(a[0]=[e.createElementVNode("path",{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},null,-1)])],2))}}),Mo=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),he=t=>typeof t=="string"?t:t.text,Se=t=>typeof t=="string"?t:t.value,Oo=(t,o)=>e.computed(()=>{const n=e.toValue(t),l=e.toValue(o);if(l==="")return n;const a=new RegExp(Mo(l),"i");return n.filter(r=>a.test(he(r)))}),$o=t=>{const{isOpen:o,activeIndex:n,onSelect:l,onClear:a,onActiveChange:r}=t,i=f=>{const m=e.toValue(t.optionCount);if(m<=0){n.value=-1;return}const u=Math.max(0,Math.min(f,m-1));n.value=u,r?.(u)},s=()=>{o.value=!1,n.value=-1},d=f=>{switch(f.key){case"ArrowDown":if(f.preventDefault(),!o.value){o.value=!0;return}if(f.altKey)return;i(n.value+1);return;case"ArrowUp":if(f.preventDefault(),!o.value){o.value=!0;return}i(n.value<0?e.toValue(t.optionCount)-1:n.value-1);return;case"Home":if(!o.value)return;f.preventDefault(),i(0);return;case"End":if(!o.value)return;f.preventDefault(),i(e.toValue(t.optionCount)-1);return;case"Enter":if(!o.value||n.value<0)return;f.preventDefault(),l(n.value);return;case"Escape":if(o.value){s();return}a();return;case"Tab":o.value&&s();return;default:return}},c=e.computed(()=>o.value&&n.value>=0?`${e.toValue(t.idPrefix)}-option-${n.value}`:void 0);return{onKeydown:d,activeDescendantId:c}},Ao=["id","placeholder","disabled","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby"],No=["disabled"],Fo=["disabled"],Lo=["id"],Do=["id","aria-selected","onClick","onMouseenter"],Io=["id"],To=["name","value"],zo=$e(e.defineComponent({__name:"MclSelect",props:e.mergeModels({options:{},id:{},name:{},placeholder:{default:""},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},textColor:{default:"black"},bgColor:{default:"light-1"},iconColor:{default:"dark-4"},optionHoverColor:{default:"primary"},showShadow:{type:Boolean,default:!0},noMatchText:{default:"No match."},invalidFeedback:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{default:null},modelModifiers:{}}),emits:e.mergeModels(["open","close","clear","changed","select"],["update:modelValue"]),setup(t,{emit:o}){const n=t,l=e.useModel(t,"modelValue"),a=o,r=W(n),i=ne(n),s=e.ref(),d=e.ref(),c=e.ref(),f=e.ref([]),m=e.ref(),u=e.ref(!1),p=e.ref(-1),h=w=>{if(w===null||w==="")return"";const V=n.options.find(S=>Se(S)===w);return V?he(V):String(w)},g=e.ref(h(l.value)),y=e.ref(!1),b=Oo(()=>n.options,()=>y.value?g.value:""),x=(w,V)=>{f.value[V]=w},C=w=>{f.value[w]?.scrollIntoView?.({block:"nearest"})},B=()=>{u.value||(u.value=!0,y.value=!1,p.value=-1)},R=()=>{u.value=!1,p.value=-1},E=w=>{g.value=he(w);const V=Se(w);l.value=V,y.value=!1,u.value=!1,p.value=-1,a("select",V)},k=()=>{g.value="",p.value=-1,l.value=null,y.value=!1,a("clear"),d.value?.focus()},{onKeydown:$,activeDescendantId:q}=$o({isOpen:u,activeIndex:p,optionCount:()=>b.value.length,idPrefix:()=>r.id,onSelect:w=>{const V=b.value[w];V!==void 0&&E(V)},onClear:k,onActiveChange:C}),H=()=>{if(u.value){R();return}B(),d.value?.focus()},be=e.computed(()=>{const w=[v.generateClass.beforeBgColorVariant({color:n.highlightColor})];return n.rounded&&w.push("rounded-b-md"),w.join(" ")}),te=e.computed(()=>{const w=[v.generateClass.bgColorVariant({color:n.bgColor}),v.generateClass.borderColorVariant({color:n.borderColor})];return n.showHighlight||w.push("mt-2xs"),n.rounded&&w.push("rounded-md"),w.join(" ")}),ge=w=>l.value!==null&&l.value!==""&&Se(w)===l.value,{floatingStyles:z}=Eo(s,c,{whileElementsMounted:Co,strategy:"absolute",open:u,transform:!1,placement:"bottom",middleware:[Vo(),ko(-2.2),Bo()]});return tt.useResizeObserver(s,()=>{s.value&&(m.value=s.value.clientWidth)}),e.watch(b,()=>{p.value=-1}),e.watch(u,w=>{if(w){a("open");return}y.value&&(g.value=h(l.value),y.value=!1),a("close")}),e.watch(()=>r.disabled.value,w=>{w&&R()}),e.watch(()=>n.options,()=>{y.value||(g.value=h(l.value))}),e.watch(l,w=>{g.value=h(w),y.value=!1,w!==null&&a("changed",w)}),(w,V)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:s,class:"relative"},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex gap-3xs p-2xs",[e.unref(i),!t.showHighlight&&u.value&&e.unref(v.generateClass).ringColorVariant({color:t.borderColor})+" ring-4"]])},[e.withDirectives(e.createElementVNode("input",{id:e.unref(r).id,ref_key:"inputRef",ref:d,"onUpdate:modelValue":V[0]||(V[0]=S=>g.value=S),type:"text",role:"combobox",autocomplete:"off",class:"w-full bg-transparent outline-none disabled:cursor-not-allowed",placeholder:t.placeholder,disabled:e.unref(r).disabled.value,"aria-autocomplete":"list","aria-expanded":u.value,"aria-controls":`${e.unref(r).id}-listbox`,"aria-activedescendant":e.unref(q),"aria-required":e.unref(r).required.value||void 0,"aria-invalid":e.unref(r).invalid.value||void 0,"aria-describedby":e.unref(r).describedBy.value,onFocus:B,onInput:V[1]||(V[1]=S=>y.value=!0),onKeydown:V[2]||(V[2]=(...S)=>e.unref($)&&e.unref($)(...S))},null,40,Ao),[[e.vModelText,g.value]]),g.value!==""?(e.openBlock(),e.createElementBlock("button",{key:0,"data-mcl":"clear",type:"button","aria-label":"Clear selection",class:"flex items-center px-3xs",disabled:e.unref(r).disabled.value,onClick:k},[e.createVNode(Oe,{color:t.iconColor,"class-name":"h-xs opacity-70"},null,8,["color"])],8,No)):e.createCommentVNode("",!0),e.createElementVNode("button",{"data-mcl":"caret",type:"button",tabindex:"-1","aria-label":"Toggle options",class:"flex items-center px-3xs",disabled:e.unref(r).disabled.value,onClick:H},[e.createVNode(Ro,{color:t.iconColor,"class-name":`h-xs transition-transform duration-300 ease-in ${u.value?"rotate-180":"rotate-0"}`},null,8,["color","class-name"])],8,Fo)],2),t.showHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:transition-[width] before:duration-300 before:ease-linear",[u.value?"before:w-full":"before:w-0",be.value]])},null,2)):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"options"},{default:e.withCtx(()=>[u.value&&e.unref(b).length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`${e.unref(r).id}-listbox`,ref_key:"dropdownRef",ref:c,role:"listbox",class:e.normalizeClass(["max-h-[12.5rem] overflow-y-auto border-2",te.value]),style:e.normalizeStyle({width:`${m.value}px`,...e.unref(z)})},[e.renderSlot(w.$slots,"dropdown",{options:e.unref(b),activeIndex:p.value,optionClick:E,setRef:x,hover:S=>p.value=S,optionId:S=>`${e.unref(r).id}-option-${S}`},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),(S,O)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(r).id}-option-${O}`,key:O,ref_for:!0,ref:N=>x(N,O),role:"option",class:e.normalizeClass(["cursor-pointer p-2xs",[p.value===O&&e.unref(v.generateClass).bgColorVariant({color:t.optionHoverColor})]]),"aria-selected":ge(S),onClick:N=>E(S),onMouseenter:N=>p.value=O},e.toDisplayString(e.unref(he)(S)),43,Do))),128))],!0)],14,Lo)):e.createCommentVNode("",!0)]),_:3}),u.value&&e.unref(b).length===0?(e.openBlock(),e.createElementBlock("div",{key:1,id:`${e.unref(r).id}-listbox`,ref_key:"dropdownRef",ref:c,role:"status",class:e.normalizeClass(["border-2 p-2xs",te.value]),style:e.normalizeStyle({width:`${m.value}px`,...e.unref(z)})},[e.renderSlot(w.$slots,"no-match",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.noMatchText),1)],!0)],14,Io)):e.createCommentVNode("",!0),e.unref(r).name.value?(e.openBlock(),e.createElementBlock("input",{key:2,type:"hidden",name:e.unref(r).name.value,value:l.value??""},null,8,To)):e.createCommentVNode("",!0),e.unref(r).feedbackOwnedByGroup?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(X,{key:3,id:e.unref(r).errorId,invalid:e.unref(r).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[w.$slots["invalid-feedback"]?e.renderSlot(w.$slots,"invalid-feedback",{key:0},void 0,!0):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))])),[[e.unref(et.vClickOutside),R]])}}),[["__scopeId","data-v-2695c901"]]),qo=["id","name","rows","placeholder","required","disabled","aria-invalid","aria-describedby"],Po=e.defineComponent({__name:"MclTextArea",props:e.mergeModels({id:{},name:{},placeholder:{default:""},rows:{default:5},showBorder:{type:Boolean,default:!1},borderColor:{default:"light-4"},rounded:{type:Boolean,default:!1},showHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},textColor:{default:"black"},bgColor:{default:"light-1"},showShadow:{type:Boolean,default:!0},invalidFeedback:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue"),l=W(o),a=ne(o);return(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{id:e.unref(l).id,"onUpdate:modelValue":i[0]||(i[0]=s=>n.value=s),class:e.normalizeClass(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50",e.unref(a)]),name:e.unref(l).name.value,rows:t.rows,placeholder:t.placeholder,required:e.unref(l).required.value,disabled:e.unref(l).disabled.value,"aria-invalid":e.unref(l).invalid.value||void 0,"aria-describedby":e.unref(l).describedBy.value},null,10,qo),[[e.vModelText,n.value]]),t.showHighlight?(e.openBlock(),e.createBlock(Ae,{key:0,color:t.highlightColor,rounded:t.rounded,offset:2.5},null,8,["color","rounded"])):e.createCommentVNode("",!0),e.unref(l).feedbackOwnedByGroup?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(X,{key:1,id:e.unref(l).errorId,invalid:e.unref(l).invalid.value,text:t.invalidFeedback},{default:e.withCtx(()=>[r.$slots["invalid-feedback"]?e.renderSlot(r.$slots,"invalid-feedback",{key:0}):e.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}}),_o={class:"relative inline-flex"},Ho=["id","name","value","required","disabled","aria-invalid","aria-describedby"],Wo=e.defineComponent({__name:"MclCheckbox",props:e.mergeModels({id:{},name:{},size:{default:"md"},bgColor:{default:"light-1"},checkedBgColor:{default:"warning"},indicatorColor:{default:"dark-3"},borderColor:{default:"dark-1"},showShadow:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},value:{},invalid:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:o}){const n=t,l=e.useModel(t,"modelValue"),a=o,r=W(n,{rendersOwnFeedback:!1}),{boxClass:i,sizeClass:s}=ye(n),d=c=>{a("change",c)};return(c,f)=>(e.openBlock(),e.createElementBlock("div",_o,[e.withDirectives(e.createElementVNode("input",{id:e.unref(r).id,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),type:"checkbox",class:"peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",name:e.unref(r).name.value,value:t.value,required:e.unref(r).required.value,disabled:e.unref(r).disabled.value,"aria-invalid":e.unref(r).invalid.value||void 0,"aria-describedby":e.unref(r).describedBy.value,onChange:d},null,40,Ho),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass(["relative inline-block border p-3xs transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100",[e.unref(i),e.unref(s)]])},null,2)]))}});M.MclCheckbox=Wo,M.MclFormGroup=ut,M.MclInputFile=yt,M.MclInputRadio=Vt,M.MclInputSwitch=Rt,M.MclInputText=Ot,M.MclSelect=zo,M.MclTextArea=Po,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobbykim/mcl-forms",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "description": "form group components based on manguito-theme",
5
5
  "type": "module",
6
6
  "files": [
@@ -33,7 +33,7 @@
33
33
  "@floating-ui/vue": "^1.1.5",
34
34
  "@vueuse/core": "^12.0.0",
35
35
  "vue": "^3.5.13",
36
- "@bobbykim/manguito-theme": "1.1.0"
36
+ "@bobbykim/manguito-theme": "1.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@vitejs/plugin-vue": "^5.2.1",