@roku-ui/vue 0.16.1 → 0.16.2

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 +1 @@
1
- (function(_,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(_=typeof globalThis<"u"?globalThis:_||self,a(_["roku-ui"]={},_.Vue))})(this,function(_,a){"use strict";const gl=a.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(r,e)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({"--ar-ratio":r.ratio,width:r.width,"max-width":r.maxWidth,height:r.height,"max-height":r.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[a.renderSlot(r.$slots,"default")],4))}});function er(t){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},er(t)}var pl=/^\s+/,ml=/\s+$/;function C(t,r){if(t=t||"",r=r||{},t instanceof C)return t;if(!(this instanceof C))return new C(t,r);var e=bl(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}C.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),e,n,o,l,i,s;return e=r.r/255,n=r.g/255,o=r.b/255,e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*l+.7152*i+.0722*s},setAlpha:function(r){return this._a=xa(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=pa(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=pa(this._r,this._g,this._b),e=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.v*100);return this._a==1?"hsv("+e+", "+n+"%, "+o+"%)":"hsva("+e+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var r=ga(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=ga(this._r,this._g,this._b),e=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.l*100);return this._a==1?"hsl("+e+", "+n+"%, "+o+"%)":"hsla("+e+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(r){return ma(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return kl(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(q(this._r,255)*100)+"%",g:Math.round(q(this._g,255)*100)+"%",b:Math.round(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(q(this._r,255)*100)+"%, "+Math.round(q(this._g,255)*100)+"%, "+Math.round(q(this._b,255)*100)+"%)":"rgba("+Math.round(q(this._r,255)*100)+"%, "+Math.round(q(this._g,255)*100)+"%, "+Math.round(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Fl[ma(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var e="#"+ba(this._r,this._g,this._b,this._a),n=e,o=this._gradientType?"GradientType = 1, ":"";if(r){var l=C(r);n="#"+ba(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+e+",endColorstr="+n+")"},toString:function(r){var e=!!r;r=r||this._format;var n=!1,o=this._a<1&&this._a>=0,l=!e&&o&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return l?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return C(this.toString())},_applyModification:function(r,e){var n=r.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ml,arguments)},brighten:function(){return this._applyModification(Al,arguments)},darken:function(){return this._applyModification(Hl,arguments)},desaturate:function(){return this._applyModification(vl,arguments)},saturate:function(){return this._applyModification(Sl,arguments)},greyscale:function(){return this._applyModification(wl,arguments)},spin:function(){return this._applyModification(Cl,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(El,arguments)},complement:function(){return this._applyCombination(Rl,arguments)},monochromatic:function(){return this._applyCombination($l,arguments)},splitcomplement:function(){return this._applyCombination(Bl,arguments)},triad:function(){return this._applyCombination(ya,[3])},tetrad:function(){return this._applyCombination(ya,[4])}},C.fromRatio=function(t,r){if(er(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Te(t[n]));t=e}return C(t,r)};function bl(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=Il(t)),er(t)=="object"&&(Yt(t.r)&&Yt(t.g)&&Yt(t.b)?(r=yl(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Yt(t.h)&&Yt(t.s)&&Yt(t.v)?(n=Te(t.s),o=Te(t.v),r=_l(t.h,n,o),i=!0,s="hsv"):Yt(t.h)&&Yt(t.s)&&Yt(t.l)&&(n=Te(t.s),l=Te(t.l),r=xl(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=xa(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function yl(t,r,e){return{r:q(t,255)*255,g:q(r,255)*255,b:q(e,255)*255}}function ga(t,r,e){t=q(t,255),r=q(r,255),e=q(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function xl(t,r,e){var n,o,l;t=q(t,360),r=q(r,100),e=q(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function pa(t,r,e){t=q(t,255),r=q(r,255),e=q(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function _l(t,r,e){t=q(t,360)*6,r=q(r,100),e=q(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function ma(t,r,e,n){var o=[xt(Math.round(t).toString(16)),xt(Math.round(r).toString(16)),xt(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function kl(t,r,e,n,o){var l=[xt(Math.round(t).toString(16)),xt(Math.round(r).toString(16)),xt(Math.round(e).toString(16)),xt(_a(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function ba(t,r,e,n){var o=[xt(_a(n)),xt(Math.round(t).toString(16)),xt(Math.round(r).toString(16)),xt(Math.round(e).toString(16))];return o.join("")}C.equals=function(t,r){return!t||!r?!1:C(t).toRgbString()==C(r).toRgbString()},C.random=function(){return C.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function vl(t,r){r=r===0?0:r||10;var e=C(t).toHsl();return e.s-=r/100,e.s=rr(e.s),C(e)}function Sl(t,r){r=r===0?0:r||10;var e=C(t).toHsl();return e.s+=r/100,e.s=rr(e.s),C(e)}function wl(t){return C(t).desaturate(100)}function Ml(t,r){r=r===0?0:r||10;var e=C(t).toHsl();return e.l+=r/100,e.l=rr(e.l),C(e)}function Al(t,r){r=r===0?0:r||10;var e=C(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),C(e)}function Hl(t,r){r=r===0?0:r||10;var e=C(t).toHsl();return e.l-=r/100,e.l=rr(e.l),C(e)}function Cl(t,r){var e=C(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,C(e)}function Rl(t){var r=C(t).toHsl();return r.h=(r.h+180)%360,C(r)}function ya(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=C(t).toHsl(),n=[C(t)],o=360/r,l=1;l<r;l++)n.push(C({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function Bl(t){var r=C(t).toHsl(),e=r.h;return[C(t),C({h:(e+72)%360,s:r.s,l:r.l}),C({h:(e+216)%360,s:r.s,l:r.l})]}function El(t,r,e){r=r||6,e=e||30;var n=C(t).toHsl(),o=360/e,l=[C(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(C(n));return l}function $l(t,r){r=r||6;for(var e=C(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(C({h:n,s:o,v:l})),l=(l+s)%1;return i}C.mix=function(t,r,e){e=e===0?0:e||50;var n=C(t).toRgb(),o=C(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return C(i)},C.readability=function(t,r){var e=C(t),n=C(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},C.isReadable=function(t,r,e){var n=C.readability(t,r),o,l;switch(l=!1,o=Vl(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},C.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=C.readability(t,r[u]),l>o&&(o=l,n=C(r[u]));return C.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,C.mostReadable(t,["#fff","#000"],e))};var Gr=C.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Fl=C.hexNames=zl(Gr);function zl(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function xa(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function q(t,r){Tl(t)&&(t="100%");var e=Nl(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function rr(t){return Math.min(1,Math.max(0,t))}function at(t){return parseInt(t,16)}function Tl(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Nl(t){return typeof t=="string"&&t.indexOf("%")!=-1}function xt(t){return t.length==1?"0"+t:""+t}function Te(t){return t<=1&&(t=t*100+"%"),t}function _a(t){return Math.round(parseFloat(t)*255).toString(16)}function ka(t){return at(t)/255}var _t=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Yt(t){return!!_t.CSS_UNIT.exec(t)}function Il(t){t=t.replace(pl,"").replace(ml,"").toLowerCase();var r=!1;if(Gr[t])t=Gr[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=_t.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=_t.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=_t.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=_t.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=_t.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=_t.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=_t.hex8.exec(t))?{r:at(e[1]),g:at(e[2]),b:at(e[3]),a:ka(e[4]),format:r?"name":"hex8"}:(e=_t.hex6.exec(t))?{r:at(e[1]),g:at(e[2]),b:at(e[3]),format:r?"name":"hex"}:(e=_t.hex4.exec(t))?{r:at(e[1]+""+e[1]),g:at(e[2]+""+e[2]),b:at(e[3]+""+e[3]),a:ka(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=_t.hex3.exec(t))?{r:at(e[1]+""+e[1]),g:at(e[2]+""+e[2]),b:at(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function Vl(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}function ot(t){return a.computed(()=>({style:Pl(t.rounded),class:"rounded-[--r-rounded]"}))}function Pl(t){const r=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&r.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const Ur=a.ref([]);function Ol(){return Ur}class Ll{static show(r){r.hash=Math.random().toString(36),Ur.value=[r,...Ur.value]}}const Xr=Symbol("tabCurrent"),Yr=Symbol("direction"),Dl=Symbol("tabValueList"),Kr=Symbol("childrenElementMapSymbol");function Wl(t){const r=C(t).toHsl().l;return it.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function va(t,r=it){const e=kt(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function kt(t,r=it){const e=C(t),n=Wl(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=C({h:e.toHsl().h,s:e.toHsl().s,l:i}),c=0;return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(c*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Me(t,r=it){return va(t,r).colors}function jl(t,r){let e,n,o;const l=a.ref(!0),i=()=>{l.value=!0,o()};a.watch(t,i,{flush:"sync"});const s=typeof r=="function"?r:r.get,c=typeof r=="function"?void 0:r.set,u=a.customRef((d,f)=>(n=d,o=f,{get(){return l.value&&(e=s(e),l.value=!1),n(),e},set(h){c==null||c(h)}}));return Object.isExtensible(u)&&(u.trigger=i),u}function Ne(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Sa(){const t=new Set,r=o=>{t.delete(o)};return{on:o=>{t.add(o);const l=()=>r(o);return Ne(l),{off:l}},off:r,trigger:(...o)=>Promise.all(Array.from(t).map(l=>l(...o)))}}function et(t){return typeof t=="function"?t():a.unref(t)}const Kt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ql=t=>t!=null,Gl=Object.prototype.toString,Ul=t=>Gl.call(t)==="[object Object]",vt=()=>{},Xl=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),Yl=Kl();function Kl(){var t,r;return Kt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window==null?void 0:window.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Jr(t,r){function e(...n){return new Promise((o,l)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(o).catch(l)})}return e}const wa=t=>t();function Jl(t,r={}){let e,n,o=vt;const l=s=>{clearTimeout(s),o(),o=vt};return s=>{const c=et(t),u=et(r.maxWait);return e&&l(e),c<=0||u!==void 0&&u<=0?(n&&(l(n),n=null),Promise.resolve(s())):new Promise((d,f)=>{o=r.rejectOnCancel?f:d,u&&!n&&(n=setTimeout(()=>{e&&l(e),n=null,d(s())},u)),e=setTimeout(()=>{n&&l(n),n=null,d(s())},c)})}}function Zl(...t){let r=0,e,n=!0,o=vt,l,i,s,c,u;!a.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=t[0]:[i,s=!0,c=!0,u=!1]=t;const d=()=>{e&&(clearTimeout(e),e=void 0,o(),o=vt)};return h=>{const g=et(i),m=Date.now()-r,p=()=>l=h();return d(),g<=0?(r=Date.now(),p()):(m>g&&(c||!n)?(r=Date.now(),p()):s&&(l=new Promise((x,v)=>{o=u?v:x,e=setTimeout(()=>{r=Date.now(),n=!0,x(p()),d()},Math.max(0,g-m))})),!c&&!e&&(e=setTimeout(()=>n=!0,g)),n=!1,l)}}function Ql(t=wa){const r=a.ref(!0);function e(){r.value=!1}function n(){r.value=!0}const o=(...l)=>{r.value&&t(...l)};return{isActive:a.readonly(r),pause:e,resume:n,eventFilter:o}}function ti(t){return a.getCurrentInstance()}function Ma(t,r=200,e={}){return Jr(Jl(r,e),t)}function ei(t,r=200,e={}){const n=a.ref(t.value),o=Ma(()=>{n.value=t.value},r,e);return a.watch(t,()=>o()),n}function ri(t,r=200,e=!1,n=!0,o=!1){return Jr(Zl(r,e,n,o),t)}function ni(t,r,e={}){const{eventFilter:n=wa,...o}=e;return a.watch(t,Jr(n,r),o)}function ai(t,r,e={}){const{eventFilter:n,...o}=e,{eventFilter:l,pause:i,resume:s,isActive:c}=Ql(n);return{stop:ni(t,r,{...o,eventFilter:l}),pause:i,resume:s,isActive:c}}function Ae(t,r=!0,e){ti()?a.onMounted(t,e):r?t():a.nextTick(t)}const lt=Kt?window:void 0,oi=Kt?window.document:void 0;function nt(t){var r;const e=et(t);return(r=e==null?void 0:e.$el)!=null?r:e}function D(...t){let r,e,n,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,o]=t,r=lt):[r,e,n,o]=t,!r)return vt;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const l=[],i=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),c=a.watch(()=>[nt(r),et(o)],([d,f])=>{if(i(),!d)return;const h=Ul(f)?{...f}:f;l.push(...e.flatMap(g=>n.map(m=>s(d,g,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Ne(u),u}let Aa=!1;function Ha(t,r,e={}){const{window:n=lt,ignore:o=[],capture:l=!0,detectIframe:i=!1}=e;if(!n)return vt;Yl&&!Aa&&(Aa=!0,Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",vt)),n.document.documentElement.addEventListener("click",vt));let s=!0;const c=g=>et(o).some(m=>{if(typeof m=="string")return Array.from(n.document.querySelectorAll(m)).some(p=>p===g.target||g.composedPath().includes(p));{const p=nt(m);return p&&(g.target===p||g.composedPath().includes(p))}}),u=g=>{const m=nt(t);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(s=!c(g)),!s){s=!0;return}r(g)}};let d=!1;const f=[D(n,"click",g=>{d||(d=!0,setTimeout(()=>{d=!1},0),u(g))},{passive:!0,capture:l}),D(n,"pointerdown",g=>{const m=nt(t);s=!c(g)&&!!(m&&!g.composedPath().includes(m))},{passive:!0}),i&&D(n,"blur",g=>{setTimeout(()=>{var m;const p=nt(t);((m=n.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&r(g)},0)})].filter(Boolean);return()=>f.forEach(g=>g())}function li(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function me(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:o=lt,eventName:l="keydown",passive:i=!1,dedupe:s=!1}=n,c=li(r);return D(o,l,d=>{d.repeat&&et(s)||c(d)&&e(d)},i)}function ii(){const t=a.ref(!1),r=a.getCurrentInstance();return r&&a.onMounted(()=>{t.value=!0},r),t}function Zr(t){const r=ii();return a.computed(()=>(r.value,!!t()))}function Qr(t,r,e={}){const{window:n=lt,...o}=e;let l;const i=Zr(()=>n&&"MutationObserver"in n),s=()=>{l&&(l.disconnect(),l=void 0)},c=a.computed(()=>{const h=et(t),g=(Array.isArray(h)?h:[h]).map(nt).filter(ql);return new Set(g)}),u=a.watch(()=>c.value,h=>{s(),i.value&&h.size&&(l=new MutationObserver(r),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{u(),s()};return Ne(f),{isSupported:i,stop:f,takeRecords:d}}function si(t,r={}){const{window:e=lt}=r,n=Zr(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let o;const l=a.ref(!1),i=u=>{l.value=u.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},c=a.watchEffect(()=>{n.value&&(s(),o=e.matchMedia(et(t)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),l.value=o.matches)});return Ne(()=>{c(),s(),o=void 0}),l}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ar="__vueuse_ssr_handlers__",ci=ui();function ui(){return ar in nr||(nr[ar]=nr[ar]||{}),nr[ar]}function fi(t,r){return ci[t]||r}function di(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const hi={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Ca="vueuse-storage";function gi(t,r,e,n={}){var o;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=lt,eventFilter:h,onError:g=k=>{console.error(k)},initOnMounted:m}=n,p=(d?a.shallowRef:a.ref)(r);if(!e)try{e=fi("getDefaultStorage",()=>{var k;return(k=lt)==null?void 0:k.localStorage})()}catch(k){g(k)}if(!e)return p;const x=et(r),v=di(x),b=(o=n.serializer)!=null?o:hi[v],{pause:w,resume:H}=ai(p,()=>M(p.value),{flush:l,deep:i,eventFilter:h});f&&s&&Ae(()=>{e instanceof Storage?D(f,"storage",A):D(f,Ca,P),m&&A()}),m||A();function S(k,V){if(f){const L={key:t,oldValue:k,newValue:V,storageArea:e};f.dispatchEvent(e instanceof Storage?new StorageEvent("storage",L):new CustomEvent(Ca,{detail:L}))}}function M(k){try{const V=e.getItem(t);if(k==null)S(V,null),e.removeItem(t);else{const L=b.write(k);V!==L&&(e.setItem(t,L),S(V,L))}}catch(V){g(V)}}function y(k){const V=k?k.newValue:e.getItem(t);if(V==null)return c&&x!=null&&e.setItem(t,b.write(x)),x;if(!k&&u){const L=b.read(V);return typeof u=="function"?u(L,x):v==="object"&&!Array.isArray(L)?{...x,...L}:L}else return typeof V!="string"?V:b.read(V)}function A(k){if(!(k&&k.storageArea!==e)){if(k&&k.key==null){p.value=x;return}if(!(k&&k.key!==t)){w();try{(k==null?void 0:k.newValue)!==b.write(p.value)&&(p.value=y(k))}catch(V){g(V)}finally{k?a.nextTick(H):H()}}}}function P(k){A(k.detail)}return p}function pi(t){const r=a.getCurrentInstance(),e=jl(()=>null,()=>r.proxy.$el);return a.onUpdated(e.trigger),a.onMounted(e.trigger),e}function mi(t,r={}){var e,n;const o=a.ref(!1),l=a.shallowRef(null);let i=0,s=!0;if(Kt){const c=typeof r=="function"?{onDrop:r}:r,u=(e=c.multiple)!=null?e:!0,d=(n=c.preventDefaultForUnhandled)!=null?n:!1,f=p=>{var x,v;const b=Array.from((v=(x=p.dataTransfer)==null?void 0:x.files)!=null?v:[]);return b.length===0?null:u?b:[b[0]]},h=p=>{if(c.dataTypes){const x=a.unref(c.dataTypes);return typeof x=="function"?x(p):x?x.some(v=>p.includes(v)):!0}return!0},g=p=>{var x,v;const b=Array.from((v=(x=p.dataTransfer)==null?void 0:x.items)!=null?v:[]),w=b.map(M=>M.type),H=h(w),S=u||b.length<=1;return H&&S},m=(p,x)=>{var v,b,w,H;if(s=g(p),!s){d&&p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect="none");return}p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect="copy");const S=f(p);switch(x){case"enter":i+=1,o.value=!0,(v=c.onEnter)==null||v.call(c,null,p);break;case"over":(b=c.onOver)==null||b.call(c,null,p);break;case"leave":i-=1,i===0&&(o.value=!1),(w=c.onLeave)==null||w.call(c,null,p);break;case"drop":i=0,o.value=!1,s&&(l.value=S,(H=c.onDrop)==null||H.call(c,S,p));break}};D(t,"dragenter",p=>m(p,"enter")),D(t,"dragover",p=>m(p,"over")),D(t,"dragleave",p=>m(p,"leave")),D(t,"drop",p=>m(p,"drop"))}return{files:l,isOverDropZone:o}}function tn(t,r,e={}){const{window:n=lt,...o}=e;let l;const i=Zr(()=>n&&"ResizeObserver"in n),s=()=>{l&&(l.disconnect(),l=void 0)},c=a.computed(()=>{const f=et(t);return Array.isArray(f)?f.map(h=>nt(h)):[nt(f)]}),u=a.watch(c,f=>{if(s(),i.value&&n){l=new ResizeObserver(r);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Ne(d),{isSupported:i,stop:d}}function Jt(t,r={}){const{reset:e=!0,windowResize:n=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:i="sync"}=r,s=a.ref(0),c=a.ref(0),u=a.ref(0),d=a.ref(0),f=a.ref(0),h=a.ref(0),g=a.ref(0),m=a.ref(0);function p(){const v=nt(t);if(!v){e&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,h.value=0,g.value=0,m.value=0);return}const b=v.getBoundingClientRect();s.value=b.height,c.value=b.bottom,u.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,m.value=b.y}function x(){i==="sync"?p():i==="next-frame"&&requestAnimationFrame(()=>p())}return tn(t,x),a.watch(()=>nt(t),v=>!v&&x()),Qr(t,x,{attributeFilter:["style","class"]}),o&&D("scroll",x,{capture:!0,passive:!0}),n&&D("resize",x,{passive:!0}),Ae(()=>{l&&x()}),{height:s,bottom:c,left:u,right:d,top:f,width:h,x:g,y:m,update:x}}function He(t,r={}){const{delayEnter:e=0,delayLeave:n=0,window:o=lt}=r,l=a.ref(!1);let i;const s=c=>{const u=c?e:n;i&&(clearTimeout(i),i=void 0),u?i=setTimeout(()=>l.value=c,u):l.value=c};return o&&(D(t,"mouseenter",()=>s(!0),{passive:!0}),D(t,"mouseleave",()=>s(!1),{passive:!0})),l}const bi={multiple:!0,accept:"*",reset:!1,directory:!1};function yi(t={}){const{document:r=oi}=t,e=a.ref(null),{on:n,trigger:o}=Sa(),{on:l,trigger:i}=Sa();let s;r&&(s=r.createElement("input"),s.type="file",s.onchange=d=>{const f=d.target;e.value=f.files,o(e.value)},s.oncancel=()=>{i()});const c=()=>{e.value=null,s&&s.value&&(s.value="",o(null))},u=d=>{if(!s)return;const f={...bi,...t,...d};s.multiple=f.multiple,s.accept=f.accept,s.webkitdirectory=f.directory,Xl(f,"capture")&&(s.capture=f.capture),f.reset&&c(),s.click()};return{files:a.readonly(e),open:u,reset:c,onCancel:l,onChange:n}}const Ra=1;function xi(t,r={}){const{throttle:e=0,idle:n=200,onStop:o=vt,onScroll:l=vt,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=lt,onError:d=y=>{console.error(y)}}=r,f=a.ref(0),h=a.ref(0),g=a.computed({get(){return f.value},set(y){p(y,void 0)}}),m=a.computed({get(){return h.value},set(y){p(void 0,y)}});function p(y,A){var P,k,V,L;if(!u)return;const I=et(t);if(!I)return;(V=I instanceof Document?u.document.body:I)==null||V.scrollTo({top:(P=et(A))!=null?P:m.value,left:(k=et(y))!=null?k:g.value,behavior:et(c)});const W=((L=I==null?void 0:I.document)==null?void 0:L.documentElement)||(I==null?void 0:I.documentElement)||I;g!=null&&(f.value=W.scrollLeft),m!=null&&(h.value=W.scrollTop)}const x=a.ref(!1),v=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),b=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),w=y=>{x.value&&(x.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(y))},H=Ma(w,e+n),S=y=>{var A;if(!u)return;const P=((A=y==null?void 0:y.document)==null?void 0:A.documentElement)||(y==null?void 0:y.documentElement)||nt(y),{display:k,flexDirection:V}=getComputedStyle(P),L=P.scrollLeft;b.left=L<f.value,b.right=L>f.value;const I=Math.abs(L)<=(i.left||0),W=Math.abs(L)+P.clientWidth>=P.scrollWidth-(i.right||0)-Ra;k==="flex"&&V==="row-reverse"?(v.left=W,v.right=I):(v.left=I,v.right=W),f.value=L;let j=P.scrollTop;y===u.document&&!j&&(j=u.document.body.scrollTop),b.top=j<h.value,b.bottom=j>h.value;const yt=Math.abs(j)<=(i.top||0),O=Math.abs(j)+P.clientHeight>=P.scrollHeight-(i.bottom||0)-Ra;k==="flex"&&V==="column-reverse"?(v.top=O,v.bottom=yt):(v.top=yt,v.bottom=O),h.value=j},M=y=>{var A;if(!u)return;const P=(A=y.target.documentElement)!=null?A:y.target;S(P),x.value=!0,H(y),l(y)};return D(t,"scroll",e?ri(M,e,!0,!1):M,s),Ae(()=>{try{const y=et(t);if(!y)return;S(y)}catch(y){d(y)}}),D(t,"scrollend",w,s),{x:g,y:m,isScrolling:x,arrivedState:v,directions:b,measure(){const y=et(t);u&&y&&S(y)}}}function Ba(t,r,e={}){const{window:n=lt}=e;return gi(t,r,n==null?void 0:n.localStorage,e)}const _i={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function ki(t={}){const{reactive:r=!1,target:e=lt,aliasMap:n=_i,passive:o=!0,onEventFired:l=vt}=t,i=a.reactive(new Set),s={toJSON(){return{}},current:i},c=r?a.reactive(s):s,u=new Set,d=new Set;function f(p,x){p in c&&(r?c[p]=x:c[p].value=x)}function h(){i.clear();for(const p of d)f(p,!1)}function g(p,x){var v,b;const w=(v=p.key)==null?void 0:v.toLowerCase(),S=[(b=p.code)==null?void 0:b.toLowerCase(),w].filter(Boolean);w&&(x?i.add(w):i.delete(w));for(const M of S)d.add(M),f(M,x);w==="meta"&&!x?(u.forEach(M=>{i.delete(M),f(M,!1)}),u.clear()):typeof p.getModifierState=="function"&&p.getModifierState("Meta")&&x&&[...i,...S].forEach(M=>u.add(M))}D(e,"keydown",p=>(g(p,!0),l(p)),{passive:o}),D(e,"keyup",p=>(g(p,!1),l(p)),{passive:o}),D("blur",h,{passive:!0}),D("focus",h,{passive:!0});const m=new Proxy(c,{get(p,x,v){if(typeof x!="string")return Reflect.get(p,x,v);if(x=x.toLowerCase(),x in n&&(x=n[x]),!(x in c))if(/[+_-]/.test(x)){const w=x.split(/[+_-]/g).map(H=>H.trim());c[x]=a.computed(()=>w.every(H=>et(m[H])))}else c[x]=a.ref(!1);const b=Reflect.get(p,x,v);return r?et(b):b}});return m}const vi={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function or(t={}){const{type:r="page",touch:e=!0,resetOnTouchEnds:n=!1,initialValue:o={x:0,y:0},window:l=lt,target:i=l,scroll:s=!0,eventFilter:c}=t;let u=null;const d=a.ref(o.x),f=a.ref(o.y),h=a.ref(null),g=typeof r=="function"?r:vi[r],m=S=>{const M=g(S);u=S,M&&([d.value,f.value]=M,h.value="mouse")},p=S=>{if(S.touches.length>0){const M=g(S.touches[0]);M&&([d.value,f.value]=M,h.value="touch")}},x=()=>{if(!u||!l)return;const S=g(u);u instanceof MouseEvent&&S&&(d.value=S[0]+l.scrollX,f.value=S[1]+l.scrollY)},v=()=>{d.value=o.x,f.value=o.y},b=c?S=>c(()=>m(S),{}):S=>m(S),w=c?S=>c(()=>p(S),{}):S=>p(S),H=c?()=>c(()=>x(),{}):()=>x();if(i){const S={passive:!0};D(i,["mousemove","dragover"],b,S),e&&r!=="movement"&&(D(i,["touchstart","touchmove"],w,S),n&&D(i,"touchend",v,S)),s&&r==="page"&&D(l,"scroll",H,{passive:!0})}return{x:d,y:f,sourceType:h}}function Ea(t=pi()){const r=a.shallowRef(),e=()=>{const n=nt(t);n&&(r.value=n.parentElement)};return Ae(e),a.watch(()=>et(t),e),r}function $a(t){const r=a.ref(0),e=a.computed(()=>nt(t)),n=()=>{e.value&&(r.value=e.value.scrollHeight)};return n(),Ae(n),tn(()=>e.value,n),Qr(()=>e.value,n,{childList:!0,subtree:!0,attributes:!0}),r}function Fa(t,r={}){const{initialWidth:e=Number.POSITIVE_INFINITY,listenOrientation:n=!0}=r,o=a.ref(e),l=a.computed(()=>nt(t)),i=()=>{l.value&&(o.value=l.value.clientHeight)};if(i(),Ae(i),D("resize",i,{passive:!0}),tn(()=>l.value,i),Qr(()=>l.value,i,{childList:!0,subtree:!0,attributes:!0}),n){const s=si("(orientation: portrait)");a.watch(s,()=>i())}return o}const it=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],be=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function Si(){if(!Kt)return a.ref("dark");const t=a.ref(document.documentElement.dataset.scheme);return new MutationObserver(e=>{e.forEach(n=>{n.type==="attributes"&&n.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function wi(){return a.inject("currentThemeScheme",null)}function za(){return a.inject("currentThemeData",a.ref(on))}function Mi(){return a.inject("currentThemeName",a.ref("default"))}function Ta(t,r,e={}){const n=it,o=be;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Me(a.unref(r.primary),e.primary),secondary:Me(a.unref(r.secondary),e.secondary),tertiary:Me(a.unref(r.tertiary),e.tertiary),error:Me(a.unref(r.error),e.error),surface:Me(a.unref(r.surface),e.surface)}}))}function Ai(t,r=it){return a.computed(()=>{const e=a.unref(t);return typeof e=="string"?le(e,r).value.map(n=>n.toHexString()):e})}function en(t){const r=a.ref(t);return{...{...Object.keys(r.value.colors).map(l=>{const i=l,s=r.value.colors[i];return Ai(s,i==="surface"?be:it).value.reduce((d,f,h)=>{const g=C(f).toRgb();return d[`--r-color-${i}-${h}`]=`${g.r} ${g.g} ${g.b}`,d},{})}).reduce((l,i)=>({...l,...i}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)"}}}function lr(t){const r=a.ref("");return a.onMounted(()=>{t.id?r.value=t.id:r.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),r}const Na=Symbol("scheme");function Ia(){const t=Ba("scheme","light");return Kt&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const rn=9,Hi=8,Ci=7,ir=7,Ri=7,Ce=3,Bi=6,ye=5,Va=6,sr=3,Ei=4,nn=.25,$i=.3,cr=1,Fi=2,Re=6,zi=5,Be=4,Pa=5,an=.08,Ti=.15,xe=a.ref("#0067cc"),_e=a.ref("#5999A6"),ke=a.ref("#F76C22"),ve=a.ref("#F95858"),Ot=a.ref("#121212"),Oa=a.computed(()=>rt({color:"surface",type:"border",index:{dark:ir,light:sr}}).value);function La(t){return Ve(t,"text",{dark:Ce,light:Re})}const Ni=a.computed(()=>kt(a.unref(xe),it).colors),Ii=a.computed(()=>kt(a.unref(_e),it).colors),Vi=a.computed(()=>kt(a.unref(ke),it).colors),Pi=a.computed(()=>kt(a.unref(ve),it).colors),Oi=a.computed(()=>kt(a.unref(Ot),be).colors),on=Ta("default",{primary:xe,secondary:_e,tertiary:ke,error:ve,surface:Ot});function Ee(t,r){return a.computed(()=>{switch(a.unref(t)){case"filled":return Fe(r).value;case"light":return ja(r).value;default:return ur().value}})}function Li(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return C(a.unref(Ot));case"primary":return C(a.unref(xe));case"secondary":return C(a.unref(_e));case"tertiary":return C(a.unref(ke));case"error":return C(a.unref(ve));default:return C(r)}})}const ln=new Map;function le(t,r=it){return a.computed(()=>{const n=Li(t).value.toHexString();if(ln.has(n))return ln.get(n);function o(){const l=kt(n,r).colors;return ln.set(n,l),l}return o()})}function Da(){return a.computed(()=>kt(a.unref(Ot),be).colors)}function ur(){return a.computed(()=>{const t=rt({color:"surface",type:"bg",index:{dark:rn,light:cr}}),r=rt({color:"surface",type:"border",index:{dark:ir,light:sr}}),e=$e(t,r);return e.value.class=[...e.value.class,"border"],e.value})}function sn(){return a.computed(()=>{const t=rt({color:"surface",type:"bg",index:{dark:7,light:2}}),r=rt({color:"surface",type:"border",index:{dark:6,light:4}});return $e(t,r).value})}function $e(...t){return a.computed(()=>({style:t.reduce((r,e)=>({...r,...e.value.style}),{}),class:t.reduce((r,e)=>[...r,...e.value.class],[])}))}function Wa(t){return a.computed(()=>{const r=rt({color:t,type:"bg",index:{dark:5,light:4}}),e=rt({color:"surface",type:"border",index:{dark:rn,light:cr}}),n=rt({color:t,type:"text",index:0});return $e(r,e,n).value})}function Fe(t){return a.computed(()=>{const r=rt({color:t,type:"bg",index:{dark:ye,light:Be}}),e=rt({color:t,type:"border",index:{dark:ye,light:Be}}),n=rt({color:t,type:"text",index:0});return $e(r,e,n).value})}function ja(t){return a.computed(()=>{const r=rt({color:t,type:"bg",index:{dark:ye,light:Be},alpha:.15}),e=rt({color:t,type:"text",index:{dark:Ce,light:Re}}),n=rt({color:t,type:"border",index:{dark:5,light:4},alpha:0});return $e(r,e,n).value})}function Ie(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function rt(t){return t.color==="surface"?ze(t.type,t.index):Ve(t.color,t.type,t.index,t.alpha)}function Ve(t,r,e,n=1){return a.computed(()=>{const o=le(t);return typeof e=="number"?Ie(a.unref(o),r,e,e,n):Ie(a.unref(o),r,e.dark,e.light,n)})}function ze(t,r,e=1){return a.computed(()=>{const{colors:n}=kt(a.unref(Ot),be);return typeof r=="number"?Ie(n,t,r,r,e):Ie(n,t,r.dark,r.light,e)})}function fr(t="default",r="primary"){return a.computed(()=>{const e=le(r).value,n=kt(a.unref(Ot),be).colors;return{style:{default:()=>Di(n),filled:()=>Wi(e),light:()=>ji(e),outline:()=>qi(e),transparent:()=>Gi(e),subtle:()=>Ui(e),contrast:()=>Xi(e),white:()=>Yi(e)}[a.unref(t)](),class:"custom-colors"}})}function Di(t){return{"--d-bg":t[Hi].toHexString(),"--d-bg-h":t[Ci].toHexString(),"--d-border":t[Ri].toHexString(),"--l-bg":t[cr].toHexString(),"--l-bg-h":t[Fi].toHexString(),"--l-border":t[Ei].toHexString()}}function Wi(t){return{"--d-border":"transparent","--d-bg":t[ye].toHexString(),"--d-bg-h":t[Va].toHexString(),"--d-text":"white","--l-bg":t[Be].toHexString(),"--l-bg-h":t[Pa].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function ji(t){return{"--d-border":"transparent","--d-bg":t[ye].clone().setAlpha(nn).toHex8String(),"--d-bg-h":t[ye].clone().setAlpha($i).toHex8String(),"--d-text":t[Ce].toHexString(),"--d-text-h":t[Ce].toHexString(),"--l-bg":t[Be].clone().setAlpha(an).toHex8String(),"--l-bg-h":t[Be].clone().setAlpha(Ti).toHex8String(),"--l-text":t[Re].toHexString(),"--l-text-h":t[Re].toHexString(),"--l-border":"transparent"}}function qi(t){return{"--d-bg":"transparent","--d-bg-h":t[Va].clone().setAlpha(nn).toHex8String(),"--d-text":t[Ce].toHexString(),"--d-text-h":t[Ce].toHexString(),"--d-border":t[ir].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Pa].clone().setAlpha(an).toHex8String(),"--l-text":t[Re].toHexString(),"--l-text-h":t[Re].toHexString(),"--l-border":t[sr].toHexString()}}function Gi(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function Ui(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(nn).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(an).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function Xi(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function Yi(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function cn(t,r="default"){return a.computed(()=>{const e=le(t).value,n=Da().value;switch(a.unref(r)){case"default":return{"--d-bg":n[rn].toHexString(),"--d-border-f":e[ye].toHexString(),"--d-border":n[ir].toHexString(),"--d-placeholder":n[Bi].toHexString(),"--d-text":"white","--l-bg":n[cr].toHexString(),"--l-border-f":e[3].toHexString(),"--l-border":n[sr].toHexString(),"--l-placeholder":n[zi].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":e[5].toHexString(),"--d-bg-h":e[6].toHexString(),"--d-border":"transparent","--l-bg":e[5].toHexString(),"--l-bg-h":e[6].toHexString(),"--l-border":"transparent"}}})}const Ki={key:2,class:"i-fluent-person-24-filled"},qa=a.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"},skeleton:{type:Boolean}},setup(t){const r=t,e=ot(r),n=a.computed(()=>r.name||""),o=a.computed(()=>{switch(r.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof r.size=="number"&&!Number.isNaN(Number(r.size))?`--size: ${r.size}rem; --font-size: ${r.size/2}rem;`:"--size: 4rem;"}}),l=a.ref(!1),i=a.ref(null);function s(){l.value=!0}a.onMounted(()=>{var f;(f=i.value)!=null&&f.complete&&s()});function c(f){return f.split(" ").map(h=>h[0]).join("").toUpperCase().slice(0,2)}const u=a.computed(()=>r.color),d=Ee(r.variant,u);return(f,h)=>f.skeleton?(a.openBlock(),a.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant",style:a.normalizeStyle([a.unref(e).style,o.value])},null,4)):f.src?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.is),a.mergeProps({key:1,ref_key:"img",ref:i,alt:n.value,class:[[a.unref(e).class,a.unref(d).class,{hidden:!l.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[a.unref(e).style,a.unref(d).style,o.value],src:f.src},f.$attrs,{onLoad:s}),null,16,["alt","class","style","src"])):!l.value||!f.src?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:2,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[a.unref(e).class,a.unref(d).class]],style:[a.unref(e).style,a.unref(d).style,o.value]},f.$attrs),[f.$slots.default?a.renderSlot(f.$slots,"default",{key:0}):n.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(c(n.value)),1)],64)):(a.openBlock(),a.createElementBlock("i",Ki))],16)):a.createCommentVNode("",!0)}}),dr=a.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean}},setup(t){const r=t,e=ot(r),n=a.computed(()=>{switch(r.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),o=a.ref(null),l=He(o),i=a.computed(()=>r.hoverVariant&&l.value?r.hoverVariant:r.variant??"default"),s=a.computed(()=>r.color??"primary"),c=fr(i,s);return(u,d)=>u.skeleton?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle([a.unref(c).style,a.unref(e).style]),class:a.normalizeClass([n.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant"])},null,6)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.is),a.mergeProps({key:1,ref_key:"btn",ref:o,"data-size":u.size,type:u.type,class:["flex items-center justify-center gap-1 decoration-none",[a.unref(c).class,a.unref(e).class,u.icon?n.value.iconContent:n.value.normalContent,{"opacity-60 pointer-events-none select-none":u.disabled,"active:translate-y-0.25":u.pressEffect==="translate"}]],style:[a.unref(c).style,a.unref(e).style],disabled:u.disabled},u.$attrs),{default:a.withCtx(()=>[u.$slots.leftSection?a.renderSlot(u.$slots,"leftSection",{key:0}):a.createCommentVNode("",!0),a.renderSlot(u.$slots,"default"),u.$slots.rightSection?a.renderSlot(u.$slots,"rightSection",{key:1}):a.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Ji=a.defineComponent({__name:"BtnGroup",props:a.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.computed(()=>r.unselectable===void 0?r.selections.length===1:r.unselectable);function n(d){return typeof d=="string"?d:d.label??d.value}function o(d){return typeof d=="string"?d:d.value}function l(d){return typeof d=="string"?void 0:d.icon}const i=a.useModel(t,"modelValue");function s(d){o(d)===i.value&&e.value?i.value=void 0:i.value=o(d)}const c=a.computed(()=>r.selections.length===1),u=a.computed(()=>c.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(d,f)=>{const h=dr;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-auto inline-flex container",[u.value]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.selections,(g,m)=>(a.openBlock(),a.createBlock(h,{key:o(g),model:i.value,variant:o(g)===i.value?"filled":void 0,color:r.color,class:a.normalizeClass({"border-x-none":m!==0&&m!==r.selections.length-1}),onClick:p=>s(g)},{default:a.withCtx(()=>[l(g)?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass(l(g))},null,2)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(n(g)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Zi=(t,r)=>{const e=t.__vccOpts||t;for(const[n,o]of r)e[n]=o;return e},Qi={},ts={class:"flex flex-col gap-4 container"};function es(t,r){return a.openBlock(),a.createElementBlock("div",ts,[a.renderSlot(t.$slots,"default")])}const rs=Zi(Qi,[["render",es]]),ns=a.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,e=a.computed(()=>r.variant),n=a.computed(()=>r.color),o=Ee(e,n);return(l,i)=>{const s=qa;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":l.position==="right","flex-row":l.position==="left"}]])},[l.$slots.avatar?a.renderSlot(l.$slots,"avatar",{key:0}):l.avatar?(a.openBlock(),a.createBlock(s,{key:1,size:"xs",src:l.avatar},null,8,["src"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":l.position==="right","rounded-tl":l.position==="left",border:l.withBorder},a.unref(o).class]]),style:a.normalizeStyle([a.unref(o).style])},[a.renderSlot(l.$slots,"default")],6)],2)}}}),as={class:"w-full flex self-center gap-2 text-center"},os=a.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,e=a.computed(()=>r.variant),n=a.computed(()=>r.color),o=Ee(e,n);return(l,i)=>(a.openBlock(),a.createElementBlock("div",as,[a.createElementVNode("div",{class:a.normalizeClass(["w-full rounded-xl px-3 py-2",[a.unref(o).class]]),style:a.normalizeStyle(a.unref(o).style)},[a.renderSlot(l.$slots,"default")],6)]))}}),ls=a.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const r=t,e=ot(r),n=a.computed(()=>{switch(r.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),o=a.computed(()=>r.variant),l=a.computed(()=>r.color),i=Ee(o,l);return(s,c)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[a.unref(e).class,a.unref(i).class,n.value]]),style:a.normalizeStyle([a.unref(e).style,a.unref(i).style])},[s.$slots.leftSection?a.renderSlot(s.$slots,"leftSection",{key:0}):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"default"),s.$slots.rightSection?a.renderSlot(s.$slots,"rightSection",{key:1}):a.createCommentVNode("",!0)],6))}}),Ga=a.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(r,e)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.is),a.mergeProps({class:["h-6 w-6 border rounded-full",[{border:r.withBorder}]]},a.unref(Oa),{style:{backgroundColor:r.color}}),null,16,["class","style"]))}}),is=["id","alt"],ss=["for"],cs={key:0},us=a.defineComponent({__name:"ColorInput",props:a.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=a.useModel(t,"modelValue"),e=a.useAttrs(),n=lr(e),o=a.ref(null);return(l,i)=>{const s=Ga;return a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("input",{id:a.unref(n),ref_key:"input",ref:o,"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),alt:r.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,is),[[a.vModelText,r.value]]),a.createElementVNode("label",{class:"flex items-center gap-2",for:a.unref(n)},[a.createVNode(s,{"with-border":l.withBorder,class:"cursor-pointer",color:r.value??"#222"},null,8,["with-border","color"]),l.label?(a.openBlock(),a.createElementBlock("span",cs,a.toDisplayString(l.label),1)):a.createCommentVNode("",!0)],8,ss)])}}}),Ua=Symbol("rokuProvider");function fs(){return a.inject(Ua,a.ref(null))}function ds(t){return a.provide(Ua,t)}const un=a.defineComponent({__name:"FullscreenOverlay",props:a.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.useModel(t,"modelValue"),n=a.ref(null);function o(c){r.persistent||c.target===n.value&&(e.value=!1)}const l=a.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),i=a.ref(0);a.watchEffect(()=>{e.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${i.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),a.watchEffect(()=>{typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(i.value=u)}).observe(document.body)});const s=fs();return(c,u)=>(a.openBlock(),a.createBlock(a.Teleport,{to:a.unref(s)??"body"},[a.createElementVNode("div",{ref_key:"wrapperRef",ref:n,class:a.normalizeClass(["fixed left-0 top-0 z-100 h-full w-full bg-surface-10/33 p-2 transition-all duration-100",[l.value,c.wrapperClass,{"op-0 pointer-events-none":!e.value,"op-100":e.value}]]),onClick:o},[a.renderSlot(c.$slots,"default")],2)],8,["to"]))}}),hs={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},gs={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},ps=a.defineComponent({__name:"Drawer",props:a.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.useModel(t,"modelValue");return(n,o)=>{const l=dr,i=un;return a.openBlock(),a.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":o[1]||(o[1]=s=>e.value=s),blur:r.blur,persistent:r.persistent},{default:a.withCtx(()=>[a.createVNode(a.Transition,{"enter-from-class":n.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(n.position==="left","translate-x-0"),"leave-from-class":(n.position==="left","translate-x-0"),"leave-to-class":n.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:a.withCtx(()=>[e.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",n.position==="left"?"left-0":"right-0"])},[a.createElementVNode("div",hs,[a.createVNode(l,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:o[0]||(o[0]=s=>e.value=!1)},{default:a.withCtx(()=>o[2]||(o[2]=[a.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),a.createElementVNode("div",gs,[a.renderSlot(n.$slots,"default")])],2)):a.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),ms=a.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:r}){const e=t,n=r,o=a.ref(),{onChange:l,open:i}=yi({accept:e.accept});l(d=>{d?n("drop",Array.from(d)):n("drop",null)});const{isOverDropZone:s}=mi(o,{onDrop:d=>{n("drop",d)}}),c=fr("default"),u=sn();return(d,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dropZoneRef",ref:o,class:a.normalizeClass([[a.unref(c).class,a.unref(s)&&a.unref(u).class,{"bg-surface-low":!a.unref(s),"border-dashed":d.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:a.normalizeStyle([a.unref(c).style,a.unref(s)&&a.unref(u).style]),onPointerup:f[0]||(f[0]=()=>a.unref(i)())},[a.renderSlot(d.$slots,"default")],38))}}),bs=a.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const r=t,e=a.ref(!1),n=a.ref(null);function o(){e.value=!0}a.onMounted(()=>{var i;(i=n.value)!=null&&i.complete&&o()});const l=ot(r);return(i,s)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({height:i.height,width:i.width,maxHeight:i.maxHeight,maxWidth:i.maxWidth})},[i.src?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.is),a.mergeProps({key:0,ref_key:"img",ref:n,style:[i.style,a.unref(l).style],src:i.src,class:["h-full w-full object-cover",[r.class,a.unref(l).class,{hidden:!e.value}]]},i.$attrs,{onLoad:o}),null,16,["style","src","class"])):a.createCommentVNode("",!0),e.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[r.class,a.unref(l).class]]),style:a.normalizeStyle([i.style,a.unref(l).style])},null,6))],4))}}),ys={class:"relative"},xs=a.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const r=t,e=a.computed(()=>{switch(r.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof r.size=="number"||!Number.isNaN(Number(r.size))?`w-${r.size} h-${r.size}`:r.size}}),n=a.useSlots(),o=a.computed(()=>{if(!n.label)return"";switch(r.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),l=a.computed(()=>{switch(r.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),i=a.computed(()=>r.color),s=Wa(i);return(c,u)=>(a.openBlock(),a.createElementBlock("div",ys,[a.createElementVNode("div",{class:a.normalizeClass([[l.value,o.value],"absolute z-1"])},[r.ping?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[e.value]:!c.$slots.label},a.unref(s).class]]),style:a.normalizeStyle([a.unref(s).style])},[c.$slots.label?a.renderSlot(c.$slots,"label",{key:0}):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[e.value]:!c.$slots.label},a.unref(s).class]]),style:a.normalizeStyle(a.unref(s).style)},[c.$slots.label?a.renderSlot(c.$slots,"label",{key:0}):a.createCommentVNode("",!0)],6)],2),a.renderSlot(c.$slots,"default")]))}}),fn=a.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const r=t,e=a.computed(()=>r.color),n=a.computed(()=>r.loading),o=ot(r),{x:l,y:i}=or({type:"client"}),s=a.ref(null),{width:c,height:u,top:d,left:f}=Jt(s),h=a.computed(()=>Math.min(c.value,u.value)),g=a.computed(()=>!c.value||!u.value?[]:n.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let m;const p=a.computed(()=>le(e.value).value[5]),x=a.computed(()=>{var b;return r.loading?(m?m.play():m=(b=s.value)==null?void 0:b.animate(g.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":p.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${h.value*.5}px, var(--border-color) ${h.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(m&&m.pause(),{background:"var(--r-surface-background-color)"})}),v=a.computed(()=>{if(r.traceAnimate){const b=a.computed(()=>({x:f.value+c.value/2,y:d.value+u.value/2})),w=a.computed(()=>{if(l.value<f.value||l.value>f.value+c.value||i.value<d.value||i.value>d.value+u.value)return{x:l.value,y:i.value};const H=b.value.x,S=b.value.y;let M,y;const A=(i.value-S)/(l.value-H);return l.value<H?(M=f.value,y=S+A*(f.value-H)):(M=f.value+c.value,y=S+A*(M-H)),y<d.value?(y=d.value,M=H+(y-S)/A):y>d.value+u.value&&(y=d.value+u.value,M=H+(y-S)/A),{x:M,y}});return{"--main-color":p.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${w.value.x-f.value}px ${w.value.y-d.value}px, var(--main-color) ${h.value*.5}px, var(--border-color) ${h.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(b,w)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.is),a.mergeProps({ref_key:"paperRef",ref:s,class:["relative border",[{"p-4":!b.noPadding},a.unref(o).class]],style:[a.unref(o).style,x.value,v.value]},b.withBorder&&!b.traceAnimate&&!n.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default")]),_:3},16,["class","style"]))}}),_s={key:0,class:"text-lg"},ks={key:0},vs=a.defineComponent({__name:"Modal",props:a.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},title:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.useModel(t,"modelValue");return(n,o)=>{const l=fn,i=un;return a.openBlock(),a.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=s=>e.value=s),blur:r.blur,persistent:r.persistent,"wrapper-class":"flex justify-center items-end md:items-start md:pt-5%"},{default:a.withCtx(()=>[a.createVNode(a.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:a.withCtx(()=>[e.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.$slots.default?a.renderSlot(n.$slots,"default",{key:0}):(a.openBlock(),a.createBlock(l,{key:1,"with-border":"",class:"w-full flex flex flex-col gap-2 md:w-md"},{default:a.withCtx(()=>[n.title||n.$slots.title?(a.openBlock(),a.createElementBlock("div",_s,[n.title?(a.openBlock(),a.createElementBlock("div",ks,a.toDisplayString(n.title),1)):a.renderSlot(n.$slots,"title",{key:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.renderSlot(n.$slots,"body")]),a.renderSlot(n.$slots,"footer")]),_:3}))],64)):a.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),Ss={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},ws={key:1},Ms={class:"grow-1"},As={key:1,class:"i-fluent-dismiss-12-filled"},Xa=a.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"}},emits:["close"],setup(t){const r=t,e=ot(r),n=a.computed(()=>r.color),o=Fe(n),l=La(n),i=ur(),s=a.computed(()=>{switch(r.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(c,u)=>{const d=dr;return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:["relative min-w-80 w-full flex items-center gap-2 pl-4",[{"border-0":!c.withBorder},a.unref(e).class,s.value,{"max-w-100":!c.block,"w-full":c.block}]],style:[a.unref(e).style]},a.unref(i)),[c.icon?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([[a.unref(l).class],"leading-0"]),style:a.normalizeStyle(a.unref(l).style)},[c.loading?(a.openBlock(),a.createElementBlock("i",Ss)):(a.openBlock(),a.createElementBlock("i",{key:1,class:a.normalizeClass(["h-container w-container shrink-0",c.icon])},null,2))],6)):(a.openBlock(),a.createElementBlock("div",ws,[a.createElementVNode("div",a.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":c.loading}]]},a.unref(o)),null,16)])),a.createElementVNode("div",Ms,[c.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",[{"text-xs":c.size==="sm","text-sm":c.size==="md","text-base":c.size==="lg"},a.unref(l).class]]),style:a.normalizeStyle(a.unref(l).style)},a.toDisplayString(c.title),7)):a.createCommentVNode("",!0),c.$slots.message?a.renderSlot(c.$slots,"message",{key:1}):c.message?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["text-surface-dimmed op-50",{"text-xs":c.size==="sm","text-sm":c.size==="md"||c.size==="lg"}])},a.toDisplayString(c.message),3)):a.createCommentVNode("",!0)]),c.closeable?(a.openBlock(),a.createBlock(d,{key:2,icon:"",variant:"transparent",color:"white",onClick:u[0]||(u[0]=f=>c.$emit("close"))},{default:a.withCtx(()=>[c.$slots.closeIcon?a.renderSlot(c.$slots,"close-icon",{key:0}):(a.openBlock(),a.createElementBlock("i",As))]),_:3})):a.createCommentVNode("",!0)],16)}}});function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hr(t)}var Hs=/^\s+/,Cs=/\s+$/;function R(t,r){if(t=t||"",r=r||{},t instanceof R)return t;if(!(this instanceof R))return new R(t,r);var e=Rs(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=to(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ka(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ka(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Ya(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ya(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Ja(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Fs(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:qs[Ja(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Za(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=R(t);e="#"+Za(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Is,arguments)},brighten:function(){return this._applyModification(Vs,arguments)},darken:function(){return this._applyModification(Ps,arguments)},desaturate:function(){return this._applyModification(zs,arguments)},saturate:function(){return this._applyModification(Ts,arguments)},greyscale:function(){return this._applyModification(Ns,arguments)},spin:function(){return this._applyModification(Os,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Ws,arguments)},complement:function(){return this._applyCombination(Ls,arguments)},monochromatic:function(){return this._applyCombination(js,arguments)},splitcomplement:function(){return this._applyCombination(Ds,arguments)},triad:function(){return this._applyCombination(Qa,[3])},tetrad:function(){return this._applyCombination(Qa,[4])}},R.fromRatio=function(t,r){if(hr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Pe(t[n]));t=e}return R(t,r)};function Rs(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=Ys(t)),hr(t)=="object"&&(Zt(t.r)&&Zt(t.g)&&Zt(t.b)?(r=Bs(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Zt(t.h)&&Zt(t.s)&&Zt(t.v)?(n=Pe(t.s),o=Pe(t.v),r=$s(t.h,n,o),i=!0,s="hsv"):Zt(t.h)&&Zt(t.s)&&Zt(t.l)&&(n=Pe(t.s),l=Pe(t.l),r=Es(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=to(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function Bs(t,r,e){return{r:G(t,255)*255,g:G(r,255)*255,b:G(e,255)*255}}function Ya(t,r,e){t=G(t,255),r=G(r,255),e=G(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function Es(t,r,e){var n,o,l;t=G(t,360),r=G(r,100),e=G(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function Ka(t,r,e){t=G(t,255),r=G(r,255),e=G(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function $s(t,r,e){t=G(t,360)*6,r=G(r,100),e=G(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function Ja(t,r,e,n){var o=[St(Math.round(t).toString(16)),St(Math.round(r).toString(16)),St(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Fs(t,r,e,n,o){var l=[St(Math.round(t).toString(16)),St(Math.round(r).toString(16)),St(Math.round(e).toString(16)),St(eo(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Za(t,r,e,n){var o=[St(eo(n)),St(Math.round(t).toString(16)),St(Math.round(r).toString(16)),St(Math.round(e).toString(16))];return o.join("")}R.equals=function(t,r){return!t||!r?!1:R(t).toRgbString()==R(r).toRgbString()},R.random=function(){return R.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function zs(t,r){r=r===0?0:r||10;var e=R(t).toHsl();return e.s-=r/100,e.s=gr(e.s),R(e)}function Ts(t,r){r=r===0?0:r||10;var e=R(t).toHsl();return e.s+=r/100,e.s=gr(e.s),R(e)}function Ns(t){return R(t).desaturate(100)}function Is(t,r){r=r===0?0:r||10;var e=R(t).toHsl();return e.l+=r/100,e.l=gr(e.l),R(e)}function Vs(t,r){r=r===0?0:r||10;var e=R(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),R(e)}function Ps(t,r){r=r===0?0:r||10;var e=R(t).toHsl();return e.l-=r/100,e.l=gr(e.l),R(e)}function Os(t,r){var e=R(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,R(e)}function Ls(t){var r=R(t).toHsl();return r.h=(r.h+180)%360,R(r)}function Qa(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=R(t).toHsl(),n=[R(t)],o=360/r,l=1;l<r;l++)n.push(R({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function Ds(t){var r=R(t).toHsl(),e=r.h;return[R(t),R({h:(e+72)%360,s:r.s,l:r.l}),R({h:(e+216)%360,s:r.s,l:r.l})]}function Ws(t,r,e){r=r||6,e=e||30;var n=R(t).toHsl(),o=360/e,l=[R(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(R(n));return l}function js(t,r){r=r||6;for(var e=R(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(R({h:n,s:o,v:l})),l=(l+s)%1;return i}R.mix=function(t,r,e){e=e===0?0:e||50;var n=R(t).toRgb(),o=R(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return R(i)},R.readability=function(t,r){var e=R(t),n=R(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},R.isReadable=function(t,r,e){var n=R.readability(t,r),o,l;switch(l=!1,o=Ks(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},R.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=R.readability(t,r[u]),l>o&&(o=l,n=R(r[u]));return R.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,R.mostReadable(t,["#fff","#000"],e))};var dn=R.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qs=R.hexNames=Gs(dn);function Gs(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function to(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function G(t,r){Us(t)&&(t="100%");var e=Xs(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function gr(t){return Math.min(1,Math.max(0,t))}function st(t){return parseInt(t,16)}function Us(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Xs(t){return typeof t=="string"&&t.indexOf("%")!=-1}function St(t){return t.length==1?"0"+t:""+t}function Pe(t){return t<=1&&(t=t*100+"%"),t}function eo(t){return Math.round(parseFloat(t)*255).toString(16)}function ro(t){return st(t)/255}var wt=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Zt(t){return!!wt.CSS_UNIT.exec(t)}function Ys(t){t=t.replace(Hs,"").replace(Cs,"").toLowerCase();var r=!1;if(dn[t])t=dn[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=wt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=wt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=wt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=wt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=wt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=wt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=wt.hex8.exec(t))?{r:st(e[1]),g:st(e[2]),b:st(e[3]),a:ro(e[4]),format:r?"name":"hex8"}:(e=wt.hex6.exec(t))?{r:st(e[1]),g:st(e[2]),b:st(e[3]),format:r?"name":"hex"}:(e=wt.hex4.exec(t))?{r:st(e[1]+""+e[1]),g:st(e[2]+""+e[2]),b:st(e[3]+""+e[3]),a:ro(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=wt.hex3.exec(t))?{r:st(e[1]+""+e[1]),g:st(e[2]+""+e[2]),b:st(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function Ks(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}const Js=a.ref([]);function Zs(){return Js}function Qs(t){const r=R(t).toHsl().l;return Lt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function tc(t,r=Lt){const e=ie(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function ie(t,r=Lt){const e=R(t),n=Qs(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=R({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Oe(t,r=Lt){return tc(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Lt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],hn=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function ec(t,r,e={}){const n=Lt,o=hn;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Oe(a.unref(r.primary),e.primary),secondary:Oe(a.unref(r.secondary),e.secondary),tertiary:Oe(a.unref(r.tertiary),e.tertiary),error:Oe(a.unref(r.error),e.error),surface:Oe(a.unref(r.surface),e.surface)}}))}const rc=7,nc=3,gn=a.ref("#0067cc"),pn=a.ref("#5999A6"),mn=a.ref("#F76C22"),bn=a.ref("#F95858"),pr=a.ref("#121212");a.computed(()=>lc({color:"surface",type:"border",index:{dark:rc,light:nc}}).value),a.computed(()=>ie(a.unref(gn),Lt).colors),a.computed(()=>ie(a.unref(pn),Lt).colors),a.computed(()=>ie(a.unref(mn),Lt).colors),a.computed(()=>ie(a.unref(bn),Lt).colors),a.computed(()=>ie(a.unref(pr),hn).colors),ec("default",{primary:gn,secondary:pn,tertiary:mn,error:bn,surface:pr});function ac(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return R(a.unref(pr));case"primary":return R(a.unref(gn));case"secondary":return R(a.unref(pn));case"tertiary":return R(a.unref(mn));case"error":return R(a.unref(bn));default:return R(r)}})}const yn=new Map;function oc(t,r=Lt){return a.computed(()=>{const e=ac(t).value.toHexString();if(yn.has(e))return yn.get(e);function n(){const o=ie(e,r).colors;return yn.set(e,o),o}return n()})}function mr(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function lc(t){return t.color==="surface"?sc(t.type,t.index):ic(t.color,t.type,t.index,t.alpha)}function ic(t,r,e,n=1){return a.computed(()=>{const o=oc(t);return typeof e=="number"?mr(a.unref(o),r,e,e,n):mr(a.unref(o),r,e.dark,e.light,n)})}function sc(t,r,e=1){return a.computed(()=>{const{colors:n}=ie(a.unref(pr),hn);return typeof r=="number"?mr(n,t,r,r,e):mr(n,t,r.dark,r.light,e)})}function br(t){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},br(t)}var cc=/^\s+/,uc=/\s+$/;function B(t,r){if(t=t||"",r=r||{},t instanceof B)return t;if(!(this instanceof B))return new B(t,r);var e=fc(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}B.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=so(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ao(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ao(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=no(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=no(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return oo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return pc(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(U(this._r,255)*100)+"%",g:Math.round(U(this._g,255)*100)+"%",b:Math.round(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(U(this._r,255)*100)+"%, "+Math.round(U(this._g,255)*100)+"%, "+Math.round(U(this._b,255)*100)+"%)":"rgba("+Math.round(U(this._r,255)*100)+"%, "+Math.round(U(this._g,255)*100)+"%, "+Math.round(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Hc[oo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+lo(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=B(t);e="#"+lo(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(xc,arguments)},brighten:function(){return this._applyModification(_c,arguments)},darken:function(){return this._applyModification(kc,arguments)},desaturate:function(){return this._applyModification(mc,arguments)},saturate:function(){return this._applyModification(bc,arguments)},greyscale:function(){return this._applyModification(yc,arguments)},spin:function(){return this._applyModification(vc,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Mc,arguments)},complement:function(){return this._applyCombination(Sc,arguments)},monochromatic:function(){return this._applyCombination(Ac,arguments)},splitcomplement:function(){return this._applyCombination(wc,arguments)},triad:function(){return this._applyCombination(io,[3])},tetrad:function(){return this._applyCombination(io,[4])}},B.fromRatio=function(t,r){if(br(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Le(t[n]));t=e}return B(t,r)};function fc(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=Ec(t)),br(t)=="object"&&(Qt(t.r)&&Qt(t.g)&&Qt(t.b)?(r=dc(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Qt(t.h)&&Qt(t.s)&&Qt(t.v)?(n=Le(t.s),o=Le(t.v),r=gc(t.h,n,o),i=!0,s="hsv"):Qt(t.h)&&Qt(t.s)&&Qt(t.l)&&(n=Le(t.s),l=Le(t.l),r=hc(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=so(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function dc(t,r,e){return{r:U(t,255)*255,g:U(r,255)*255,b:U(e,255)*255}}function no(t,r,e){t=U(t,255),r=U(r,255),e=U(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function hc(t,r,e){var n,o,l;t=U(t,360),r=U(r,100),e=U(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function ao(t,r,e){t=U(t,255),r=U(r,255),e=U(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function gc(t,r,e){t=U(t,360)*6,r=U(r,100),e=U(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function oo(t,r,e,n){var o=[Mt(Math.round(t).toString(16)),Mt(Math.round(r).toString(16)),Mt(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function pc(t,r,e,n,o){var l=[Mt(Math.round(t).toString(16)),Mt(Math.round(r).toString(16)),Mt(Math.round(e).toString(16)),Mt(co(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function lo(t,r,e,n){var o=[Mt(co(n)),Mt(Math.round(t).toString(16)),Mt(Math.round(r).toString(16)),Mt(Math.round(e).toString(16))];return o.join("")}B.equals=function(t,r){return!t||!r?!1:B(t).toRgbString()==B(r).toRgbString()},B.random=function(){return B.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function mc(t,r){r=r===0?0:r||10;var e=B(t).toHsl();return e.s-=r/100,e.s=yr(e.s),B(e)}function bc(t,r){r=r===0?0:r||10;var e=B(t).toHsl();return e.s+=r/100,e.s=yr(e.s),B(e)}function yc(t){return B(t).desaturate(100)}function xc(t,r){r=r===0?0:r||10;var e=B(t).toHsl();return e.l+=r/100,e.l=yr(e.l),B(e)}function _c(t,r){r=r===0?0:r||10;var e=B(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),B(e)}function kc(t,r){r=r===0?0:r||10;var e=B(t).toHsl();return e.l-=r/100,e.l=yr(e.l),B(e)}function vc(t,r){var e=B(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,B(e)}function Sc(t){var r=B(t).toHsl();return r.h=(r.h+180)%360,B(r)}function io(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=B(t).toHsl(),n=[B(t)],o=360/r,l=1;l<r;l++)n.push(B({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function wc(t){var r=B(t).toHsl(),e=r.h;return[B(t),B({h:(e+72)%360,s:r.s,l:r.l}),B({h:(e+216)%360,s:r.s,l:r.l})]}function Mc(t,r,e){r=r||6,e=e||30;var n=B(t).toHsl(),o=360/e,l=[B(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(B(n));return l}function Ac(t,r){r=r||6;for(var e=B(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(B({h:n,s:o,v:l})),l=(l+s)%1;return i}B.mix=function(t,r,e){e=e===0?0:e||50;var n=B(t).toRgb(),o=B(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return B(i)},B.readability=function(t,r){var e=B(t),n=B(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},B.isReadable=function(t,r,e){var n=B.readability(t,r),o,l;switch(l=!1,o=$c(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},B.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=B.readability(t,r[u]),l>o&&(o=l,n=B(r[u]));return B.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,B.mostReadable(t,["#fff","#000"],e))};var xn=B.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Hc=B.hexNames=Cc(xn);function Cc(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function so(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function U(t,r){Rc(t)&&(t="100%");var e=Bc(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function yr(t){return Math.min(1,Math.max(0,t))}function ct(t){return parseInt(t,16)}function Rc(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Bc(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Mt(t){return t.length==1?"0"+t:""+t}function Le(t){return t<=1&&(t=t*100+"%"),t}function co(t){return Math.round(parseFloat(t)*255).toString(16)}function uo(t){return ct(t)/255}var At=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qt(t){return!!At.CSS_UNIT.exec(t)}function Ec(t){t=t.replace(cc,"").replace(uc,"").toLowerCase();var r=!1;if(xn[t])t=xn[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=At.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=At.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=At.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=At.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=At.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=At.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=At.hex8.exec(t))?{r:ct(e[1]),g:ct(e[2]),b:ct(e[3]),a:uo(e[4]),format:r?"name":"hex8"}:(e=At.hex6.exec(t))?{r:ct(e[1]),g:ct(e[2]),b:ct(e[3]),format:r?"name":"hex"}:(e=At.hex4.exec(t))?{r:ct(e[1]+""+e[1]),g:ct(e[2]+""+e[2]),b:ct(e[3]+""+e[3]),a:uo(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=At.hex3.exec(t))?{r:ct(e[1]+""+e[1]),g:ct(e[2]+""+e[2]),b:ct(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function $c(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function Fc(t){const r=B(t).toHsl().l;return Dt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function zc(t,r=Dt){const e=se(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function se(t,r=Dt){const e=B(t),n=Fc(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=B({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function De(t,r=Dt){return zc(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Dt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],_n=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function Tc(t,r,e={}){const n=Dt,o=_n;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:De(a.unref(r.primary),e.primary),secondary:De(a.unref(r.secondary),e.secondary),tertiary:De(a.unref(r.tertiary),e.tertiary),error:De(a.unref(r.error),e.error),surface:De(a.unref(r.surface),e.surface)}}))}const Nc=7,Ic=3,kn=a.ref("#0067cc"),vn=a.ref("#5999A6"),Sn=a.ref("#F76C22"),wn=a.ref("#F95858"),xr=a.ref("#121212");a.computed(()=>Oc({color:"surface",type:"border",index:{dark:Nc,light:Ic}}).value),a.computed(()=>se(a.unref(kn),Dt).colors),a.computed(()=>se(a.unref(vn),Dt).colors),a.computed(()=>se(a.unref(Sn),Dt).colors),a.computed(()=>se(a.unref(wn),Dt).colors),a.computed(()=>se(a.unref(xr),_n).colors),Tc("default",{primary:kn,secondary:vn,tertiary:Sn,error:wn,surface:xr});function Vc(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return B(a.unref(xr));case"primary":return B(a.unref(kn));case"secondary":return B(a.unref(vn));case"tertiary":return B(a.unref(Sn));case"error":return B(a.unref(wn));default:return B(r)}})}const Mn=new Map;function Pc(t,r=Dt){return a.computed(()=>{const e=Vc(t).value.toHexString();if(Mn.has(e))return Mn.get(e);function n(){const o=se(e,r).colors;return Mn.set(e,o),o}return n()})}function _r(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function Oc(t){return t.color==="surface"?Dc(t.type,t.index):Lc(t.color,t.type,t.index,t.alpha)}function Lc(t,r,e,n=1){return a.computed(()=>{const o=Pc(t);return typeof e=="number"?_r(a.unref(o),r,e,e,n):_r(a.unref(o),r,e.dark,e.light,n)})}function Dc(t,r,e=1){return a.computed(()=>{const{colors:n}=se(a.unref(xr),_n);return typeof r=="number"?_r(n,t,r,r,e):_r(n,t,r.dark,r.light,e)})}function kr(t){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kr(t)}var Wc=/^\s+/,jc=/\s+$/;function E(t,r){if(t=t||"",r=r||{},t instanceof E)return t;if(!(this instanceof E))return new E(t,r);var e=qc(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}E.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=bo(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ho(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ho(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=fo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=fo(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return go(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Yc(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(X(this._r,255)*100)+"%",g:Math.round(X(this._g,255)*100)+"%",b:Math.round(X(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(X(this._r,255)*100)+"%, "+Math.round(X(this._g,255)*100)+"%, "+Math.round(X(this._b,255)*100)+"%)":"rgba("+Math.round(X(this._r,255)*100)+"%, "+Math.round(X(this._g,255)*100)+"%, "+Math.round(X(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:iu[go(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+po(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=E(t);e="#"+po(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return E(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Qc,arguments)},brighten:function(){return this._applyModification(tu,arguments)},darken:function(){return this._applyModification(eu,arguments)},desaturate:function(){return this._applyModification(Kc,arguments)},saturate:function(){return this._applyModification(Jc,arguments)},greyscale:function(){return this._applyModification(Zc,arguments)},spin:function(){return this._applyModification(ru,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(ou,arguments)},complement:function(){return this._applyCombination(nu,arguments)},monochromatic:function(){return this._applyCombination(lu,arguments)},splitcomplement:function(){return this._applyCombination(au,arguments)},triad:function(){return this._applyCombination(mo,[3])},tetrad:function(){return this._applyCombination(mo,[4])}},E.fromRatio=function(t,r){if(kr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=We(t[n]));t=e}return E(t,r)};function qc(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=fu(t)),kr(t)=="object"&&(te(t.r)&&te(t.g)&&te(t.b)?(r=Gc(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):te(t.h)&&te(t.s)&&te(t.v)?(n=We(t.s),o=We(t.v),r=Xc(t.h,n,o),i=!0,s="hsv"):te(t.h)&&te(t.s)&&te(t.l)&&(n=We(t.s),l=We(t.l),r=Uc(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=bo(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function Gc(t,r,e){return{r:X(t,255)*255,g:X(r,255)*255,b:X(e,255)*255}}function fo(t,r,e){t=X(t,255),r=X(r,255),e=X(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function Uc(t,r,e){var n,o,l;t=X(t,360),r=X(r,100),e=X(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function ho(t,r,e){t=X(t,255),r=X(r,255),e=X(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function Xc(t,r,e){t=X(t,360)*6,r=X(r,100),e=X(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function go(t,r,e,n){var o=[Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16)),Ht(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Yc(t,r,e,n,o){var l=[Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16)),Ht(Math.round(e).toString(16)),Ht(yo(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function po(t,r,e,n){var o=[Ht(yo(n)),Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16)),Ht(Math.round(e).toString(16))];return o.join("")}E.equals=function(t,r){return!t||!r?!1:E(t).toRgbString()==E(r).toRgbString()},E.random=function(){return E.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Kc(t,r){r=r===0?0:r||10;var e=E(t).toHsl();return e.s-=r/100,e.s=vr(e.s),E(e)}function Jc(t,r){r=r===0?0:r||10;var e=E(t).toHsl();return e.s+=r/100,e.s=vr(e.s),E(e)}function Zc(t){return E(t).desaturate(100)}function Qc(t,r){r=r===0?0:r||10;var e=E(t).toHsl();return e.l+=r/100,e.l=vr(e.l),E(e)}function tu(t,r){r=r===0?0:r||10;var e=E(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),E(e)}function eu(t,r){r=r===0?0:r||10;var e=E(t).toHsl();return e.l-=r/100,e.l=vr(e.l),E(e)}function ru(t,r){var e=E(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,E(e)}function nu(t){var r=E(t).toHsl();return r.h=(r.h+180)%360,E(r)}function mo(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=E(t).toHsl(),n=[E(t)],o=360/r,l=1;l<r;l++)n.push(E({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function au(t){var r=E(t).toHsl(),e=r.h;return[E(t),E({h:(e+72)%360,s:r.s,l:r.l}),E({h:(e+216)%360,s:r.s,l:r.l})]}function ou(t,r,e){r=r||6,e=e||30;var n=E(t).toHsl(),o=360/e,l=[E(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(E(n));return l}function lu(t,r){r=r||6;for(var e=E(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(E({h:n,s:o,v:l})),l=(l+s)%1;return i}E.mix=function(t,r,e){e=e===0?0:e||50;var n=E(t).toRgb(),o=E(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return E(i)},E.readability=function(t,r){var e=E(t),n=E(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},E.isReadable=function(t,r,e){var n=E.readability(t,r),o,l;switch(l=!1,o=du(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},E.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=E.readability(t,r[u]),l>o&&(o=l,n=E(r[u]));return E.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,E.mostReadable(t,["#fff","#000"],e))};var An=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},iu=E.hexNames=su(An);function su(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function bo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function X(t,r){cu(t)&&(t="100%");var e=uu(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function vr(t){return Math.min(1,Math.max(0,t))}function ut(t){return parseInt(t,16)}function cu(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function uu(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Ht(t){return t.length==1?"0"+t:""+t}function We(t){return t<=1&&(t=t*100+"%"),t}function yo(t){return Math.round(parseFloat(t)*255).toString(16)}function xo(t){return ut(t)/255}var Ct=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(t){return!!Ct.CSS_UNIT.exec(t)}function fu(t){t=t.replace(Wc,"").replace(jc,"").toLowerCase();var r=!1;if(An[t])t=An[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Ct.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Ct.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Ct.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Ct.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Ct.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Ct.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Ct.hex8.exec(t))?{r:ut(e[1]),g:ut(e[2]),b:ut(e[3]),a:xo(e[4]),format:r?"name":"hex8"}:(e=Ct.hex6.exec(t))?{r:ut(e[1]),g:ut(e[2]),b:ut(e[3]),format:r?"name":"hex"}:(e=Ct.hex4.exec(t))?{r:ut(e[1]+""+e[1]),g:ut(e[2]+""+e[2]),b:ut(e[3]+""+e[3]),a:xo(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=Ct.hex3.exec(t))?{r:ut(e[1]+""+e[1]),g:ut(e[2]+""+e[2]),b:ut(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function du(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function hu(t){const r=E(t).toHsl().l;return Wt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function gu(t,r=Wt){const e=ce(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function ce(t,r=Wt){const e=E(t),n=hu(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=E({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function je(t,r=Wt){return gu(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],Hn=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function pu(t,r,e={}){const n=Wt,o=Hn;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:je(a.unref(r.primary),e.primary),secondary:je(a.unref(r.secondary),e.secondary),tertiary:je(a.unref(r.tertiary),e.tertiary),error:je(a.unref(r.error),e.error),surface:je(a.unref(r.surface),e.surface)}}))}const mu=7,bu=3,Cn=a.ref("#0067cc"),Rn=a.ref("#5999A6"),Bn=a.ref("#F76C22"),En=a.ref("#F95858"),Sr=a.ref("#121212");a.computed(()=>_u({color:"surface",type:"border",index:{dark:mu,light:bu}}).value),a.computed(()=>ce(a.unref(Cn),Wt).colors),a.computed(()=>ce(a.unref(Rn),Wt).colors),a.computed(()=>ce(a.unref(Bn),Wt).colors),a.computed(()=>ce(a.unref(En),Wt).colors),a.computed(()=>ce(a.unref(Sr),Hn).colors),pu("default",{primary:Cn,secondary:Rn,tertiary:Bn,error:En,surface:Sr});function yu(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return E(a.unref(Sr));case"primary":return E(a.unref(Cn));case"secondary":return E(a.unref(Rn));case"tertiary":return E(a.unref(Bn));case"error":return E(a.unref(En));default:return E(r)}})}const $n=new Map;function xu(t,r=Wt){return a.computed(()=>{const e=yu(t).value.toHexString();if($n.has(e))return $n.get(e);function n(){const o=ce(e,r).colors;return $n.set(e,o),o}return n()})}function wr(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function _u(t){return t.color==="surface"?vu(t.type,t.index):ku(t.color,t.type,t.index,t.alpha)}function ku(t,r,e,n=1){return a.computed(()=>{const o=xu(t);return typeof e=="number"?wr(a.unref(o),r,e,e,n):wr(a.unref(o),r,e.dark,e.light,n)})}function vu(t,r,e=1){return a.computed(()=>{const{colors:n}=ce(a.unref(Sr),Hn);return typeof r=="number"?wr(n,t,r,r,e):wr(n,t,r.dark,r.light,e)})}function Mr(t){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mr(t)}var Su=/^\s+/,wu=/\s+$/;function $(t,r){if(t=t||"",r=r||{},t instanceof $)return t;if(!(this instanceof $))return new $(t,r);var e=Mu(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}$.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=Mo(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ko(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ko(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=_o(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_o(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return vo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Ru(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Y(this._r,255)*100)+"%",g:Math.round(Y(this._g,255)*100)+"%",b:Math.round(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Y(this._r,255)*100)+"%, "+Math.round(Y(this._g,255)*100)+"%, "+Math.round(Y(this._b,255)*100)+"%)":"rgba("+Math.round(Y(this._r,255)*100)+"%, "+Math.round(Y(this._g,255)*100)+"%, "+Math.round(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Lu[vo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+So(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=$(t);e="#"+So(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return $(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Fu,arguments)},brighten:function(){return this._applyModification(zu,arguments)},darken:function(){return this._applyModification(Tu,arguments)},desaturate:function(){return this._applyModification(Bu,arguments)},saturate:function(){return this._applyModification(Eu,arguments)},greyscale:function(){return this._applyModification($u,arguments)},spin:function(){return this._applyModification(Nu,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Pu,arguments)},complement:function(){return this._applyCombination(Iu,arguments)},monochromatic:function(){return this._applyCombination(Ou,arguments)},splitcomplement:function(){return this._applyCombination(Vu,arguments)},triad:function(){return this._applyCombination(wo,[3])},tetrad:function(){return this._applyCombination(wo,[4])}},$.fromRatio=function(t,r){if(Mr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=qe(t[n]));t=e}return $(t,r)};function Mu(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=qu(t)),Mr(t)=="object"&&(ee(t.r)&&ee(t.g)&&ee(t.b)?(r=Au(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ee(t.h)&&ee(t.s)&&ee(t.v)?(n=qe(t.s),o=qe(t.v),r=Cu(t.h,n,o),i=!0,s="hsv"):ee(t.h)&&ee(t.s)&&ee(t.l)&&(n=qe(t.s),l=qe(t.l),r=Hu(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=Mo(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function Au(t,r,e){return{r:Y(t,255)*255,g:Y(r,255)*255,b:Y(e,255)*255}}function _o(t,r,e){t=Y(t,255),r=Y(r,255),e=Y(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function Hu(t,r,e){var n,o,l;t=Y(t,360),r=Y(r,100),e=Y(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function ko(t,r,e){t=Y(t,255),r=Y(r,255),e=Y(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function Cu(t,r,e){t=Y(t,360)*6,r=Y(r,100),e=Y(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function vo(t,r,e,n){var o=[Rt(Math.round(t).toString(16)),Rt(Math.round(r).toString(16)),Rt(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ru(t,r,e,n,o){var l=[Rt(Math.round(t).toString(16)),Rt(Math.round(r).toString(16)),Rt(Math.round(e).toString(16)),Rt(Ao(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function So(t,r,e,n){var o=[Rt(Ao(n)),Rt(Math.round(t).toString(16)),Rt(Math.round(r).toString(16)),Rt(Math.round(e).toString(16))];return o.join("")}$.equals=function(t,r){return!t||!r?!1:$(t).toRgbString()==$(r).toRgbString()},$.random=function(){return $.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Bu(t,r){r=r===0?0:r||10;var e=$(t).toHsl();return e.s-=r/100,e.s=Ar(e.s),$(e)}function Eu(t,r){r=r===0?0:r||10;var e=$(t).toHsl();return e.s+=r/100,e.s=Ar(e.s),$(e)}function $u(t){return $(t).desaturate(100)}function Fu(t,r){r=r===0?0:r||10;var e=$(t).toHsl();return e.l+=r/100,e.l=Ar(e.l),$(e)}function zu(t,r){r=r===0?0:r||10;var e=$(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),$(e)}function Tu(t,r){r=r===0?0:r||10;var e=$(t).toHsl();return e.l-=r/100,e.l=Ar(e.l),$(e)}function Nu(t,r){var e=$(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,$(e)}function Iu(t){var r=$(t).toHsl();return r.h=(r.h+180)%360,$(r)}function wo(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=$(t).toHsl(),n=[$(t)],o=360/r,l=1;l<r;l++)n.push($({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function Vu(t){var r=$(t).toHsl(),e=r.h;return[$(t),$({h:(e+72)%360,s:r.s,l:r.l}),$({h:(e+216)%360,s:r.s,l:r.l})]}function Pu(t,r,e){r=r||6,e=e||30;var n=$(t).toHsl(),o=360/e,l=[$(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push($(n));return l}function Ou(t,r){r=r||6;for(var e=$(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push($({h:n,s:o,v:l})),l=(l+s)%1;return i}$.mix=function(t,r,e){e=e===0?0:e||50;var n=$(t).toRgb(),o=$(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return $(i)},$.readability=function(t,r){var e=$(t),n=$(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},$.isReadable=function(t,r,e){var n=$.readability(t,r),o,l;switch(l=!1,o=Gu(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},$.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=$.readability(t,r[u]),l>o&&(o=l,n=$(r[u]));return $.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,$.mostReadable(t,["#fff","#000"],e))};var Fn=$.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Lu=$.hexNames=Du(Fn);function Du(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function Mo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Y(t,r){Wu(t)&&(t="100%");var e=ju(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Ar(t){return Math.min(1,Math.max(0,t))}function ft(t){return parseInt(t,16)}function Wu(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function ju(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Rt(t){return t.length==1?"0"+t:""+t}function qe(t){return t<=1&&(t=t*100+"%"),t}function Ao(t){return Math.round(parseFloat(t)*255).toString(16)}function Ho(t){return ft(t)/255}var Bt=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ee(t){return!!Bt.CSS_UNIT.exec(t)}function qu(t){t=t.replace(Su,"").replace(wu,"").toLowerCase();var r=!1;if(Fn[t])t=Fn[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Bt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Bt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Bt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Bt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Bt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Bt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Bt.hex8.exec(t))?{r:ft(e[1]),g:ft(e[2]),b:ft(e[3]),a:Ho(e[4]),format:r?"name":"hex8"}:(e=Bt.hex6.exec(t))?{r:ft(e[1]),g:ft(e[2]),b:ft(e[3]),format:r?"name":"hex"}:(e=Bt.hex4.exec(t))?{r:ft(e[1]+""+e[1]),g:ft(e[2]+""+e[2]),b:ft(e[3]+""+e[3]),a:Ho(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=Bt.hex3.exec(t))?{r:ft(e[1]+""+e[1]),g:ft(e[2]+""+e[2]),b:ft(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function Gu(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function Uu(t){const r=$(t).toHsl().l;return jt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function Xu(t,r=jt){const e=ue(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function ue(t,r=jt){const e=$(t),n=Uu(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=$({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Ge(t,r=jt){return Xu(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],zn=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function Yu(t,r,e={}){const n=jt,o=zn;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Ge(a.unref(r.primary),e.primary),secondary:Ge(a.unref(r.secondary),e.secondary),tertiary:Ge(a.unref(r.tertiary),e.tertiary),error:Ge(a.unref(r.error),e.error),surface:Ge(a.unref(r.surface),e.surface)}}))}const Ku=7,Ju=3,Tn=a.ref("#0067cc"),Nn=a.ref("#5999A6"),In=a.ref("#F76C22"),Vn=a.ref("#F95858"),Hr=a.ref("#121212");a.computed(()=>tf({color:"surface",type:"border",index:{dark:Ku,light:Ju}}).value),a.computed(()=>ue(a.unref(Tn),jt).colors),a.computed(()=>ue(a.unref(Nn),jt).colors),a.computed(()=>ue(a.unref(In),jt).colors),a.computed(()=>ue(a.unref(Vn),jt).colors),a.computed(()=>ue(a.unref(Hr),zn).colors),Yu("default",{primary:Tn,secondary:Nn,tertiary:In,error:Vn,surface:Hr});function Zu(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return $(a.unref(Hr));case"primary":return $(a.unref(Tn));case"secondary":return $(a.unref(Nn));case"tertiary":return $(a.unref(In));case"error":return $(a.unref(Vn));default:return $(r)}})}const Pn=new Map;function Qu(t,r=jt){return a.computed(()=>{const e=Zu(t).value.toHexString();if(Pn.has(e))return Pn.get(e);function n(){const o=ue(e,r).colors;return Pn.set(e,o),o}return n()})}function Cr(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function tf(t){return t.color==="surface"?rf(t.type,t.index):ef(t.color,t.type,t.index,t.alpha)}function ef(t,r,e,n=1){return a.computed(()=>{const o=Qu(t);return typeof e=="number"?Cr(a.unref(o),r,e,e,n):Cr(a.unref(o),r,e.dark,e.light,n)})}function rf(t,r,e=1){return a.computed(()=>{const{colors:n}=ue(a.unref(Hr),zn);return typeof r=="number"?Cr(n,t,r,r,e):Cr(n,t,r.dark,r.light,e)})}function Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rr(t)}var nf=/^\s+/,af=/\s+$/;function F(t,r){if(t=t||"",r=r||{},t instanceof F)return t;if(!(this instanceof F))return new F(t,r);var e=of(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}F.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=Fo(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ro(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ro(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Co(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Co(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Bo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return uf(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(K(this._r,255)*100)+"%",g:Math.round(K(this._g,255)*100)+"%",b:Math.round(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(K(this._r,255)*100)+"%, "+Math.round(K(this._g,255)*100)+"%, "+Math.round(K(this._b,255)*100)+"%)":"rgba("+Math.round(K(this._r,255)*100)+"%, "+Math.round(K(this._g,255)*100)+"%, "+Math.round(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:vf[Bo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Eo(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=F(t);e="#"+Eo(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(gf,arguments)},brighten:function(){return this._applyModification(pf,arguments)},darken:function(){return this._applyModification(mf,arguments)},desaturate:function(){return this._applyModification(ff,arguments)},saturate:function(){return this._applyModification(df,arguments)},greyscale:function(){return this._applyModification(hf,arguments)},spin:function(){return this._applyModification(bf,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_f,arguments)},complement:function(){return this._applyCombination(yf,arguments)},monochromatic:function(){return this._applyCombination(kf,arguments)},splitcomplement:function(){return this._applyCombination(xf,arguments)},triad:function(){return this._applyCombination($o,[3])},tetrad:function(){return this._applyCombination($o,[4])}},F.fromRatio=function(t,r){if(Rr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Ue(t[n]));t=e}return F(t,r)};function of(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=Af(t)),Rr(t)=="object"&&(re(t.r)&&re(t.g)&&re(t.b)?(r=lf(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):re(t.h)&&re(t.s)&&re(t.v)?(n=Ue(t.s),o=Ue(t.v),r=cf(t.h,n,o),i=!0,s="hsv"):re(t.h)&&re(t.s)&&re(t.l)&&(n=Ue(t.s),l=Ue(t.l),r=sf(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=Fo(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function lf(t,r,e){return{r:K(t,255)*255,g:K(r,255)*255,b:K(e,255)*255}}function Co(t,r,e){t=K(t,255),r=K(r,255),e=K(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function sf(t,r,e){var n,o,l;t=K(t,360),r=K(r,100),e=K(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function Ro(t,r,e){t=K(t,255),r=K(r,255),e=K(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function cf(t,r,e){t=K(t,360)*6,r=K(r,100),e=K(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function Bo(t,r,e,n){var o=[Et(Math.round(t).toString(16)),Et(Math.round(r).toString(16)),Et(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function uf(t,r,e,n,o){var l=[Et(Math.round(t).toString(16)),Et(Math.round(r).toString(16)),Et(Math.round(e).toString(16)),Et(zo(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Eo(t,r,e,n){var o=[Et(zo(n)),Et(Math.round(t).toString(16)),Et(Math.round(r).toString(16)),Et(Math.round(e).toString(16))];return o.join("")}F.equals=function(t,r){return!t||!r?!1:F(t).toRgbString()==F(r).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ff(t,r){r=r===0?0:r||10;var e=F(t).toHsl();return e.s-=r/100,e.s=Br(e.s),F(e)}function df(t,r){r=r===0?0:r||10;var e=F(t).toHsl();return e.s+=r/100,e.s=Br(e.s),F(e)}function hf(t){return F(t).desaturate(100)}function gf(t,r){r=r===0?0:r||10;var e=F(t).toHsl();return e.l+=r/100,e.l=Br(e.l),F(e)}function pf(t,r){r=r===0?0:r||10;var e=F(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),F(e)}function mf(t,r){r=r===0?0:r||10;var e=F(t).toHsl();return e.l-=r/100,e.l=Br(e.l),F(e)}function bf(t,r){var e=F(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,F(e)}function yf(t){var r=F(t).toHsl();return r.h=(r.h+180)%360,F(r)}function $o(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=F(t).toHsl(),n=[F(t)],o=360/r,l=1;l<r;l++)n.push(F({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function xf(t){var r=F(t).toHsl(),e=r.h;return[F(t),F({h:(e+72)%360,s:r.s,l:r.l}),F({h:(e+216)%360,s:r.s,l:r.l})]}function _f(t,r,e){r=r||6,e=e||30;var n=F(t).toHsl(),o=360/e,l=[F(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(F(n));return l}function kf(t,r){r=r||6;for(var e=F(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(F({h:n,s:o,v:l})),l=(l+s)%1;return i}F.mix=function(t,r,e){e=e===0?0:e||50;var n=F(t).toRgb(),o=F(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return F(i)},F.readability=function(t,r){var e=F(t),n=F(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(t,r,e){var n=F.readability(t,r),o,l;switch(l=!1,o=Hf(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},F.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=F.readability(t,r[u]),l>o&&(o=l,n=F(r[u]));return F.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,F.mostReadable(t,["#fff","#000"],e))};var On=F.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},vf=F.hexNames=Sf(On);function Sf(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function Fo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function K(t,r){wf(t)&&(t="100%");var e=Mf(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Br(t){return Math.min(1,Math.max(0,t))}function dt(t){return parseInt(t,16)}function wf(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Mf(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Et(t){return t.length==1?"0"+t:""+t}function Ue(t){return t<=1&&(t=t*100+"%"),t}function zo(t){return Math.round(parseFloat(t)*255).toString(16)}function To(t){return dt(t)/255}var $t=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function re(t){return!!$t.CSS_UNIT.exec(t)}function Af(t){t=t.replace(nf,"").replace(af,"").toLowerCase();var r=!1;if(On[t])t=On[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=$t.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=$t.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=$t.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=$t.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=$t.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=$t.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=$t.hex8.exec(t))?{r:dt(e[1]),g:dt(e[2]),b:dt(e[3]),a:To(e[4]),format:r?"name":"hex8"}:(e=$t.hex6.exec(t))?{r:dt(e[1]),g:dt(e[2]),b:dt(e[3]),format:r?"name":"hex"}:(e=$t.hex4.exec(t))?{r:dt(e[1]+""+e[1]),g:dt(e[2]+""+e[2]),b:dt(e[3]+""+e[3]),a:To(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=$t.hex3.exec(t))?{r:dt(e[1]+""+e[1]),g:dt(e[2]+""+e[2]),b:dt(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function Hf(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function Cf(t){const r=F(t).toHsl().l;return qt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function Rf(t,r=qt){const e=fe(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function fe(t,r=qt){const e=F(t),n=Cf(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=F({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Xe(t,r=qt){return Rf(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],Ln=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function Bf(t,r,e={}){const n=qt,o=Ln;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Xe(a.unref(r.primary),e.primary),secondary:Xe(a.unref(r.secondary),e.secondary),tertiary:Xe(a.unref(r.tertiary),e.tertiary),error:Xe(a.unref(r.error),e.error),surface:Xe(a.unref(r.surface),e.surface)}}))}const Ef=7,$f=3,Dn=a.ref("#0067cc"),Wn=a.ref("#5999A6"),jn=a.ref("#F76C22"),qn=a.ref("#F95858"),Er=a.ref("#121212");a.computed(()=>Tf({color:"surface",type:"border",index:{dark:Ef,light:$f}}).value),a.computed(()=>fe(a.unref(Dn),qt).colors),a.computed(()=>fe(a.unref(Wn),qt).colors),a.computed(()=>fe(a.unref(jn),qt).colors),a.computed(()=>fe(a.unref(qn),qt).colors),a.computed(()=>fe(a.unref(Er),Ln).colors),Bf("default",{primary:Dn,secondary:Wn,tertiary:jn,error:qn,surface:Er});function Ff(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return F(a.unref(Er));case"primary":return F(a.unref(Dn));case"secondary":return F(a.unref(Wn));case"tertiary":return F(a.unref(jn));case"error":return F(a.unref(qn));default:return F(r)}})}const Gn=new Map;function zf(t,r=qt){return a.computed(()=>{const e=Ff(t).value.toHexString();if(Gn.has(e))return Gn.get(e);function n(){const o=fe(e,r).colors;return Gn.set(e,o),o}return n()})}function $r(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function Tf(t){return t.color==="surface"?If(t.type,t.index):Nf(t.color,t.type,t.index,t.alpha)}function Nf(t,r,e,n=1){return a.computed(()=>{const o=zf(t);return typeof e=="number"?$r(a.unref(o),r,e,e,n):$r(a.unref(o),r,e.dark,e.light,n)})}function If(t,r,e=1){return a.computed(()=>{const{colors:n}=fe(a.unref(Er),Ln);return typeof r=="number"?$r(n,t,r,r,e):$r(n,t,r.dark,r.light,e)})}function Fr(t){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fr(t)}var Vf=/^\s+/,Pf=/\s+$/;function z(t,r){if(t=t||"",r=r||{},t instanceof z)return t;if(!(this instanceof z))return new z(t,r);var e=Of(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}z.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=Lo(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Io(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Io(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=No(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=No(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Vo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return jf(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:rd[Vo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Po(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=z(t);e="#"+Po(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return z(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Xf,arguments)},brighten:function(){return this._applyModification(Yf,arguments)},darken:function(){return this._applyModification(Kf,arguments)},desaturate:function(){return this._applyModification(qf,arguments)},saturate:function(){return this._applyModification(Gf,arguments)},greyscale:function(){return this._applyModification(Uf,arguments)},spin:function(){return this._applyModification(Jf,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(td,arguments)},complement:function(){return this._applyCombination(Zf,arguments)},monochromatic:function(){return this._applyCombination(ed,arguments)},splitcomplement:function(){return this._applyCombination(Qf,arguments)},triad:function(){return this._applyCombination(Oo,[3])},tetrad:function(){return this._applyCombination(Oo,[4])}},z.fromRatio=function(t,r){if(Fr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Ye(t[n]));t=e}return z(t,r)};function Of(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=ld(t)),Fr(t)=="object"&&(ne(t.r)&&ne(t.g)&&ne(t.b)?(r=Lf(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ne(t.h)&&ne(t.s)&&ne(t.v)?(n=Ye(t.s),o=Ye(t.v),r=Wf(t.h,n,o),i=!0,s="hsv"):ne(t.h)&&ne(t.s)&&ne(t.l)&&(n=Ye(t.s),l=Ye(t.l),r=Df(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=Lo(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function Lf(t,r,e){return{r:J(t,255)*255,g:J(r,255)*255,b:J(e,255)*255}}function No(t,r,e){t=J(t,255),r=J(r,255),e=J(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function Df(t,r,e){var n,o,l;t=J(t,360),r=J(r,100),e=J(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function Io(t,r,e){t=J(t,255),r=J(r,255),e=J(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function Wf(t,r,e){t=J(t,360)*6,r=J(r,100),e=J(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function Vo(t,r,e,n){var o=[Ft(Math.round(t).toString(16)),Ft(Math.round(r).toString(16)),Ft(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jf(t,r,e,n,o){var l=[Ft(Math.round(t).toString(16)),Ft(Math.round(r).toString(16)),Ft(Math.round(e).toString(16)),Ft(Do(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Po(t,r,e,n){var o=[Ft(Do(n)),Ft(Math.round(t).toString(16)),Ft(Math.round(r).toString(16)),Ft(Math.round(e).toString(16))];return o.join("")}z.equals=function(t,r){return!t||!r?!1:z(t).toRgbString()==z(r).toRgbString()},z.random=function(){return z.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function qf(t,r){r=r===0?0:r||10;var e=z(t).toHsl();return e.s-=r/100,e.s=zr(e.s),z(e)}function Gf(t,r){r=r===0?0:r||10;var e=z(t).toHsl();return e.s+=r/100,e.s=zr(e.s),z(e)}function Uf(t){return z(t).desaturate(100)}function Xf(t,r){r=r===0?0:r||10;var e=z(t).toHsl();return e.l+=r/100,e.l=zr(e.l),z(e)}function Yf(t,r){r=r===0?0:r||10;var e=z(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),z(e)}function Kf(t,r){r=r===0?0:r||10;var e=z(t).toHsl();return e.l-=r/100,e.l=zr(e.l),z(e)}function Jf(t,r){var e=z(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,z(e)}function Zf(t){var r=z(t).toHsl();return r.h=(r.h+180)%360,z(r)}function Oo(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=z(t).toHsl(),n=[z(t)],o=360/r,l=1;l<r;l++)n.push(z({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function Qf(t){var r=z(t).toHsl(),e=r.h;return[z(t),z({h:(e+72)%360,s:r.s,l:r.l}),z({h:(e+216)%360,s:r.s,l:r.l})]}function td(t,r,e){r=r||6,e=e||30;var n=z(t).toHsl(),o=360/e,l=[z(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(z(n));return l}function ed(t,r){r=r||6;for(var e=z(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(z({h:n,s:o,v:l})),l=(l+s)%1;return i}z.mix=function(t,r,e){e=e===0?0:e||50;var n=z(t).toRgb(),o=z(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return z(i)},z.readability=function(t,r){var e=z(t),n=z(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},z.isReadable=function(t,r,e){var n=z.readability(t,r),o,l;switch(l=!1,o=id(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},z.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=z.readability(t,r[u]),l>o&&(o=l,n=z(r[u]));return z.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,z.mostReadable(t,["#fff","#000"],e))};var Un=z.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},rd=z.hexNames=nd(Un);function nd(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function Lo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function J(t,r){ad(t)&&(t="100%");var e=od(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function zr(t){return Math.min(1,Math.max(0,t))}function ht(t){return parseInt(t,16)}function ad(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function od(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Ft(t){return t.length==1?"0"+t:""+t}function Ye(t){return t<=1&&(t=t*100+"%"),t}function Do(t){return Math.round(parseFloat(t)*255).toString(16)}function Wo(t){return ht(t)/255}var zt=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ne(t){return!!zt.CSS_UNIT.exec(t)}function ld(t){t=t.replace(Vf,"").replace(Pf,"").toLowerCase();var r=!1;if(Un[t])t=Un[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=zt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=zt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=zt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=zt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=zt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=zt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=zt.hex8.exec(t))?{r:ht(e[1]),g:ht(e[2]),b:ht(e[3]),a:Wo(e[4]),format:r?"name":"hex8"}:(e=zt.hex6.exec(t))?{r:ht(e[1]),g:ht(e[2]),b:ht(e[3]),format:r?"name":"hex"}:(e=zt.hex4.exec(t))?{r:ht(e[1]+""+e[1]),g:ht(e[2]+""+e[2]),b:ht(e[3]+""+e[3]),a:Wo(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=zt.hex3.exec(t))?{r:ht(e[1]+""+e[1]),g:ht(e[2]+""+e[2]),b:ht(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function id(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function sd(t){const r=z(t).toHsl().l;return Gt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function cd(t,r=Gt){const e=de(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function de(t,r=Gt){const e=z(t),n=sd(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=z({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Ke(t,r=Gt){return cd(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],Xn=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function ud(t,r,e={}){const n=Gt,o=Xn;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Ke(a.unref(r.primary),e.primary),secondary:Ke(a.unref(r.secondary),e.secondary),tertiary:Ke(a.unref(r.tertiary),e.tertiary),error:Ke(a.unref(r.error),e.error),surface:Ke(a.unref(r.surface),e.surface)}}))}const fd=7,dd=3,Yn=a.ref("#0067cc"),Kn=a.ref("#5999A6"),Jn=a.ref("#F76C22"),Zn=a.ref("#F95858"),Tr=a.ref("#121212");a.computed(()=>pd({color:"surface",type:"border",index:{dark:fd,light:dd}}).value),a.computed(()=>de(a.unref(Yn),Gt).colors),a.computed(()=>de(a.unref(Kn),Gt).colors),a.computed(()=>de(a.unref(Jn),Gt).colors),a.computed(()=>de(a.unref(Zn),Gt).colors),a.computed(()=>de(a.unref(Tr),Xn).colors),ud("default",{primary:Yn,secondary:Kn,tertiary:Jn,error:Zn,surface:Tr});function hd(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return z(a.unref(Tr));case"primary":return z(a.unref(Yn));case"secondary":return z(a.unref(Kn));case"tertiary":return z(a.unref(Jn));case"error":return z(a.unref(Zn));default:return z(r)}})}const Qn=new Map;function gd(t,r=Gt){return a.computed(()=>{const e=hd(t).value.toHexString();if(Qn.has(e))return Qn.get(e);function n(){const o=de(e,r).colors;return Qn.set(e,o),o}return n()})}function Nr(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function pd(t){return t.color==="surface"?bd(t.type,t.index):md(t.color,t.type,t.index,t.alpha)}function md(t,r,e,n=1){return a.computed(()=>{const o=gd(t);return typeof e=="number"?Nr(a.unref(o),r,e,e,n):Nr(a.unref(o),r,e.dark,e.light,n)})}function bd(t,r,e=1){return a.computed(()=>{const{colors:n}=de(a.unref(Tr),Xn);return typeof r=="number"?Nr(n,t,r,r,e):Nr(n,t,r.dark,r.light,e)})}function Ir(t){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ir(t)}var yd=/^\s+/,xd=/\s+$/;function T(t,r){if(t=t||"",r=r||{},t instanceof T)return t;if(!(this instanceof T))return new T(t,r);var e=_d(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}T.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=Yo(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=qo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=qo(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=jo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=jo(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Go(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return wd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Nd[Go(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Uo(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=T(t);e="#"+Uo(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Cd,arguments)},brighten:function(){return this._applyModification(Rd,arguments)},darken:function(){return this._applyModification(Bd,arguments)},desaturate:function(){return this._applyModification(Md,arguments)},saturate:function(){return this._applyModification(Ad,arguments)},greyscale:function(){return this._applyModification(Hd,arguments)},spin:function(){return this._applyModification(Ed,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(zd,arguments)},complement:function(){return this._applyCombination($d,arguments)},monochromatic:function(){return this._applyCombination(Td,arguments)},splitcomplement:function(){return this._applyCombination(Fd,arguments)},triad:function(){return this._applyCombination(Xo,[3])},tetrad:function(){return this._applyCombination(Xo,[4])}},T.fromRatio=function(t,r){if(Ir(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Je(t[n]));t=e}return T(t,r)};function _d(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=Od(t)),Ir(t)=="object"&&(ae(t.r)&&ae(t.g)&&ae(t.b)?(r=kd(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ae(t.h)&&ae(t.s)&&ae(t.v)?(n=Je(t.s),o=Je(t.v),r=Sd(t.h,n,o),i=!0,s="hsv"):ae(t.h)&&ae(t.s)&&ae(t.l)&&(n=Je(t.s),l=Je(t.l),r=vd(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=Yo(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function kd(t,r,e){return{r:Z(t,255)*255,g:Z(r,255)*255,b:Z(e,255)*255}}function jo(t,r,e){t=Z(t,255),r=Z(r,255),e=Z(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function vd(t,r,e){var n,o,l;t=Z(t,360),r=Z(r,100),e=Z(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function qo(t,r,e){t=Z(t,255),r=Z(r,255),e=Z(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function Sd(t,r,e){t=Z(t,360)*6,r=Z(r,100),e=Z(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function Go(t,r,e,n){var o=[Tt(Math.round(t).toString(16)),Tt(Math.round(r).toString(16)),Tt(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function wd(t,r,e,n,o){var l=[Tt(Math.round(t).toString(16)),Tt(Math.round(r).toString(16)),Tt(Math.round(e).toString(16)),Tt(Ko(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Uo(t,r,e,n){var o=[Tt(Ko(n)),Tt(Math.round(t).toString(16)),Tt(Math.round(r).toString(16)),Tt(Math.round(e).toString(16))];return o.join("")}T.equals=function(t,r){return!t||!r?!1:T(t).toRgbString()==T(r).toRgbString()},T.random=function(){return T.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Md(t,r){r=r===0?0:r||10;var e=T(t).toHsl();return e.s-=r/100,e.s=Vr(e.s),T(e)}function Ad(t,r){r=r===0?0:r||10;var e=T(t).toHsl();return e.s+=r/100,e.s=Vr(e.s),T(e)}function Hd(t){return T(t).desaturate(100)}function Cd(t,r){r=r===0?0:r||10;var e=T(t).toHsl();return e.l+=r/100,e.l=Vr(e.l),T(e)}function Rd(t,r){r=r===0?0:r||10;var e=T(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),T(e)}function Bd(t,r){r=r===0?0:r||10;var e=T(t).toHsl();return e.l-=r/100,e.l=Vr(e.l),T(e)}function Ed(t,r){var e=T(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,T(e)}function $d(t){var r=T(t).toHsl();return r.h=(r.h+180)%360,T(r)}function Xo(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=T(t).toHsl(),n=[T(t)],o=360/r,l=1;l<r;l++)n.push(T({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function Fd(t){var r=T(t).toHsl(),e=r.h;return[T(t),T({h:(e+72)%360,s:r.s,l:r.l}),T({h:(e+216)%360,s:r.s,l:r.l})]}function zd(t,r,e){r=r||6,e=e||30;var n=T(t).toHsl(),o=360/e,l=[T(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(T(n));return l}function Td(t,r){r=r||6;for(var e=T(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(T({h:n,s:o,v:l})),l=(l+s)%1;return i}T.mix=function(t,r,e){e=e===0?0:e||50;var n=T(t).toRgb(),o=T(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return T(i)},T.readability=function(t,r){var e=T(t),n=T(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},T.isReadable=function(t,r,e){var n=T.readability(t,r),o,l;switch(l=!1,o=Ld(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},T.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=T.readability(t,r[u]),l>o&&(o=l,n=T(r[u]));return T.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,T.mostReadable(t,["#fff","#000"],e))};var ta=T.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Nd=T.hexNames=Id(ta);function Id(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function Yo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Z(t,r){Vd(t)&&(t="100%");var e=Pd(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Vr(t){return Math.min(1,Math.max(0,t))}function gt(t){return parseInt(t,16)}function Vd(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Pd(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Tt(t){return t.length==1?"0"+t:""+t}function Je(t){return t<=1&&(t=t*100+"%"),t}function Ko(t){return Math.round(parseFloat(t)*255).toString(16)}function Jo(t){return gt(t)/255}var Nt=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ae(t){return!!Nt.CSS_UNIT.exec(t)}function Od(t){t=t.replace(yd,"").replace(xd,"").toLowerCase();var r=!1;if(ta[t])t=ta[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Nt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Nt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Nt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Nt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Nt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Nt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Nt.hex8.exec(t))?{r:gt(e[1]),g:gt(e[2]),b:gt(e[3]),a:Jo(e[4]),format:r?"name":"hex8"}:(e=Nt.hex6.exec(t))?{r:gt(e[1]),g:gt(e[2]),b:gt(e[3]),format:r?"name":"hex"}:(e=Nt.hex4.exec(t))?{r:gt(e[1]+""+e[1]),g:gt(e[2]+""+e[2]),b:gt(e[3]+""+e[3]),a:Jo(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=Nt.hex3.exec(t))?{r:gt(e[1]+""+e[1]),g:gt(e[2]+""+e[2]),b:gt(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function Ld(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function Dd(t){const r=T(t).toHsl().l;return Ut.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function Wd(t,r=Ut){const e=he(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function he(t,r=Ut){const e=T(t),n=Dd(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=T({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function Ze(t,r=Ut){return Wd(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ut=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],ea=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function jd(t,r,e={}){const n=Ut,o=ea;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:Ze(a.unref(r.primary),e.primary),secondary:Ze(a.unref(r.secondary),e.secondary),tertiary:Ze(a.unref(r.tertiary),e.tertiary),error:Ze(a.unref(r.error),e.error),surface:Ze(a.unref(r.surface),e.surface)}}))}const qd=7,Gd=3,ra=a.ref("#0067cc"),na=a.ref("#5999A6"),aa=a.ref("#F76C22"),oa=a.ref("#F95858"),Pr=a.ref("#121212");a.computed(()=>Yd({color:"surface",type:"border",index:{dark:qd,light:Gd}}).value),a.computed(()=>he(a.unref(ra),Ut).colors),a.computed(()=>he(a.unref(na),Ut).colors),a.computed(()=>he(a.unref(aa),Ut).colors),a.computed(()=>he(a.unref(oa),Ut).colors),a.computed(()=>he(a.unref(Pr),ea).colors),jd("default",{primary:ra,secondary:na,tertiary:aa,error:oa,surface:Pr});function Ud(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return T(a.unref(Pr));case"primary":return T(a.unref(ra));case"secondary":return T(a.unref(na));case"tertiary":return T(a.unref(aa));case"error":return T(a.unref(oa));default:return T(r)}})}const la=new Map;function Xd(t,r=Ut){return a.computed(()=>{const e=Ud(t).value.toHexString();if(la.has(e))return la.get(e);function n(){const o=he(e,r).colors;return la.set(e,o),o}return n()})}function Or(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function Yd(t){return t.color==="surface"?Jd(t.type,t.index):Kd(t.color,t.type,t.index,t.alpha)}function Kd(t,r,e,n=1){return a.computed(()=>{const o=Xd(t);return typeof e=="number"?Or(a.unref(o),r,e,e,n):Or(a.unref(o),r,e.dark,e.light,n)})}function Jd(t,r,e=1){return a.computed(()=>{const{colors:n}=he(a.unref(Pr),ea);return typeof r=="number"?Or(n,t,r,r,e):Or(n,t,r.dark,r.light,e)})}function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lr(t)}var Zd=/^\s+/,Qd=/\s+$/;function N(t,r){if(t=t||"",r=r||{},t instanceof N)return t;if(!(this instanceof N))return new N(t,r);var e=th(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}N.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,e,n,o,l,i;return r=t.r/255,e=t.g/255,n=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),e<=.03928?l=e/12.92:l=Math.pow((e+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),.2126*o+.7152*l+.0722*i},setAlpha:function(t){return this._a=nl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Qo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Qo(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Zo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Zo(this._r,this._g,this._b),r=Math.round(t.h*360),e=Math.round(t.s*100),n=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return tl(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return ah(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Q(this._r,255)*100)+"%",g:Math.round(Q(this._g,255)*100)+"%",b:Math.round(Q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Q(this._r,255)*100)+"%, "+Math.round(Q(this._g,255)*100)+"%, "+Math.round(Q(this._b,255)*100)+"%)":"rgba("+Math.round(Q(this._r,255)*100)+"%, "+Math.round(Q(this._g,255)*100)+"%, "+Math.round(Q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:mh[tl(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+el(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=N(t);e="#"+el(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0,o=!r&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString())},clone:function(){return N(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(sh,arguments)},brighten:function(){return this._applyModification(ch,arguments)},darken:function(){return this._applyModification(uh,arguments)},desaturate:function(){return this._applyModification(oh,arguments)},saturate:function(){return this._applyModification(lh,arguments)},greyscale:function(){return this._applyModification(ih,arguments)},spin:function(){return this._applyModification(fh,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(gh,arguments)},complement:function(){return this._applyCombination(dh,arguments)},monochromatic:function(){return this._applyCombination(ph,arguments)},splitcomplement:function(){return this._applyCombination(hh,arguments)},triad:function(){return this._applyCombination(rl,[3])},tetrad:function(){return this._applyCombination(rl,[4])}},N.fromRatio=function(t,r){if(Lr(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=Qe(t[n]));t=e}return N(t,r)};function th(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,l=null,i=!1,s=!1;return typeof t=="string"&&(t=_h(t)),Lr(t)=="object"&&(oe(t.r)&&oe(t.g)&&oe(t.b)?(r=eh(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):oe(t.h)&&oe(t.s)&&oe(t.v)?(n=Qe(t.s),o=Qe(t.v),r=nh(t.h,n,o),i=!0,s="hsv"):oe(t.h)&&oe(t.s)&&oe(t.l)&&(n=Qe(t.s),l=Qe(t.l),r=rh(t.h,n,l),i=!0,s="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=nl(e),{ok:i,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function eh(t,r,e){return{r:Q(t,255)*255,g:Q(r,255)*255,b:Q(e,255)*255}}function Zo(t,r,e){t=Q(t,255),r=Q(r,255),e=Q(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=(n+o)/2;if(n==o)l=i=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,l:s}}function rh(t,r,e){var n,o,l;t=Q(t,360),r=Q(r,100),e=Q(e,100);function i(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)n=o=l=e;else{var s=e<.5?e*(1+r):e+r-e*r,c=2*e-s;n=i(c,s,t+1/3),o=i(c,s,t),l=i(c,s,t-1/3)}return{r:n*255,g:o*255,b:l*255}}function Qo(t,r,e){t=Q(t,255),r=Q(r,255),e=Q(e,255);var n=Math.max(t,r,e),o=Math.min(t,r,e),l,i,s=n,c=n-o;if(i=n===0?0:c/n,n==o)l=0;else{switch(n){case t:l=(r-e)/c+(r<e?6:0);break;case r:l=(e-t)/c+2;break;case e:l=(t-r)/c+4;break}l/=6}return{h:l,s:i,v:s}}function nh(t,r,e){t=Q(t,360)*6,r=Q(r,100),e=Q(e,100);var n=Math.floor(t),o=t-n,l=e*(1-r),i=e*(1-o*r),s=e*(1-(1-o)*r),c=n%6,u=[e,i,l,l,s,e][c],d=[s,e,e,i,l,l][c],f=[l,l,s,e,e,i][c];return{r:u*255,g:d*255,b:f*255}}function tl(t,r,e,n){var o=[It(Math.round(t).toString(16)),It(Math.round(r).toString(16)),It(Math.round(e).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ah(t,r,e,n,o){var l=[It(Math.round(t).toString(16)),It(Math.round(r).toString(16)),It(Math.round(e).toString(16)),It(al(n))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function el(t,r,e,n){var o=[It(al(n)),It(Math.round(t).toString(16)),It(Math.round(r).toString(16)),It(Math.round(e).toString(16))];return o.join("")}N.equals=function(t,r){return!t||!r?!1:N(t).toRgbString()==N(r).toRgbString()},N.random=function(){return N.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function oh(t,r){r=r===0?0:r||10;var e=N(t).toHsl();return e.s-=r/100,e.s=Dr(e.s),N(e)}function lh(t,r){r=r===0?0:r||10;var e=N(t).toHsl();return e.s+=r/100,e.s=Dr(e.s),N(e)}function ih(t){return N(t).desaturate(100)}function sh(t,r){r=r===0?0:r||10;var e=N(t).toHsl();return e.l+=r/100,e.l=Dr(e.l),N(e)}function ch(t,r){r=r===0?0:r||10;var e=N(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),N(e)}function uh(t,r){r=r===0?0:r||10;var e=N(t).toHsl();return e.l-=r/100,e.l=Dr(e.l),N(e)}function fh(t,r){var e=N(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,N(e)}function dh(t){var r=N(t).toHsl();return r.h=(r.h+180)%360,N(r)}function rl(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=N(t).toHsl(),n=[N(t)],o=360/r,l=1;l<r;l++)n.push(N({h:(e.h+l*o)%360,s:e.s,l:e.l}));return n}function hh(t){var r=N(t).toHsl(),e=r.h;return[N(t),N({h:(e+72)%360,s:r.s,l:r.l}),N({h:(e+216)%360,s:r.s,l:r.l})]}function gh(t,r,e){r=r||6,e=e||30;var n=N(t).toHsl(),o=360/e,l=[N(t)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,l.push(N(n));return l}function ph(t,r){r=r||6;for(var e=N(t).toHsv(),n=e.h,o=e.s,l=e.v,i=[],s=1/r;r--;)i.push(N({h:n,s:o,v:l})),l=(l+s)%1;return i}N.mix=function(t,r,e){e=e===0?0:e||50;var n=N(t).toRgb(),o=N(r).toRgb(),l=e/100,i={r:(o.r-n.r)*l+n.r,g:(o.g-n.g)*l+n.g,b:(o.b-n.b)*l+n.b,a:(o.a-n.a)*l+n.a};return N(i)},N.readability=function(t,r){var e=N(t),n=N(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},N.isReadable=function(t,r,e){var n=N.readability(t,r),o,l;switch(l=!1,o=kh(e),o.level+o.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},N.mostReadable=function(t,r,e){var n=null,o=0,l,i,s,c;e=e||{},i=e.includeFallbackColors,s=e.level,c=e.size;for(var u=0;u<r.length;u++)l=N.readability(t,r[u]),l>o&&(o=l,n=N(r[u]));return N.isReadable(t,n,{level:s,size:c})||!i?n:(e.includeFallbackColors=!1,N.mostReadable(t,["#fff","#000"],e))};var ia=N.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},mh=N.hexNames=bh(ia);function bh(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function nl(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Q(t,r){yh(t)&&(t="100%");var e=xh(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Dr(t){return Math.min(1,Math.max(0,t))}function pt(t){return parseInt(t,16)}function yh(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function xh(t){return typeof t=="string"&&t.indexOf("%")!=-1}function It(t){return t.length==1?"0"+t:""+t}function Qe(t){return t<=1&&(t=t*100+"%"),t}function al(t){return Math.round(parseFloat(t)*255).toString(16)}function ol(t){return pt(t)/255}var Vt=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",o="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(t){return!!Vt.CSS_UNIT.exec(t)}function _h(t){t=t.replace(Zd,"").replace(Qd,"").toLowerCase();var r=!1;if(ia[t])t=ia[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Vt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Vt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Vt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Vt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Vt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Vt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Vt.hex8.exec(t))?{r:pt(e[1]),g:pt(e[2]),b:pt(e[3]),a:ol(e[4]),format:r?"name":"hex8"}:(e=Vt.hex6.exec(t))?{r:pt(e[1]),g:pt(e[2]),b:pt(e[3]),format:r?"name":"hex"}:(e=Vt.hex4.exec(t))?{r:pt(e[1]+""+e[1]),g:pt(e[2]+""+e[2]),b:pt(e[3]+""+e[3]),a:ol(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=Vt.hex3.exec(t))?{r:pt(e[1]+""+e[1]),g:pt(e[2]+""+e[2]),b:pt(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function kh(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}a.ref([]);function vh(t){const r=N(t).toHsl().l;return Xt.reduce((e,n)=>Math.abs(n-r)<Math.abs(e-r)?n:e)}function Sh(t,r=Xt){const e=ge(t,r);return{...e,colors:e.colors.map(n=>n.toHexString())}}function ge(t,r=Xt){const e=N(t),n=vh(e),o=r.findIndex(i=>i===n),l=r.map(i=>{const s=N({h:e.toHsl().h,s:e.toHsl().s,l:i});return e.toHsl().h>=20&&e.toHsl().h<=200&&s.darken(2),s.saturate(0*100),s});return{baseColorIndex:o,colors:l.map(i=>i)}}function tr(t,r=Xt){return Sh(t,r).colors}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xt=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],sa=[1,.99,.95,.9,.7,.5,.4,.2,.1,.075,.05];function wh(t,r,e={}){const n=Xt,o=sa;return e.primary===void 0&&(e.primary=n),e.secondary===void 0&&(e.secondary=n),e.tertiary===void 0&&(e.tertiary=n),e.error===void 0&&(e.error=n),e.surface===void 0&&(e.surface=o),a.computed(()=>({name:t,colors:{primary:tr(a.unref(r.primary),e.primary),secondary:tr(a.unref(r.secondary),e.secondary),tertiary:tr(a.unref(r.tertiary),e.tertiary),error:tr(a.unref(r.error),e.error),surface:tr(a.unref(r.surface),e.surface)}}))}const Mh=7,Ah=3,ca=a.ref("#0067cc"),ua=a.ref("#5999A6"),fa=a.ref("#F76C22"),da=a.ref("#F95858"),Wr=a.ref("#121212");a.computed(()=>Rh({color:"surface",type:"border",index:{dark:Mh,light:Ah}}).value),a.computed(()=>ge(a.unref(ca),Xt).colors),a.computed(()=>ge(a.unref(ua),Xt).colors),a.computed(()=>ge(a.unref(fa),Xt).colors),a.computed(()=>ge(a.unref(da),Xt).colors),a.computed(()=>ge(a.unref(Wr),sa).colors),wh("default",{primary:ca,secondary:ua,tertiary:fa,error:da,surface:Wr});function Hh(t){return a.computed(()=>{const r=a.unref(t);switch(r){case"surface":return N(a.unref(Wr));case"primary":return N(a.unref(ca));case"secondary":return N(a.unref(ua));case"tertiary":return N(a.unref(fa));case"error":return N(a.unref(da));default:return N(r)}})}const ha=new Map;function Ch(t,r=Xt){return a.computed(()=>{const e=Hh(t).value.toHexString();if(ha.has(e))return ha.get(e);function n(){const o=ge(e,r).colors;return ha.set(e,o),o}return n()})}function jr(t,r,e,n,o=1){switch(r){case"outline":return{style:{"--d-outline":t[e].clone().setAlpha(o).toHex8String(),"--l-outline":t[n].clone().setAlpha(o).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[e].clone().setAlpha(o).toHex8String(),"--l-bg":t[n].clone().setAlpha(o).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[e].clone().setAlpha(o).toHex8String(),"--l-border":t[n].clone().setAlpha(o).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[e].clone().setAlpha(o).toHex8String(),"--l-text":t[n].clone().setAlpha(o).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[e].clone().setAlpha(o).toHex8String(),"--l-placeholder":t[n].clone().setAlpha(o).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[e].clone().setAlpha(o).toHexString(),"--l-bg-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[e].clone().setAlpha(o).toHexString(),"--l-border-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[e].clone().setAlpha(o).toHexString(),"--l-text-h":t[n].clone().setAlpha(o).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function Rh(t){return t.color==="surface"?Eh(t.type,t.index):Bh(t.color,t.type,t.index,t.alpha)}function Bh(t,r,e,n=1){return a.computed(()=>{const o=Ch(t);return typeof e=="number"?jr(a.unref(o),r,e,e,n):jr(a.unref(o),r,e.dark,e.light,n)})}function Eh(t,r,e=1){return a.computed(()=>{const{colors:n}=ge(a.unref(Wr),sa);return typeof r=="number"?jr(n,t,r,r,e):jr(n,t,r.dark,r.light,e)})}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $h={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},Fh=a.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},gap:{default:8},pt:{default:16},pl:{default:8},pr:{default:8},pb:{default:16}},setup(t){const r=t,e=Zs(),n=a.ref([]),o=a.computed(()=>n.value.map(c=>c.getBoundingClientRect())),l=a.computed(()=>{let c=0,u=0,d=0,f=0,h=0,g=0;const m=[];for(let p=0;p<o.value.length;p++){const x=e.value[p];x&&(x.position||(x.position=r.position),x.position==="top-left"?(m.push(c),c+=o.value[p].height+r.gap):x.position==="top-right"?(m.push(u),u+=o.value[p].height+r.gap):x.position==="top"?(m.push(d),d+=o.value[p].height+r.gap):x.position==="bottom-left"?(m.push(f),f+=o.value[p].height+r.gap):x.position==="bottom-right"?(m.push(h),h+=o.value[p].height+r.gap):x.position==="bottom"&&(m.push(g),g+=o.value[p].height+r.gap))}return m});function i(c,u){if(u||(u=r.position),u==="top-left")return{top:`${c+r.pt}px`,left:`${r.pl}px`};if(u==="top-right")return{top:`${c+r.pt}px`,right:`${r.pr}px`};if(u==="top")return{top:`${c+r.pt}px`,left:"50%",transform:"translateX(-50%)"};if(u==="bottom-left")return{bottom:`${c+r.pb}px`,left:`${r.pl}px`};if(u==="bottom-right")return{bottom:`${c+r.pb}px`,right:`${r.pr}px`};if(u==="bottom")return{bottom:`${c+r.pb}px`,left:"50%",transform:"translateX(-50%)"}}const s=a.ref({});return a.watchEffect(()=>{e.value.forEach(c=>{if(c.durationMS&&c.durationMS>0){if(s.value[c.hash])return;s.value[c.hash]=setTimeout(()=>{e.value.splice(e.value.indexOf(c),1)},c.durationMS)}})}),(c,u)=>{const d=Xa;return a.openBlock(),a.createElementBlock("div",$h,[a.createVNode(a.TransitionGroup,{"enter-from-class":"op0","enter-to-class":"op100","leave-from-class":"op100","leave-to-class":"op0"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e),(f,h)=>(a.openBlock(),a.createElementBlock("div",{key:f.hash,ref_for:!0,ref_key:"notificationRefs",ref:n,class:"absolute transition-top,bottom,opacity",style:a.normalizeStyle(i(l.value[h],f.position))},[a.createVNode(d,{"with-border":"",closeable:"",title:f.title,message:f.message,icon:f.icon,loading:f.loading,color:f.color,onClose:g=>a.unref(e).splice(a.unref(e).indexOf(f),1)},null,8,["title","message","icon","loading","color","onClose"])],4))),128))]),_:1})])}}}),zh={class:"relative"},ll=a.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const r=t,e=a.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),n=ot(r),o=a.ref(null),l=C(r.color).toRgb(),i=a.computed(()=>({backgroundColor:`rgba(${l.r}, ${l.g}, ${l.b}, ${r.opacity/100})`}));return(s,c)=>(a.openBlock(),a.createElementBlock("div",zh,[a.renderSlot(s.$slots,"default"),a.createElementVNode("div",a.mergeProps(s.$attrs,{ref_key:"wrapperRef",ref:o,class:[[e.value,a.unref(n).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[a.unref(n).style,i.value]}),[a.renderSlot(s.$slots,"content")],16)]))}}),Th=["for"],Nh={key:1},Ih=["id","placeholder","type"],il=a.defineComponent({__name:"TextField",props:a.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:r}){const e=t,n=a.useModel(t,"modelValue"),o=a.computed(()=>{switch(e.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),l=a.computed(()=>{switch(e.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),i=a.computed(()=>e.color),s=cn(i),c=a.computed(()=>e.disabled?"pointer-events-none select-none filter opacity-60":""),u=ot(e),d=a.ref(null);r({el:d});const f=a.useAttrs(),h=lr(f);return(g,m)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle([a.unref(s)])},[g.$slots.label||g.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:a.unref(h),class:a.normalizeClass(["mb-1 block",[l.value]])},[g.$slots.label?a.renderSlot(g.$slots,"label",{key:0}):(a.openBlock(),a.createElementBlock("span",Nh,a.toDisplayString(g.label),1))],10,Th)):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("input",a.mergeProps({id:a.unref(h)},g.$attrs,{ref_key:"input",ref:d,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),class:["w-full border px-2 py-1 outline-none custom-input-colors",[c.value,a.unref(u).class,o.value.base]],style:[a.unref(u).style],placeholder:g.placeholder,type:e.password?"password":"text"}),null,16,Ih),[[a.vModelDynamic,n.value]])],4))}}),Vh={class:"flex gap-2"},Ph=a.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const r=t,e=a.ref([]);function n(s){s.preventDefault(),s.stopPropagation();const c=e.value.findIndex(d=>d.el===s.target),u=s.target.value??"";s.target.value="",Array.from(u).forEach((d,f)=>{c+f>=e.value.length||(e.value[c+f].el.value=d,c+f+1<e.value.length?(e.value[c+f+1].el.focus(),e.value[c+f+1].el.select()):e.value[c+f].el.blur())})}function o(s){s.preventDefault(),s.stopPropagation();const c=s.target.value!=="";s.target.value="";const u=e.value.findIndex(d=>d.el===s.target);u!==0&&(e.value[u-1].el.focus(),e.value[u-1].el.select(),c||(e.value[u-1].el.value=""))}function l(s){s.preventDefault(),s.stopPropagation();const c=e.value.findIndex(u=>u.el===s.target);c>0&&(e.value[c-1].el.focus(),e.value[c-1].el.select())}function i(s){s.preventDefault(),s.stopPropagation();const c=e.value.findIndex(u=>u.el===s.target);c<e.value.length-1&&(e.value[c+1].el.focus(),e.value[c+1].el.select())}return(s,c)=>(a.openBlock(),a.createElementBlock("div",Vh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.length,u=>(a.openBlock(),a.createBlock(il,{ref_for:!0,ref_key:"inputs",ref:e,key:u,class:"w-8 text-center",style:{padding:"0"},password:r.password,onPointerup:c[0]||(c[0]=d=>d.target.select()),onInput:a.withModifiers(n,["stop","prevent"]),onKeydown:[a.withKeys(o,["backspace"]),a.withKeys(l,["arrow-left"]),a.withKeys(i,["arrow-right"])]},null,8,["password"]))),128))]))}}),Oh=a.defineComponent({__name:"Popover",props:a.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.ref(null),n=a.ref(null),o=Jt(e),l=Jt(n),i=a.computed(()=>{switch(r.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),s=a.computed(()=>{switch(r.position){case"top-start":case"top-end":return{top:`${-l.height.value-r.offset}px`};case"top":return{top:`${-l.height.value-r.offset}px`,left:`${-l.width.value/2+o.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${r.offset}px`};case"bottom":return{top:`${o.height.value+r.offset}px`,left:`${-l.width.value/2+o.width.value/2}px`};case"left-start":return{left:`${-l.width.value-r.offset}px`,top:0};case"left-end":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value+o.height.value}px`};case"left":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value/2+o.height.value/2}px`};case"right-start":return{left:`${r.offset+o.width.value}px`,top:0};case"right-end":return{left:`${r.offset+o.width.value}px`,top:`${-l.height.value+o.height.value}px`};case"right":return{left:`${o.width.value+r.offset}px`,top:`${-l.height.value/2+o.height.value/2}px`};default:return{}}}),c=He(e),u=a.useModel(t,"modelValue"),d=a.computed(()=>r.trigger==="hover"?c.value:u.value);function f(h){var g;!((g=e.value)!=null&&g.contains(h.target))||h.target===e.value||(u.value=!u.value)}return Ha(n,h=>{var g;(g=e.value)!=null&&g.contains(h.target)?u.value=!0:u.value=!1}),(h,g)=>{const m=ll;return a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:e,class:"relative"},[a.createElementVNode("div",{onPointerup:f},[a.renderSlot(h.$slots,"default")],32),d.value&&h.overlay?(a.openBlock(),a.createBlock(m,{key:0,opacity:0,class:"fixed inset-0 z-10",style:a.normalizeStyle({zIndex:h.zIndex}),onPointerup:g[0]||(g[0]=p=>u.value=!1)},null,8,["style"])):a.createCommentVNode("",!0),d.value?(a.openBlock(),a.createElementBlock("div",{key:1,ref_key:"contentRef",ref:n,class:a.normalizeClass([i.value,"absolute children:w-max"]),style:a.normalizeStyle([s.value,{zIndex:h.zIndex}])},[a.renderSlot(h.$slots,"content")],6)):a.createCommentVNode("",!0)],512)}}}),Lh=a.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const r=t,e=a.computed(()=>{switch(r.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),n=a.computed(()=>r.color),o=Fe(n),l=ze("bg",{dark:7,light:3}),i=ot(r);return(s,c)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:["relative w-full self-center overflow-hidden",[e.value,a.unref(i).class]],style:[a.unref(i).style]},a.unref(l)),[s.loading?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:"loading-progress h-full"},a.unref(o)),null,16)):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:"h-full"},a.unref(o),{style:[{width:`${(Number(s.value)-Number(s.min))/(Number(s.max)-Number(s.min))*100}%`}]}),null,16))],16))}}),Dh=["onMouseover","onPointerdown"],Wh="#ffeb91",jh="text-[var(--d-text)]",qh="text-surface-dimmed",Gh="text-[var(--d-text-h)]",Uh="i-fluent-star-12-filled",Xh="i-fluent-star-12-filled",Yh=a.defineComponent({__name:"Rating",props:a.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:a.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const e=t,n=r,o=a.computed(()=>e.count??5),l=a.useModel(t,"modelValue"),i=a.computed(()=>e.highlightSelectedOnly??!1),s=a.computed(()=>e.unselectable??!1),c=a.ref(-1),u=a.computed(()=>d(e.icons,o.value,Uh,Xh));function d(b,w,H,S){function M(A){return typeof A=="string"?{active:A,normal:A}:A===void 0?{active:S,normal:H}:{active:A.active||S,normal:A.normal||H}}if(b===void 0)return Array.from({length:w},()=>({active:S,normal:H}));let y;if(typeof b=="string")y={active:b,normal:b};else if(Array.isArray(b)){const A=b.map(P=>M(P));return A.length===1?(y=A[0],Array.from({length:w},()=>({...y}))):A.slice(0,w).concat(Array.from({length:Math.max(0,w-A.length)},()=>({active:S,normal:H})))}else y={active:b.active||S,normal:b.normal||H};return Array.from({length:w},()=>({...y}))}function f(b){return i.value?c.value!==-1?c.value===b+1:l.value===b+1:c.value!==-1?c.value>b:l.value>=b+1}function h(b){const w=u.value[b].normal,H=u.value[b].active;return f(b)?[i.value?Gh:jh,H]:[qh,w]}const m=a.computed(()=>{if(typeof e.color=="string")return Array.from({length:o.value}).map(()=>e.color);const b=Array.from({length:o.value}).map(()=>Wh);return e.color.forEach((w,H)=>{w&&(b[H]=w)}),b}).value.map(b=>Ee("filled",b)),p=rt({color:"surface",type:"text",index:{dark:6,light:4}});function x(b){l.value===b&&s.value?(n("select",0),l.value=0):(n("select",b+1),l.value=b+1)}const v=a.computed(()=>{switch(e.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(b,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex cursor-pointer",v.value])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(H,S)=>(a.openBlock(),a.createElementBlock("div",{key:S,class:"pr-1",onMouseover:M=>c.value=S+1,onMouseleave:w[0]||(w[0]=M=>c.value=-1),onPointerdown:M=>x(S)},[a.createElementVNode("i",a.mergeProps({ref_for:!0},f(S)?a.unref(m)[S].value:a.unref(p),{class:["active:translate-y-1px",[h(S)]]}),null,16)],40,Dh))),128))],2))}}),Kh=a.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:on.value})}},setup(t){const r=t,e=Ia(),n=a.computed(()=>r.themes[r.theme]);a.watchEffect(()=>{Ot.value=typeof n.value.colors.surface=="string"?n.value.colors.surface:Ot.value,xe.value=typeof n.value.colors.primary=="string"?n.value.colors.primary:xe.value,_e.value=typeof n.value.colors.secondary=="string"?n.value.colors.secondary:_e.value,ke.value=typeof n.value.colors.tertiary=="string"?n.value.colors.tertiary:ke.value,ve.value=typeof n.value.colors.error=="string"?n.value.colors.error:ve.value});const o=a.ref(null),l=a.computed(()=>en({colors:{surface:Ot.value,primary:xe.value,secondary:_e.value,tertiary:ke.value,error:ve.value},name:n.value.name}));return a.provide(Na,e),a.provide("currentThemeData",a.computed(()=>n.value)),ds(o),(i,s)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.is),{ref_key:"wrapperRef",ref:o,style:a.normalizeStyle([l.value])},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},8,["style"]))}}),Jh=["id"],Zh=["for"],Qh=["for"],sl=a.defineComponent({inheritAttrs:!1,__name:"Switch",props:a.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.useModel(t,"modelValue");r.value&&(e.value=r.value);const n=a.ref(null),o=a.ref(!1),l=a.computed(()=>{switch(r.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:o.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:o.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:o.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:o.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:o.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:o.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),i=a.computed(()=>r.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),s=lr(r),c=ze("bg",{dark:7,light:3}),u=Ve(r.color,"bg",5),d=Ve(r.color,"text",5),f=a.computed(()=>({wrapper:e.value?[u.value.class]:[c.value.class],indicator:"bg-white shadow"})),h=a.computed(()=>({wrapper:e.value?u.value.style:c.value.style,indicator:e.value?{}:""})),g=ot(r);return(m,p)=>(a.openBlock(),a.createElementBlock("div",{role:"switch",class:a.normalizeClass(["relative flex items-center gap-2",{"pointer-events-none filter-grayscale op-60":r.disabled}])},[a.withDirectives(a.createElementVNode("input",a.mergeProps({id:a.unref(s),"onUpdate:modelValue":p[0]||(p[0]=x=>e.value=x)},m.$attrs,{class:"hidden",type:"checkbox"}),null,16,Jh),[[a.vModelCheckbox,e.value]]),a.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:a.unref(s)},[a.createElementVNode("div",{ref_key:"wrapper",ref:n,class:a.normalizeClass([[l.value.wrapper,...f.value.wrapper,a.unref(g).class],"relative inline-block"]),style:a.normalizeStyle([a.unref(g).style,h.value.wrapper]),onPointerdown:p[1]||(p[1]=x=>o.value=!0),onPointerup:p[2]||(p[2]=x=>o.value=!1),onPointerleave:p[3]||(p[3]=x=>o.value=!1),onPointerenter:p[4]||(p[4]=x=>x.buttons===1&&(o.value=!0))},[a.createElementVNode("div",{class:a.normalizeClass(["absolute top-50% -translate-y-50%",[l.value.indicator,f.value.indicator,i.value.indicator,e.value?l.value.active:l.value.inactive,a.unref(g).class]]),style:a.normalizeStyle([a.unref(g).style,h.value.indicator])},[a.createVNode(a.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 ","enter-to-class":"scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100","leave-to-class":"scale-0"},{default:a.withCtx(()=>[r.indicatorIcon?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass(["h-full w-full",[r.indicatorIcon,e.value?a.unref(d).class:"text-black"]]),style:a.normalizeStyle(a.unref(d).style)},null,6)):e.value&&r.onIndicatorIcon?(a.openBlock(),a.createElementBlock("i",{key:1,class:a.normalizeClass(["h-full w-full",[r.onIndicatorIcon,e.value?a.unref(d).class:"text-black"]]),style:a.normalizeStyle(a.unref(d).style)},null,6)):!e.value&&r.offIndicatorIcon?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["h-full w-full",[r.offIndicatorIcon,e.value?a.unref(d).class:"text-black"]]),style:a.normalizeStyle(a.unref(d).style)},null,6)):a.createCommentVNode("",!0)]),_:1})],6),a.createVNode(a.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 rotate-50","enter-to-class":"scale-100 rotate-0","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100 rotate-0","leave-to-class":"scale-0 rotate-50 "},{default:a.withCtx(()=>[e.value?(a.openBlock(),a.createElementBlock("i",{key:"on",class:a.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{[`left-0 text-${m.color}-on-container-low`]:e.value,[m.onIcon??""]:e.value&&m.onIcon,[m.offIcon??""]:!e.value&&m.offIcon}]])},null,2)):(a.openBlock(),a.createElementBlock("i",{key:"off",class:a.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{"right-0":!e.value,[m.onIcon??""]:e.value&&m.onIcon,[m.offIcon??""]:!e.value&&m.offIcon}]])},null,2))]),_:1})],38)],8,Zh),m.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:a.unref(s)},a.toDisplayString(m.label),9,Qh)):a.createCommentVNode("",!0)],2))}}),t0={class:"scheme-switch inline-block"},e0={class:"dark:hidden"},r0={class:"light:hidden"},n0=a.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const r=t,e=a.ref(!1);let n;D("click",i=>n=i),a.watch([e],()=>{if(Kt){const i=(n==null?void 0:n.clientX)??innerWidth/2,s=(n==null?void 0:n.clientY)??innerHeight/2,c=Math.hypot(Math.max(i,innerWidth-i),Math.max(s,innerHeight-s));if(r.disableViewTranslation)document.documentElement.setAttribute("data-scheme",e.value?"dark":"light"),localStorage.setItem("scheme",e.value?"dark":"light");else{const u=document.startViewTransition(()=>{e.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});r.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${i}px ${s}px)`,`circle(${c}px at ${i}px ${s}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const o=a.ref(!0),l=a.ref(!1);return a.onMounted(()=>{Kt&&(e.value=localStorage.getItem("scheme")==="dark"),o.value=!1}),a.nextTick(()=>{l.value=!0}),(i,s)=>{const c=sl;return a.openBlock(),a.createElementBlock("div",t0,[a.createElementVNode("div",{class:a.normalizeClass({hidden:!o.value})},[a.createElementVNode("div",e0,[a.createVNode(c,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),a.createElementVNode("div",r0,[a.createVNode(c,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),a.createElementVNode("div",{class:a.normalizeClass({hidden:o.value})},[a.createVNode(c,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=u=>e.value=u),animate:l.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)])}}}),a0=a.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:r}){const e=t,n=Ea(),o=Jt(n),l=a.ref(),i=Jt(()=>l.value),s=a.computed(()=>{if(e.height)return typeof e.height=="number"?`${e.height}px`:e.height;const I=n.value?Number.parseFloat(getComputedStyle(n.value).paddingTop)+Number.parseFloat(getComputedStyle(n.value).paddingBottom):0,W=n.value?Number.parseFloat(getComputedStyle(n.value).marginTop)+Number.parseFloat(getComputedStyle(n.value).marginBottom):0;return`${o.height.value-I-W}px`}),c=a.ref(),u=Fa(()=>c.value),{x:d,y:f}=xi(()=>c.value),h=a.computed(()=>{var I;return(((I=c.value)==null?void 0:I.scrollHeight)??0)-(u.value??0)}),g=$a(()=>c.value),m=a.computed(()=>f.value/h.value||0),p=a.computed(()=>c.value?u.value/g.value*u.value:0),x=a.computed(()=>u.value-p.value),v=a.computed(()=>{if(!c.value)return null;const I=m.value*x.value;return{x:d.value,y:f.value,barHeight:p.value,barTop:I}}),b=a.ref(!1),w=a.ref(0),H=a.ref(""),S=a.ref(0),M=or({type:"client"});D(()=>l.value,"pointerdown",I=>{b.value=!0,w.value=I.clientY,S.value=f.value,H.value=document.body.style.userSelect,document.body.style.userSelect="none"}),D(()=>document,"pointermove",()=>{if(!b.value)return;if(e.threshold<i.left.value-M.x.value||M.x.value-i.right.value>e.threshold){f.value=S.value;return}const W=(M.y.value-w.value)/x.value;f.value=S.value+W*h.value}),D(()=>document,"pointerup",()=>{b.value=!1,document.body.style.userSelect=H.value}),r({$el:c});const y=a.ref(),A=He(y),P=He(()=>l.value),k=ze("bg",{dark:2,light:7},.5),V=ze("bg",{dark:2,light:7},.75);function L(I){var we;const{clientY:W}=I,{top:j,height:yt}=i,O=j.value,tt=yt.value,mt=O+tt/2,Pt=W-mt;(we=c.value)==null||we.scrollBy({top:Pt/tt*u.value,behavior:"smooth"})}return(I,W)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:y,style:a.normalizeStyle({height:s.value}),class:"relative max-h-fit overflow-hidden"},[v.value?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({width:`${I.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:L},[a.withDirectives(a.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:l,class:a.normalizeClass([[a.unref(k).class,{"op-0":!a.unref(A)&&I.autoHide,"op-100":a.unref(A)&&I.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:a.normalizeStyle([{right:"0px",width:`${I.barWidth}px`,top:`${v.value.barTop}px`,height:`${v.value.barHeight}px`},!a.unref(P)&&!b.value&&a.unref(k).style,(a.unref(P)||b.value)&&a.unref(V).style])},null,6),[[a.vShow,v.value.barHeight<a.unref(u)]])],36)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"scrollDomRef",ref:c,style:a.normalizeStyle({paddingRight:`${I.floating?0:I.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[a.renderSlot(I.$slots,"default")],4)],4))}}),o0={class:"w-full flex items-center"},l0=["placeholder","readonly","value","aria-label"],i0={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},s0=["onPointerdown","onMousemove"],c0={key:0},u0={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},f0=a.defineComponent({__name:"Select",props:a.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,r)=>t.includes(r)}},{modelValue:{},modelModifiers:{}}),emits:a.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:r}){const e=t,n=r,o=ot(e),l=a.useModel(t,"modelValue"),i=a.ref(null),s=a.ref(null),c=a.ref(!1);Ha(s,()=>{c.value=!1});const u=a.ref(-1),d=a.ref(-1);a.watchEffect(()=>{c.value||(d.value=-1)}),a.watch(l,()=>{n("change",l.value)});const f=a.computed(()=>l.value),h=a.computed(()=>p(f.value)),g=a.computed(()=>e.options.findIndex(O=>V(O,f.value))),m=a.ref(h.value);a.watch(h,()=>{m.value=h.value});function p(O){return O?typeof O=="string"||typeof O=="symbol"||typeof O=="number"?String(O):O.label?O.label:O.id:""}function x(O){if(O)return typeof O=="string"||typeof O=="symbol"||typeof O=="number"?O:O.id}function v(O){c.value=!0;const tt=O.target;m.value=tt.value,n("input",m.value)}const b=a.computed(()=>e.searchable&&m.value!==h.value?e.options.filter(O=>e.filter(p(O),m.value)):e.options);me("ArrowDown",O=>{c.value&&(O.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&g.value!==-1&&(d.value=g.value),d.value=(d.value+1)%e.options.length)}),me("ArrowUp",O=>{c.value&&(O.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&g.value!==-1&&(d.value=g.value),d.value=(d.value-1+e.options.length)%e.options.length)}),me("Enter",()=>{c.value&&d.value!==-1&&(l.value=b.value[d.value],i.value.focus(),c.value=!1)});function w(O){if(i.value.focus(),!c.value){c.value=!0;return}l.value=O,c.value=!1}const H=a.computed(()=>e.color),S=cn(H,"default"),M=a.computed(()=>{switch(e.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),y=a.ref(null),{height:A}=Jt(y),{bottom:P}=Jt(i);a.watch([c],()=>{d.value=-1,u.value=-1});const k=a.computed(()=>c.value&&Kt?A.value===0?!1:document.documentElement.clientHeight-P.value>A.value:!1);function V(O,tt){return tt?typeof O=="string"||typeof O=="symbol"||typeof O=="number"?O===tt:typeof tt=="string"||typeof tt=="symbol"||typeof tt=="number"?!1:O.id===tt.id:!1}const L=a.computed(()=>e.searchable?"cursor-text":"cursor-pointer"),I=ur(),W=sn(),j=Fe(H);function yt(O){u.value=O,d.value=-1}return(O,tt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative",style:a.normalizeStyle(a.unref(S))},[a.createElementVNode("div",o0,[a.createElementVNode("input",{ref_key:"inputRef",ref:i,class:a.normalizeClass([[M.value.wrapper,a.unref(o).class,L.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:O.placeholder,style:a.normalizeStyle([a.unref(o).style,a.unref(S)]),readonly:!O.searchable,value:m.value,"aria-label":O.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:v,onClick:tt[0]||(tt[0]=mt=>c.value=!0)},null,46,l0),tt[2]||(tt[2]=a.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),c.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:y,class:a.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[a.unref(I).class,M.value.dropdown,{"bottom-10":!k.value}]]),style:a.normalizeStyle([a.unref(I).style])},[O.options.length===0?(a.openBlock(),a.createElementBlock("div",i0,[a.renderSlot(O.$slots,"none",{},()=>[a.createTextVNode(a.toDisplayString(O.noneText),1)])])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(mt,Pt)=>(a.openBlock(),a.createElementBlock("div",{key:x(mt),class:a.normalizeClass([[d.value===Pt&&a.unref(j).class,u.value===Pt&&d.value===-1&&a.unref(W).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:a.normalizeStyle([d.value===Pt&&a.unref(j).style,u.value===Pt&&d.value===-1&&a.unref(W).style]),onPointerdown:we=>w(mt),onMousemove:we=>yt(Pt),onMouseleave:tt[1]||(tt[1]=we=>u.value=-1)},[a.renderSlot(O.$slots,"item",{data:mt,selected:V(mt,f.value)},()=>[a.createTextVNode(a.toDisplayString(p(mt)),1)]),V(mt,f.value)?(a.openBlock(),a.createElementBlock("div",c0,tt[3]||(tt[3]=[a.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):a.createCommentVNode("",!0)],46,s0))),128)),O.searchable&&b.value.length===0?(a.openBlock(),a.createElementBlock("div",u0,[a.renderSlot(O.$slots,"not-found",{},()=>[a.createTextVNode(a.toDisplayString(O.notFoundText),1)])])):a.createCommentVNode("",!0)],64))],6)):a.createCommentVNode("",!0)],4))}}),d0=a.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:r}){const e=t,n=r,o=a.computed(()=>e.color),l=le(o),i=a.computed(()=>{const v=l.value[5].setAlpha(.5).toHex8String(),b=l.value[5].setAlpha(.1).toHex8String();return{"--border-color":v,"--fill-color":b}}),{shift:s,control:c}=ki(),u=Ea(),d=a.computed(()=>e.target??u.value),f=or(),h=a.ref({x:0,y:0}),g=a.ref({x:0,y:0}),m=a.ref(!1),p=Jt(d);D(d,"pointerdown",v=>{if(v.button!==0)return;const b=v.pageX-p.left.value,w=v.pageY-p.top.value;h.value={x:b,y:w},g.value={x:b,y:w},m.value=!0,n("selectStart",{target:v.target,shift:s.value,ctrl:c.value})},{capture:!0}),D(window,"pointerup",v=>{m.value=!1,n("selectEnd",{left:Math.min(h.value.x,g.value.x),top:Math.min(h.value.y,g.value.y),right:Math.max(h.value.x,g.value.x),bottom:Math.max(h.value.y,g.value.y)},{target:v.target,shift:s.value,ctrl:c.value})}),D(d,"pointermove",v=>{const b=v.pageX-p.left.value,w=v.pageY-p.top.value;m.value&&(g.value={x:b,y:w},n("selectChange",{left:Math.min(h.value.x,g.value.x),top:Math.min(h.value.y,g.value.y),right:Math.max(h.value.x,g.value.x),bottom:Math.max(h.value.y,g.value.y)},{target:v.target,shift:s.value,ctrl:c.value}))});const x=a.computed(()=>d.value?d.value.parentElement:null);return D(x,"scroll",v=>{m.value&&(g.value={x:f.x.value-p.left.value,y:f.y.value-p.top.value},n("selectChange",{left:Math.min(h.value.x,g.value.x),top:Math.min(h.value.y,g.value.y),right:Math.max(h.value.x,g.value.x),bottom:Math.max(h.value.y,g.value.y)},{target:v.target,shift:s.value,ctrl:c.value}))}),D(window,"dragend",()=>{m.value=!1}),(v,b)=>d.value?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:d.value},[m.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:a.normalizeStyle([{left:`${Math.min(h.value.x,g.value.x)}px`,top:`${Math.min(h.value.y,g.value.y)}px`,width:`${Math.abs(h.value.x-g.value.x)}px`,height:`${Math.abs(h.value.y-g.value.y)}px`},i.value])},null,4)):a.createCommentVNode("",!0)],8,["to"])):a.createCommentVNode("",!0)}}),h0={class:"relative w-full"},g0="dark:bg-white bg-[var(--i-bg)]",p0="dark:bg-[var(--i-bg)] bg-white",m0=a.defineComponent({__name:"Slider",props:a.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t;function e(M,y,A){const P=[];for(let k=M;k<=y;k+=A)P.push(k);return P[P.length-1]!==y&&P.push(y),P}function n(M,y){const A=[];if(M===0)return A;A.push(y[0]);const P=(y.length-1)/(M-1);for(let k=1;k<M-1;k++)A.push(y[Math.round(k*P)]);return A.push(y[y.length-1]),A}const o=a.computed(()=>r.options?r.options.length:r.tickNum??0),l=a.computed(()=>r.options===void 0?e(r.min,r.max,r.step):r.options),i=a.computed(()=>n(o.value,l.value)),s=a.useModel(t,"modelValue"),c=a.computed(()=>l.value.length??0),u=a.ref(l.value.includes(s.value)?l.value.indexOf(s.value):0);function d(M){let y=l.value.indexOf(M);if(y===-1)if(typeof M=="number"){let A=1/0;for(let P=0;P<l.value.length;P++){const k=Math.abs(l.value[P]-M);k<A&&(A=k,y=P)}}else y=0;return y}const f=a.computed(()=>r.color),h=le(f.value),g=a.computed(()=>h.value[4]),m=Fe(f);a.watchEffect(()=>{u.value<0||(s.value=l.value[u.value])}),a.watchEffect(()=>{u.value=d(s.value)});const p=a.ref(),x=a.ref(),v=a.ref(!1);function b(M){if(!v.value)return;if(!(M.buttons===1)){v.value=!1;return}M.preventDefault(),M.stopPropagation();const A=Jt(p),{clientX:P}=M,k=A.left.value,L=A.right.value-k,I=Math.round((P-k)/L*(c.value-1));if(I<0){u.value=0;return}if(I>c.value-1){u.value=c.value-1;return}u.value=I}a.watchEffect(()=>{u.value=d(s.value)});function w(M){M.preventDefault(),M.stopPropagation(),v.value=!0,b(M)}D(p,"pointerdown",w),a.onMounted(()=>{D(document,"pointermove",b),u.value=Math.max(0,d(s.value))});const H=a.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),S=a.computed(()=>r.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(M,y)=>(a.openBlock(),a.createElementBlock("div",h0,[a.createElementVNode("div",{ref_key:"wrapper",ref:p,type:"size",class:a.normalizeClass(["w-full flex cursor-pointer items-center",H.value.wrapper]),onTouchmove:y[0]||(y[0]=a.withModifiers(()=>{},["prevent"]))},[a.createElementVNode("div",{class:a.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",H.value.innerWrapper])},[a.createElementVNode("div",{class:a.normalizeClass(["relative flex",H.value.content]),style:a.normalizeStyle({width:`${r.width}rem`,minWidth:`${r.minWidth}rem`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,A=>(a.openBlock(),a.createElementBlock("div",{key:A,style:a.normalizeStyle({left:`${d(A)/(c.value-1)*100}%`}),class:a.normalizeClass(["absolute top-50% rounded-full bg-surface-0",H.value.tick])},null,6))),128)),u.value!==-1?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"indicator",ref:x,class:a.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[H.value.indicator,S.value.indicator,g0]]),style:a.normalizeStyle([`--i-bg: ${g.value}`,{left:`${u.value/(c.value-1)*100}%`}])},[a.createElementVNode("div",{class:a.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[H.value.indicatorInner,p0]])},null,2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["pointer-events-none h-full rounded-full",[a.unref(m).class,H.value.progress,S.value.progress]]),style:a.normalizeStyle([a.unref(m).style,{width:`${u.value/(c.value-1)*100}%`}])},null,6)],6)],2)],34),i.value.length>0?(a.openBlock(),a.createElementBlock("div",{key:0,class:"text-surface-dimmed relative mx-1 h-1em text-xs",style:a.normalizeStyle({width:`${r.width}rem`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(A,P)=>(a.openBlock(),a.createElementBlock("div",{key:P,style:a.normalizeStyle({left:`${d(A)/(c.value-1)*100}%`}),class:a.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",H.value.tick])},a.toDisplayString(A),7))),128))],4)):a.createCommentVNode("",!0)]))}}),b0={class:"h-full py-2"},y0=a.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const r=t,e=a.computed(()=>r.color),n=a.inject(Xr,a.ref("")),o=a.ref(null),l=a.computed(()=>n.value===r.value);function i(){n.value=r.value}const s=a.inject(Kr,new Map);a.onMounted(()=>{s.set(r.value,o)});const c=a.inject(Yr,a.computed(()=>"horizontal")),u=a.computed(()=>{switch(c.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),d=a.computed(()=>{switch(c.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),f=rt({color:e.value,type:"bg",index:5}),h=rt({color:e.value,type:"outline",index:5});return(g,m)=>(a.openBlock(),a.createElementBlock("button",a.mergeProps({ref_key:"tabRef",ref:o,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},a.unref(h),{onClick:i}),[l.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([a.unref(f).class,d.value]),style:a.normalizeStyle([a.unref(f).style])},null,6)):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass([d.value])},null,2)),a.createElementVNode("div",b0,[a.renderSlot(g.$slots,"default")])],16))}}),x0=a.defineComponent({__name:"Tabs",props:a.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=a.useSlots(),n=a.computed(()=>{var f;const u=(f=e.default)==null?void 0:f.call(e);return(u==null?void 0:u.flatMap(h=>h.type===a.Fragment?h.children:h).filter(h=>{var g;return((g=h==null?void 0:h.props)==null?void 0:g.value)!==void 0}).map(h=>h.props.value))??[]}),o=a.useModel(t,"modelValue");!o.value&&n.value.length>0&&(o.value=n.value[0]);const l=a.ref(null);a.onMounted(()=>{r.defaultValue&&(o.value=r.defaultValue)}),a.provide(Xr,o);const i=a.computed(()=>r.direction);a.provide(Yr,i);const s=new Map;a.provide(Kr,s),me("ArrowLeft",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const d=o.value?n.value.indexOf(o.value):0,f=d>0?n.value[d-1]:n.value[n.value.length-1];o.value=f;const h=s.get(f);if(h){const m=h.value;m&&m.focus()}}),me("ArrowRight",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const d=o.value?n.value.indexOf(o.value):0,f=d<n.value.length-1?o.value=n.value[d+1]:o.value=n.value[0];o.value=f;const h=s.get(f);if(h){const m=h.value;m&&m.focus()}}),me("ArrowUp",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const d=o.value?n.value.indexOf(o.value):0,f=d>0?n.value[d-1]:n.value[n.value.length-1];o.value=f;const h=s.get(f);if(h){const m=h.value;m&&m.focus()}}),me("ArrowDown",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const d=o.value?n.value.indexOf(o.value):0,f=d<n.value.length-1?n.value[d+1]:n.value[0];o.value=f;const h=s.get(f);if(h){const m=h.value;m&&m.focus()}});const c=a.computed(()=>{switch(r.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,d)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"tabRef",ref:l,class:a.normalizeClass(["flex",[c.value]])},[a.renderSlot(u.$slots,"default")],2))}}),_0=a.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const r=t,e=a.computed(()=>{switch(r.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),n=ot(r),o=a.computed(()=>r.color??"primary"),l=a.computed(()=>r.variant),i=fr(l,o);return(s,c)=>(a.openBlock(),a.createElementBlock("span",{tabindex:-1,style:a.normalizeStyle([a.unref(i).style,a.unref(n).style]),class:a.normalizeClass([[a.unref(i).class,a.unref(n).class,e.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[r.leftIcon?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass([r.leftIcon,"shrink-0"])},null,2)):s.$slots.leftIcon?a.renderSlot(s.$slots,"left-icon",{key:1}):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"default"),r.rightIcon?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass([r.rightIcon,"h-container w-container shrink-0"])},null,2)):s.$slots.rightIcon?a.renderSlot(s.$slots,"right-icon",{key:3}):a.createCommentVNode("",!0)],6))}}),k0=["data-scheme","data-theme"],v0=a.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const r=t,e=za(),n=a.computed(()=>en(r.theme?r.theme:e.value)),o=Ba("scheme","light"),l=a.computed(()=>r.scheme?r.scheme:o.value);return(i,s)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle([n.value]),"data-scheme":l.value,"data-theme":a.unref(e).name},[a.renderSlot(i.$slots,"default")],12,k0))}}),S0=a.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const r=t,e=or(),n=a.ref(null),o=He(n),l=ei(o,r.timeout),i=a.ref(0),s=a.ref(0),c=a.ref(null),u=He(c);return a.watch(l,(d,f)=>{l.value&&d!==f&&(i.value=e.x.value,s.value=e.y.value)}),(d,f)=>{const h=fn;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{ref_key:"hoverableRef",ref:n},[a.renderSlot(d.$slots,"default")],512),i.value&&s.value&&(a.unref(l)||a.unref(u))?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:c,class:"absolute z-10",style:a.normalizeStyle({left:`${i.value+20}px`,top:`${s.value+20}px`})},[a.createVNode(h,{"with-border":""},{default:a.withCtx(()=>[a.renderSlot(d.$slots,"content")]),_:3})],4)):a.createCommentVNode("",!0)])}}});function cl(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function bt(t){return typeof t=="function"?t():a.unref(t)}const w0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const M0=Object.prototype.toString,A0=t=>M0.call(t)==="[object Object]",Se=()=>{};function ul(t,r){function e(...n){return new Promise((o,l)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(o).catch(l)})}return e}function H0(t,r={}){let e,n,o=Se;const l=i=>{clearTimeout(i),o(),o=Se};return i=>{const s=bt(t),c=bt(r.maxWait);return e&&l(e),s<=0||c!==void 0&&c<=0?(n&&(l(n),n=null),Promise.resolve(i())):new Promise((u,d)=>{o=r.rejectOnCancel?d:u,c&&!n&&(n=setTimeout(()=>{e&&l(e),n=null,u(i())},c)),e=setTimeout(()=>{n&&l(n),n=null,u(i())},s)})}}function C0(...t){let r=0,e,n=!0,o=Se,l,i,s,c,u;!a.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=t[0]:[i,s=!0,c=!0,u=!1]=t;const d=()=>{e&&(clearTimeout(e),e=void 0,o(),o=Se)};return f=>{const h=bt(i),g=Date.now()-r,m=()=>l=f();return d(),h<=0?(r=Date.now(),m()):(g>h&&(c||!n)?(r=Date.now(),m()):s&&(l=new Promise((p,x)=>{o=u?x:p,e=setTimeout(()=>{r=Date.now(),n=!0,p(m()),d()},Math.max(0,h-g))})),!c&&!e&&(e=setTimeout(()=>n=!0,h)),n=!1,l)}}function R0(t){return a.getCurrentInstance()}function B0(t,r=200,e={}){return ul(H0(r,e),t)}function E0(t,r=200,e=!1,n=!0,o=!1){return ul(C0(r,e,n,o),t)}function fl(t,r=!0,e){R0()?a.onMounted(t,e):r?t():a.nextTick(t)}function pe(t){var r;const e=bt(t);return(r=e==null?void 0:e.$el)!=null?r:e}const qr=w0?window:void 0;function dl(...t){let r,e,n,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,o]=t,r=qr):[r,e,n,o]=t,!r)return Se;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const l=[],i=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),c=a.watch(()=>[pe(r),bt(o)],([d,f])=>{if(i(),!d)return;const h=A0(f)?{...f}:f;l.push(...e.flatMap(g=>n.map(m=>s(d,g,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return cl(u),u}function $0(){const t=a.ref(!1),r=a.getCurrentInstance();return r&&a.onMounted(()=>{t.value=!0},r),t}function F0(t){const r=$0();return a.computed(()=>(r.value,!!t()))}function z0(t,r,e={}){const{window:n=qr,...o}=e;let l;const i=F0(()=>n&&"ResizeObserver"in n),s=()=>{l&&(l.disconnect(),l=void 0)},c=a.computed(()=>{const f=bt(t);return Array.isArray(f)?f.map(h=>pe(h)):[pe(f)]}),u=a.watch(c,f=>{if(s(),i.value&&n){l=new ResizeObserver(r);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return cl(d),{isSupported:i,stop:d}}function T0(t,r={width:0,height:0},e={}){const{window:n=qr,box:o="content-box"}=e,l=a.computed(()=>{var f,h;return(h=(f=pe(t))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),i=a.ref(r.width),s=a.ref(r.height),{stop:c}=z0(t,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&l.value){const g=pe(t);if(g){const m=g.getBoundingClientRect();i.value=m.width,s.value=m.height}}else if(h){const g=Array.isArray(h)?h:[h];i.value=g.reduce((m,{inlineSize:p})=>m+p,0),s.value=g.reduce((m,{blockSize:p})=>m+p,0)}else i.value=f.contentRect.width,s.value=f.contentRect.height},e);fl(()=>{const f=pe(t);f&&(i.value="offsetWidth"in f?f.offsetWidth:r.width,s.value="offsetHeight"in f?f.offsetHeight:r.height)});const u=a.watch(()=>pe(t),f=>{i.value=f?r.width:0,s.value=f?r.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}const hl=1;function N0(t,r={}){const{throttle:e=0,idle:n=200,onStop:o=Se,onScroll:l=Se,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=qr,onError:d=y=>{console.error(y)}}=r,f=a.ref(0),h=a.ref(0),g=a.computed({get(){return f.value},set(y){p(y,void 0)}}),m=a.computed({get(){return h.value},set(y){p(void 0,y)}});function p(y,A){var P,k,V,L;if(!u)return;const I=bt(t);if(!I)return;(V=I instanceof Document?u.document.body:I)==null||V.scrollTo({top:(P=bt(A))!=null?P:m.value,left:(k=bt(y))!=null?k:g.value,behavior:bt(c)});const W=((L=I==null?void 0:I.document)==null?void 0:L.documentElement)||(I==null?void 0:I.documentElement)||I;g!=null&&(f.value=W.scrollLeft),m!=null&&(h.value=W.scrollTop)}const x=a.ref(!1),v=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),b=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),w=y=>{x.value&&(x.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(y))},H=B0(w,e+n),S=y=>{var A;if(!u)return;const P=((A=y==null?void 0:y.document)==null?void 0:A.documentElement)||(y==null?void 0:y.documentElement)||pe(y),{display:k,flexDirection:V}=getComputedStyle(P),L=P.scrollLeft;b.left=L<f.value,b.right=L>f.value;const I=Math.abs(L)<=(i.left||0),W=Math.abs(L)+P.clientWidth>=P.scrollWidth-(i.right||0)-hl;k==="flex"&&V==="row-reverse"?(v.left=W,v.right=I):(v.left=I,v.right=W),f.value=L;let j=P.scrollTop;y===u.document&&!j&&(j=u.document.body.scrollTop),b.top=j<h.value,b.bottom=j>h.value;const yt=Math.abs(j)<=(i.top||0),O=Math.abs(j)+P.clientHeight>=P.scrollHeight-(i.bottom||0)-hl;k==="flex"&&V==="column-reverse"?(v.top=O,v.bottom=yt):(v.top=yt,v.bottom=O),h.value=j},M=y=>{var A;if(!u)return;const P=(A=y.target.documentElement)!=null?A:y.target;S(P),x.value=!0,H(y),l(y)};return dl(t,"scroll",e?E0(M,e,!0,!1):M,s),fl(()=>{try{const y=bt(t);if(!y)return;S(y)}catch(y){d(y)}}),dl(t,"scrollend",w,s),{x:g,y:m,isScrolling:x,arrivedState:v,directions:b,measure(){const y=bt(t);u&&y&&S(y)}}}const I0=a.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:r}){const e=t,n=a.useSlots(),o=a.computed(()=>a.unref(e.gap)??16),l=a.computed(()=>a.unref(e.rowCount)??3),i=a.computed(()=>a.unref(e.paddingX)??0),s=a.ref();function c(w){return Array.isArray(w)}const u=a.ref([]),d=a.computed(()=>{const w=u.value;return Array.from(w).map(H=>T0(H))}),f=a.computed(()=>{var w,H;return e.itemWidth?a.unref(e.itemWidth)*l.value+o.value*(l.value-1)+i.value*2:e.wrapperWidth?a.unref(e.wrapperWidth):((H=(w=s.value)==null?void 0:w.parentElement)==null?void 0:H.clientWidth)??0}),h=a.computed(()=>e.itemWidth?a.unref(e.itemWidth):(f.value-i.value*2-o.value*(l.value-1))/l.value);function g(w,H,S,M){const y=a.unref(w),A=Array.from({length:a.unref(H)}).fill(0),P=[],k=Math.max(0,f.value-a.unref(M)*2-h.value*y.length-a.unref(S)*y.length)/2;for(let V=0;V<y.length;V++){const L=y[V],I=A.indexOf(Math.min(...A)),W=I*(h.value+a.unref(S))+a.unref(M)+k,j=A[I];P.push({x:W,y:j,width:L.width.value,height:L.height.value}),A[I]+=L.height.value+a.unref(S)}return P}const m=a.computed(()=>g(d,l,o,i)),p=a.computed(()=>c(m.value)?Math.max(...m.value.map(w=>w.y+w.height)):0),x=a.computed(()=>{var w;return((w=n.default)==null?void 0:w.call(n))??[]}),v=a.computed(()=>{const w=[];return x.value.forEach(H=>{c(H.children)?H.children.forEach(S=>{w.push(S)}):w.push(H)}),w});function b(w){if(!c(m.value))return{};const H=m.value[w];return H?{left:`${H.x??0}px`,top:`${H.y??0}px`,maxWidth:`${h.value}px`}:{}}return r({width:h}),(w,H)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:s,style:a.normalizeStyle({position:"relative",overflowX:"clip",width:`${f.value}px`,height:`${p.value}px`,overflow:"scroll"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(S,M)=>(a.openBlock(),a.createElementBlock("div",{key:M,ref_for:!0,ref_key:"itemsRef",ref:u,style:a.normalizeStyle([b(M),{position:"absolute"}])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(S),{style:a.normalizeStyle({width:`${h.value}px`})},null,8,["style"]))],4))),128))],4))}}),V0=a.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:r}){const e=t,n=a.computed(()=>a.unref(e.rangeExpand)??0),o=a.useSlots(),l=a.computed(()=>a.unref(e.gap)??16),i=a.computed(()=>a.unref(e.rowCount)??3),s=a.computed(()=>a.unref(e.paddingX)??0),c=a.ref(),u=a.computed(()=>c.value&&c.value.$el?c.value.$el:c.value);function d(k){return Array.isArray(k)}const f=a.computed(()=>{var k,V;return e.itemWidth?a.unref(e.itemWidth)*i.value+l.value*(i.value-1)+s.value*2:e.wrapperWidth?a.unref(e.wrapperWidth):((V=(k=u.value)==null?void 0:k.parentElement)==null?void 0:V.clientWidth)??0}),h=a.computed(()=>e.itemWidth?a.unref(e.itemWidth):(f.value-s.value*2-l.value*(i.value-1))/i.value),g=a.computed(()=>a.unref(e.items).map(k=>{const V=h.value/k.width;return{width:h.value,height:k.height*V}}));function m(k,V,L,I){const W=a.unref(k),j=Array.from({length:a.unref(V)}).fill(0),yt=[],O=Math.max(0,f.value-a.unref(I)*2-h.value*W.length-a.unref(L)*W.length)/2;for(let tt=0;tt<W.length;tt++){const mt=W[tt],Pt=j.indexOf(Math.min(...j)),we=Pt*(h.value+a.unref(L))+a.unref(I)+O,P0=j[Pt];yt.push({x:we,y:P0,width:mt.width,height:mt.height}),j[Pt]+=mt.height+a.unref(L)}return yt}const p=a.computed(()=>m(g,i,l,s)),x=a.computed(()=>d(p.value)?Math.max(...p.value.map(k=>k.y+k.height)):0),v=a.computed(()=>{var k;return((k=o.default)==null?void 0:k.call(o))??[]});function b(k){if(!d(p.value))return{};const V=p.value[k];return V?{left:`${V.x??0}px`,top:`${V.y??0}px`,maxWidth:`${h.value}px`}:{}}const w=a.ref(!1),H=a.computed(()=>w.value?"smooth":"auto"),S=N0(u,{behavior:H}),M=a.computed(()=>{var k;return[S.y.value-n.value,S.y.value+(((k=u.value)==null?void 0:k.clientHeight)??0)+n.value]}),y=a.computed(()=>p.value.map(k=>{const V=k.y,L=k.y+k.height;return V>=M.value[0]&&V<=M.value[1]||L>=M.value[0]&&L<=M.value[1]||V<=M.value[0]&&L>=M.value[1]})),A=a.computed(()=>{const k=[];return v.value.forEach((V,L)=>{if(d(V.children))V.children.forEach((I,W)=>{y.value[W]&&k.push([I,W])});else{if(!y.value[L])return;k.push([V,L])}}),k});r({scroll:S,scrollTo:(k,V=!1)=>{const L=w.value;w.value=V,S.y.value=k,w.value=L}});const P=a.computed(()=>e.is??"div");return(k,V)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(P.value),{ref_key:"wrapper",ref:c,style:{position:"relative"}},{default:a.withCtx(()=>[a.createElementVNode("div",{style:a.normalizeStyle({height:`${x.value}px`,width:`${f.value}px`,margin:"0 auto",position:"relative"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,([L,I])=>(a.openBlock(),a.createElementBlock("div",{key:L,style:a.normalizeStyle([b(I),{position:"absolute"}])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(L),{style:a.normalizeStyle({width:`${h.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});_.AspectRatio=gl,_.Avatar=qa,_.Btn=dr,_.BtnGroup=Ji,_.COLOR_LIGHTNESS_MAP=it,_.ChatContainer=rs,_.ChatMessage=ns,_.ChatSystem=os,_.Chip=ls,_.ColorInput=us,_.ColorSwatch=Ga,_.Drawer=ps,_.Dropzone=ms,_.FullscreenOverlay=un,_.Image=bs,_.Indicator=xs,_.Modal=vs,_.Notification=Xa,_.NotificationSystem=Fh,_.Notifications=Ll,_.Overlay=ll,_.Paper=fn,_.PinInput=Ph,_.Popover=Oh,_.Progress=Lh,_.Rating=Yh,_.RokuProvider=Kh,_.SURFACE_LIGHTNESS_MAP=be,_.SchemeSwitch=n0,_.ScrollArea=a0,_.Select=f0,_.SelectArea=d0,_.Slider=m0,_.Switch=sl,_.TabItem=y0,_.Tabs=x0,_.Tag=_0,_.TextField=il,_.ThemeProvider=v0,_.Tooltip=S0,_.VirtualWaterfall=V0,_.Waterfall=I0,_.borderCS=Oa,_.childrenElementMapSymbol=Kr,_.defaultTheme=on,_.directionSymbol=Yr,_.errorColor=ve,_.errorColors=Pi,_.generateColors=Me,_.generateColorsMap=va,_.generateColorsObjMap=kt,_.getCSInner=Ie,_.primaryColor=xe,_.primaryColors=Ni,_.schemeSymbol=Na,_.secondaryColor=_e,_.secondaryColors=Ii,_.surfaceColor=Ot,_.surfaceColors=Oi,_.tabCurrentSymbol=Xr,_.tabValueListSymbol=Dl,_.tertiaryColor=ke,_.tertiaryColors=Vi,_.useButtonCS=fr,_.useCS=rt,_.useClientHeight=Fa,_.useColorCS=Ve,_.useColors=le,_.useContainerCS=Ee,_.useContainerDefaultCS=ur,_.useContainerDefaultVariantCS=sn,_.useContainerFilledCS=Fe,_.useContainerLightCS=ja,_.useCurrentThemeData=za,_.useCurrentThemeName=Mi,_.useCurrentThemeScheme=wi,_.useId=lr,_.useIndicatorFilledCS=Wa,_.useInputColorStyle=cn,_.useMergedCS=$e,_.useNotifications=Ol,_.useRootTheme=Si,_.useRounded=ot,_.useSchemeString=Ia,_.useScrollHeight=$a,_.useSurfaceCS=ze,_.useSurfaceColors=Da,_.useTextCS=La,_.useThemeData=Ta,_.useThemeStyles=en,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
1
+ (function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x["roku-ui"]={},x.Vue))})(this,function(x,e){"use strict";const tn=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":r.ratio,width:r.width,"max-width":r.maxWidth,height:r.height,"max-height":r.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[e.renderSlot(r.$slots,"default")],4))}});function Ae(t){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(t)}var nn=/^\s+/,rn=/\s+$/;function M(t,r){if(t=t||"",r=r||{},t instanceof M)return t;if(!(this instanceof M))return new M(t,r);var n=on(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||n.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}M.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),n,o,a,l,c,i;return n=r.r/255,o=r.g/255,a=r.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*l+.7152*c+.0722*i},setAlpha:function(r){return this._a=gt(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=ft(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=ft(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),a=Math.round(r.v*100);return this._a==1?"hsv("+n+", "+o+"%, "+a+"%)":"hsva("+n+", "+o+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var r=dt(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=dt(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),a=Math.round(r.l*100);return this._a==1?"hsl("+n+", "+o+"%, "+a+"%)":"hsla("+n+", "+o+"%, "+a+"%, "+this._roundA+")"},toHex:function(r){return mt(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return cn(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Sn[mt(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var n="#"+pt(this._r,this._g,this._b,this._a),o=n,a=this._gradientType?"GradientType = 1, ":"";if(r){var l=M(r);o="#"+pt(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+o+")"},toString:function(r){var n=!!r;r=r||this._format;var o=!1,a=this._a<1&&this._a>=0,l=!n&&a&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return l?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(o=this.toRgbString()),r==="prgb"&&(o=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(o=this.toHexString()),r==="hex3"&&(o=this.toHexString(!0)),r==="hex4"&&(o=this.toHex8String(!0)),r==="hex8"&&(o=this.toHex8String()),r==="name"&&(o=this.toName()),r==="hsl"&&(o=this.toHslString()),r==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return M(this.toString())},_applyModification:function(r,n){var o=r.apply(null,[this].concat([].slice.call(n)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(mn,arguments)},brighten:function(){return this._applyModification(pn,arguments)},darken:function(){return this._applyModification(hn,arguments)},desaturate:function(){return this._applyModification(un,arguments)},saturate:function(){return this._applyModification(dn,arguments)},greyscale:function(){return this._applyModification(fn,arguments)},spin:function(){return this._applyModification(gn,arguments)},_applyCombination:function(r,n){return r.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(kn,arguments)},complement:function(){return this._applyCombination(yn,arguments)},monochromatic:function(){return this._applyCombination(wn,arguments)},splitcomplement:function(){return this._applyCombination(bn,arguments)},triad:function(){return this._applyCombination(ht,[3])},tetrad:function(){return this._applyCombination(ht,[4])}},M.fromRatio=function(t,r){if(Ae(t)=="object"){var n={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?n[o]=t[o]:n[o]=Ee(t[o]));t=n}return M(t,r)};function on(t){var r={r:0,g:0,b:0},n=1,o=null,a=null,l=null,c=!1,i=!1;return typeof t=="string"&&(t=Bn(t)),Ae(t)=="object"&&(ne(t.r)&&ne(t.g)&&ne(t.b)?(r=ln(t.r,t.g,t.b),c=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ne(t.h)&&ne(t.s)&&ne(t.v)?(o=Ee(t.s),a=Ee(t.v),r=sn(t.h,o,a),c=!0,i="hsv"):ne(t.h)&&ne(t.s)&&ne(t.l)&&(o=Ee(t.s),l=Ee(t.l),r=an(t.h,o,l),c=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=gt(n),{ok:c,format:t.format||i,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}function ln(t,r,n){return{r:R(t,255)*255,g:R(r,255)*255,b:R(n,255)*255}}function dt(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),a=Math.min(t,r,n),l,c,i=(o+a)/2;if(o==a)l=c=0;else{var s=o-a;switch(c=i>.5?s/(2-o-a):s/(o+a),o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return{h:l,s:c,l:i}}function an(t,r,n){var o,a,l;t=R(t,360),r=R(r,100),n=R(n,100);function c(u,f,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(f-u)*6*d:d<1/2?f:d<2/3?u+(f-u)*(2/3-d)*6:u}if(r===0)o=a=l=n;else{var i=n<.5?n*(1+r):n+r-n*r,s=2*n-i;o=c(s,i,t+1/3),a=c(s,i,t),l=c(s,i,t-1/3)}return{r:o*255,g:a*255,b:l*255}}function ft(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),a=Math.min(t,r,n),l,c,i=o,s=o-a;if(c=o===0?0:s/o,o==a)l=0;else{switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return{h:l,s:c,v:i}}function sn(t,r,n){t=R(t,360)*6,r=R(r,100),n=R(n,100);var o=Math.floor(t),a=t-o,l=n*(1-r),c=n*(1-a*r),i=n*(1-(1-a)*r),s=o%6,u=[n,c,l,l,i,n][s],f=[i,n,n,c,l,l][s],d=[l,l,i,n,n,c][s];return{r:u*255,g:f*255,b:d*255}}function mt(t,r,n,o){var a=[K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function cn(t,r,n,o,a){var l=[K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16)),K(yt(o))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function pt(t,r,n,o){var a=[K(yt(o)),K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16))];return a.join("")}M.equals=function(t,r){return!t||!r?!1:M(t).toRgbString()==M(r).toRgbString()},M.random=function(){return M.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function un(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s-=r/100,n.s=Te(n.s),M(n)}function dn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s+=r/100,n.s=Te(n.s),M(n)}function fn(t){return M(t).desaturate(100)}function mn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l+=r/100,n.l=Te(n.l),M(n)}function pn(t,r){r=r===0?0:r||10;var n=M(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(r/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(r/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(r/100)))),M(n)}function hn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l-=r/100,n.l=Te(n.l),M(n)}function gn(t,r){var n=M(t).toHsl(),o=(n.h+r)%360;return n.h=o<0?360+o:o,M(n)}function yn(t){var r=M(t).toHsl();return r.h=(r.h+180)%360,M(r)}function ht(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var n=M(t).toHsl(),o=[M(t)],a=360/r,l=1;l<r;l++)o.push(M({h:(n.h+l*a)%360,s:n.s,l:n.l}));return o}function bn(t){var r=M(t).toHsl(),n=r.h;return[M(t),M({h:(n+72)%360,s:r.s,l:r.l}),M({h:(n+216)%360,s:r.s,l:r.l})]}function kn(t,r,n){r=r||6,n=n||30;var o=M(t).toHsl(),a=360/n,l=[M(t)];for(o.h=(o.h-(a*r>>1)+720)%360;--r;)o.h=(o.h+a)%360,l.push(M(o));return l}function wn(t,r){r=r||6;for(var n=M(t).toHsv(),o=n.h,a=n.s,l=n.v,c=[],i=1/r;r--;)c.push(M({h:o,s:a,v:l})),l=(l+i)%1;return c}M.mix=function(t,r,n){n=n===0?0:n||50;var o=M(t).toRgb(),a=M(r).toRgb(),l=n/100,c={r:(a.r-o.r)*l+o.r,g:(a.g-o.g)*l+o.g,b:(a.b-o.b)*l+o.b,a:(a.a-o.a)*l+o.a};return M(c)},M.readability=function(t,r){var n=M(t),o=M(r);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},M.isReadable=function(t,r,n){var o=M.readability(t,r),a,l;switch(l=!1,a=_n(n),a.level+a.size){case"AAsmall":case"AAAlarge":l=o>=4.5;break;case"AAlarge":l=o>=3;break;case"AAAsmall":l=o>=7;break}return l},M.mostReadable=function(t,r,n){var o=null,a=0,l,c,i,s;n=n||{},c=n.includeFallbackColors,i=n.level,s=n.size;for(var u=0;u<r.length;u++)l=M.readability(t,r[u]),l>a&&(a=l,o=M(r[u]));return M.isReadable(t,o,{level:i,size:s})||!c?o:(n.includeFallbackColors=!1,M.mostReadable(t,["#fff","#000"],n))};var We=M.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Sn=M.hexNames=vn(We);function vn(t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);return r}function gt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function R(t,r){xn(t)&&(t="100%");var n=Cn(t);return t=Math.min(r,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Te(t){return Math.min(1,Math.max(0,t))}function j(t){return parseInt(t,16)}function xn(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Cn(t){return typeof t=="string"&&t.indexOf("%")!=-1}function K(t){return t.length==1?"0"+t:""+t}function Ee(t){return t<=1&&(t=t*100+"%"),t}function yt(t){return Math.round(parseFloat(t)*255).toString(16)}function bt(t){return j(t)/255}var J=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",n="(?:"+r+")|(?:"+t+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ne(t){return!!J.CSS_UNIT.exec(t)}function Bn(t){t=t.replace(nn,"").replace(rn,"").toLowerCase();var r=!1;if(We[t])t=We[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=J.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.hex8.exec(t))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),a:bt(n[4]),format:r?"name":"hex8"}:(n=J.hex6.exec(t))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:r?"name":"hex"}:(n=J.hex4.exec(t))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),a:bt(n[4]+""+n[4]),format:r?"name":"hex8"}:(n=J.hex3.exec(t))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:r?"name":"hex"}:!1}function _n(t){var r,n;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:r,size:n}}function O(t){return e.computed(()=>({style:En(t.rounded),class:"rounded-[--r-rounded]"}))}function En(t){const r=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&r.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const ge=e.shallowRef([]);function je(t){return e.computed({get:()=>{if(typeof t!="number"||t<=0)return ge.value;const r=ge.value.reduce((o,a)=>{const{position:l}=a;return o[l]||(o[l]=[]),o[l].push(a),o},{}),n=[];for(const o in r)n.push(...r[o].slice(-t));return ge.value.filter(o=>n.includes(o))},set:r=>{ge.value=r}})}class Mn{static show(r){r.hash=Math.random().toString(36),r.initialDurationMS=r.durationMS,ge.value=[r,...ge.value]}}const Xe=Symbol("tabCurrent"),Ue=Symbol("direction"),$n=Symbol("tabValueList"),Ye=Symbol("childrenElementMapSymbol");function zn(t){const r=M(t).toHsl().l;return X.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function kt(t,r=X){const n=Z(t,r);return{...n,colors:n.colors.map(o=>o.toHexString())}}function Z(t,r=X){const n=M(t),o=zn(n),a=r.findIndex(c=>c===o),l=r.map(c=>{const i=M({h:n.toHsl().h,s:n.toHsl().s,l:c}),s=0;return n.toHsl().h>=20&&n.toHsl().h<=200&&i.darken(2),i.saturate(s*100),i});return{baseColorIndex:a,colors:l.map(c=>c)}}function ye(t,r=X){return kt(t,r).colors}function Vn(t,r){let n,o,a;const l=e.ref(!0),c=()=>{l.value=!0,a()};e.watch(t,c,{flush:"sync"});const i=typeof r=="function"?r:r.get,s=typeof r=="function"?void 0:r.set,u=e.customRef((f,d)=>(o=f,a=d,{get(){return l.value&&(n=i(n),l.value=!1),o(),n},set(p){s==null||s(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function be(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function wt(){const t=new Set,r=a=>{t.delete(a)};return{on:a=>{t.add(a);const l=()=>r(a);return be(l),{off:l}},off:r,trigger:(...a)=>Promise.all(Array.from(t).map(l=>l(...a)))}}function D(t){return typeof t=="function"?t():e.unref(t)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const An=t=>t!=null,Tn=Object.prototype.toString,Nn=t=>Tn.call(t)==="[object Object]",Q=()=>{},Hn=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),In=Rn();function Rn(){var t,r;return re&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window==null?void 0:window.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ge(t,r){function n(...o){return new Promise((a,l)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(a).catch(l)})}return n}const St=t=>t();function Dn(t,r={}){let n,o,a=Q;const l=i=>{clearTimeout(i),a(),a=Q};return i=>{const s=D(t),u=D(r.maxWait);return n&&l(n),s<=0||u!==void 0&&u<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((f,d)=>{a=r.rejectOnCancel?d:f,u&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,f(i())},u)),n=setTimeout(()=>{o&&l(o),o=null,f(i())},s)})}}function Pn(...t){let r=0,n,o=!0,a=Q,l,c,i,s,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:i=!0,leading:s=!0,rejectOnCancel:u=!1}=t[0]:[c,i=!0,s=!0,u=!1]=t;const f=()=>{n&&(clearTimeout(n),n=void 0,a(),a=Q)};return p=>{const g=D(c),v=Date.now()-r,h=()=>l=p();return f(),g<=0?(r=Date.now(),h()):(v>g&&(s||!o)?(r=Date.now(),h()):i&&(l=new Promise((w,y)=>{a=u?y:w,n=setTimeout(()=>{r=Date.now(),o=!0,w(h()),f()},Math.max(0,g-v))})),!s&&!n&&(n=setTimeout(()=>o=!0,g)),o=!1,l)}}function Ln(t=St){const r=e.ref(!0);function n(){r.value=!1}function o(){r.value=!0}const a=(...l)=>{r.value&&t(...l)};return{isActive:e.readonly(r),pause:n,resume:o,eventFilter:a}}function On(t){return e.getCurrentInstance()}function vt(t,r=200,n={}){return Ge(Dn(r,n),t)}function Fn(t,r=200,n={}){const o=e.ref(t.value),a=vt(()=>{o.value=t.value},r,n);return e.watch(t,()=>a()),o}function Wn(t,r=200,n=!1,o=!0,a=!1){return Ge(Pn(r,n,o,a),t)}function jn(t,r,n={}){const{eventFilter:o=St,...a}=n;return e.watch(t,Ge(o,r),a)}function Xn(t,r,n={}){const{eventFilter:o,...a}=n,{eventFilter:l,pause:c,resume:i,isActive:s}=Ln(o);return{stop:jn(t,r,{...a,eventFilter:l}),pause:c,resume:i,isActive:s}}function ke(t,r=!0,n){On()?e.onMounted(t,n):r?t():e.nextTick(t)}function Un(t=!1,r={}){const{truthyValue:n=!0,falsyValue:o=!1}=r,a=e.isRef(t),l=e.ref(t);function c(i){if(arguments.length)return l.value=i,l.value;{const s=D(n);return l.value=l.value===s?D(o):s,l.value}}return a?c:[l,c]}const F=re?window:void 0,Yn=re?window.document:void 0;function W(t){var r;const n=D(t);return(r=n==null?void 0:n.$el)!=null?r:n}function N(...t){let r,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,r=F):[r,n,o,a]=t,!r)return Q;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],c=()=>{l.forEach(f=>f()),l.length=0},i=(f,d,p,g)=>(f.addEventListener(d,p,g),()=>f.removeEventListener(d,p,g)),s=e.watch(()=>[W(r),D(a)],([f,d])=>{if(c(),!f)return;const p=Nn(d)?{...d}:d;l.push(...n.flatMap(g=>o.map(v=>i(f,g,v,p))))},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return be(u),u}let xt=!1;function qe(t,r,n={}){const{window:o=F,ignore:a=[],capture:l=!0,detectIframe:c=!1}=n;if(!o)return Q;In&&!xt&&(xt=!0,Array.from(o.document.body.children).forEach(h=>h.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let i=!0;const s=h=>D(a).some(w=>{if(typeof w=="string")return Array.from(o.document.querySelectorAll(w)).some(y=>y===h.target||h.composedPath().includes(y));{const y=W(w);return y&&(h.target===y||h.composedPath().includes(y))}});function u(h){const w=D(h);return w&&w.$.subTree.shapeFlag===16}function f(h,w){const y=D(h),m=y.$.subTree&&y.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(b=>b.el===w.target||w.composedPath().includes(b.el))}const d=h=>{const w=W(t);if(h.target!=null&&!(!(w instanceof Element)&&u(t)&&f(t,h))&&!(!w||w===h.target||h.composedPath().includes(w))){if(h.detail===0&&(i=!s(h)),!i){i=!0;return}r(h)}};let p=!1;const g=[N(o,"click",h=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(h))},{passive:!0,capture:l}),N(o,"pointerdown",h=>{const w=W(t);i=!s(h)&&!!(w&&!h.composedPath().includes(w))},{passive:!0}),c&&N(o,"blur",h=>{setTimeout(()=>{var w;const y=W(t);((w=o.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(y!=null&&y.contains(o.document.activeElement))&&r(h)},0)})].filter(Boolean);return()=>g.forEach(h=>h())}function Gn(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function Y(...t){let r,n,o={};t.length===3?(r=t[0],n=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,n=t[0],o=t[1]):(r=t[0],n=t[1]):(r=!0,n=t[0]);const{target:a=F,eventName:l="keydown",passive:c=!1,dedupe:i=!1}=o,s=Gn(r);return N(a,l,f=>{f.repeat&&D(i)||s(f)&&n(f)},c)}function qn(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function Ke(t){const r=qn();return e.computed(()=>(r.value,!!t()))}function Je(t,r,n={}){const{window:o=F,...a}=n;let l;const c=Ke(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const p=D(t),g=(Array.isArray(p)?p:[p]).map(W).filter(An);return new Set(g)}),u=e.watch(()=>s.value,p=>{i(),c.value&&p.size&&(l=new MutationObserver(r),p.forEach(g=>l.observe(g,a)))},{immediate:!0,flush:"post"}),f=()=>l==null?void 0:l.takeRecords(),d=()=>{u(),i()};return be(d),{isSupported:c,stop:d,takeRecords:f}}function Kn(t,r={}){const{immediate:n=!0,fpsLimit:o=void 0,window:a=F}=r,l=e.ref(!1),c=o?1e3/o:null;let i=0,s=null;function u(p){if(!l.value||!a)return;i||(i=p);const g=p-i;if(c&&g<c){s=a.requestAnimationFrame(u);return}i=p,t({delta:g,timestamp:p}),s=a.requestAnimationFrame(u)}function f(){!l.value&&a&&(l.value=!0,i=0,s=a.requestAnimationFrame(u))}function d(){l.value=!1,s!=null&&a&&(a.cancelAnimationFrame(s),s=null)}return n&&f(),be(d),{isActive:e.readonly(l),pause:d,resume:f}}function Jn(t,r={}){const{window:n=F}=r,o=Ke(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=e.ref(!1),c=u=>{l.value=u.matches},i=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},s=e.watchEffect(()=>{o.value&&(i(),a=n.matchMedia(D(t)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),l.value=a.matches)});return be(()=>{s(),i(),a=void 0}),l}const Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},He="__vueuse_ssr_handlers__",Zn=Qn();function Qn(){return He in Ne||(Ne[He]=Ne[He]||{}),Ne[He]}function er(t,r){return Zn[t]||r}function tr(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const nr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Ct="vueuse-storage";function rr(t,r,n,o={}){var a;const{flush:l="pre",deep:c=!0,listenToStorageChanges:i=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:d=F,eventFilter:p,onError:g=C=>{console.error(C)},initOnMounted:v}=o,h=(f?e.shallowRef:e.ref)(r);if(!n)try{n=er("getDefaultStorage",()=>{var C;return(C=F)==null?void 0:C.localStorage})()}catch(C){g(C)}if(!n)return h;const w=D(r),y=tr(w),m=(a=o.serializer)!=null?a:nr[y],{pause:b,resume:S}=Xn(h,()=>B(h.value),{flush:l,deep:c,eventFilter:p});d&&i&&ke(()=>{n instanceof Storage?N(d,"storage",E):N(d,Ct,V),v&&E()}),v||E();function _(C,z){if(d){const T={key:t,oldValue:C,newValue:z,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",T):new CustomEvent(Ct,{detail:T}))}}function B(C){try{const z=n.getItem(t);if(C==null)_(z,null),n.removeItem(t);else{const T=m.write(C);z!==T&&(n.setItem(t,T),_(z,T))}}catch(z){g(z)}}function k(C){const z=C?C.newValue:n.getItem(t);if(z==null)return s&&w!=null&&n.setItem(t,m.write(w)),w;if(!C&&u){const T=m.read(z);return typeof u=="function"?u(T,w):y==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof z!="string"?z:m.read(z)}function E(C){if(!(C&&C.storageArea!==n)){if(C&&C.key==null){h.value=w;return}if(!(C&&C.key!==t)){b();try{(C==null?void 0:C.newValue)!==m.write(h.value)&&(h.value=k(C))}catch(z){g(z)}finally{C?e.nextTick(S):S()}}}}function V(C){E(C.detail)}return h}function or(t){const r=e.getCurrentInstance(),n=Vn(()=>null,()=>r.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}function lr(t,r={}){var n,o;const a=e.ref(!1),l=e.shallowRef(null);let c=0,i=!0;if(re){const s=typeof r=="function"?{onDrop:r}:r,u=(n=s.multiple)!=null?n:!0,f=(o=s.preventDefaultForUnhandled)!=null?o:!1,d=h=>{var w,y;const m=Array.from((y=(w=h.dataTransfer)==null?void 0:w.files)!=null?y:[]);return m.length===0?null:u?m:[m[0]]},p=h=>{if(s.dataTypes){const w=e.unref(s.dataTypes);return typeof w=="function"?w(h):w?w.some(y=>h.includes(y)):!0}return!0},g=h=>{var w,y;const m=Array.from((y=(w=h.dataTransfer)==null?void 0:w.items)!=null?y:[]),b=m.map(B=>B.type),S=p(b),_=u||m.length<=1;return S&&_},v=(h,w)=>{var y,m,b,S;if(i=g(h),!i){f&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const _=d(h);switch(w){case"enter":c+=1,a.value=!0,(y=s.onEnter)==null||y.call(s,null,h);break;case"over":(m=s.onOver)==null||m.call(s,null,h);break;case"leave":c-=1,c===0&&(a.value=!1),(b=s.onLeave)==null||b.call(s,null,h);break;case"drop":c=0,a.value=!1,i&&(l.value=_,(S=s.onDrop)==null||S.call(s,_,h));break}};N(t,"dragenter",h=>v(h,"enter")),N(t,"dragover",h=>v(h,"over")),N(t,"dragleave",h=>v(h,"leave")),N(t,"drop",h=>v(h,"drop"))}return{files:l,isOverDropZone:a}}function Ze(t,r,n={}){const{window:o=F,...a}=n;let l;const c=Ke(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const d=D(t);return Array.isArray(d)?d.map(p=>W(p)):[W(d)]}),u=e.watch(s,d=>{if(i(),c.value&&o){l=new ResizeObserver(r);for(const p of d)p&&l.observe(p,a)}},{immediate:!0,flush:"post"}),f=()=>{i(),u()};return be(f),{isSupported:c,stop:f}}function oe(t,r={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0,updateTiming:c="sync"}=r,i=e.ref(0),s=e.ref(0),u=e.ref(0),f=e.ref(0),d=e.ref(0),p=e.ref(0),g=e.ref(0),v=e.ref(0);function h(){const y=W(t);if(!y){n&&(i.value=0,s.value=0,u.value=0,f.value=0,d.value=0,p.value=0,g.value=0,v.value=0);return}const m=y.getBoundingClientRect();i.value=m.height,s.value=m.bottom,u.value=m.left,f.value=m.right,d.value=m.top,p.value=m.width,g.value=m.x,v.value=m.y}function w(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ze(t,w),e.watch(()=>W(t),y=>!y&&w()),Je(t,w,{attributeFilter:["style","class"]}),a&&N("scroll",w,{capture:!0,passive:!0}),o&&N("resize",w,{passive:!0}),ke(()=>{l&&w()}),{height:i,bottom:s,left:u,right:f,top:d,width:p,x:g,y:v,update:w}}function le(t,r={}){const{delayEnter:n=0,delayLeave:o=0,window:a=F}=r,l=e.ref(!1);let c;const i=s=>{const u=s?n:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>l.value=s,u):l.value=s};return a&&(N(t,"mouseenter",()=>i(!0),{passive:!0}),N(t,"mouseleave",()=>i(!1),{passive:!0})),l}const ar={multiple:!0,accept:"*",reset:!1,directory:!1};function sr(t={}){const{document:r=Yn}=t,n=e.ref(null),{on:o,trigger:a}=wt(),{on:l,trigger:c}=wt();let i;r&&(i=r.createElement("input"),i.type="file",i.onchange=f=>{const d=f.target;n.value=d.files,a(n.value)},i.oncancel=()=>{c()});const s=()=>{n.value=null,i&&i.value&&(i.value="",a(null))},u=f=>{if(!i)return;const d={...ar,...t,...f};i.multiple=d.multiple,i.accept=d.accept,i.webkitdirectory=d.directory,Hn(d,"capture")&&(i.capture=d.capture),d.reset&&s(),i.click()};return{files:e.readonly(n),open:u,reset:s,onCancel:l,onChange:o}}const Bt=1;function ir(t,r={}){const{throttle:n=0,idle:o=200,onStop:a=Q,onScroll:l=Q,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:s="auto",window:u=F,onError:f=k=>{console.error(k)}}=r,d=e.ref(0),p=e.ref(0),g=e.computed({get(){return d.value},set(k){h(k,void 0)}}),v=e.computed({get(){return p.value},set(k){h(void 0,k)}});function h(k,E){var V,C,z,T;if(!u)return;const $=D(t);if(!$)return;(z=$ instanceof Document?u.document.body:$)==null||z.scrollTo({top:(V=D(E))!=null?V:v.value,left:(C=D(k))!=null?C:g.value,behavior:D(s)});const H=((T=$==null?void 0:$.document)==null?void 0:T.documentElement)||($==null?void 0:$.documentElement)||$;g!=null&&(d.value=H.scrollLeft),v!=null&&(p.value=H.scrollTop)}const w=e.ref(!1),y=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),m=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=k=>{w.value&&(w.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,a(k))},S=vt(b,n+o),_=k=>{var E;if(!u)return;const V=((E=k==null?void 0:k.document)==null?void 0:E.documentElement)||(k==null?void 0:k.documentElement)||W(k),{display:C,flexDirection:z}=getComputedStyle(V),T=V.scrollLeft;m.left=T<d.value,m.right=T>d.value;const $=Math.abs(T)<=(c.left||0),H=Math.abs(T)+V.clientWidth>=V.scrollWidth-(c.right||0)-Bt;C==="flex"&&z==="row-reverse"?(y.left=H,y.right=$):(y.left=$,y.right=H),d.value=T;let I=V.scrollTop;k===u.document&&!I&&(I=u.document.body.scrollTop),m.top=I<p.value,m.bottom=I>p.value;const q=Math.abs(I)<=(c.top||0),A=Math.abs(I)+V.clientHeight>=V.scrollHeight-(c.bottom||0)-Bt;C==="flex"&&z==="column-reverse"?(y.top=A,y.bottom=q):(y.top=q,y.bottom=A),p.value=I},B=k=>{var E;if(!u)return;const V=(E=k.target.documentElement)!=null?E:k.target;_(V),w.value=!0,S(k),l(k)};return N(t,"scroll",n?Wn(B,n,!0,!1):B,i),ke(()=>{try{const k=D(t);if(!k)return;_(k)}catch(k){f(k)}}),N(t,"scrollend",b,i),{x:g,y:v,isScrolling:w,arrivedState:y,directions:m,measure(){const k=D(t);u&&k&&_(k)}}}function _t(t,r,n={}){const{window:o=F}=n;return rr(t,r,o==null?void 0:o.localStorage,n)}const cr={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function ur(t={}){const{reactive:r=!1,target:n=F,aliasMap:o=cr,passive:a=!0,onEventFired:l=Q}=t,c=e.reactive(new Set),i={toJSON(){return{}},current:c},s=r?e.reactive(i):i,u=new Set,f=new Set;function d(h,w){h in s&&(r?s[h]=w:s[h].value=w)}function p(){c.clear();for(const h of f)d(h,!1)}function g(h,w){var y,m;const b=(y=h.key)==null?void 0:y.toLowerCase(),_=[(m=h.code)==null?void 0:m.toLowerCase(),b].filter(Boolean);b&&(w?c.add(b):c.delete(b));for(const B of _)f.add(B),d(B,w);b==="meta"&&!w?(u.forEach(B=>{c.delete(B),d(B,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&w&&[...c,..._].forEach(B=>u.add(B))}N(n,"keydown",h=>(g(h,!0),l(h)),{passive:a}),N(n,"keyup",h=>(g(h,!1),l(h)),{passive:a}),N("blur",p,{passive:!0}),N("focus",p,{passive:!0});const v=new Proxy(s,{get(h,w,y){if(typeof w!="string")return Reflect.get(h,w,y);if(w=w.toLowerCase(),w in o&&(w=o[w]),!(w in s))if(/[+_-]/.test(w)){const b=w.split(/[+_-]/g).map(S=>S.trim());s[w]=e.computed(()=>b.every(S=>D(v[S])))}else s[w]=e.ref(!1);const m=Reflect.get(h,w,y);return r?D(m):m}});return v}const dr={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function Ie(t={}){const{type:r="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:a={x:0,y:0},window:l=F,target:c=l,scroll:i=!0,eventFilter:s}=t;let u=null,f=0,d=0;const p=e.ref(a.x),g=e.ref(a.y),v=e.ref(null),h=typeof r=="function"?r:dr[r],w=k=>{const E=h(k);u=k,E&&([p.value,g.value]=E,v.value="mouse"),l&&(f=l.scrollX,d=l.scrollY)},y=k=>{if(k.touches.length>0){const E=h(k.touches[0]);E&&([p.value,g.value]=E,v.value="touch")}},m=()=>{if(!u||!l)return;const k=h(u);u instanceof MouseEvent&&k&&(p.value=k[0]+l.scrollX-f,g.value=k[1]+l.scrollY-d)},b=()=>{p.value=a.x,g.value=a.y},S=s?k=>s(()=>w(k),{}):k=>w(k),_=s?k=>s(()=>y(k),{}):k=>y(k),B=s?()=>s(()=>m(),{}):()=>m();if(c){const k={passive:!0};N(c,["mousemove","dragover"],S,k),n&&r!=="movement"&&(N(c,["touchstart","touchmove"],_,k),o&&N(c,"touchend",b,k)),i&&r==="page"&&N(l,"scroll",B,{passive:!0})}return{x:p,y:g,sourceType:v}}function Et(t=or()){const r=e.shallowRef(),n=()=>{const o=W(t);o&&(r.value=o.parentElement)};return ke(n),e.watch(()=>D(t),n),r}function Mt(t){const r=e.ref(0),n=e.computed(()=>W(t)),o=()=>{n.value&&(r.value=n.value.scrollHeight)};return o(),ke(o),Ze(()=>n.value,o),Je(()=>n.value,o,{childList:!0,subtree:!0,attributes:!0}),r}function $t(t,r={}){const{initialWidth:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=r,a=e.ref(n),l=e.computed(()=>W(t)),c=()=>{l.value&&(a.value=l.value.clientHeight)};if(c(),ke(c),N("resize",c,{passive:!0}),Ze(()=>l.value,c),Je(()=>l.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const i=Jn("(orientation: portrait)");e.watch(i,()=>c())}return a}const X=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],ie=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function fr(){if(!re)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(n=>{n.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function mr(){return e.inject("currentThemeScheme",null)}function zt(){return e.inject("currentThemeData",e.ref(rt))}function pr(){return e.inject("currentThemeName",e.ref("default"))}function Vt(t,r,n={}){const o=X,a=ie;return n.primary===void 0&&(n.primary=o),n.secondary===void 0&&(n.secondary=o),n.tertiary===void 0&&(n.tertiary=o),n.error===void 0&&(n.error=o),n.surface===void 0&&(n.surface=a),e.computed(()=>({name:t,colors:{primary:ye(e.unref(r.primary),n.primary),secondary:ye(e.unref(r.secondary),n.secondary),tertiary:ye(e.unref(r.tertiary),n.tertiary),error:ye(e.unref(r.error),n.error),surface:ye(e.unref(r.surface),n.surface)}}))}function hr(t,r=X){return e.computed(()=>{const n=e.unref(t);return typeof n=="string"?ae(n,r).value.map(o=>o.toHexString()):n})}function Qe(t){const r=e.ref(t);return{...{...Object.keys(r.value.colors).map(l=>{const c=l,i=r.value.colors[c];return hr(i,c==="surface"?ie:X).value.reduce((f,d,p)=>{const g=M(d).toRgb();return f[`--r-color-${c}-${p}`]=`${g.r} ${g.g} ${g.b}`,f},{})}).reduce((l,c)=>({...l,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)","--un-default-border-color":"var(--r-surface-border-color)"}}}function Re(t){const r=e.ref("");return e.onMounted(()=>{t.id?r.value=t.id:r.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),r}const At=Symbol("scheme");function Tt(){const t=_t("scheme","light");return re&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const et=9,gr=8,yr=7,Me=7,br=7,we=3,kr=6,ce=5,Nt=6,$e=3,wr=4,tt=.25,Sr=.3,De=1,vr=2,Se=6,xr=5,ve=4,Ht=5,nt=.08,Cr=.15,ue=e.ref("#0067cc"),de=e.ref("#5999A6"),fe=e.ref("#F76C22"),me=e.ref("#F95858"),te=e.ref("#121212"),It=e.computed(()=>L({color:"surface",type:"border",index:{dark:Me,light:$e}}).value);function Rt(t){return Ve(t,"text",{dark:we,light:Se})}const Br=e.computed(()=>Z(e.unref(ue),X).colors),_r=e.computed(()=>Z(e.unref(de),X).colors),Er=e.computed(()=>Z(e.unref(fe),X).colors),Mr=e.computed(()=>Z(e.unref(me),X).colors),$r=e.computed(()=>Z(e.unref(te),ie).colors),rt=Vt("default",{primary:ue,secondary:de,tertiary:fe,error:me,surface:te});function xe(t,r){return e.computed(()=>{switch(e.unref(t)){case"filled":return Be(r).value;case"light":return Lt(r).value;default:return Pe().value}})}function zr(t){return e.computed(()=>{const r=e.unref(t);switch(r){case"surface":return M(e.unref(te));case"primary":return M(e.unref(ue));case"secondary":return M(e.unref(de));case"tertiary":return M(e.unref(fe));case"error":return M(e.unref(me));default:return M(r)}})}const ot=new Map;function ae(t,r=X){return e.computed(()=>{const o=zr(t).value.toHexString();if(ot.has(o))return ot.get(o);function a(){const l=Z(o,r).colors;return ot.set(o,l),l}return a()})}function Dt(){return e.computed(()=>Z(e.unref(te),ie).colors)}function Pe(){return e.computed(()=>{const t=L({color:"surface",type:"bg",index:{dark:et,light:De}}),r=L({color:"surface",type:"border",index:{dark:Me,light:$e}}),n=Ce(t,r);return n.value.class=[...n.value.class,"border"],n.value})}function lt(){return e.computed(()=>{const t=L({color:"surface",type:"bg",index:{dark:7,light:2}}),r=L({color:"surface",type:"border",index:{dark:6,light:4}});return Ce(t,r).value})}function Ce(...t){return e.computed(()=>({style:t.reduce((r,n)=>({...r,...n.value.style}),{}),class:t.reduce((r,n)=>[...r,...n.value.class],[])}))}function Pt(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:5,light:4}}),n=L({color:"surface",type:"border",index:{dark:et,light:De}}),o=L({color:t,type:"text",index:0});return Ce(r,n,o).value})}function Be(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:ce,light:ve}}),n=L({color:t,type:"border",index:{dark:ce,light:ve}}),o=L({color:t,type:"text",index:0});return Ce(r,n,o).value})}function Lt(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:ce,light:ve},alpha:.15}),n=L({color:t,type:"text",index:{dark:we,light:Se}}),o=L({color:t,type:"border",index:{dark:5,light:4},alpha:0});return Ce(r,n,o).value})}function ze(t,r,n,o,a=1){switch(r){case"outline":return{style:{"--d-outline":t[n].clone().setAlpha(a).toHex8String(),"--l-outline":t[o].clone().setAlpha(a).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[n].clone().setAlpha(a).toHex8String(),"--l-bg":t[o].clone().setAlpha(a).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[n].clone().setAlpha(a).toHex8String(),"--l-border":t[o].clone().setAlpha(a).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[n].clone().setAlpha(a).toHex8String(),"--l-text":t[o].clone().setAlpha(a).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[n].clone().setAlpha(a).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(a).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[n].clone().setAlpha(a).toHexString(),"--l-bg-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[n].clone().setAlpha(a).toHexString(),"--l-border-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[n].clone().setAlpha(a).toHexString(),"--l-text-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function L(t){return t.color==="surface"?_e(t.type,t.index):Ve(t.color,t.type,t.index,t.alpha)}function Ve(t,r,n,o=1){return e.computed(()=>{const a=ae(t);return typeof n=="number"?ze(e.unref(a),r,n,n,o):ze(e.unref(a),r,n.dark,n.light,o)})}function _e(t,r,n=1){return e.computed(()=>{const{colors:o}=Z(e.unref(te),ie);return typeof r=="number"?ze(o,t,r,r,n):ze(o,t,r.dark,r.light,n)})}function at(t){return L({color:t,type:"outline",index:{dark:Me,light:$e}})}function Le(t="default",r="primary"){return e.computed(()=>{const n=ae(r).value,o=Z(e.unref(te),ie).colors;return{style:{default:()=>Vr(o),filled:()=>Ar(n),light:()=>Tr(n),outline:()=>Nr(n),transparent:()=>Hr(n),subtle:()=>Ir(n),contrast:()=>Rr(n),white:()=>Dr(n)}[e.unref(t)](),class:"custom-colors"}})}function Vr(t){return{"--d-bg":t[gr].toHexString(),"--d-bg-h":t[yr].toHexString(),"--d-border":t[br].toHexString(),"--l-bg":t[De].toHexString(),"--l-bg-h":t[vr].toHexString(),"--l-border":t[wr].toHexString()}}function Ar(t){return{"--d-border":"transparent","--d-bg":t[ce].toHexString(),"--d-bg-h":t[Nt].toHexString(),"--d-text":"white","--l-bg":t[ve].toHexString(),"--l-bg-h":t[Ht].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Tr(t){return{"--d-border":"transparent","--d-bg":t[ce].clone().setAlpha(tt).toHex8String(),"--d-bg-h":t[ce].clone().setAlpha(Sr).toHex8String(),"--d-text":t[we].toHexString(),"--d-text-h":t[we].toHexString(),"--l-bg":t[ve].clone().setAlpha(nt).toHex8String(),"--l-bg-h":t[ve].clone().setAlpha(Cr).toHex8String(),"--l-text":t[Se].toHexString(),"--l-text-h":t[Se].toHexString(),"--l-border":"transparent"}}function Nr(t){return{"--d-bg":"transparent","--d-bg-h":t[Nt].clone().setAlpha(tt).toHex8String(),"--d-text":t[we].toHexString(),"--d-text-h":t[we].toHexString(),"--d-border":t[Me].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Ht].clone().setAlpha(nt).toHex8String(),"--l-text":t[Se].toHexString(),"--l-text-h":t[Se].toHexString(),"--l-border":t[$e].toHexString()}}function Hr(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function Ir(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(tt).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(nt).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function Rr(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function Dr(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function st(t,r="default"){return e.computed(()=>{const n=ae(t).value,o=Dt().value;switch(e.unref(r)){case"default":return{"--d-bg":o[et].toHexString(),"--d-border-f":n[ce].toHexString(),"--d-border":o[Me].toHexString(),"--d-placeholder":o[kr].toHexString(),"--d-text":"white","--l-bg":o[De].toHexString(),"--l-border-f":n[3].toHexString(),"--l-border":o[$e].toHexString(),"--l-placeholder":o[xr].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":n[5].toHexString(),"--d-bg-h":n[6].toHexString(),"--d-border":"transparent","--l-bg":n[5].toHexString(),"--l-bg-h":n[6].toHexString(),"--l-border":"transparent"}}})}const Pr={key:2,class:"i-fluent-person-24-filled"},Ot=e.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"},skeleton:{type:Boolean}},setup(t){const r=t,n=O(r),o=e.computed(()=>r.name||""),a=e.computed(()=>{switch(r.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof r.size=="number"&&!Number.isNaN(Number(r.size))?`--size: ${r.size}rem; --font-size: ${r.size/2}rem;`:"--size: 4rem;"}}),l=e.ref(!1),c=e.ref(null);function i(){l.value=!0}e.onMounted(()=>{var d;(d=c.value)!=null&&d.complete&&i()});function s(d){return d.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>r.color),f=xe(r.variant,u);return(d,p)=>d.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant-1",style:e.normalizeStyle([e.unref(n).style,a.value])},null,4)):d.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.is),e.mergeProps({key:1,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(n).class,e.unref(f).class,{hidden:!l.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(n).style,e.unref(f).style,a.value],src:d.src},d.$attrs,{onLoad:i}),null,16,["alt","class","style","src"])):!l.value||!d.src?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[e.unref(n).class,e.unref(f).class]],style:[e.unref(n).style,e.unref(f).style,a.value]},d.$attrs),[d.$slots.default?e.renderSlot(d.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Pr))],16)):e.createCommentVNode("",!0)}}),Oe=e.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean},outlineColor:{}},setup(t){const r=t,n=O(r),o=e.computed(()=>{switch(r.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),a=e.ref(null),l=le(a),c=e.computed(()=>r.hoverVariant&&l.value?r.hoverVariant:r.variant??"default"),i=e.computed(()=>r.color??"primary"),s=Le(c,i),u=e.computed(()=>r.outlineColor??i.value),f=at(u);return(d,p)=>d.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([e.unref(n).style]),class:e.normalizeClass([o.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant-1"])},null,6)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.is),e.mergeProps({key:1,ref_key:"btn",ref:a,"data-size":d.size,type:d.type,class:["flex items-center justify-center gap-1 decoration-none outline-none",[e.unref(s).class,e.unref(n).class,e.unref(f).class,d.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":d.disabled,"active:translate-y-0.25":d.pressEffect==="translate"}]],style:[e.unref(s).style,e.unref(n).style,e.unref(f).style],disabled:d.disabled},d.$attrs),{default:e.withCtx(()=>[d.$slots.leftSection?e.renderSlot(d.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),d.$slots.rightSection?e.renderSlot(d.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Lr=e.defineComponent({__name:"BtnGroup",props:e.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.computed(()=>r.unselectable===void 0?r.selections.length===1:r.unselectable);function o(f){return typeof f=="string"?f:f.label??f.value}function a(f){return typeof f=="string"?f:f.value}function l(f){return typeof f=="string"?void 0:f.icon}const c=e.useModel(t,"modelValue");function i(f){a(f)===c.value&&n.value?c.value=void 0:c.value=a(f)}const s=e.computed(()=>r.selections.length===1),u=e.computed(()=>s.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(f,d)=>{const p=Oe;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-auto inline-flex container",[u.value]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.selections,(g,v)=>(e.openBlock(),e.createBlock(p,{key:a(g),model:c.value,variant:a(g)===c.value?"filled":void 0,color:r.color,class:e.normalizeClass({"border-x-none":v!==0&&v!==r.selections.length-1}),onClick:h=>i(g)},{default:e.withCtx(()=>[l(g)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(l(g))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(g)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Or=(t,r)=>{const n=t.__vccOpts||t;for(const[o,a]of r)n[o]=a;return n},Fr={},Wr={class:"flex flex-col gap-4 container"};function jr(t,r){return e.openBlock(),e.createElementBlock("div",Wr,[e.renderSlot(t.$slots,"default")])}const Xr=Or(Fr,[["render",jr]]),Ur=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),a=xe(n,o);return(l,c)=>{const i=Ot;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":l.position==="right","flex-row":l.position==="left"}]])},[l.$slots.avatar?e.renderSlot(l.$slots,"avatar",{key:0}):l.avatar?(e.openBlock(),e.createBlock(i,{key:1,size:"xs",src:l.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":l.position==="right","rounded-tl":l.position==="left",border:l.withBorder},e.unref(a).class]]),style:e.normalizeStyle([e.unref(a).style])},[e.renderSlot(l.$slots,"default")],6)],2)}}}),Yr={class:"w-full flex self-center gap-2 text-center"},Gr=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),a=xe(n,o);return(l,c)=>(e.openBlock(),e.createElementBlock("div",Yr,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(a).class]]),style:e.normalizeStyle(e.unref(a).style)},[e.renderSlot(l.$slots,"default")],6)]))}}),qr=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const r=t,n=O(r),o=e.computed(()=>{switch(r.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),a=e.computed(()=>r.variant),l=e.computed(()=>r.color),c=xe(a,l);return(i,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(n).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(n).style,e.unref(c).style])},[i.$slots.leftSection?e.renderSlot(i.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),i.$slots.rightSection?e.renderSlot(i.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Ft=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(r,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:r.withBorder}]]},e.unref(It),{style:{backgroundColor:r.color}}),null,16,["class","style"]))}}),Kr=["id","alt"],Jr=["for"],Zr={key:0},Qr=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=e.useModel(t,"modelValue"),n=e.useAttrs(),o=Re(n),a=e.ref(null);return(l,c)=>{const i=Ft;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:a,"onUpdate:modelValue":c[0]||(c[0]=s=>r.value=s),alt:r.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Kr),[[e.vModelText,r.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(i,{"with-border":l.withBorder,class:"cursor-pointer",color:r.value??"#222"},null,8,["with-border","color"]),l.label?(e.openBlock(),e.createElementBlock("span",Zr,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0)],8,Jr)])}}}),Wt=Symbol("rokuProvider");function eo(){return e.inject(Wt,e.ref(null))}function to(t){return e.provide(Wt,t)}const it=e.defineComponent({__name:"FullscreenOverlay",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue"),o=e.ref(null);function a(s){r.persistent||s.target===o.value&&(n.value=!1)}const l=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),c=e.ref(0);e.watchEffect(()=>{n.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${c.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),e.watchEffect(()=>{typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body)});const i=eo();return(s,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(i)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["fixed left-0 top-0 z-100 h-full w-full bg-surface-10/50 p-2 transition-all duration-100",[l.value,s.wrapperClass,{"op-0 pointer-events-none":!n.value,"op-100":n.value}]]),onClick:a},[e.renderSlot(s.$slots,"default")],2)],8,["to"]))}}),no={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},ro={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},oo=e.defineComponent({__name:"Drawer",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,a)=>{const l=Oe,c=it;return e.openBlock(),e.createBlock(c,{modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=i=>n.value=i),blur:r.blur,persistent:r.persistent},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(o.position==="left","translate-x-0"),"leave-from-class":(o.position==="left","translate-x-0"),"leave-to-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",o.position==="left"?"left-0":"right-0"])},[e.createElementVNode("div",no,[e.createVNode(l,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:a[0]||(a[0]=i=>n.value=!1)},{default:e.withCtx(()=>a[2]||(a[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",ro,[e.renderSlot(o.$slots,"default")])],2)):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),lo=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:r}){const n=t,o=r,a=e.ref(),{onChange:l,open:c}=sr({accept:n.accept});l(f=>{f?o("drop",Array.from(f)):o("drop",null)});const{isOverDropZone:i}=lr(a,{onDrop:f=>{o("drop",f)}}),s=Le("default"),u=lt();return(f,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:a,class:e.normalizeClass([[e.unref(s).class,e.unref(i)&&e.unref(u).class,{"bg-surface-low":!e.unref(i),"border-dashed":f.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(s).style,e.unref(i)&&e.unref(u).style]),onPointerup:d[0]||(d[0]=()=>e.unref(c)())},[e.renderSlot(f.$slots,"default")],38))}}),ao=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const r=t,n=e.ref(!1),o=e.ref(null);function a(){n.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&a()});const l=O(r);return(c,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:c.height,width:c.width,maxHeight:c.maxHeight,maxWidth:c.maxWidth})},[c.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),e.mergeProps({key:0,ref_key:"img",ref:o,style:[c.style,e.unref(l).style],src:c.src,class:["h-full w-full object-cover",[r.class,e.unref(l).class,{hidden:!n.value}]]},c.$attrs,{onLoad:a}),null,16,["style","src","class"])):e.createCommentVNode("",!0),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[r.class,e.unref(l).class]]),style:e.normalizeStyle([c.style,e.unref(l).style])},null,6))],4))}}),so={class:"relative"},io=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof r.size=="number"||!Number.isNaN(Number(r.size))?`w-${r.size} h-${r.size}`:r.size}}),o=e.useSlots(),a=e.computed(()=>{if(!o.label)return"";switch(r.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),l=e.computed(()=>{switch(r.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),c=e.computed(()=>r.color),i=Pt(c);return(s,u)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("div",{class:e.normalizeClass([[l.value,a.value],"absolute z-1"])},[r.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[n.value]:!s.$slots.label},e.unref(i).class]]),style:e.normalizeStyle([e.unref(i).style])},[s.$slots.label?e.renderSlot(s.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[n.value]:!s.$slots.label},e.unref(i).class]]),style:e.normalizeStyle(e.unref(i).style)},[s.$slots.label?e.renderSlot(s.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(s.$slots,"default")]))}}),jt=e.defineComponent({__name:"MenuItem",props:{data:{},idx:{},rounded:{default:"md"},items:{}},setup(t){const r=t,n=e.ref(null),o=le(n,{delayLeave:100}),a=O({rounded:r.rounded}),l=e.inject("menuCurrentIdx",e.ref([]));N(n,"pointermove",()=>{l.value=r.idx},{capture:!0});const c=e.computed(()=>l.value.join()===r.idx.join()),i=e.computed(()=>l.value.length>r.idx.length&&l.value.slice(0,r.idx.length).join()===r.idx.join()),s=e.inject("selectMenuItem",()=>{console.error("selectMenuItem is not provided")});return(u,f)=>{const d=e.resolveComponent("MenuItem",!0);return e.openBlock(),e.createElementBlock("button",{ref_key:"menuItemRef",ref:n,tabindex:-1,class:e.normalizeClass(["relative inline-block h-8 w-full flex cursor-pointer items-center gap-2 px-2 outline-none",[e.unref(a).class,{"bg-surface-variant-2":c.value}]]),style:e.normalizeStyle([e.unref(a).style]),onPointerdown:f[0]||(f[0]=()=>u.data.value?e.unref(s)(u.data.value):void 0)},[u.data.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(u.data.icon)},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(u.data.label),1),u.data.children&&(e.unref(o)||i.value)?(e.openBlock(),e.createElementBlock("menu",{key:1,class:e.normalizeClass(["absolute left-100% top-0 ml-2 w-64 border border bg-surface bg-surface p-2",e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.data.children,(p,g)=>(e.openBlock(),e.createBlock(d,{key:g,data:p,idx:[...u.idx,g]},null,8,["data","idx"]))),128))],6)):e.createCommentVNode("",!0)],38)}}}),co={key:0,class:"relative flex justify-center"},uo=e.defineComponent({__name:"Menu",props:e.mergeModels({rounded:{default:"md"},enterActiveClass:{default:"animate-keyframes-zoom-in animate-duration-0.1s"},leaveActiveClass:{default:"animate-keyframes-zoom-out animate-duration-0.1s"},items:{}},{modelValue:{type:Boolean,default:void 0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=e.useModel(t,"modelValue"),l=e.computed(()=>a.value),[c,i]=Un(),s=e.computed(()=>l.value===void 0?c.value:l.value),u=O(n),f=e.ref(null),d=e.ref(null),p=e.ref(null);N(d,"pointerup",y=>{y.stopPropagation(),y.preventDefault(),i()}),qe(p,()=>{i(!1)});const g=e.ref([-1]);e.watchEffect(()=>{s.value||(g.value=[-1])}),e.provide("menuCurrentIdx",g);function v(y,m){if(m.length<=1)return y.length;const b=y[m[0]].children;return b===void 0?0:v(b,m.slice(1))}const h=e.computed(()=>n.items===void 0?0:v(n.items,g.value));Y("ArrowDown",y=>{var _;if(!s.value)return;y.preventDefault();const m=g.value;let S=(m[m.length-1]+1)%h.value;for(;(_=w(n.items,[...m.slice(0,m.length-1),S]))!=null&&_.render;)S=(S+1)%h.value;g.value=[...m.slice(0,m.length-1),S]}),Y("ArrowUp",y=>{var _;if(!s.value)return;y.preventDefault();const m=g.value,b=m[m.length-1];if(b===-1&&m.length===1){g.value=[h.value-1];return}let S=(b-1+h.value)%h.value;for(;(_=w(n.items,[...m.slice(0,m.length-1),S]))!=null&&_.render;)S=(S-1+h.value)%h.value;g.value=[...m.slice(0,m.length-1),S]}),Y("ArrowRight",y=>{if(s.value&&(y.preventDefault(),g.value[g.value.length-1]!==-1)){let m=n.items;for(let b=0;b<g.value.length;b++){if(m===void 0)return;m=m[g.value[b]].children}m!==void 0&&(g.value=[...g.value,0])}}),Y("ArrowLeft",y=>{s.value&&(y.preventDefault(),g.value.length>0&&(g.value=g.value.slice(0,g.value.length-1)))});function w(y,m){if(m.length===0)return;let b=y;for(let S=0;S<m.length-1;S++){if(b===void 0)return;b=b[m[S]].children}if(b!==void 0)return b[m[m.length-1]]}return e.provide("selectMenuItem",y=>{o("select",y),i(!1)}),Y("Enter",y=>{var b;if(!s.value)return;y.preventDefault();const m=(b=w(n.items,g.value))==null?void 0:b.value;m&&(o("select",m),i(!1))}),(y,m)=>{const b=jt;return e.openBlock(),e.createElementBlock("div",{ref_key:"menuWrapperRef",ref:f,class:"relative inline-block"},[e.createElementVNode("div",{ref_key:"menuTriggerRef",ref:d,class:"inline-block"},[e.renderSlot(y.$slots,"default",{ref_key:"menuTriggerRef",ref:d})],512),e.createVNode(e.Transition,{"enter-active-class":n.enterActiveClass,"leave-active-class":n.leaveActiveClass},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("menu",co,[e.createElementVNode("div",{ref_key:"menuDropdownRef",ref:p,class:e.normalizeClass([[e.unref(u).class],"absolute mt-2 w-64 border bg-surface p-2"]),style:e.normalizeStyle([e.unref(u).style])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(S,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[S.render?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.render),{key:0})):(e.openBlock(),e.createBlock(b,e.mergeProps({key:1,data:S,ref_for:!0},n,{idx:[_]}),null,16,["data","idx"]))],64))),128))],6)])):e.createCommentVNode("",!0)]),_:1},8,["enter-active-class","leave-active-class"])],512)}}}),ct=e.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.computed(()=>r.loading),a=O(r),{x:l,y:c}=Ie({type:"client"}),i=e.ref(null),{width:s,height:u,top:f,left:d}=oe(i),p=e.computed(()=>Math.min(s.value,u.value)),g=e.computed(()=>!s.value||!u.value?[]:o.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let v;const h=e.computed(()=>ae(n.value).value[5]),w=e.computed(()=>{var m;return r.loading?(v?v.play():v=(m=i.value)==null?void 0:m.animate(g.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":h.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(v&&v.pause(),{background:"var(--r-surface-background-color)"})}),y=e.computed(()=>{if(r.traceAnimate){const m=e.computed(()=>({x:d.value+s.value/2,y:f.value+u.value/2})),b=e.computed(()=>{if(l.value<d.value||l.value>d.value+s.value||c.value<f.value||c.value>f.value+u.value)return{x:l.value,y:c.value};const S=m.value.x,_=m.value.y;let B,k;const E=(c.value-_)/(l.value-S);return l.value<S?(B=d.value,k=_+E*(d.value-S)):(B=d.value+s.value,k=_+E*(B-S)),k<f.value?(k=f.value,B=S+(k-_)/E):k>f.value+u.value&&(k=f.value+u.value,B=S+(k-_)/E),{x:B,y:k}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${b.value.x-d.value}px ${b.value.y-f.value}px, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(m,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.is),e.mergeProps({ref_key:"paperRef",ref:i,class:["relative border",[{"p-4":!m.noPadding},e.unref(a).class]],style:[e.unref(a).style,w.value,y.value]},m.withBorder&&!m.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},16,["class","style"]))}}),fo={key:0,class:"text-lg"},mo={key:0},po=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},title:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,a)=>{const l=ct,c=it;return e.openBlock(),e.createBlock(c,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=i=>n.value=i),blur:r.blur,persistent:r.persistent,"wrapper-class":"flex justify-center items-end md:items-start md:pt-5%"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.$slots.default?e.renderSlot(o.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(l,{key:1,"with-border":"",class:"w-full flex flex flex-col gap-2 md:w-md"},{default:e.withCtx(()=>[o.title||o.$slots.title?(e.openBlock(),e.createElementBlock("div",fo,[o.title?(e.openBlock(),e.createElementBlock("div",mo,e.toDisplayString(o.title),1)):e.renderSlot(o.$slots,"title",{key:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"body")]),e.renderSlot(o.$slots,"footer")]),_:3}))],64)):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),Xt=e.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),o=e.computed(()=>r.color),a=Be(o),l=_e("bg",{dark:7,light:3}),c=O(r);return(i,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[n.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(l)),[i.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(a)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(a),{style:[{width:`${(Number(i.value)-Number(i.min))/(Number(i.max)-Number(i.min))*100}%`}]}),null,16))],16))}}),ho={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},go={key:1},yo={class:"grow-1"},bo={key:1,class:"i-fluent-dismiss-12-filled"},Ut=e.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"},complete:{},total:{default:100}},emits:["close"],setup(t){const r=t,n=O(r),o=e.computed(()=>r.color),a=Be(o),l=Rt(o),c=Pe(),i=e.computed(()=>{switch(r.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(s,u)=>{const f=Oe,d=Xt;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["overflow-hidden",[{"border-0":!s.withBorder},e.unref(n).class,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(n).style]},e.unref(c)),[e.createElementVNode("div",{class:e.normalizeClass(["relative min-w-80 w-full flex items-center gap-2 pl-4",[i.value,e.unref(l).class]])},[s.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([[e.unref(l).class],"leading-0"]),style:e.normalizeStyle(e.unref(l).style)},[s.loading?(e.openBlock(),e.createElementBlock("i",ho)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))],6)):(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",e.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":s.loading}]]},e.unref(a)),null,16)])),e.createElementVNode("div",yo,[s.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",[{"text-xs":s.size==="sm","text-sm":s.size==="md","text-base":s.size==="lg"},e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},e.toDisplayString(s.title),7)):e.createCommentVNode("",!0),s.$slots.message?e.renderSlot(s.$slots,"message",{key:1}):s.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["text-surface-dimmed",{"text-xs":s.size==="sm","text-sm":s.size==="md"||s.size==="lg"}])},e.toDisplayString(s.message),3)):e.createCommentVNode("",!0)]),s.closeable?(e.openBlock(),e.createBlock(f,{key:2,icon:"",variant:"transparent",color:"white",onClick:u[0]||(u[0]=p=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",bo))]),_:3})):e.createCommentVNode("",!0)],2),s.complete?(e.openBlock(),e.createBlock(d,{key:0,value:s.complete,max:s.total},null,8,["value","max"])):e.createCommentVNode("",!0)],16)}}}),ko={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},wo=["data-hash"],So=e.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},progress:{type:Boolean,default:!0},topN:{default:3},gap:{default:8},pt:{default:8},pl:{default:8},pr:{default:8},pb:{default:8}},setup(t){const r=t,n=je(r.topN),o=e.ref([]),a=e.computed(()=>o.value.map(m=>m.getBoundingClientRect())),l=je(),c=e.shallowRef({});e.watch([o.value],()=>{for(const m of o.value){const b=m.dataset.hash;if(b&&!c.value[b]){const S=le(m,{});c.value[b]=S}}}),r.progress&&Kn(({delta:m})=>{l.value=l.value.map(b=>c.value[b.hash]&&c.value[b.hash].value||!n.value.includes(b)?b:{...b,durationMS:b.durationMS-m}).filter(b=>b.durationMS>0)},{});const i=e.computed(()=>{const m={"top-left":0,"top-right":0,top:0,"bottom-left":0,"bottom-right":0,bottom:0};return n.value.map((b,S)=>{const _=b.position||r.position,B=m[_];return a.value[S]&&(m[_]+=a.value[S].height+r.gap),B})});function s(m){return["top-left","top-right","top"].includes(m)}function u(m=0,b){return b||(b=r.position),s(b)?{top:`${m+r.pt}px`}:{bottom:`${m+r.pb}px`}}function f(m){return m.includes("right")?{transform:"translateX(-100%)"}:m.includes("left")?{}:{transform:"translateX(-50%)"}}function d(m){return m.includes("right")?{right:`${r.pr}px`}:m.includes("left")?{left:`${r.pl}px`}:{left:"50%"}}function p(m){return m.includes("top")?{top:`${r.pt}px`}:{bottom:`${r.pb}px`}}const g=function(m){return s(m)?"animate-keyframes-fade-in-down animate-duration-0.3s":"animate-keyframes-fade-in-up animate-duration-0.3s"},v=function(m){return s(m)?"animate-keyframes-fade-out-down animate-duration-0.3s":"animate-keyframes-fade-out-up animate-duration-0.3s"};function h(m){n.value.indexOf(m)!==-1&&(l.value=l.value.filter(S=>S.hash!==m.hash))}function w(m){if(!m.durationMS||m.durationMS<=0)return 0;const b=m.durationMS,S=m.initialDurationMS;return(S-b)/S}const y=["top-left","top-right","top","bottom-left","bottom-right","bottom"];return(m,b)=>{const S=Ut;return e.openBlock(),e.createElementBlock("div",ko,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,_=>e.createElementVNode("div",{key:_,style:e.normalizeStyle([p(_),d(_)]),class:"absolute"},[e.createVNode(e.TransitionGroup,{"enter-active-class":g(_),"leave-active-class":v(_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(B,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B.hash},[B.position===_?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute transition-top,bottom,transform duration-0.3s",style:e.normalizeStyle([u(i.value[k],B.position)])},[e.createElementVNode("div",{ref_for:!0,ref_key:"notificationRefs",ref:o,"data-hash":B.hash,style:e.normalizeStyle([f(_),u(i.value[k],B.position)])},[e.createVNode(S,{"with-border":"",closeable:"",title:B.title,message:B.message,icon:B.icon,loading:B.loading,color:B.color,complete:m.progress?w(B)*100:void 0,onClose:E=>h(B)},null,8,["title","message","icon","loading","color","complete","onClose"])],12,wo)],4)):e.createCommentVNode("",!0)],64))),128))]),_:2},1032,["enter-active-class","leave-active-class"])],4)),64))])}}}),vo={class:"relative"},Yt=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const r=t,n=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=O(r),a=e.ref(null),l=M(r.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${l.r}, ${l.g}, ${l.b}, ${r.opacity/100})`}));return(i,s)=>(e.openBlock(),e.createElementBlock("div",vo,[e.renderSlot(i.$slots,"default"),e.createElementVNode("div",e.mergeProps(i.$attrs,{ref_key:"wrapperRef",ref:a,class:[[n.value,e.unref(o).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[e.unref(o).style,c.value]}),[e.renderSlot(i.$slots,"content")],16)]))}}),xo=["for"],Co={key:1},Bo=["id","disabled","placeholder","type"],Gt=e.defineComponent({__name:"TextField",props:e.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:r}){const n=t,o=e.useModel(t,"modelValue"),a=e.computed(()=>{switch(n.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),l=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>n.color),i=st(c),s=e.computed(()=>n.disabled?"pointer-events-none select-none filter opacity-60":""),u=O(n),f=e.ref(null);r({el:f});const d=e.useAttrs(),p=Re(d);return(g,v)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(i)])},[g.$slots.label||g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[l.value]])},[g.$slots.label?e.renderSlot(g.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",Co,e.toDisplayString(g.label),1))],10,xo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},g.$attrs,{ref_key:"input",ref:f,"onUpdate:modelValue":v[0]||(v[0]=h=>o.value=h),disabled:g.disabled,class:["w-full border px-2 py-1 outline-none custom-input-colors",[s.value,e.unref(u).class,a.value.base]],style:[e.unref(u).style],placeholder:g.placeholder,type:n.password?"password":"text"}),null,16,Bo),[[e.vModelDynamic,o.value]])],4))}}),_o={class:"flex gap-2"},Eo=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const r=t,n=e.ref([]);function o(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(f=>f.el===i.target),u=i.target.value??"";i.target.value="",Array.from(u).forEach((f,d)=>{s+d>=n.value.length||(n.value[s+d].el.value=f,s+d+1<n.value.length?(n.value[s+d+1].el.focus(),n.value[s+d+1].el.select()):n.value[s+d].el.blur())})}function a(i){i.preventDefault(),i.stopPropagation();const s=i.target.value!=="";i.target.value="";const u=n.value.findIndex(f=>f.el===i.target);u!==0&&(n.value[u-1].el.focus(),n.value[u-1].el.select(),s||(n.value[u-1].el.value=""))}function l(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(u=>u.el===i.target);s>0&&(n.value[s-1].el.focus(),n.value[s-1].el.select())}function c(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(u=>u.el===i.target);s<n.value.length-1&&(n.value[s+1].el.focus(),n.value[s+1].el.select())}return(i,s)=>(e.openBlock(),e.createElementBlock("div",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.length,u=>(e.openBlock(),e.createBlock(Gt,{ref_for:!0,ref_key:"inputs",ref:n,key:u,class:"w-8 text-center",style:{padding:"0"},password:r.password,onPointerup:s[0]||(s[0]=f=>f.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(a,["backspace"]),e.withKeys(l,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),Mo=e.defineComponent({__name:"Popover",props:e.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.ref(null),o=e.ref(null),a=oe(n),l=oe(o),c=e.computed(()=>{switch(r.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),i=e.computed(()=>{switch(r.position){case"top-start":case"top-end":return{top:`${-l.height.value-r.offset}px`};case"top":return{top:`${-l.height.value-r.offset}px`,left:`${-l.width.value/2+a.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${r.offset}px`};case"bottom":return{top:`${a.height.value+r.offset}px`,left:`${-l.width.value/2+a.width.value/2}px`};case"left-start":return{left:`${-l.width.value-r.offset}px`,top:0};case"left-end":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value+a.height.value}px`};case"left":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value/2+a.height.value/2}px`};case"right-start":return{left:`${r.offset+a.width.value}px`,top:0};case"right-end":return{left:`${r.offset+a.width.value}px`,top:`${-l.height.value+a.height.value}px`};case"right":return{left:`${a.width.value+r.offset}px`,top:`${-l.height.value/2+a.height.value/2}px`};default:return{}}}),s=le(n),u=e.useModel(t,"modelValue"),f=e.computed(()=>r.trigger==="hover"?s.value:u.value);function d(p){var g;!((g=n.value)!=null&&g.contains(p.target))||p.target===n.value||(u.value=!u.value)}return qe(o,p=>{var g;(g=n.value)!=null&&g.contains(p.target)?u.value=!0:u.value=!1}),(p,g)=>{const v=Yt;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:n,class:"relative"},[e.createElementVNode("div",{onPointerup:d},[e.renderSlot(p.$slots,"default")],32),f.value&&p.overlay?(e.openBlock(),e.createBlock(v,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:g[0]||(g[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:o,class:e.normalizeClass([c.value,"absolute children:w-max"]),style:e.normalizeStyle([i.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),$o=["onMouseover","onPointerdown"],zo="#ffeb91",Vo="text-[var(--d-text)]",Ao="text-surface-dimmed",To="text-[var(--d-text-h)]",No="i-fluent-star-12-filled",Ho="i-fluent-star-12-filled",Io=e.defineComponent({__name:"Rating",props:e.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=e.computed(()=>n.count??5),l=e.useModel(t,"modelValue"),c=e.computed(()=>n.highlightSelectedOnly??!1),i=e.computed(()=>n.unselectable??!1),s=e.ref(-1),u=e.computed(()=>f(n.icons,a.value,No,Ho));function f(m,b,S,_){function B(E){return typeof E=="string"?{active:E,normal:E}:E===void 0?{active:_,normal:S}:{active:E.active||_,normal:E.normal||S}}if(m===void 0)return Array.from({length:b},()=>({active:_,normal:S}));let k;if(typeof m=="string")k={active:m,normal:m};else if(Array.isArray(m)){const E=m.map(V=>B(V));return E.length===1?(k=E[0],Array.from({length:b},()=>({...k}))):E.slice(0,b).concat(Array.from({length:Math.max(0,b-E.length)},()=>({active:_,normal:S})))}else k={active:m.active||_,normal:m.normal||S};return Array.from({length:b},()=>({...k}))}function d(m){return c.value?s.value!==-1?s.value===m+1:l.value===m+1:s.value!==-1?s.value>m:l.value>=m+1}function p(m){const b=u.value[m].normal,S=u.value[m].active;return d(m)?[c.value?To:Vo,S]:[Ao,b]}const v=e.computed(()=>{if(typeof n.color=="string")return Array.from({length:a.value}).map(()=>n.color);const m=Array.from({length:a.value}).map(()=>zo);return n.color.forEach((b,S)=>{b&&(m[S]=b)}),m}).value.map(m=>xe("filled",m)),h=L({color:"surface",type:"text",index:{dark:6,light:4}});function w(m){l.value===m&&i.value?(o("select",0),l.value=0):(o("select",m+1),l.value=m+1)}const y=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(m,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",y.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"pr-1",onMouseover:B=>s.value=_+1,onMouseleave:b[0]||(b[0]=B=>s.value=-1),onPointerdown:B=>w(_)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},d(_)?e.unref(v)[_].value:e.unref(h),{class:["active:translate-y-1px",[p(_)]]}),null,16)],40,$o))),128))],2))}}),Ro=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:rt.value})}},setup(t){const r=t,n=Tt(),o=e.computed(()=>r.themes[r.theme]);e.watchEffect(()=>{te.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:te.value,ue.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ue.value,de.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:de.value,fe.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:fe.value,me.value=typeof o.value.colors.error=="string"?o.value.colors.error:me.value});const a=e.ref(null),l=e.computed(()=>Qe({colors:{surface:te.value,primary:ue.value,secondary:de.value,tertiary:fe.value,error:me.value},name:o.value.name}));return e.provide(At,n),e.provide("currentThemeData",e.computed(()=>o.value)),to(a),(c,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:a,style:e.normalizeStyle([l.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),Do=["id"],Po=["for"],Lo=["for"],qt=e.defineComponent({inheritAttrs:!1,__name:"Switch",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");r.value&&(n.value=r.value);const o=e.ref(null),a=e.ref(!1),l=e.computed(()=>{switch(r.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:a.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:a.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:a.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:a.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:a.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:a.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>r.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),i=Re(r),s=_e("bg",{dark:7,light:3}),u=Ve(r.color,"bg",5),f=Ve(r.color,"text",5),d=e.computed(()=>({wrapper:n.value?[u.value.class]:[s.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:n.value?u.value.style:s.value.style,indicator:n.value?{}:""})),g=O(r),v=e.computed(()=>r.color),h=at(v),w=e.ref(null);return N(w,"keydown",y=>{(y.key==="Enter"||y.key===" ")&&(n.value=!n.value)}),(y,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,role:"switch",tabindex:"0",class:e.normalizeClass(["relative flex items-center gap-2 outline-none",[e.unref(h).class,e.unref(g).class,{"pointer-events-none filter-grayscale op-60":r.disabled}]]),style:e.normalizeStyle([e.unref(h).style,e.unref(g).style])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(i),"onUpdate:modelValue":m[0]||(m[0]=b=>n.value=b)},y.$attrs,{class:"hidden",type:"checkbox"}),null,16,Do),[[e.vModelCheckbox,n.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(i)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[l.value.wrapper,...d.value.wrapper,e.unref(g).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(g).style,p.value.wrapper]),onPointerdown:m[1]||(m[1]=b=>a.value=!0),onPointerup:m[2]||(m[2]=b=>a.value=!1),onPointerleave:m[3]||(m[3]=b=>a.value=!1),onPointerenter:m[4]||(m[4]=b=>b.buttons===1&&(a.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[l.value.indicator,d.value.indicator,c.value.indicator,n.value?l.value.active:l.value.inactive,e.unref(g).class]]),style:e.normalizeStyle([e.unref(g).style,p.value.indicator])},[e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 ","enter-to-class":"scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100","leave-to-class":"scale-0"},{default:e.withCtx(()=>[r.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[r.indicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):n.value&&r.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[r.onIndicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):!n.value&&r.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[r.offIndicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):e.createCommentVNode("",!0)]),_:1})],6),e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 rotate-50","enter-to-class":"scale-100 rotate-0","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100 rotate-0","leave-to-class":"scale-0 rotate-50 "},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{[`left-0 text-${y.color}-on-container-low`]:n.value,[y.onIcon??""]:n.value&&y.onIcon,[y.offIcon??""]:!n.value&&y.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{"right-0":!n.value,[y.onIcon??""]:n.value&&y.onIcon,[y.offIcon??""]:!n.value&&y.offIcon}]])},null,2))]),_:1})],38)],8,Po),y.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(i)},e.toDisplayString(y.label),9,Lo)):e.createCommentVNode("",!0)],6))}}),Oo={class:"scheme-switch inline-block"},Fo={class:"dark:hidden"},Wo={class:"light:hidden"},jo=e.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const r=t,n=e.ref(!1);let o;N("click",c=>o=c),e.watch([n],()=>{if(re){const c=(o==null?void 0:o.clientX)??innerWidth/2,i=(o==null?void 0:o.clientY)??innerHeight/2,s=Math.hypot(Math.max(c,innerWidth-c),Math.max(i,innerHeight-i));if(r.disableViewTranslation)document.documentElement.setAttribute("data-scheme",n.value?"dark":"light"),localStorage.setItem("scheme",n.value?"dark":"light");else{const u=document.startViewTransition(()=>{n.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});r.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${c}px ${i}px)`,`circle(${s}px at ${c}px ${i}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const a=e.ref(!0),l=e.ref(!1);return e.onMounted(()=>{re&&(n.value=localStorage.getItem("scheme")==="dark"),a.value=!1}),e.nextTick(()=>{l.value=!0}),(c,i)=>{const s=qt;return e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!a.value})},[e.createElementVNode("div",Fo,[e.createVNode(s,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Wo,[e.createVNode(s,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),e.createElementVNode("div",{class:e.normalizeClass({hidden:a.value})},[e.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=u=>n.value=u),animate:l.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)])}}}),Xo=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:r}){const n=t,o=Et(),a=oe(o),l=e.ref(),c=oe(()=>l.value),i=e.computed(()=>{if(n.height)return typeof n.height=="number"?`${n.height}px`:n.height;const $=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,H=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return`${a.height.value-$-H}px`}),s=e.ref(),u=$t(()=>s.value),{x:f,y:d}=ir(()=>s.value),p=e.computed(()=>{var $;return((($=s.value)==null?void 0:$.scrollHeight)??0)-(u.value??0)}),g=Mt(()=>s.value),v=e.computed(()=>d.value/p.value||0),h=e.computed(()=>s.value?u.value/g.value*u.value:0),w=e.computed(()=>u.value-h.value),y=e.computed(()=>{if(!s.value)return null;const $=v.value*w.value;return{x:f.value,y:d.value,barHeight:h.value,barTop:$}}),m=e.ref(!1),b=e.ref(0),S=e.ref(""),_=e.ref(0),B=Ie({type:"client"});N(()=>l.value,"pointerdown",$=>{m.value=!0,b.value=$.clientY,_.value=d.value,S.value=document.body.style.userSelect,document.body.style.userSelect="none"}),N(()=>document,"pointermove",()=>{if(!m.value)return;if(n.threshold<c.left.value-B.x.value||B.x.value-c.right.value>n.threshold){d.value=_.value;return}const H=(B.y.value-b.value)/w.value;d.value=_.value+H*p.value}),N(()=>document,"pointerup",()=>{m.value=!1,document.body.style.userSelect=S.value}),r({$el:s});const k=e.ref(),E=le(k),V=le(()=>l.value),C=_e("bg",{dark:2,light:7},.5),z=_e("bg",{dark:2,light:7},.75);function T($){var he;const{clientY:H}=$,{top:I,height:q}=c,A=I.value,P=q.value,U=A+P/2,ee=H-U;(he=s.value)==null||he.scrollBy({top:ee/P*u.value,behavior:"smooth"})}return($,H)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:k,style:e.normalizeStyle({height:i.value}),class:"relative max-h-fit overflow-hidden"},[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${$.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:T},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:l,class:e.normalizeClass([[e.unref(C).class,{"op-0":!e.unref(E)&&$.autoHide,"op-100":e.unref(E)&&$.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:e.normalizeStyle([{right:"0px",width:`${$.barWidth}px`,top:`${y.value.barTop}px`,height:`${y.value.barHeight}px`},!e.unref(V)&&!m.value&&e.unref(C).style,(e.unref(V)||m.value)&&e.unref(z).style])},null,6),[[e.vShow,y.value.barHeight<e.unref(u)]])],36)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:s,style:e.normalizeStyle({paddingRight:`${$.floating?0:$.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot($.$slots,"default")],4)],4))}}),Uo={class:"w-full flex items-center"},Yo=["placeholder","readonly","value","aria-label"],Go={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},qo=["onPointerdown","onMousemove"],Ko={key:0},Jo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Zo=e.defineComponent({__name:"Select",props:e.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,r)=>t.includes(r)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=O(n),l=e.useModel(t,"modelValue"),c=e.ref(null),i=e.ref(null),s=e.ref(!1);qe(i,()=>{s.value=!1});const u=e.ref(-1),f=e.ref(-1);e.watchEffect(()=>{s.value||(f.value=-1)}),e.watch(l,()=>{o("change",l.value)});const d=e.computed(()=>l.value),p=e.computed(()=>h(d.value)),g=e.computed(()=>n.options.findIndex(A=>z(A,d.value))),v=e.ref(p.value);e.watch(p,()=>{v.value=p.value});function h(A){return A?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?String(A):A.label?A.label:A.id:""}function w(A){if(A)return typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A:A.id}function y(A){s.value=!0;const P=A.target;v.value=P.value,o("input",v.value)}const m=e.computed(()=>n.searchable&&v.value!==p.value?n.options.filter(A=>n.filter(h(A),v.value)):n.options);Y("ArrowDown",A=>{s.value&&(A.preventDefault(),f.value===-1&&u.value!==-1?f.value=u.value:f.value===-1&&u.value===-1&&g.value!==-1&&(f.value=g.value),f.value=(f.value+1)%n.options.length)}),Y("ArrowUp",A=>{s.value&&(A.preventDefault(),f.value===-1&&u.value!==-1?f.value=u.value:f.value===-1&&u.value===-1&&g.value!==-1&&(f.value=g.value),f.value=(f.value-1+n.options.length)%n.options.length)}),Y("Enter",()=>{s.value&&f.value!==-1&&(l.value=m.value[f.value],c.value.focus(),s.value=!1)});function b(A){if(c.value.focus(),!s.value){s.value=!0;return}l.value=A,s.value=!1}const S=e.computed(()=>n.color),_=st(S,"default"),B=e.computed(()=>{switch(n.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),k=e.ref(null),{height:E}=oe(k),{bottom:V}=oe(c);e.watch([s],()=>{f.value=-1,u.value=-1});const C=e.computed(()=>s.value&&re?E.value===0?!1:document.documentElement.clientHeight-V.value>E.value:!1);function z(A,P){return P?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A===P:typeof P=="string"||typeof P=="symbol"||typeof P=="number"?!1:A.id===P.id:!1}const T=e.computed(()=>n.searchable?"cursor-text":"cursor-pointer"),$=Pe(),H=lt(),I=Be(S);function q(A){u.value=A,f.value=-1}return(A,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:i,class:"relative",style:e.normalizeStyle(e.unref(_))},[e.createElementVNode("div",Uo,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[B.value.wrapper,e.unref(a).class,T.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:A.placeholder,style:e.normalizeStyle([e.unref(a).style,e.unref(_)]),readonly:!A.searchable,value:v.value,"aria-label":A.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:y,onClick:P[0]||(P[0]=U=>s.value=!0)},null,46,Yo),P[2]||(P[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:k,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref($).class,B.value.dropdown,{"bottom-10":!C.value}]]),style:e.normalizeStyle([e.unref($).style])},[A.options.length===0?(e.openBlock(),e.createElementBlock("div",Go,[e.renderSlot(A.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(A.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(U,ee)=>(e.openBlock(),e.createElementBlock("div",{key:w(U),class:e.normalizeClass([[f.value===ee&&e.unref(I).class,u.value===ee&&f.value===-1&&e.unref(H).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([f.value===ee&&e.unref(I).style,u.value===ee&&f.value===-1&&e.unref(H).style]),onPointerdown:he=>b(U),onMousemove:he=>q(ee),onMouseleave:P[1]||(P[1]=he=>u.value=-1)},[e.renderSlot(A.$slots,"item",{data:U,selected:z(U,d.value)},()=>[e.createTextVNode(e.toDisplayString(h(U)),1)]),z(U,d.value)?(e.openBlock(),e.createElementBlock("div",Ko,P[3]||(P[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,qo))),128)),A.searchable&&m.value.length===0?(e.openBlock(),e.createElementBlock("div",Jo,[e.renderSlot(A.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(A.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Qo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:r}){const n=t,o=r,a=e.computed(()=>n.color),l=ae(a),c=e.computed(()=>{const y=l.value[5].setAlpha(.5).toHex8String(),m=l.value[5].setAlpha(.1).toHex8String();return{"--border-color":y,"--fill-color":m}}),{shift:i,control:s}=ur(),u=Et(),f=e.computed(()=>n.target??u.value),d=Ie(),p=e.ref({x:0,y:0}),g=e.ref({x:0,y:0}),v=e.ref(!1),h=oe(f);N(f,"pointerdown",y=>{if(y.button!==0)return;const m=y.pageX-h.left.value,b=y.pageY-h.top.value;p.value={x:m,y:b},g.value={x:m,y:b},v.value=!0,o("selectStart",{target:y.target,shift:i.value,ctrl:s.value})},{capture:!0}),N(window,"pointerup",y=>{v.value=!1,o("selectEnd",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value})}),N(f,"pointermove",y=>{const m=y.pageX-h.left.value,b=y.pageY-h.top.value;v.value&&(g.value={x:m,y:b},o("selectChange",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value}))});const w=e.computed(()=>f.value?f.value.parentElement:null);return N(w,"scroll",y=>{v.value&&(g.value={x:d.x.value-h.left.value,y:d.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value}))}),N(window,"dragend",()=>{v.value=!1}),(y,m)=>f.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:f.value},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:e.normalizeStyle([{left:`${Math.min(p.value.x,g.value.x)}px`,top:`${Math.min(p.value.y,g.value.y)}px`,width:`${Math.abs(p.value.x-g.value.x)}px`,height:`${Math.abs(p.value.y-g.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),el={class:"relative w-full"},tl="dark:bg-white bg-[var(--i-bg)]",nl="dark:bg-[var(--i-bg)] bg-white",rl=e.defineComponent({__name:"Slider",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t;function n(B,k,E){const V=[];for(let C=B;C<=k;C+=E)V.push(C);return V[V.length-1]!==k&&V.push(k),V}function o(B,k){const E=[];if(B===0)return E;E.push(k[0]);const V=(k.length-1)/(B-1);for(let C=1;C<B-1;C++)E.push(k[Math.round(C*V)]);return E.push(k[k.length-1]),E}const a=e.computed(()=>r.options?r.options.length:r.tickNum??0),l=e.computed(()=>r.options===void 0?n(r.min,r.max,r.step):r.options),c=e.computed(()=>o(a.value,l.value)),i=e.useModel(t,"modelValue"),s=e.computed(()=>l.value.length??0),u=e.ref(l.value.includes(i.value)?l.value.indexOf(i.value):0);function f(B){let k=l.value.indexOf(B);if(k===-1)if(typeof B=="number"){let E=1/0;for(let V=0;V<l.value.length;V++){const C=Math.abs(l.value[V]-B);C<E&&(E=C,k=V)}}else k=0;return k}const d=e.computed(()=>r.color),p=ae(d.value),g=e.computed(()=>p.value[4]),v=Be(d);e.watchEffect(()=>{u.value<0||(i.value=l.value[u.value])}),e.watchEffect(()=>{u.value=f(i.value)});const h=e.ref(),w=e.ref(),y=e.ref(!1);function m(B){if(!y.value)return;if(!(B.buttons===1)){y.value=!1;return}B.preventDefault(),B.stopPropagation();const E=oe(h),{clientX:V}=B,C=E.left.value,T=E.right.value-C,$=Math.round((V-C)/T*(s.value-1));if($<0){u.value=0;return}if($>s.value-1){u.value=s.value-1;return}u.value=$}e.watchEffect(()=>{u.value=f(i.value)});function b(B){B.preventDefault(),B.stopPropagation(),y.value=!0,m(B)}N(h,"pointerdown",b),e.onMounted(()=>{N(document,"pointermove",m),u.value=Math.max(0,f(i.value))});const S=e.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),_=e.computed(()=>r.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(B,k)=>(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",S.value.wrapper]),onTouchmove:k[0]||(k[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",S.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",S.value.content]),style:e.normalizeStyle({width:`${r.width}rem`,minWidth:`${r.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E,style:e.normalizeStyle({left:`${f(E)/(s.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",S.value.tick])},null,6))),128)),u.value!==-1?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"indicator",ref:w,class:e.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[S.value.indicator,_.value.indicator,tl]]),style:e.normalizeStyle([`--i-bg: ${g.value}`,{left:`${u.value/(s.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[S.value.indicatorInner,nl]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(v).class,S.value.progress,_.value.progress]]),style:e.normalizeStyle([e.unref(v).style,{width:`${u.value/(s.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"relative mx-1 h-1em text-xs text-surface-dimmed",style:e.normalizeStyle({width:`${r.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(E,V)=>(e.openBlock(),e.createElementBlock("div",{key:V,style:e.normalizeStyle({left:`${f(E)/(s.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",S.value.tick])},e.toDisplayString(E),7))),128))],4)):e.createCommentVNode("",!0)]))}}),ol={class:"h-full py-2"},ll=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.inject(Xe,e.ref("")),a=e.ref(null),l=e.computed(()=>o.value===r.value);function c(){o.value=r.value}const i=e.inject(Ye,new Map);e.onMounted(()=>{i.set(r.value,a)});const s=e.inject(Ue,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(s.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),f=e.computed(()=>{switch(s.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),d=L({color:n.value,type:"bg",index:5}),p=L({color:n.value,type:"outline",index:5});return(g,v)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:a,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},e.unref(p),{onClick:c}),[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(d).class,f.value]),style:e.normalizeStyle([e.unref(d).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([f.value])},null,2)),e.createElementVNode("div",ol,[e.renderSlot(g.$slots,"default")])],16))}}),al=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useSlots(),o=e.computed(()=>{var d;const u=(d=n.default)==null?void 0:d.call(n);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g.value)!==void 0}).map(p=>p.props.value))??[]}),a=e.useModel(t,"modelValue");!a.value&&o.value.length>0&&(a.value=o.value[0]);const l=e.ref(null);e.onMounted(()=>{r.defaultValue&&(a.value=r.defaultValue)}),e.provide(Xe,a);const c=e.computed(()=>r.direction);e.provide(Ue,c);const i=new Map;e.provide(Ye,i),Y("ArrowLeft",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const f=a.value?o.value.indexOf(a.value):0,d=f>0?o.value[f-1]:o.value[o.value.length-1];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowRight",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const f=a.value?o.value.indexOf(a.value):0,d=f<o.value.length-1?a.value=o.value[f+1]:a.value=o.value[0];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowUp",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const f=a.value?o.value.indexOf(a.value):0,d=f>0?o.value[f-1]:o.value[o.value.length-1];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowDown",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const f=a.value?o.value.indexOf(a.value):0,d=f<o.value.length-1?o.value[f+1]:o.value[0];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}});const s=e.computed(()=>{switch(r.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:l,class:e.normalizeClass(["flex",[s.value]])},[e.renderSlot(u.$slots,"default")],2))}}),sl=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),o=O(r),a=e.computed(()=>r.color??"primary"),l=e.computed(()=>r.variant),c=Le(l,a);return(i,s)=>(e.openBlock(),e.createElementBlock("span",{tabindex:-1,style:e.normalizeStyle([e.unref(c).style,e.unref(o).style]),class:e.normalizeClass([[e.unref(c).class,e.unref(o).class,n.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[r.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([r.leftIcon,"shrink-0"])},null,2)):i.$slots.leftIcon?e.renderSlot(i.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),r.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([r.rightIcon,"h-container w-container shrink-0"])},null,2)):i.$slots.rightIcon?e.renderSlot(i.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),il=["data-scheme","data-theme"],cl=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const r=t,n=zt(),o=e.computed(()=>Qe(r.theme?r.theme:n.value)),a=_t("scheme","light"),l=e.computed(()=>r.scheme?r.scheme:a.value);return(c,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":l.value,"data-theme":e.unref(n).name},[e.renderSlot(c.$slots,"default")],12,il))}}),ul=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const r=t,n=Ie(),o=e.ref(null),a=le(o),l=Fn(a,r.timeout),c=e.ref(0),i=e.ref(0),s=e.ref(null),u=le(s);return e.watch(l,(f,d)=>{l.value&&f!==d&&(c.value=n.x.value,i.value=n.y.value)}),(f,d)=>{const p=ct;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(f.$slots,"default")],512),c.value&&i.value&&(e.unref(l)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:s,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${i.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}}),dl='before:absolute before:left-4 before:h-full before:border-r before:content-[""]',ut="relative h-8 py-1 w-full flex items-center gap-2 cursor-pointer focus-visible:outline-none focus-visible:bg-surface-variant-1",fl=e.defineComponent({__name:"TreeList",props:e.mergeModels({items:{},rounded:{default:"md"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=O(r),o=e.useModel(t,"modelValue");function a(h){return"children"in h}function l(h){return"value"in h}const c=e.computed(()=>`${ut} hover:bg-surface-variant-1 hover:text-surface text-surface-dimmed`),i=e.computed(()=>`${ut} text-primary before:border-primary bg-surface-variant-1`),s=e.computed(()=>[ut,"text-surface font-bold hover:bg-surface-variant-1"]),u=e.ref(null),f=e.ref(new Map);function d(h,w){a(h)&&(f.value.set(h,h.open??!1),h.children.forEach(y=>{d(y)}))}e.watchEffect(()=>{r.items.forEach(h=>{a(h)&&d(h)})});function p({data:h,level:w}){const y=m=>h.is?e.h(h.is,m,{default:()=>h.title}):e.h("a",m,h.title);return e.createVNode("li",null,[e.createVNode(y,e.mergeProps({tabindex:0,class:[n.value.class,dl,{[c.value]:o.value!==h.value,[i.value]:o.value===h.value}],style:[{paddingLeft:`${32+w*4}px`},n.value.style],onClick:()=>o.value=h.value,onKeyup:m=>{m.key==="Enter"&&(o.value=h.value)}},h.attrs),{default:()=>[h.title]})])}function g({data:h,level:w}){return e.createVNode("li",{class:["flex items-center relative py-2 text-surface-dimmed font-bold tracking-widest text-xs"],style:[{paddingLeft:`${32+w*4}px`},n.value.style]},[e.createVNode("div",{class:"absolute left-4 h-1/2 translate-y-1/2 border-r"},null),e.createVNode("div",{class:"absolute left-[calc(1rem+0.6px)] h-2 w-2 border rounded-sm bg-surface-variant-1 -translate-x-1/2"},null),h.title])}function v({data:h,level:w}){const y=e.computed(()=>f.value.get(h)),m=e.ref(null),b=e.ref(null);return e.createVNode("li",{class:"transition-height",ref:m},[e.createVNode("button",{ref:b,onClick:()=>f.value.set(h,!f.value.get(h)),class:[n.value.class,s.value],style:[{paddingLeft:`${32+w*4}px`},n.value.style]},[e.createVNode("i",{class:["i-tabler-chevron-down absolute left-2 h-4 w-4 py-1 transition-transform",y.value?"rotate-0":"-rotate-90"]},null),h.title]),e.createVNode(e.Transition,{onBeforeEnter:S=>{S instanceof HTMLElement&&(S.style.height="0px")},onEnter:S=>{S instanceof HTMLElement&&(S.style.height=`${S.scrollHeight}px`)},onAfterEnter:S=>{S instanceof HTMLElement&&(S.style.height="auto")},onBeforeLeave:S=>{S instanceof HTMLElement&&(S.style.height=`${S.scrollHeight}px`)},onLeave:S=>{S instanceof HTMLElement&&(S.style.height="0px")},css:!0,mode:"out-in"},{default:()=>[f.value.get(h)&&e.createVNode("ul",{class:"overflow-hidden transition-height"},[h.children.map(S=>l(S)?e.createVNode(p,{data:S,level:w+1},null):a(S)?e.createVNode(v,{data:S,level:w+1},null):e.createVNode(g,{data:S,level:w+1},null))])]})])}return(h,w)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"treeListRef",ref:u,class:"flex flex-col text-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.items,(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[l(y)?(e.openBlock(),e.createBlock(p,{key:0,data:y,level:0},null,8,["data"])):a(y)?(e.openBlock(),e.createBlock(v,{key:1,data:y,level:0},null,8,["data"])):e.createCommentVNode("",!0)],64))),128))],512))}});function Kt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function G(t){return typeof t=="function"?t():e.unref(t)}const ml=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pl=Object.prototype.toString,hl=t=>pl.call(t)==="[object Object]",pe=()=>{};function Jt(t,r){function n(...o){return new Promise((a,l)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(a).catch(l)})}return n}function gl(t,r={}){let n,o,a=pe;const l=c=>{clearTimeout(c),a(),a=pe};return c=>{const i=G(t),s=G(r.maxWait);return n&&l(n),i<=0||s!==void 0&&s<=0?(o&&(l(o),o=null),Promise.resolve(c())):new Promise((u,f)=>{a=r.rejectOnCancel?f:u,s&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,u(c())},s)),n=setTimeout(()=>{o&&l(o),o=null,u(c())},i)})}}function yl(...t){let r=0,n,o=!0,a=pe,l,c,i,s,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:i=!0,leading:s=!0,rejectOnCancel:u=!1}=t[0]:[c,i=!0,s=!0,u=!1]=t;const f=()=>{n&&(clearTimeout(n),n=void 0,a(),a=pe)};return d=>{const p=G(c),g=Date.now()-r,v=()=>l=d();return f(),p<=0?(r=Date.now(),v()):(g>p&&(s||!o)?(r=Date.now(),v()):i&&(l=new Promise((h,w)=>{a=u?w:h,n=setTimeout(()=>{r=Date.now(),o=!0,h(v()),f()},Math.max(0,p-g))})),!s&&!n&&(n=setTimeout(()=>o=!0,p)),o=!1,l)}}function bl(t){return e.getCurrentInstance()}function kl(t,r=200,n={}){return Jt(gl(r,n),t)}function wl(t,r=200,n=!1,o=!0,a=!1){return Jt(yl(r,n,o,a),t)}function Zt(t,r=!0,n){bl()?e.onMounted(t,n):r?t():e.nextTick(t)}function se(t){var r;const n=G(t);return(r=n==null?void 0:n.$el)!=null?r:n}const Fe=ml?window:void 0;function Qt(...t){let r,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,r=Fe):[r,n,o,a]=t,!r)return pe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],c=()=>{l.forEach(f=>f()),l.length=0},i=(f,d,p,g)=>(f.addEventListener(d,p,g),()=>f.removeEventListener(d,p,g)),s=e.watch(()=>[se(r),G(a)],([f,d])=>{if(c(),!f)return;const p=hl(d)?{...d}:d;l.push(...n.flatMap(g=>o.map(v=>i(f,g,v,p))))},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Kt(u),u}function Sl(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function vl(t){const r=Sl();return e.computed(()=>(r.value,!!t()))}function xl(t,r,n={}){const{window:o=Fe,...a}=n;let l;const c=vl(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const d=G(t);return Array.isArray(d)?d.map(p=>se(p)):[se(d)]}),u=e.watch(s,d=>{if(i(),c.value&&o){l=new ResizeObserver(r);for(const p of d)p&&l.observe(p,a)}},{immediate:!0,flush:"post"}),f=()=>{i(),u()};return Kt(f),{isSupported:c,stop:f}}function Cl(t,r={width:0,height:0},n={}){const{window:o=Fe,box:a="content-box"}=n,l=e.computed(()=>{var d,p;return(p=(d=se(t))==null?void 0:d.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(r.width),i=e.ref(r.height),{stop:s}=xl(t,([d])=>{const p=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&l.value){const g=se(t);if(g){const v=g.getBoundingClientRect();c.value=v.width,i.value=v.height}}else if(p){const g=Array.isArray(p)?p:[p];c.value=g.reduce((v,{inlineSize:h})=>v+h,0),i.value=g.reduce((v,{blockSize:h})=>v+h,0)}else c.value=d.contentRect.width,i.value=d.contentRect.height},n);Zt(()=>{const d=se(t);d&&(c.value="offsetWidth"in d?d.offsetWidth:r.width,i.value="offsetHeight"in d?d.offsetHeight:r.height)});const u=e.watch(()=>se(t),d=>{c.value=d?r.width:0,i.value=d?r.height:0});function f(){s(),u()}return{width:c,height:i,stop:f}}const en=1;function Bl(t,r={}){const{throttle:n=0,idle:o=200,onStop:a=pe,onScroll:l=pe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:s="auto",window:u=Fe,onError:f=k=>{console.error(k)}}=r,d=e.ref(0),p=e.ref(0),g=e.computed({get(){return d.value},set(k){h(k,void 0)}}),v=e.computed({get(){return p.value},set(k){h(void 0,k)}});function h(k,E){var V,C,z,T;if(!u)return;const $=G(t);if(!$)return;(z=$ instanceof Document?u.document.body:$)==null||z.scrollTo({top:(V=G(E))!=null?V:v.value,left:(C=G(k))!=null?C:g.value,behavior:G(s)});const H=((T=$==null?void 0:$.document)==null?void 0:T.documentElement)||($==null?void 0:$.documentElement)||$;g!=null&&(d.value=H.scrollLeft),v!=null&&(p.value=H.scrollTop)}const w=e.ref(!1),y=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),m=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=k=>{w.value&&(w.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,a(k))},S=kl(b,n+o),_=k=>{var E;if(!u)return;const V=((E=k==null?void 0:k.document)==null?void 0:E.documentElement)||(k==null?void 0:k.documentElement)||se(k),{display:C,flexDirection:z}=getComputedStyle(V),T=V.scrollLeft;m.left=T<d.value,m.right=T>d.value;const $=Math.abs(T)<=(c.left||0),H=Math.abs(T)+V.clientWidth>=V.scrollWidth-(c.right||0)-en;C==="flex"&&z==="row-reverse"?(y.left=H,y.right=$):(y.left=$,y.right=H),d.value=T;let I=V.scrollTop;k===u.document&&!I&&(I=u.document.body.scrollTop),m.top=I<p.value,m.bottom=I>p.value;const q=Math.abs(I)<=(c.top||0),A=Math.abs(I)+V.clientHeight>=V.scrollHeight-(c.bottom||0)-en;C==="flex"&&z==="column-reverse"?(y.top=A,y.bottom=q):(y.top=q,y.bottom=A),p.value=I},B=k=>{var E;if(!u)return;const V=(E=k.target.documentElement)!=null?E:k.target;_(V),w.value=!0,S(k),l(k)};return Qt(t,"scroll",n?wl(B,n,!0,!1):B,i),Zt(()=>{try{const k=G(t);if(!k)return;_(k)}catch(k){f(k)}}),Qt(t,"scrollend",b,i),{x:g,y:v,isScrolling:w,arrivedState:y,directions:m,measure(){const k=G(t);u&&k&&_(k)}}}const _l=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:r}){const n=t,o=e.useSlots(),a=e.computed(()=>e.unref(n.gap)??16),l=e.computed(()=>e.unref(n.rowCount)??3),c=e.computed(()=>e.unref(n.paddingX)??0),i=e.ref();function s(b){return Array.isArray(b)}const u=e.ref([]),f=e.computed(()=>{const b=u.value;return Array.from(b).map(S=>Cl(S))}),d=e.computed(()=>{var b,S;return n.itemWidth?e.unref(n.itemWidth)*l.value+a.value*(l.value-1)+c.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):((S=(b=i.value)==null?void 0:b.parentElement)==null?void 0:S.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(d.value-c.value*2-a.value*(l.value-1))/l.value);function g(b,S,_,B){const k=e.unref(b),E=Array.from({length:e.unref(S)}).fill(0),V=[],C=Math.max(0,d.value-e.unref(B)*2-p.value*k.length-e.unref(_)*k.length)/2;for(let z=0;z<k.length;z++){const T=k[z],$=E.indexOf(Math.min(...E)),H=$*(p.value+e.unref(_))+e.unref(B)+C,I=E[$];V.push({x:H,y:I,width:T.width.value,height:T.height.value}),E[$]+=T.height.value+e.unref(_)}return V}const v=e.computed(()=>g(f,l,a,c)),h=e.computed(()=>s(v.value)?Math.max(...v.value.map(b=>b.y+b.height)):0),w=e.computed(()=>{var b;return((b=o.default)==null?void 0:b.call(o))??[]}),y=e.computed(()=>{const b=[];return w.value.forEach(S=>{s(S.children)?S.children.forEach(_=>{b.push(_)}):b.push(S)}),b});function m(b){if(!s(v.value))return{};const S=v.value[b];return S?{left:`${S.x??0}px`,top:`${S.y??0}px`,maxWidth:`${p.value}px`}:{}}return r({width:p}),(b,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:i,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${d.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(_,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([m(B),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),El=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:r}){const n=t,o=e.computed(()=>e.unref(n.rangeExpand)??0),a=e.useSlots(),l=e.computed(()=>e.unref(n.gap)??16),c=e.computed(()=>e.unref(n.rowCount)??3),i=e.computed(()=>e.unref(n.paddingX)??0),s=e.ref(),u=e.computed(()=>s.value&&s.value.$el?s.value.$el:s.value);function f(C){return Array.isArray(C)}const d=e.computed(()=>{var C,z;return n.itemWidth?e.unref(n.itemWidth)*c.value+l.value*(c.value-1)+i.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):((z=(C=u.value)==null?void 0:C.parentElement)==null?void 0:z.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(d.value-i.value*2-l.value*(c.value-1))/c.value),g=e.computed(()=>e.unref(n.items).map(C=>{const z=p.value/C.width;return{width:p.value,height:C.height*z}}));function v(C,z,T,$){const H=e.unref(C),I=Array.from({length:e.unref(z)}).fill(0),q=[],A=Math.max(0,d.value-e.unref($)*2-p.value*H.length-e.unref(T)*H.length)/2;for(let P=0;P<H.length;P++){const U=H[P],ee=I.indexOf(Math.min(...I)),he=ee*(p.value+e.unref(T))+e.unref($)+A,Ml=I[ee];q.push({x:he,y:Ml,width:U.width,height:U.height}),I[ee]+=U.height+e.unref(T)}return q}const h=e.computed(()=>v(g,c,l,i)),w=e.computed(()=>f(h.value)?Math.max(...h.value.map(C=>C.y+C.height)):0),y=e.computed(()=>{var C;return((C=a.default)==null?void 0:C.call(a))??[]});function m(C){if(!f(h.value))return{};const z=h.value[C];return z?{left:`${z.x??0}px`,top:`${z.y??0}px`,maxWidth:`${p.value}px`}:{}}const b=e.ref(!1),S=e.computed(()=>b.value?"smooth":"auto"),_=Bl(u,{behavior:S}),B=e.computed(()=>{var C;return[_.y.value-o.value,_.y.value+(((C=u.value)==null?void 0:C.clientHeight)??0)+o.value]}),k=e.computed(()=>h.value.map(C=>{const z=C.y,T=C.y+C.height;return z>=B.value[0]&&z<=B.value[1]||T>=B.value[0]&&T<=B.value[1]||z<=B.value[0]&&T>=B.value[1]})),E=e.computed(()=>{const C=[];return y.value.forEach((z,T)=>{if(f(z.children))z.children.forEach(($,H)=>{k.value[H]&&C.push([$,H])});else{if(!k.value[T])return;C.push([z,T])}}),C});r({scroll:_,scrollTo:(C,z=!1)=>{const T=b.value;b.value=z,_.y.value=C,b.value=T}});const V=e.computed(()=>n.is??"div");return(C,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.value),{ref_key:"wrapper",ref:s,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${w.value}px`,width:`${d.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,([T,$])=>(e.openBlock(),e.createElementBlock("div",{key:T,style:e.normalizeStyle([m($),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});x.AspectRatio=tn,x.Avatar=Ot,x.Btn=Oe,x.BtnGroup=Lr,x.COLOR_LIGHTNESS_MAP=X,x.ChatContainer=Xr,x.ChatMessage=Ur,x.ChatSystem=Gr,x.Chip=qr,x.ColorInput=Qr,x.ColorSwatch=Ft,x.Drawer=oo,x.Dropzone=lo,x.FullscreenOverlay=it,x.Image=ao,x.Indicator=io,x.Menu=uo,x.MenuItem=jt,x.Modal=po,x.Notification=Ut,x.NotificationSystem=So,x.Notifications=Mn,x.Overlay=Yt,x.Paper=ct,x.PinInput=Eo,x.Popover=Mo,x.Progress=Xt,x.Rating=Io,x.RokuProvider=Ro,x.SURFACE_LIGHTNESS_MAP=ie,x.SchemeSwitch=jo,x.ScrollArea=Xo,x.Select=Zo,x.SelectArea=Qo,x.Slider=rl,x.Switch=qt,x.TabItem=ll,x.Tabs=al,x.Tag=sl,x.TextField=Gt,x.ThemeProvider=cl,x.Tooltip=ul,x.TreeList=fl,x.VirtualWaterfall=El,x.Waterfall=_l,x.borderCS=It,x.childrenElementMapSymbol=Ye,x.defaultTheme=rt,x.directionSymbol=Ue,x.errorColor=me,x.errorColors=Mr,x.generateColors=ye,x.generateColorsMap=kt,x.generateColorsObjMap=Z,x.getCSInner=ze,x.primaryColor=ue,x.primaryColors=Br,x.schemeSymbol=At,x.secondaryColor=de,x.secondaryColors=_r,x.surfaceColor=te,x.surfaceColors=$r,x.tabCurrentSymbol=Xe,x.tabValueListSymbol=$n,x.tertiaryColor=fe,x.tertiaryColors=Er,x.useButtonCS=Le,x.useCS=L,x.useClientHeight=$t,x.useColorCS=Ve,x.useColors=ae,x.useContainerCS=xe,x.useContainerDefaultCS=Pe,x.useContainerDefaultVariantCS=lt,x.useContainerFilledCS=Be,x.useContainerLightCS=Lt,x.useCurrentThemeData=zt,x.useCurrentThemeName=pr,x.useCurrentThemeScheme=mr,x.useId=Re,x.useIndicatorFilledCS=Pt,x.useInputColorStyle=st,x.useMergedCS=Ce,x.useNotifications=je,x.useOutlineColor=at,x.useRootTheme=fr,x.useRounded=O,x.useSchemeString=Tt,x.useScrollHeight=Mt,x.useSurfaceCS=_e,x.useSurfaceColors=Dt,x.useTextCS=Rt,x.useThemeData=Vt,x.useThemeStyles=Qe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});