@bobbykim/mcl-forms 0.11.0 → 0.12.0

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,3 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-64ca2f25]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-64ca2f25]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-64ca2f25]: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(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
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-64ca2f25"]]),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(X,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@bobbykim/manguito-theme"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme","@vueuse/core"],t):(X=typeof globalThis<"u"?globalThis:X||self,t(X.MclForms={},X.Vue,X.ManguitoTheme,X.core))})(this,(function(X,t,L,gn){"use strict";const bn=["id"],hn={class:"text-xs text-danger"},_e=t.defineComponent({__name:"FieldFeedback",props:{id:{},invalid:{type:Boolean,default:!1},text:{default:""}},setup(e){return(r,n)=>e.invalid?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.id,role:"alert",class:"ml-3xs"},[t.renderSlot(r.$slots,"default",{},()=>[t.createElementVNode("span",hn,t.toDisplayString(e.text),1)])],8,bn)):t.createCommentVNode("",!0)}}),Zt=Symbol("mcl-field");let xn=0;const Qe=e=>e!==void 0&&e!==""?e:void 0,Jt=e=>Qe(e)??Qe(t.useId())??`mcl-field-${++xn}`,Qt=(e,r,n)=>t.computed(()=>{const o=[];return e&&o.push(e),n.value&&r!==void 0&&o.push(r),o.length>0?o.join(" "):void 0}),yn=e=>{const r=Jt(e.fieldId),n=t.computed(()=>t.toValue(e.invalid)??!1),o=`${r}-error`,l=e.hasHelpText?`${r}-description`:void 0,i={id:r,name:t.computed(()=>t.toValue(e.name)??r),errorId:o,descriptionId:l,invalid:n,required:t.computed(()=>t.toValue(e.required)??!1),disabled:t.computed(()=>t.toValue(e.disabled)??!1),describedBy:Qt(l,o,n),feedbackOwnedByGroup:e.ownsFeedback,isGroupLabel:e.isGroupLabel};return t.provide(Zt,i),i},Ce=(e,r)=>{const n=t.inject(Zt,null),o=r?.rendersOwnFeedback??!0,l=Jt(void 0),i=Qe(e.id),s=n!==null&&!n.isGroupLabel?Qe(n.id):void 0,c=i??s??l,f=n?.feedbackOwnedByGroup??!1,d=f?n.errorId:`${c}-error`,u=f||o,g=n?.descriptionId,m=t.computed(()=>e.invalid??n?.invalid.value??!1);return{id:c,name:t.computed(()=>e.name??t.toValue(n?.name)),errorId:d,descriptionId:g,invalid:m,required:t.computed(()=>e.required??n?.required.value??!1),disabled:t.computed(()=>e.disabled??n?.disabled.value??!1),describedBy:Qt(g,u?d:void 0,m),feedbackOwnedByGroup:f,isGroupLabel:n?.isGroupLabel??!1}},kn={key:0,class:"m-0 min-w-0 border-0 p-0"},wn={key:0,class:"inline-block"},Cn=["id"],vn={key:1},Tn=["for"],En=["id"],Sn=t.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(e){const r=e,n=t.useSlots(),o=n["invalid-feedback"]!==void 0,l=r.helpText!==void 0||n.help!==void 0,i=r.invalidFeedback!==void 0||o,s=r.groupLabel,c=yn({fieldId:r.fieldId,invalid:()=>r.invalid,required:()=>r.required,disabled:()=>r.disabled,hasHelpText:l,ownsFeedback:i,isGroupLabel:s}),f=t.computed(()=>{const d=[L.generateClass.textColorVariant({color:r.textColor}),L.generateClass.bodyTextVariant({size:r.textSize})];return r.textBold&&d.push("font-bold"),d.join(" ")});return(d,u)=>t.unref(s)?(t.openBlock(),t.createElementBlock("fieldset",kn,[e.label||d.$slots.label?(t.openBlock(),t.createElementBlock("legend",wn,[t.renderSlot(d.$slots,"label",{},()=>[t.createElementVNode("span",{class:t.normalizeClass(["mb-2xs block",f.value])},t.toDisplayString(e.label),3)])])):t.createCommentVNode("",!0),t.unref(l)?(t.openBlock(),t.createElementBlock("p",{key:1,id:t.unref(c).descriptionId,class:"mb-2xs text-xs"},[t.renderSlot(d.$slots,"help",{},()=>[t.createTextVNode(t.toDisplayString(e.helpText),1)])],8,Cn)):t.createCommentVNode("",!0),t.renderSlot(d.$slots,"default"),t.unref(i)?(t.openBlock(),t.createBlock(_e,{key:2,id:t.unref(c).errorId,invalid:t.unref(c).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[o?t.renderSlot(d.$slots,"invalid-feedback",{key:0}):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",vn,[e.label||d.$slots.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(c).id,class:"inline-block"},[t.renderSlot(d.$slots,"label",{},()=>[t.createElementVNode("span",{class:t.normalizeClass(["mb-2xs block",f.value])},t.toDisplayString(e.label),3)])],8,Tn)):t.createCommentVNode("",!0),t.unref(l)?(t.openBlock(),t.createElementBlock("p",{key:1,id:t.unref(c).descriptionId,class:"mb-2xs text-xs"},[t.renderSlot(d.$slots,"help",{},()=>[t.createTextVNode(t.toDisplayString(e.helpText),1)])],8,En)):t.createCommentVNode("",!0),t.renderSlot(d.$slots,"default"),t.unref(i)?(t.openBlock(),t.createBlock(_e,{key:2,id:t.unref(c).errorId,invalid:t.unref(c).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[o?t.renderSlot(d.$slots,"invalid-feedback",{key:0}):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"])):t.createCommentVNode("",!0)]))}}),er=t.defineComponent({__name:"XMark",props:{color:{default:"dark-4"},className:{default:""}},setup(e){const r=e,n=t.computed(()=>[L.generateClass.svgFillColorVariant({color:r.color}),r.className].filter(Boolean).join(" "));return(o,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","aria-hidden":"true",focusable:"false",class:t.normalizeClass(n.value)},[...l[0]||(l[0]=[t.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))}}),et=e=>t.computed(()=>{const{bgColor:r,textColor:n,borderColor:o,showBorder:l,showShadow:i,rounded:s}=e,c=e.showHighlight??!1,f=[L.generateClass.bgColorVariant({color:r}),L.generateClass.textColorVariant({color:n})];return l&&f.push("border-2",L.generateClass.borderColorVariant({color:o})),c||f.push("focus-visible:ring-4 ring-offset-2 transition-all duration-300 ease-linear",L.generateClass.focusVisibleRingColorVariant({color:o})),i&&f.push("shadow-md"),s&&f.push("rounded-md"),f.join(" ")}),An={class:"my-3xs mr-xs ml-3xs shrink-0"},Rn=["aria-controls","disabled"],Nn=["id","name","accept","required","disabled","aria-invalid","aria-describedby"],On={key:0,class:"my-3xs mr-3xs self-stretch"},_n=["disabled"],Bn=t.defineComponent({__name:"MclInputFile",props:t.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(e){const r=e,n=t.useModel(e,"modelValue"),o=Ce(r),l=et(r),i=t.ref(),s=t.ref(0),c=()=>{i.value?.click()},f=m=>{const b=m.target.files;n.value=b&&b.length>0?b[0]:null},d=()=>{n.value=null,s.value++},u=t.computed(()=>{const m=[L.generateClass.bgColorVariant({color:r.buttonColor}),L.generateClass.textColorVariant({color:r.buttonTextColor})];return r.rounded&&m.push("rounded-l-md"),m.join(" ")}),g=t.computed(()=>{const m=[L.generateClass.bgColorVariant({color:r.buttonColor})];return r.rounded&&m.push("rounded-r-md"),m.join(" ")});return(m,b)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["flex items-center overflow-hidden",t.unref(l)])},[t.createElementVNode("div",An,[t.createElementVNode("button",{type:"button","aria-controls":t.unref(o).id,disabled:t.unref(o).disabled.value,class:t.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",u.value]),onClick:c},t.toDisplayString(e.buttonText),11,Rn)]),(t.openBlock(),t.createElementBlock("input",{id:t.unref(o).id,ref_key:"inputRef",ref:i,key:s.value,type:"file",class:"w-full bg-transparent file:hidden",name:t.unref(o).name.value,accept:e.accept,required:t.unref(o).required.value,disabled:t.unref(o).disabled.value,"aria-invalid":t.unref(o).invalid.value||void 0,"aria-describedby":t.unref(o).describedBy.value,onChange:f},null,40,Nn)),e.showClear?(t.openBlock(),t.createElementBlock("div",On,[t.createElementVNode("button",{type:"button","aria-label":"Clear selected file",disabled:t.unref(o).disabled.value,class:t.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",g.value]),onClick:d},[t.createVNode(er,{color:e.buttonTextColor,"class-name":"h-xs"},null,8,["color"])],10,_n)])):t.createCommentVNode("",!0)],2),t.unref(o).feedbackOwnedByGroup?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_e,{key:0,id:t.unref(o).errorId,invalid:t.unref(o).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[m.$slots["invalid-feedback"]?t.renderSlot(m.$slots,"invalid-feedback",{key:0}):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}}),Vn={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"},Dn={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"}},Ln="rounded-md before:rounded-[3px]",Ct=e=>{const r=t.computed(()=>{const{bgColor:l,borderColor:i,indicatorColor:s,checkedBgColor:c,showShadow:f}=e,d=e.rounded??!1,u=[L.generateClass.bgColorVariant({color:l}),L.generateClass.borderColorVariant({color:i}),L.generateClass.beforeBgColorVariant({color:s}),L.generateClass.peerCheckedBgColorVariant({color:c}),"peer-focus-visible:ring-2 ring-offset-2",L.generateClass.peerFocusVisibleRingColorVariant({color:i})];return f&&u.push("drop-shadow-md"),d&&u.push(e.roundedClass??Ln),u.join(" ")}),n=t.computed(()=>Vn[e.size]),o=t.computed(()=>({...Dn[e.size]}));return{boxClass:r,sizeClass:n,switchVars:o}},In={class:"relative inline-flex"},Mn=["id","name","value","required","disabled","aria-invalid","aria-describedby"],Fn=t.defineComponent({__name:"MclInputRadio",props:t.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:t.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:r}){const n=e,o=t.useModel(e,"modelValue"),l=r,i=Ce(n,{rendersOwnFeedback:!1}),{boxClass:s,sizeClass:c}=Ct(n),f=t.computed(()=>i.name.value??i.id),d=u=>{l("change",u)};return(u,g)=>(t.openBlock(),t.createElementBlock("div",In,[t.withDirectives(t.createElementVNode("input",{id:t.unref(i).id,"onUpdate:modelValue":g[0]||(g[0]=m=>o.value=m),type:"radio",class:"peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",name:f.value,value:e.value,required:t.unref(i).required.value,disabled:t.unref(i).disabled.value,"aria-invalid":t.unref(i).invalid.value||void 0,"aria-describedby":t.unref(i).describedBy.value,onChange:d},null,40,Mn),[[t.vModelRadio,o.value]]),t.createElementVNode("span",{"aria-hidden":"true",class:t.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",[t.unref(s),t.unref(c)]])},null,2)]))}}),zn=["id","name","required","disabled","aria-invalid","aria-describedby"],Pn="rounded-full before:rounded-full",$n=t.defineComponent({__name:"MclInputSwitch",props:t.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:t.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:r}){const n=e,o=t.useModel(e,"modelValue"),l=r,i=Ce(n,{rendersOwnFeedback:!1}),s={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:Pn},{boxClass:c,switchVars:f}=Ct(s),d=u=>{l("change",u)};return(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"switch relative",style:t.normalizeStyle(t.unref(f))},[t.withDirectives(t.createElementVNode("input",{id:t.unref(i).id,"onUpdate:modelValue":g[0]||(g[0]=m=>o.value=m),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:t.unref(i).name.value,required:t.unref(i).required.value,disabled:t.unref(i).disabled.value,"aria-invalid":t.unref(i).invalid.value||void 0,"aria-describedby":t.unref(i).describedBy.value,onChange:d},null,40,zn),[[t.vModelCheckbox,o.value]]),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300",t.unref(c)])},null,2)],4))}}),tr=(e,r)=>{const n=e.__vccOpts||e;for(const[o,l]of r)n[o]=l;return n},Hn=tr($n,[["__scopeId","data-v-784930f6"]]),rr=t.defineComponent({__name:"InputHighlight",props:{color:{default:"primary"},rounded:{type:Boolean,default:!1},offset:{default:1}},setup(e){const r=e,n={1:"-top-1",2.5:"-top-2.5"},o=t.computed(()=>{const l=[L.generateClass.beforeBgColorVariant({color:r.color})];return r.rounded&&l.push("rounded-b-md"),l.push(n[r.offset]),l.join(" ")});return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.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",o.value])},null,2))}}),Un=["id","type","name","placeholder","autocomplete","minlength","maxlength","pattern","required","disabled","aria-invalid","aria-describedby"],Wn=t.defineComponent({__name:"MclInputText",props:t.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(e){const r=e,n=t.useModel(e,"modelValue"),o=Ce(r),l=et(r);return(i,s)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives(t.createElementVNode("input",{id:t.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=c=>n.value=c),class:t.normalizeClass(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50",t.unref(l)]),type:e.type,name:t.unref(o).name.value,placeholder:e.placeholder,autocomplete:e.autocomplete,minlength:e.minLength,maxlength:e.maxLength,pattern:e.pattern,required:t.unref(o).required.value,disabled:t.unref(o).disabled.value,"aria-invalid":t.unref(o).invalid.value||void 0,"aria-describedby":t.unref(o).describedBy.value},null,10,Un),[[t.vModelDynamic,n.value]]),e.showHighlight?(t.openBlock(),t.createBlock(rr,{key:0,color:e.highlightColor,rounded:e.rounded},null,8,["color","rounded"])):t.createCommentVNode("",!0),t.unref(o).feedbackOwnedByGroup?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_e,{key:1,id:t.unref(o).errorId,invalid:t.unref(o).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[i.$slots["invalid-feedback"]?t.renderSlot(i.$slots,"invalid-feedback",{key:0}):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}});function nr(e){var r,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(r=0;r<l;r++)e[r]&&(n=nr(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function qn(){for(var e,r,n=0,o="",l=arguments.length;n<l;n++)(e=arguments[n])&&(r=nr(e))&&(o&&(o+=" "),o+=r);return o}const or=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ar=qn,x=(e,r)=>n=>{var o;if(r?.variants==null)return ar(e,n?.class,n?.className);const{variants:l,defaultVariants:i}=r,s=Object.keys(l).map(d=>{const u=n?.[d],g=i?.[d];if(u===null)return null;const m=or(u)||or(g);return l[d][m]}),c=n&&Object.entries(n).reduce((d,u)=>{let[g,m]=u;return m===void 0||(d[g]=m),d},{}),f=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:g,className:m,...b}=u;return Object.entries(b).every(y=>{let[w,k]=y;return Array.isArray(k)?k.includes({...i,...c}[w]):{...i,...c}[w]===k})?[...d,g,m]:d},[]);return ar(e,s,f,n?.class,n?.className)},jn=x("",{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"}}}),Gn=x("",{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"}}}),Yn=x("",{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"}}}),Xn=x("",{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"}}}),Kn=x("",{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"}}}),Zn=x("",{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"}}}),Jn=x("",{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"}}}),Qn=x("",{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"}}}),eo=x("",{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"}}}),to=x("",{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"}}}),ro=x("",{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"}}}),no=x("",{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"}}}),oo=x("",{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"}}}),ao=x("",{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"}}}),lo=x("",{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"}}}),io=x("",{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"}}}),so=x("",{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"}}}),co=x("",{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"}}}),fo=x("",{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"}}}),uo=x("",{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"}}}),mo=x("",{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"}}}),po=x("",{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"}}}),go=x("",{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"}}}),bo=x("",{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"}}}),ho=x("",{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"}}}),xo=x("",{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"}}}),yo=x("",{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"}}}),ko=x("",{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"}}}),wo=x("",{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"}}}),Co=x("",{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"}}}),vo=x("",{variants:{size:{xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl"}}}),To=x("",{variants:{weight:{light:"font-light",normal:"font-normal",bold:"font-bold"}}}),Eo=x("",{variants:{align:{left:"text-left",center:"text-center",right:"text-right"}}}),So=x("",{variants:{size:{sm:"h1-sm",md:"h1-md",lg:"h1-lg",xl:"h1-xl"}}}),Ao=x("",{variants:{size:{sm:"h2-sm",md:"h2-md",lg:"h2-lg",xl:"h2-xl"}}}),Ro=x("",{variants:{size:{sm:"h3-sm",md:"h3-md",lg:"h3-lg",xl:"h3-xl"}}}),No=x("",{variants:{size:{sm:"h4-sm",md:"h4-md",lg:"h4-lg",xl:"h4-xl"}}}),Oo={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]"},_o={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]"},Bo={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]"},Vo={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]"},Do={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]"},Lo={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]"},Io={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]"},Mo=e=>Oo[e.width]??"",Fo=e=>_o[e.width]??"",zo=e=>Bo[e.width]??"",Po=e=>Vo[e.width]??"",$o=e=>Do[e.width]??"",Ho=e=>Lo[e.width]??"",Uo=e=>Io[e.width]??"",Wo={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"},qo={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"},jo={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"},Go=e=>Wo[e.opacity]??"",Yo=e=>qo[e.opacity]??"",Xo=e=>jo[e.opacity]??"",Ko=x("",{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"}}}),Zo=x("",{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"}}}),Jo=x("",{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"}}}),Qo=x("",{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"}}}),ea=x("",{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"}}}),ta=x("",{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"}}}),ra=x("",{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"}}}),na=x("",{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"}}}),oa=x("",{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"}}}),aa=x("",{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"}}}),la=x("",{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"}}}),ia=x("",{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"}}}),sa=x("",{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"}}}),ca=x("",{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"}}}),da=x("",{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"}}}),lr={bgColorVariant:jn,hoverBgColorVariant:Gn,focusBgColorVariant:Yn,beforeBgColorVariant:Xn,afterBgColorVariant:Kn,activeBgColorVariant:Zn,textColorVariant:Jn,hoverTextColorVariant:Qn,focusTextColorVariant:eo,disabledTextColorVariant:to,svgFillColorVariant:ro,ringColorVariant:no,focusRingColorVariant:oo,activeRingColorVariant:ao,peerCheckedBgColorVariant:lo,peerFocusVisibleRingColorVariant:io,focusVisibleRingColorVariant:so,ringOffsetColorVariant:co,outlineColorVariant:fo,focusOutlineColorVariant:uo,activeOutlineColorVariant:mo,btnColorVariant:po,listColorVariant:go,borderColorVariant:bo,borderXColorVariant:ho,borderYColorVariant:xo,borderTopColorVariant:yo,borderBottomColorVariant:ko,borderLeftColorVariant:wo,borderRightColorVariant:Co,bodyTextVariant:vo,fontWeightVariant:To,textAlignVariant:Eo,h1Variant:So,h2Variant:Ao,h3Variant:Ro,h4Variant:No,borderWidthVariant:Mo,borderXWidthVariant:Fo,borderYWidthVariant:zo,borderTopWidthVariant:Po,borderBottomWidthVariant:$o,borderLeftWidthVariant:Ho,borderRightWidthVariant:Uo,opacityVariant:Go,bgOpacityVariant:Yo,outlineOpacityVariant:Xo,marginVariant:Ko,marginXVariant:Zo,marginYVariant:Jo,marginTopVariant:Qo,marginBottomVariant:ea,marginLeftVariant:ta,marginRightVariant:ra,paddingVariant:na,paddingXVariant:oa,paddingYVariant:aa,paddingTopVariant:la,paddingBottomVariant:ia,paddingLeftVariant:sa,paddingRightVariant:ca,gapVariant:da},fa=(e,r,n)=>!r||!(r instanceof Node)||e===r||e.contains(r)?!1:n?.length?!n.some(o=>o===r||o.contains(r)):!0,tt=e=>typeof e.value=="function"?{handler:e.value,events:["click"]}:{handler:e.value.handler,events:e.value.events||["click"],excludeElements:e.value.excludeElements},ir=(e,r,n)=>o=>{fa(e,o.target,n)&&r(o)},ua={mounted(e,r){const{handler:n,events:o,excludeElements:l}=tt(r);e.__ClickOutsideHandler=ir(e,n,l),o.forEach(i=>{document.addEventListener(i,e.__ClickOutsideHandler,!0)})},updated(e,r){e.__ClickOutsideHandler&&tt({...r,value:r.oldValue}).events.forEach(i=>{document.removeEventListener(i,e.__ClickOutsideHandler,!0)});const{handler:n,events:o,excludeElements:l}=tt(r);e.__ClickOutsideHandler=ir(e,n,l),o.forEach(i=>{document.addEventListener(i,e.__ClickOutsideHandler,!0)})},unmounted(e,r){if(e.__ClickOutsideHandler){const{events:n}=tt(r);n.forEach(o=>{document.removeEventListener(o,e.__ClickOutsideHandler,!0)}),delete e.__ClickOutsideHandler}}},{entries:sr,setPrototypeOf:cr,isFrozen:ma,getPrototypeOf:pa,getOwnPropertyDescriptor:ga}=Object;let{freeze:K,seal:ne,create:Be}=Object,{apply:vt,construct:Tt}=typeof Reflect<"u"&&Reflect;K||(K=function(e){return e}),ne||(ne=function(e){return e}),vt||(vt=function(e,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l<n;l++)o[l-2]=arguments[l];return e.apply(r,o)}),Tt||(Tt=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new e(...n)});const $e=F(Array.prototype.forEach),ba=F(Array.prototype.lastIndexOf),dr=F(Array.prototype.pop),He=F(Array.prototype.push),ha=F(Array.prototype.splice),Z=Array.isArray,Ue=F(String.prototype.toLowerCase),Et=F(String.prototype.toString),fr=F(String.prototype.match),Ve=F(String.prototype.replace),ur=F(String.prototype.indexOf),xa=F(String.prototype.trim),ya=F(Number.prototype.toString),ka=F(Boolean.prototype.toString),mr=typeof BigInt>"u"?null:F(BigInt.prototype.toString),pr=typeof Symbol>"u"?null:F(Symbol.prototype.toString),I=F(Object.prototype.hasOwnProperty),We=F(Object.prototype.toString),q=F(RegExp.prototype.test),rt=wa(TypeError);function F(e){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];return vt(e,r,o)}}function wa(e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Tt(e,n)}}function v(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue;if(cr&&cr(e,null),!Z(r))return e;let o=r.length;for(;o--;){let l=r[o];if(typeof l=="string"){const i=n(l);i!==l&&(ma(r)||(r[o]=i),l=i)}e[l]=!0}return e}function Ca(e){for(let r=0;r<e.length;r++)I(e,r)||(e[r]=null);return e}function ee(e){const r=Be(null);for(const[n,o]of sr(e))I(e,n)&&(Z(o)?r[n]=Ca(o):o&&typeof o=="object"&&o.constructor===Object?r[n]=ee(o):r[n]=o);return r}function va(e){switch(typeof e){case"string":return e;case"number":return ya(e);case"boolean":return ka(e);case"bigint":return mr?mr(e):"0";case"symbol":return pr?pr(e):"Symbol()";case"undefined":return We(e);case"function":case"object":{if(e===null)return We(e);const r=e,n=De(r,"toString");if(typeof n=="function"){const o=n(r);return typeof o=="string"?o:We(o)}return We(e)}default:return We(e)}}function De(e,r){for(;e!==null;){const o=ga(e,r);if(o){if(o.get)return F(o.get);if(typeof o.value=="function")return F(o.value)}e=pa(e)}function n(){return null}return n}function Ta(e){try{return q(e,""),!0}catch{return!1}}const gr=K(["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"]),St=K(["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"]),At=K(["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"]),Ea=K(["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"]),Rt=K(["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"]),Sa=K(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),br=K(["#text"]),hr=K(["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"]),Nt=K(["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"]),xr=K(["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"]),nt=K(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Aa=ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ra=ne(/<%[\w\W]*|[\w\W]*%>/gm),Na=ne(/\$\{[\w\W]*/gm),Oa=ne(/^data-[\-\w.\u00B7-\uFFFF]+$/),_a=ne(/^aria-[\-\w]+$/),yr=ne(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ba=ne(/^(?:\w+script|data):/i),Va=ne(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kr=ne(/^html$/i),Da=ne(/^[a-z][.\w]*(-[.\w]+)+$/i);var wr=Object.freeze({__proto__:null,ARIA_ATTR:_a,ATTR_WHITESPACE:Va,CUSTOM_ELEMENT:Da,DATA_ATTR:Oa,DOCTYPE_NAME:kr,ERB_EXPR:Ra,IS_ALLOWED_URI:yr,IS_SCRIPT_OR_DATA:Ba,MUSTACHE_EXPR:Aa,TMPLIT_EXPR:Na});const qe={element:1,text:3,progressingInstruction:7,comment:8,document:9},La=function(){return typeof window>"u"?null:window},Ia=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const l="dompurify"+(n?"#"+n:"");try{return e.createPolicy(l,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},Cr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:La();const r=a=>vr(a);if(r.version="3.4.2",r.removed=[],!e||!e.document||e.document.nodeType!==qe.document||!e.Element)return r.isSupported=!1,r;let{document:n}=e;const o=n,l=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:f,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:m,trustedTypes:b}=e,y=f.prototype,w=De(y,"cloneNode"),k=De(y,"remove"),C=De(y,"nextSibling"),S=De(y,"childNodes"),A=De(y,"parentNode");if(typeof s=="function"){const a=n.createElement("template");a.content&&a.content.ownerDocument&&(n=a.content.ownerDocument)}let T,_="";const{implementation:V,createNodeIterator:N,createDocumentFragment:j,getElementsByTagName:le}=n,{importNode:de}=o;let P=Cr();r.isSupported=typeof sr=="function"&&typeof A=="function"&&V&&V.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:fe,ERB_EXPR:ge,TMPLIT_EXPR:J,DATA_ATTR:E,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:te}=wr;let{IS_ALLOWED_URI:bt}=wr,U=null;const jr=v({},[...gr,...St,...At,...Rt,...br]);let G=null;const Gr=v({},[...hr,...Nt,...xr,...nt]);let M=Object.seal(Be(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,ht=null;const ke=Object.seal(Be(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Yr=!0,Ft=!0,Xr=!1,Kr=!0,Ae=!1,Ke=!0,Re=!1,zt=!1,Pt=!1,Me=!1,xt=!1,yt=!1,Zr=!0,Jr=!1;const Qr="user-content-";let $t=!0,Ze=!1,Fe={},ue=null;const Ht=v({},["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 en=null;const tn=v({},["audio","video","img","source","image","track"]);let Ut=null;const rn=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kt="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ze=me,Wt=!1,qt=null;const Zl=v({},[kt,wt,me],Et);let jt=v({},["mi","mo","mn","ms","mtext"]),Gt=v({},["annotation-xml"]);const Jl=v({},["title","style","font","a","script"]);let Je=null;const Ql=["application/xhtml+xml","text/html"],ei="text/html";let H=null,Pe=null;const ti=n.createElement("form"),nn=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Pe&&Pe===a)return;(!a||typeof a!="object")&&(a={}),a=ee(a),Je=Ql.indexOf(a.PARSER_MEDIA_TYPE)===-1?ei:a.PARSER_MEDIA_TYPE,H=Je==="application/xhtml+xml"?Et:Ue,U=I(a,"ALLOWED_TAGS")&&Z(a.ALLOWED_TAGS)?v({},a.ALLOWED_TAGS,H):jr,G=I(a,"ALLOWED_ATTR")&&Z(a.ALLOWED_ATTR)?v({},a.ALLOWED_ATTR,H):Gr,qt=I(a,"ALLOWED_NAMESPACES")&&Z(a.ALLOWED_NAMESPACES)?v({},a.ALLOWED_NAMESPACES,Et):Zl,Ut=I(a,"ADD_URI_SAFE_ATTR")&&Z(a.ADD_URI_SAFE_ATTR)?v(ee(rn),a.ADD_URI_SAFE_ATTR,H):rn,en=I(a,"ADD_DATA_URI_TAGS")&&Z(a.ADD_DATA_URI_TAGS)?v(ee(tn),a.ADD_DATA_URI_TAGS,H):tn,ue=I(a,"FORBID_CONTENTS")&&Z(a.FORBID_CONTENTS)?v({},a.FORBID_CONTENTS,H):Ht,Xe=I(a,"FORBID_TAGS")&&Z(a.FORBID_TAGS)?v({},a.FORBID_TAGS,H):ee({}),ht=I(a,"FORBID_ATTR")&&Z(a.FORBID_ATTR)?v({},a.FORBID_ATTR,H):ee({}),Fe=I(a,"USE_PROFILES")?a.USE_PROFILES&&typeof a.USE_PROFILES=="object"?ee(a.USE_PROFILES):a.USE_PROFILES:!1,Yr=a.ALLOW_ARIA_ATTR!==!1,Ft=a.ALLOW_DATA_ATTR!==!1,Xr=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Kr=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=a.SAFE_FOR_TEMPLATES||!1,Ke=a.SAFE_FOR_XML!==!1,Re=a.WHOLE_DOCUMENT||!1,Me=a.RETURN_DOM||!1,xt=a.RETURN_DOM_FRAGMENT||!1,yt=a.RETURN_TRUSTED_TYPE||!1,Pt=a.FORCE_BODY||!1,Zr=a.SANITIZE_DOM!==!1,Jr=a.SANITIZE_NAMED_PROPS||!1,$t=a.KEEP_CONTENT!==!1,Ze=a.IN_PLACE||!1,bt=Ta(a.ALLOWED_URI_REGEXP)?a.ALLOWED_URI_REGEXP:yr,ze=typeof a.NAMESPACE=="string"?a.NAMESPACE:me,jt=I(a,"MATHML_TEXT_INTEGRATION_POINTS")&&a.MATHML_TEXT_INTEGRATION_POINTS&&typeof a.MATHML_TEXT_INTEGRATION_POINTS=="object"?ee(a.MATHML_TEXT_INTEGRATION_POINTS):v({},["mi","mo","mn","ms","mtext"]),Gt=I(a,"HTML_INTEGRATION_POINTS")&&a.HTML_INTEGRATION_POINTS&&typeof a.HTML_INTEGRATION_POINTS=="object"?ee(a.HTML_INTEGRATION_POINTS):v({},["annotation-xml"]);const p=I(a,"CUSTOM_ELEMENT_HANDLING")&&a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING=="object"?ee(a.CUSTOM_ELEMENT_HANDLING):Be(null);if(M=Be(null),I(p,"tagNameCheck")&&nn(p.tagNameCheck)&&(M.tagNameCheck=p.tagNameCheck),I(p,"attributeNameCheck")&&nn(p.attributeNameCheck)&&(M.attributeNameCheck=p.attributeNameCheck),I(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),Ae&&(Ft=!1),xt&&(Me=!0),Fe&&(U=v({},br),G=Be(null),Fe.html===!0&&(v(U,gr),v(G,hr)),Fe.svg===!0&&(v(U,St),v(G,Nt),v(G,nt)),Fe.svgFilters===!0&&(v(U,At),v(G,Nt),v(G,nt)),Fe.mathMl===!0&&(v(U,Rt),v(G,xr),v(G,nt))),ke.tagCheck=null,ke.attributeCheck=null,I(a,"ADD_TAGS")&&(typeof a.ADD_TAGS=="function"?ke.tagCheck=a.ADD_TAGS:Z(a.ADD_TAGS)&&(U===jr&&(U=ee(U)),v(U,a.ADD_TAGS,H))),I(a,"ADD_ATTR")&&(typeof a.ADD_ATTR=="function"?ke.attributeCheck=a.ADD_ATTR:Z(a.ADD_ATTR)&&(G===Gr&&(G=ee(G)),v(G,a.ADD_ATTR,H))),I(a,"ADD_URI_SAFE_ATTR")&&Z(a.ADD_URI_SAFE_ATTR)&&v(Ut,a.ADD_URI_SAFE_ATTR,H),I(a,"FORBID_CONTENTS")&&Z(a.FORBID_CONTENTS)&&(ue===Ht&&(ue=ee(ue)),v(ue,a.FORBID_CONTENTS,H)),I(a,"ADD_FORBID_CONTENTS")&&Z(a.ADD_FORBID_CONTENTS)&&(ue===Ht&&(ue=ee(ue)),v(ue,a.ADD_FORBID_CONTENTS,H)),$t&&(U["#text"]=!0),Re&&v(U,["html","head","body"]),U.table&&(v(U,["tbody"]),delete Xe.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=a.TRUSTED_TYPES_POLICY,_=T.createHTML("")}else T===void 0&&(T=Ia(b,l)),T!==null&&typeof _=="string"&&(_=T.createHTML(""));K&&K(a),Pe=a},on=v({},[...St,...At,...Ea]),an=v({},[...Rt,...Sa]),ri=function(a){let p=A(a);(!p||!p.tagName)&&(p={namespaceURI:ze,tagName:"template"});const h=Ue(a.tagName),R=Ue(p.tagName);return qt[a.namespaceURI]?a.namespaceURI===wt?p.namespaceURI===me?h==="svg":p.namespaceURI===kt?h==="svg"&&(R==="annotation-xml"||jt[R]):!!on[h]:a.namespaceURI===kt?p.namespaceURI===me?h==="math":p.namespaceURI===wt?h==="math"&&Gt[R]:!!an[h]:a.namespaceURI===me?p.namespaceURI===wt&&!Gt[R]||p.namespaceURI===kt&&!jt[R]?!1:!an[h]&&(Jl[h]||!on[h]):!!(Je==="application/xhtml+xml"&&qt[a.namespaceURI]):!1},Ne=function(a){He(r.removed,{element:a});try{A(a).removeChild(a)}catch{k(a)}},Oe=function(a,p){try{He(r.removed,{attribute:p.getAttributeNode(a),from:p})}catch{He(r.removed,{attribute:null,from:p})}if(p.removeAttribute(a),a==="is")if(Me||xt)try{Ne(p)}catch{}else try{p.setAttribute(a,"")}catch{}},ln=function(a){let p=null,h=null;if(Pt)a="<remove></remove>"+a;else{const D=fr(a,/^[\r\n\t ]+/);h=D&&D[0]}Je==="application/xhtml+xml"&&ze===me&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const R=T?T.createHTML(a):a;if(ze===me)try{p=new m().parseFromString(R,Je)}catch{}if(!p||!p.documentElement){p=V.createDocument(ze,"template",null);try{p.documentElement.innerHTML=Wt?_:R}catch{}}const Y=p.body||p.documentElement;return a&&h&&Y.insertBefore(n.createTextNode(h),Y.childNodes[0]||null),ze===me?le.call(p,Re?"html":"body")[0]:Re?p.documentElement:Y},sn=function(a){return N.call(a.ownerDocument||a,a,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Xt=function(a){return a instanceof g&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof u)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Kt=function(a){return typeof c=="function"&&a instanceof c};function be(a,p,h){$e(a,R=>{R.call(r,p,h,Pe)})}const cn=function(a){let p=null;if(be(P.beforeSanitizeElements,a,null),Xt(a))return Ne(a),!0;const h=H(a.nodeName);if(be(P.uponSanitizeElement,a,{tagName:h,allowedTags:U}),Ke&&a.hasChildNodes()&&!Kt(a.firstElementChild)&&q(/<[/\w!]/g,a.innerHTML)&&q(/<[/\w!]/g,a.textContent)||Ke&&a.namespaceURI===me&&h==="style"&&Kt(a.firstElementChild)||a.nodeType===qe.progressingInstruction||Ke&&a.nodeType===qe.comment&&q(/<[/\w]/g,a.data))return Ne(a),!0;if(Xe[h]||!(ke.tagCheck instanceof Function&&ke.tagCheck(h))&&!U[h]){if(!Xe[h]&&fn(h)&&(M.tagNameCheck instanceof RegExp&&q(M.tagNameCheck,h)||M.tagNameCheck instanceof Function&&M.tagNameCheck(h)))return!1;if($t&&!ue[h]){const R=A(a)||a.parentNode,Y=S(a)||a.childNodes;if(Y&&R){const D=Y.length;for(let he=D-1;he>=0;--he){const pe=w(Y[he],!0);R.insertBefore(pe,C(a))}}}return Ne(a),!0}return a instanceof f&&!ri(a)||(h==="noscript"||h==="noembed"||h==="noframes")&&q(/<\/no(script|embed|frames)/i,a.innerHTML)?(Ne(a),!0):(Ae&&a.nodeType===qe.text&&(p=a.textContent,$e([fe,ge,J],R=>{p=Ve(p,R," ")}),a.textContent!==p&&(He(r.removed,{element:a.cloneNode()}),a.textContent=p)),be(P.afterSanitizeElements,a,null),!1)},dn=function(a,p,h){if(ht[p]||Zr&&(p==="id"||p==="name")&&(h in n||h in ti))return!1;const R=G[p]||ke.attributeCheck instanceof Function&&ke.attributeCheck(p,a);if(!(Ft&&!ht[p]&&q(E,p))&&!(Yr&&q(O,p))){if(!R||ht[p]){if(!(fn(a)&&(M.tagNameCheck instanceof RegExp&&q(M.tagNameCheck,a)||M.tagNameCheck instanceof Function&&M.tagNameCheck(a))&&(M.attributeNameCheck instanceof RegExp&&q(M.attributeNameCheck,p)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(p,a))||p==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&q(M.tagNameCheck,h)||M.tagNameCheck instanceof Function&&M.tagNameCheck(h))))return!1}else if(!Ut[p]&&!q(bt,Ve(h,$,""))&&!((p==="src"||p==="xlink:href"||p==="href")&&a!=="script"&&ur(h,"data:")===0&&en[a])&&!(Xr&&!q(B,Ve(h,$,"")))&&h)return!1}return!0},ni=v({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),fn=function(a){return!ni[Ue(a)]&&q(te,a)},un=function(a){be(P.beforeSanitizeAttributes,a,null);const{attributes:p}=a;if(!p||Xt(a))return;const h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let R=p.length;for(;R--;){const Y=p[R],{name:D,namespaceURI:he,value:pe}=Y,Q=H(D),we=pe;let W=D==="value"?we:xa(we);if(h.attrName=Q,h.attrValue=W,h.keepAttr=!0,h.forceKeepAttr=void 0,be(P.uponSanitizeAttribute,a,h),W=h.attrValue,Jr&&(Q==="id"||Q==="name")&&ur(W,Qr)!==0&&(Oe(D,a),W=Qr+W),Ke&&q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){Oe(D,a);continue}if(Q==="attributename"&&fr(W,"href")){Oe(D,a);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){Oe(D,a);continue}if(!Kr&&q(/\/>/i,W)){Oe(D,a);continue}Ae&&$e([fe,ge,J],oi=>{W=Ve(W,oi," ")});const pn=H(a.nodeName);if(!dn(pn,Q,W)){Oe(D,a);continue}if(T&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!he)switch(b.getAttributeType(pn,Q)){case"TrustedHTML":{W=T.createHTML(W);break}case"TrustedScriptURL":{W=T.createScriptURL(W);break}}if(W!==we)try{he?a.setAttributeNS(he,D,W):a.setAttribute(D,W),Xt(a)?Ne(a):dr(r.removed)}catch{Oe(D,a)}}be(P.afterSanitizeAttributes,a,null)},mn=function(a){let p=null;const h=sn(a);for(be(P.beforeSanitizeShadowDOM,a,null);p=h.nextNode();)be(P.uponSanitizeShadowNode,p,null),cn(p),un(p),p.content instanceof i&&mn(p.content);be(P.afterSanitizeShadowDOM,a,null)};return r.sanitize=function(a){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,R=null,Y=null,D=null;if(Wt=!a,Wt&&(a="<!-->"),typeof a!="string"&&!Kt(a)&&(a=va(a),typeof a!="string"))throw rt("dirty is not a string, aborting");if(!r.isSupported)return a;if(zt||Yt(p),r.removed=[],typeof a=="string"&&(Ze=!1),Ze){const Q=a.nodeName;if(typeof Q=="string"){const we=H(Q);if(!U[we]||Xe[we])throw rt("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof c)h=ln("<!---->"),R=h.ownerDocument.importNode(a,!0),R.nodeType===qe.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?h=R:h.appendChild(R);else{if(!Me&&!Ae&&!Re&&a.indexOf("<")===-1)return T&&yt?T.createHTML(a):a;if(h=ln(a),!h)return Me?null:yt?_:""}h&&Pt&&Ne(h.firstChild);const he=sn(Ze?a:h);for(;Y=he.nextNode();)cn(Y),un(Y),Y.content instanceof i&&mn(Y.content);if(Ze)return a;if(Me){if(Ae){h.normalize();let Q=h.innerHTML;$e([fe,ge,J],we=>{Q=Ve(Q,we," ")}),h.innerHTML=Q}if(xt)for(D=j.call(h.ownerDocument);h.firstChild;)D.appendChild(h.firstChild);else D=h;return(G.shadowroot||G.shadowrootmode)&&(D=de.call(o,D,!0)),D}let pe=Re?h.outerHTML:h.innerHTML;return Re&&U["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&q(kr,h.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+h.ownerDocument.doctype.name+`>
3
+ `+pe),Ae&&$e([fe,ge,J],Q=>{pe=Ve(pe,Q," ")}),T&&yt?T.createHTML(pe):pe},r.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(a),zt=!0},r.clearConfig=function(){Pe=null,zt=!1},r.isValidAttribute=function(a,p,h){Pe||Yt({});const R=H(a),Y=H(p);return dn(R,Y,h)},r.addHook=function(a,p){typeof p=="function"&&He(P[a],p)},r.removeHook=function(a,p){if(p!==void 0){const h=ba(P[a],p);return h===-1?void 0:ha(P[a],h,1)[0]}return dr(P[a])},r.removeHooks=function(a){P[a]=[]},r.removeAllHooks=function(){P=Cr()},r}var z=vr(),Ma=z;z.sanitize.bind(z),z.isSupported,z.addHook.bind(z),z.removeHook.bind(z),z.removeHooks.bind(z),z.removeAllHooks.bind(z),z.setConfig.bind(z),z.clearConfig.bind(z),z.isValidAttribute.bind(z),z.version,z.removed;const Tr={left:"tooltip-left",top:"tooltip-top",bottom:"tooltip-bottom",right:"tooltip-right"};t.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 r="invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip",n=t.computed(()=>[lr.bgColorVariant({color:e.color}),lr.textColorVariant({color:e.textColor})].join(" ")),o=t.computed(()=>({width:`${e.width}px`})),l=t.computed(()=>Tr[e.direction]||Tr.right),i=t.computed(()=>[r,l.value,n.value,e.customClass]);return()=>t.h("div",{id:e.id,class:i.value,role:"tooltip",innerHTML:Ma.sanitize(e.content),style:[o.value]})}});const ot=Math.min,ve=Math.max,at=Math.round,lt=Math.floor,ie=e=>({x:e,y:e}),Fa={left:"right",right:"left",bottom:"top",top:"bottom"},za={start:"end",end:"start"};function Er(e,r,n){return ve(e,ot(r,n))}function it(e,r){return typeof e=="function"?e(r):e}function Te(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function Ar(e){return e==="y"?"height":"width"}const Pa=new Set(["top","bottom"]);function xe(e){return Pa.has(Te(e))?"y":"x"}function Rr(e){return Sr(xe(e))}function $a(e,r,n){n===void 0&&(n=!1);const o=st(e),l=Rr(e),i=Ar(l);let s=l==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=ct(s)),[s,ct(s)]}function Ha(e){const r=ct(e);return[Ot(e),r,Ot(r)]}function Ot(e){return e.replace(/start|end/g,r=>za[r])}const Nr=["left","right"],Or=["right","left"],Ua=["top","bottom"],Wa=["bottom","top"];function qa(e,r,n){switch(e){case"top":case"bottom":return n?r?Or:Nr:r?Nr:Or;case"left":case"right":return r?Ua:Wa;default:return[]}}function ja(e,r,n,o){const l=st(e);let i=qa(Te(e),n==="start",o);return l&&(i=i.map(s=>s+"-"+l),r&&(i=i.concat(i.map(Ot)))),i}function ct(e){return e.replace(/left|right|bottom|top/g,r=>Fa[r])}function Ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?Ga(e):{top:e,right:e,bottom:e,left:e}}function dt(e){const{x:r,y:n,width:o,height:l}=e;return{width:o,height:l,top:n,left:r,right:r+o,bottom:n+l,x:r,y:n}}function _r(e,r,n){let{reference:o,floating:l}=e;const i=xe(r),s=Rr(r),c=Ar(s),f=Te(r),d=i==="y",u=o.x+o.width/2-l.width/2,g=o.y+o.height/2-l.height/2,m=o[c]/2-l[c]/2;let b;switch(f){case"top":b={x:u,y:o.y-l.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:g};break;case"left":b={x:o.x-l.width,y:g};break;default:b={x:o.x,y:o.y}}switch(st(r)){case"start":b[s]-=m*(n&&d?-1:1);break;case"end":b[s]+=m*(n&&d?-1:1);break}return b}async function Xa(e,r){var n;r===void 0&&(r={});const{x:o,y:l,platform:i,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:m=!1,padding:b=0}=it(r,e),y=Ya(b),k=c[m?g==="floating"?"reference":"floating":g],C=dt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(k)))==null||n?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:f})),S=g==="floating"?{x:o,y:l,width:s.floating.width,height:s.floating.height}:s.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),T=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},_=dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:S,offsetParent:A,strategy:f}):S);return{top:(C.top-_.top+y.top)/T.y,bottom:(_.bottom-C.bottom+y.bottom)/T.y,left:(C.left-_.left+y.left)/T.x,right:(_.right-C.right+y.right)/T.x}}const Ka=async(e,r,n)=>{const{placement:o="bottom",strategy:l="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(r));let d=await s.getElementRects({reference:e,floating:r,strategy:l}),{x:u,y:g}=_r(d,o,f),m=o,b={},y=0;for(let k=0;k<c.length;k++){var w;const{name:C,fn:S}=c[k],{x:A,y:T,data:_,reset:V}=await S({x:u,y:g,initialPlacement:o,placement:m,strategy:l,middlewareData:b,rects:d,platform:{...s,detectOverflow:(w=s.detectOverflow)!=null?w:Xa},elements:{reference:e,floating:r}});u=A??u,g=T??g,b={...b,[C]:{...b[C],..._}},V&&y<=50&&(y++,typeof V=="object"&&(V.placement&&(m=V.placement),V.rects&&(d=V.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:l}):V.rects),{x:u,y:g}=_r(d,m,f)),k=-1)}return{x:u,y:g,placement:m,strategy:l,middlewareData:b}},Za=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:l,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:d}=r,{mainAxis:u=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...k}=it(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const C=Te(l),S=xe(c),A=Te(c)===c,T=await(f.isRTL==null?void 0:f.isRTL(d.floating)),_=m||(A||!w?[ct(c)]:Ha(c)),V=y!=="none";!m&&V&&_.push(...ja(c,w,y,T));const N=[c,..._],j=await f.detectOverflow(r,k),le=[];let de=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&le.push(j[C]),g){const J=$a(l,s,T);le.push(j[J[0]],j[J[1]])}if(de=[...de,{placement:l,overflows:le}],!le.every(J=>J<=0)){var P,fe;const J=(((P=i.flip)==null?void 0:P.index)||0)+1,E=N[J];if(E&&(!(g==="alignment"?S!==xe(E):!1)||de.every($=>xe($.placement)===S?$.overflows[0]>0:!0)))return{data:{index:J,overflows:de},reset:{placement:E}};let O=(fe=de.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:fe.placement;if(!O)switch(b){case"bestFit":{var ge;const B=(ge=de.filter($=>{if(V){const te=xe($.placement);return te===S||te==="y"}return!0}).map($=>[$.placement,$.overflows.filter(te=>te>0).reduce((te,bt)=>te+bt,0)]).sort(($,te)=>$[1]-te[1])[0])==null?void 0:ge[0];B&&(O=B);break}case"initialPlacement":O=c;break}if(l!==O)return{reset:{placement:O}}}return{}}}},Ja=new Set(["left","top"]);async function Qa(e,r){const{placement:n,platform:o,elements:l}=e,i=await(o.isRTL==null?void 0:o.isRTL(l.floating)),s=Te(n),c=st(n),f=xe(n)==="y",d=Ja.has(s)?-1:1,u=i&&f?-1:1,g=it(r,e);let{mainAxis:m,crossAxis:b,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof y=="number"&&(b=c==="end"?y*-1:y),f?{x:b*u,y:m*d}:{x:m*d,y:b*u}}const el=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:l,y:i,placement:s,middlewareData:c}=r,f=await Qa(r,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:l+f.x,y:i+f.y,data:{...f,placement:s}}}}},tl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:l,platform:i}=r,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:C=>{let{x:S,y:A}=C;return{x:S,y:A}}},...d}=it(e,r),u={x:n,y:o},g=await i.detectOverflow(r,d),m=xe(Te(l)),b=Sr(m);let y=u[b],w=u[m];if(s){const C=b==="y"?"top":"left",S=b==="y"?"bottom":"right",A=y+g[C],T=y-g[S];y=Er(A,y,T)}if(c){const C=m==="y"?"top":"left",S=m==="y"?"bottom":"right",A=w+g[C],T=w-g[S];w=Er(A,w,T)}const k=f.fn({...r,[b]:y,[m]:w});return{...k,data:{x:k.x-n,y:k.y-o,enabled:{[b]:s,[m]:c}}}}}};function ft(){return typeof window<"u"}function Ee(e){return _t(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function se(e){var r;return(r=(_t(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function _t(e){return ft()?e instanceof Node||e instanceof re(e).Node:!1}function oe(e){return ft()?e instanceof Element||e instanceof re(e).Element:!1}function ce(e){return ft()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function Br(e){return!ft()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}const rl=new Set(["inline","contents"]);function je(e){const{overflow:r,overflowX:n,overflowY:o,display:l}=ae(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!rl.has(l)}const nl=new Set(["table","td","th"]);function ol(e){return nl.has(Ee(e))}const al=[":popover-open",":modal"];function ut(e){return al.some(r=>{try{return e.matches(r)}catch{return!1}})}const ll=["transform","translate","scale","rotate","perspective"],il=["transform","translate","scale","rotate","perspective","filter"],sl=["paint","layout","strict","content"];function Bt(e){const r=Vt(),n=oe(e)?ae(e):e;return ll.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||il.some(o=>(n.willChange||"").includes(o))||sl.some(o=>(n.contain||"").includes(o))}function cl(e){let r=ye(e);for(;ce(r)&&!Le(r);){if(Bt(r))return r;if(ut(r))return null;r=ye(r)}return null}function Vt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dl=new Set(["html","body","#document"]);function Le(e){return dl.has(Ee(e))}function ae(e){return re(e).getComputedStyle(e)}function mt(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ye(e){if(Ee(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Br(e)&&e.host||se(e);return Br(r)?r.host:r}function Vr(e){const r=ye(e);return Le(r)?e.ownerDocument?e.ownerDocument.body:e.body:ce(r)&&je(r)?r:Vr(r)}function Ge(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const l=Vr(e),i=l===((o=e.ownerDocument)==null?void 0:o.body),s=re(l);if(i){const c=Dt(s);return r.concat(s,s.visualViewport||[],je(l)?l:[],c&&n?Ge(c):[])}return r.concat(l,Ge(l,[],n))}function Dt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dr(e){const r=ae(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const l=ce(e),i=l?e.offsetWidth:n,s=l?e.offsetHeight:o,c=at(n)!==i||at(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Lt(e){return oe(e)?e:e.contextElement}function Ie(e){const r=Lt(e);if(!ce(r))return ie(1);const n=r.getBoundingClientRect(),{width:o,height:l,$:i}=Dr(r);let s=(i?at(n.width):n.width)/o,c=(i?at(n.height):n.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const fl=ie(0);function Lr(e){const r=re(e);return!Vt()||!r.visualViewport?fl:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function ul(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==re(e)?!1:r}function Se(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),i=Lt(e);let s=ie(1);r&&(o?oe(o)&&(s=Ie(o)):s=Ie(e));const c=ul(i,n,o)?Lr(i):ie(0);let f=(l.left+c.x)/s.x,d=(l.top+c.y)/s.y,u=l.width/s.x,g=l.height/s.y;if(i){const m=re(i),b=o&&oe(o)?re(o):o;let y=m,w=Dt(y);for(;w&&o&&b!==y;){const k=Ie(w),C=w.getBoundingClientRect(),S=ae(w),A=C.left+(w.clientLeft+parseFloat(S.paddingLeft))*k.x,T=C.top+(w.clientTop+parseFloat(S.paddingTop))*k.y;f*=k.x,d*=k.y,u*=k.x,g*=k.y,f+=A,d+=T,y=re(w),w=Dt(y)}}return dt({width:u,height:g,x:f,y:d})}function pt(e,r){const n=mt(e).scrollLeft;return r?r.left+n:Se(se(e)).left+n}function Ir(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-pt(e,n),l=n.top+r.scrollTop;return{x:o,y:l}}function ml(e){let{elements:r,rect:n,offsetParent:o,strategy:l}=e;const i=l==="fixed",s=se(o),c=r?ut(r.floating):!1;if(o===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},d=ie(1);const u=ie(0),g=ce(o);if((g||!g&&!i)&&((Ee(o)!=="body"||je(s))&&(f=mt(o)),ce(o))){const b=Se(o);d=Ie(o),u.x=b.x+o.clientLeft,u.y=b.y+o.clientTop}const m=s&&!g&&!i?Ir(s,f):ie(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+u.x+m.x,y:n.y*d.y-f.scrollTop*d.y+u.y+m.y}}function pl(e){return Array.from(e.getClientRects())}function gl(e){const r=se(e),n=mt(e),o=e.ownerDocument.body,l=ve(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=ve(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+pt(e);const c=-n.scrollTop;return ae(o).direction==="rtl"&&(s+=ve(r.clientWidth,o.clientWidth)-l),{width:l,height:i,x:s,y:c}}const Mr=25;function bl(e,r){const n=re(e),o=se(e),l=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,f=0;if(l){i=l.width,s=l.height;const u=Vt();(!u||u&&r==="fixed")&&(c=l.offsetLeft,f=l.offsetTop)}const d=pt(o);if(d<=0){const u=o.ownerDocument,g=u.body,m=getComputedStyle(g),b=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-g.clientWidth-b);y<=Mr&&(i-=y)}else d<=Mr&&(i+=d);return{width:i,height:s,x:c,y:f}}const hl=new Set(["absolute","fixed"]);function xl(e,r){const n=Se(e,!0,r==="fixed"),o=n.top+e.clientTop,l=n.left+e.clientLeft,i=ce(e)?Ie(e):ie(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,f=l*i.x,d=o*i.y;return{width:s,height:c,x:f,y:d}}function Fr(e,r,n){let o;if(r==="viewport")o=bl(e,n);else if(r==="document")o=gl(se(e));else if(oe(r))o=xl(r,n);else{const l=Lr(e);o={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return dt(o)}function zr(e,r){const n=ye(e);return n===r||!oe(n)||Le(n)?!1:ae(n).position==="fixed"||zr(n,r)}function yl(e,r){const n=r.get(e);if(n)return n;let o=Ge(e,[],!1).filter(c=>oe(c)&&Ee(c)!=="body"),l=null;const i=ae(e).position==="fixed";let s=i?ye(e):e;for(;oe(s)&&!Le(s);){const c=ae(s),f=Bt(s);!f&&c.position==="fixed"&&(l=null),(i?!f&&!l:!f&&c.position==="static"&&!!l&&hl.has(l.position)||je(s)&&!f&&zr(e,s))?o=o.filter(u=>u!==s):l=c,s=ye(s)}return r.set(e,o),o}function kl(e){let{element:r,boundary:n,rootBoundary:o,strategy:l}=e;const s=[...n==="clippingAncestors"?ut(r)?[]:yl(r,this._c):[].concat(n),o],c=s[0],f=s.reduce((d,u)=>{const g=Fr(r,u,l);return d.top=ve(g.top,d.top),d.right=ot(g.right,d.right),d.bottom=ot(g.bottom,d.bottom),d.left=ve(g.left,d.left),d},Fr(r,c,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function wl(e){const{width:r,height:n}=Dr(e);return{width:r,height:n}}function Cl(e,r,n){const o=ce(r),l=se(r),i=n==="fixed",s=Se(e,!0,i,r);let c={scrollLeft:0,scrollTop:0};const f=ie(0);function d(){f.x=pt(l)}if(o||!o&&!i)if((Ee(r)!=="body"||je(l))&&(c=mt(r)),o){const b=Se(r,!0,i,r);f.x=b.x+r.clientLeft,f.y=b.y+r.clientTop}else l&&d();i&&!o&&l&&d();const u=l&&!o&&!i?Ir(l,c):ie(0),g=s.left+c.scrollLeft-f.x-u.x,m=s.top+c.scrollTop-f.y-u.y;return{x:g,y:m,width:s.width,height:s.height}}function It(e){return ae(e).position==="static"}function Pr(e,r){if(!ce(e)||ae(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return se(e)===n&&(n=n.ownerDocument.body),n}function $r(e,r){const n=re(e);if(ut(e))return n;if(!ce(e)){let l=ye(e);for(;l&&!Le(l);){if(oe(l)&&!It(l))return l;l=ye(l)}return n}let o=Pr(e,r);for(;o&&ol(o)&&It(o);)o=Pr(o,r);return o&&Le(o)&&It(o)&&!Bt(o)?n:o||cl(e)||n}const vl=async function(e){const r=this.getOffsetParent||$r,n=this.getDimensions,o=await n(e.floating);return{reference:Cl(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Tl(e){return ae(e).direction==="rtl"}const El={convertOffsetParentRelativeRectToViewportRelativeRect:ml,getDocumentElement:se,getClippingRect:kl,getOffsetParent:$r,getElementRects:vl,getClientRects:pl,getDimensions:wl,getScale:Ie,isElement:oe,isRTL:Tl};function Hr(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Sl(e,r){let n=null,o;const l=se(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const d=e.getBoundingClientRect(),{left:u,top:g,width:m,height:b}=d;if(c||r(),!m||!b)return;const y=lt(g),w=lt(l.clientWidth-(u+m)),k=lt(l.clientHeight-(g+b)),C=lt(u),A={rootMargin:-y+"px "+-w+"px "+-k+"px "+-C+"px",threshold:ve(0,ot(1,f))||1};let T=!0;function _(V){const N=V[0].intersectionRatio;if(N!==f){if(!T)return s();N?s(!1,N):o=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!Hr(d,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(_,{...A,root:l.ownerDocument})}catch{n=new IntersectionObserver(_,A)}n.observe(e)}return s(!0),i}function Al(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,d=Lt(e),u=l||i?[...d?Ge(d):[],...Ge(r)]:[];u.forEach(C=>{l&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const g=d&&c?Sl(d,n):null;let m=-1,b=null;s&&(b=new ResizeObserver(C=>{let[S]=C;S&&S.target===d&&b&&(b.unobserve(r),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(r)})),n()}),d&&!f&&b.observe(d),b.observe(r));let y,w=f?Se(e):null;f&&k();function k(){const C=Se(e);w&&!Hr(w,C)&&n(),w=C,y=requestAnimationFrame(k)}return n(),()=>{var C;u.forEach(S=>{l&&S.removeEventListener("scroll",n),i&&S.removeEventListener("resize",n)}),g?.(),(C=b)==null||C.disconnect(),b=null,f&&cancelAnimationFrame(y)}}const Rl=el,Nl=tl,Ol=Za,_l=(e,r,n)=>{const o=new Map,l={platform:El,...n},i={...l.platform,_c:o};return Ka(e,r,{...l,platform:i})};function Bl(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ur(e){if(Bl(e)){const r=e.$el;return _t(r)&&Ee(r)==="#comment"?null:r}return e}function Ye(e){return typeof e=="function"?e():t.unref(e)}function Wr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qr(e,r){const n=Wr(e);return Math.round(r*n)/n}function Vl(e,r,n){n===void 0&&(n={});const o=n.whileElementsMounted,l=t.computed(()=>{var N;return(N=Ye(n.open))!=null?N:!0}),i=t.computed(()=>Ye(n.middleware)),s=t.computed(()=>{var N;return(N=Ye(n.placement))!=null?N:"bottom"}),c=t.computed(()=>{var N;return(N=Ye(n.strategy))!=null?N:"absolute"}),f=t.computed(()=>{var N;return(N=Ye(n.transform))!=null?N:!0}),d=t.computed(()=>Ur(e.value)),u=t.computed(()=>Ur(r.value)),g=t.ref(0),m=t.ref(0),b=t.ref(c.value),y=t.ref(s.value),w=t.shallowRef({}),k=t.ref(!1),C=t.computed(()=>{const N={position:b.value,left:"0",top:"0"};if(!u.value)return N;const j=qr(u.value,g.value),le=qr(u.value,m.value);return f.value?{...N,transform:"translate("+j+"px, "+le+"px)",...Wr(u.value)>=1.5&&{willChange:"transform"}}:{position:b.value,left:j+"px",top:le+"px"}});let S;function A(){if(d.value==null||u.value==null)return;const N=l.value;_l(d.value,u.value,{middleware:i.value,placement:s.value,strategy:c.value}).then(j=>{g.value=j.x,m.value=j.y,b.value=j.strategy,y.value=j.placement,w.value=j.middlewareData,k.value=N!==!1})}function T(){typeof S=="function"&&(S(),S=void 0)}function _(){if(T(),o===void 0){A();return}if(d.value!=null&&u.value!=null){S=o(d.value,u.value,A);return}}function V(){l.value||(k.value=!1)}return t.watch([i,s,c,l],A,{flush:"sync"}),t.watch([d,u],_,{flush:"sync"}),t.watch(l,V,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(T),{x:t.shallowReadonly(g),y:t.shallowReadonly(m),strategy:t.shallowReadonly(b),placement:t.shallowReadonly(y),middlewareData:t.shallowReadonly(w),isPositioned:t.shallowReadonly(k),floatingStyles:C,update:A}}const Dl=t.defineComponent({__name:"CaretDown",props:{color:{default:"dark-4"},className:{default:""}},setup(e){const r=e,n=t.computed(()=>[L.generateClass.svgFillColorVariant({color:r.color}),r.className].filter(Boolean).join(" "));return(o,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","aria-hidden":"true",focusable:"false",class:t.normalizeClass(n.value)},[...l[0]||(l[0]=[t.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))}}),Ll=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),gt=e=>typeof e=="string"?e:e.text,Mt=e=>typeof e=="string"?e:e.value,Il=(e,r)=>t.computed(()=>{const n=t.toValue(e),o=t.toValue(r);if(o==="")return n;const l=new RegExp(Ll(o),"i");return n.filter(i=>l.test(gt(i)))}),Ml=e=>{const{isOpen:r,activeIndex:n,onSelect:o,onClear:l,onActiveChange:i}=e,s=u=>{const g=t.toValue(e.optionCount);if(g<=0){n.value=-1;return}const m=Math.max(0,Math.min(u,g-1));n.value=m,i?.(m)},c=()=>{r.value=!1,n.value=-1},f=u=>{switch(u.key){case"ArrowDown":if(u.preventDefault(),!r.value){r.value=!0;return}if(u.altKey)return;s(n.value+1);return;case"ArrowUp":if(u.preventDefault(),!r.value){r.value=!0;return}s(n.value<0?t.toValue(e.optionCount)-1:n.value-1);return;case"Home":if(!r.value)return;u.preventDefault(),s(0);return;case"End":if(!r.value)return;u.preventDefault(),s(t.toValue(e.optionCount)-1);return;case"Enter":if(!r.value||n.value<0)return;u.preventDefault(),o(n.value);return;case"Escape":if(r.value){c();return}l();return;case"Tab":r.value&&c();return;default:return}},d=t.computed(()=>r.value&&n.value>=0?`${t.toValue(e.idPrefix)}-option-${n.value}`:void 0);return{onKeydown:f,activeDescendantId:d}},Fl=["id","placeholder","disabled","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby"],zl=["disabled"],Pl=["disabled"],$l=["id"],Hl=["id","aria-selected","onClick","onMouseenter"],Ul=["id"],Wl=["name","value"],ql=tr(t.defineComponent({__name:"MclSelect",props:t.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:t.mergeModels(["open","close","clear","changed","select"],["update:modelValue"]),setup(e,{emit:r}){const n=e,o=t.useModel(e,"modelValue"),l=r,i=Ce(n),s=et(n),c=t.ref(),f=t.ref(),d=t.ref(),u=t.ref([]),g=t.ref(),m=t.ref(!1),b=t.ref(-1),y=E=>{if(E===null||E==="")return"";const O=n.options.find(B=>Mt(B)===E);return O?gt(O):String(E)},w=t.ref(y(o.value)),k=t.ref(!1),C=Il(()=>n.options,()=>k.value?w.value:""),S=(E,O)=>{u.value[O]=E},A=E=>{u.value[E]?.scrollIntoView?.({block:"nearest"})},T=()=>{m.value||(m.value=!0,k.value=!1,b.value=-1)},_=()=>{m.value=!1,b.value=-1},V=E=>{w.value=gt(E);const O=Mt(E);o.value=O,k.value=!1,m.value=!1,b.value=-1,l("select",O)},N=()=>{w.value="",b.value=-1,o.value=null,k.value=!1,l("clear"),f.value?.focus()},{onKeydown:j,activeDescendantId:le}=Ml({isOpen:m,activeIndex:b,optionCount:()=>C.value.length,idPrefix:()=>i.id,onSelect:E=>{const O=C.value[E];O!==void 0&&V(O)},onClear:N,onActiveChange:A}),de=()=>{if(m.value){_();return}T(),f.value?.focus()},P=t.computed(()=>{const E=[L.generateClass.beforeBgColorVariant({color:n.highlightColor})];return n.rounded&&E.push("rounded-b-md"),E.join(" ")}),fe=t.computed(()=>{const E=[L.generateClass.bgColorVariant({color:n.bgColor}),L.generateClass.borderColorVariant({color:n.borderColor})];return n.showHighlight||E.push("mt-2xs"),n.rounded&&E.push("rounded-md"),E.join(" ")}),ge=E=>o.value!==null&&o.value!==""&&Mt(E)===o.value,{floatingStyles:J}=Vl(c,d,{whileElementsMounted:Al,strategy:"absolute",open:m,transform:!1,placement:"bottom",middleware:[Ol(),Rl(-2.2),Nl()]});return gn.useResizeObserver(c,()=>{c.value&&(g.value=c.value.clientWidth)}),t.watch(C,()=>{b.value=-1}),t.watch(m,E=>{if(E){l("open");return}k.value&&(w.value=y(o.value),k.value=!1),l("close")}),t.watch(()=>i.disabled.value,E=>{E&&_()}),t.watch(()=>n.options,()=>{k.value||(w.value=y(o.value))}),t.watch(o,E=>{w.value=y(E),k.value=!1,E!==null&&l("changed",E)}),(E,O)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"rootRef",ref:c,class:"relative"},[t.createElementVNode("div",{class:t.normalizeClass(["relative flex gap-3xs p-2xs",[t.unref(s),!e.showHighlight&&m.value&&t.unref(L.generateClass).ringColorVariant({color:e.borderColor})+" ring-4"]])},[t.withDirectives(t.createElementVNode("input",{id:t.unref(i).id,ref_key:"inputRef",ref:f,"onUpdate:modelValue":O[0]||(O[0]=B=>w.value=B),type:"text",role:"combobox",autocomplete:"off",class:"w-full bg-transparent outline-none disabled:cursor-not-allowed",placeholder:e.placeholder,disabled:t.unref(i).disabled.value,"aria-autocomplete":"list","aria-expanded":m.value,"aria-controls":`${t.unref(i).id}-listbox`,"aria-activedescendant":t.unref(le),"aria-required":t.unref(i).required.value||void 0,"aria-invalid":t.unref(i).invalid.value||void 0,"aria-describedby":t.unref(i).describedBy.value,onFocus:T,onInput:O[1]||(O[1]=B=>k.value=!0),onKeydown:O[2]||(O[2]=(...B)=>t.unref(j)&&t.unref(j)(...B))},null,40,Fl),[[t.vModelText,w.value]]),w.value!==""?(t.openBlock(),t.createElementBlock("button",{key:0,"data-mcl":"clear",type:"button","aria-label":"Clear selection",class:"flex items-center px-3xs",disabled:t.unref(i).disabled.value,onClick:N},[t.createVNode(er,{color:e.iconColor,"class-name":"h-xs opacity-70"},null,8,["color"])],8,zl)):t.createCommentVNode("",!0),t.createElementVNode("button",{"data-mcl":"caret",type:"button",tabindex:"-1","aria-label":"Toggle options",class:"flex items-center px-3xs",disabled:t.unref(i).disabled.value,onClick:de},[t.createVNode(Dl,{color:e.iconColor,"class-name":`h-xs transition-transform duration-300 ease-in ${m.value?"rotate-180":"rotate-0"}`},null,8,["color","class-name"])],8,Pl)],2),e.showHighlight?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.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",[m.value?"before:w-full":"before:w-0",P.value]])},null,2)):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:"options"},{default:t.withCtx(()=>[m.value&&t.unref(C).length>0?(t.openBlock(),t.createElementBlock("ul",{key:0,id:`${t.unref(i).id}-listbox`,ref_key:"dropdownRef",ref:d,role:"listbox",class:t.normalizeClass(["max-h-[12.5rem] overflow-y-auto border-2",fe.value]),style:t.normalizeStyle({width:`${g.value}px`,...t.unref(J)})},[t.renderSlot(E.$slots,"dropdown",{options:t.unref(C),activeIndex:b.value,optionClick:V,setRef:S,hover:B=>b.value=B,optionId:B=>`${t.unref(i).id}-option-${B}`},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(C),(B,$)=>(t.openBlock(),t.createElementBlock("li",{id:`${t.unref(i).id}-option-${$}`,key:$,ref_for:!0,ref:te=>S(te,$),role:"option",class:t.normalizeClass(["cursor-pointer p-2xs",[b.value===$&&t.unref(L.generateClass).bgColorVariant({color:e.optionHoverColor})]]),"aria-selected":ge(B),onClick:te=>V(B),onMouseenter:te=>b.value=$},t.toDisplayString(t.unref(gt)(B)),43,Hl))),128))],!0)],14,$l)):t.createCommentVNode("",!0)]),_:3}),m.value&&t.unref(C).length===0?(t.openBlock(),t.createElementBlock("div",{key:1,id:`${t.unref(i).id}-listbox`,ref_key:"dropdownRef",ref:d,role:"status",class:t.normalizeClass(["border-2 p-2xs",fe.value]),style:t.normalizeStyle({width:`${g.value}px`,...t.unref(J)})},[t.renderSlot(E.$slots,"no-match",{},()=>[t.createElementVNode("span",null,t.toDisplayString(e.noMatchText),1)],!0)],14,Ul)):t.createCommentVNode("",!0),t.unref(i).name.value?(t.openBlock(),t.createElementBlock("input",{key:2,type:"hidden",name:t.unref(i).name.value,value:o.value??""},null,8,Wl)):t.createCommentVNode("",!0),t.unref(i).feedbackOwnedByGroup?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_e,{key:3,id:t.unref(i).errorId,invalid:t.unref(i).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[E.$slots["invalid-feedback"]?t.renderSlot(E.$slots,"invalid-feedback",{key:0},void 0,!0):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))])),[[t.unref(ua),_]])}}),[["__scopeId","data-v-2695c901"]]),jl=["id","name","rows","placeholder","required","disabled","aria-invalid","aria-describedby"],Gl=t.defineComponent({__name:"MclTextArea",props:t.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(e){const r=e,n=t.useModel(e,"modelValue"),o=Ce(r),l=et(r);return(i,s)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives(t.createElementVNode("textarea",{id:t.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=c=>n.value=c),class:t.normalizeClass(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50",t.unref(l)]),name:t.unref(o).name.value,rows:e.rows,placeholder:e.placeholder,required:t.unref(o).required.value,disabled:t.unref(o).disabled.value,"aria-invalid":t.unref(o).invalid.value||void 0,"aria-describedby":t.unref(o).describedBy.value},null,10,jl),[[t.vModelText,n.value]]),e.showHighlight?(t.openBlock(),t.createBlock(rr,{key:0,color:e.highlightColor,rounded:e.rounded,offset:2.5},null,8,["color","rounded"])):t.createCommentVNode("",!0),t.unref(o).feedbackOwnedByGroup?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_e,{key:1,id:t.unref(o).errorId,invalid:t.unref(o).invalid.value,text:e.invalidFeedback},{default:t.withCtx(()=>[i.$slots["invalid-feedback"]?t.renderSlot(i.$slots,"invalid-feedback",{key:0}):t.createCommentVNode("",!0)]),_:3},8,["id","invalid","text"]))]))}}),Yl={class:"relative inline-flex"},Xl=["id","name","value","required","disabled","aria-invalid","aria-describedby"],Kl=t.defineComponent({__name:"MclCheckbox",props:t.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:t.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:r}){const n=e,o=t.useModel(e,"modelValue"),l=r,i=Ce(n,{rendersOwnFeedback:!1}),{boxClass:s,sizeClass:c}=Ct(n),f=d=>{l("change",d)};return(d,u)=>(t.openBlock(),t.createElementBlock("div",Yl,[t.withDirectives(t.createElementVNode("input",{id:t.unref(i).id,"onUpdate:modelValue":u[0]||(u[0]=g=>o.value=g),type:"checkbox",class:"peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",name:t.unref(i).name.value,value:e.value,required:t.unref(i).required.value,disabled:t.unref(i).disabled.value,"aria-invalid":t.unref(i).invalid.value||void 0,"aria-describedby":t.unref(i).describedBy.value,onChange:f},null,40,Xl),[[t.vModelCheckbox,o.value]]),t.createElementVNode("span",{"aria-hidden":"true",class:t.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",[t.unref(s),t.unref(c)]])},null,2)]))}});X.MclCheckbox=Kl,X.MclFormGroup=Sn,X.MclInputFile=Bn,X.MclInputRadio=Fn,X.MclInputSwitch=Hn,X.MclInputText=Wn,X.MclSelect=ql,X.MclTextArea=Gl,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobbykim/mcl-forms",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "form group components based on manguito-theme",
5
5
  "type": "module",
6
6
  "files": [