@roku-ui/vue 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["roku-ui"]={},S.Vue))})(this,function(S,e){"use strict";const Kt=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":n.ratio,width:n.width,"max-width":n.maxWidth,height:n.height,"max-height":n.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(n.$slots,"default")],4))}});function Me(t){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Me(t)}var Jt=/^\s+/,Zt=/\s+$/;function $(t,n){if(t=t||"",n=n||{},t instanceof $)return t;if(!(this instanceof $))return new $(t,n);var r=Qt(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.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=r.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,o,l,a,c,s;return r=n.r/255,o=n.g/255,l=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*a+.7152*c+.0722*s},setAlpha:function(n){return this._a=dt(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=st(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=st(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+o+"%, "+l+"%)":"hsva("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHsl:function(){var n=at(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=at(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+o+"%, "+l+"%)":"hsla("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHex:function(n){return it(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return nr(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},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(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hr[it(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+ct(this._r,this._g,this._b,this._a),o=r,l=this._gradientType?"GradientType = 1, ":"";if(n){var a=$(n);o="#"+ct(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+r+",endColorstr="+o+")"},toString:function(n){var r=!!n;n=n||this._format;var o=!1,l=this._a<1&&this._a>=0,a=!r&&l&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(o=this.toRgbString()),n==="prgb"&&(o=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(o=this.toHexString()),n==="hex3"&&(o=this.toHexString(!0)),n==="hex4"&&(o=this.toHex8String(!0)),n==="hex8"&&(o=this.toHex8String()),n==="name"&&(o=this.toName()),n==="hsl"&&(o=this.toHslString()),n==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return $(this.toString())},_applyModification:function(n,r){var o=n.apply(null,[this].concat([].slice.call(r)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(sr,arguments)},brighten:function(){return this._applyModification(ir,arguments)},darken:function(){return this._applyModification(cr,arguments)},desaturate:function(){return this._applyModification(or,arguments)},saturate:function(){return this._applyModification(lr,arguments)},greyscale:function(){return this._applyModification(ar,arguments)},spin:function(){return this._applyModification(ur,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(pr,arguments)},complement:function(){return this._applyCombination(dr,arguments)},monochromatic:function(){return this._applyCombination(mr,arguments)},splitcomplement:function(){return this._applyCombination(fr,arguments)},triad:function(){return this._applyCombination(ut,[3])},tetrad:function(){return this._applyCombination(ut,[4])}},$.fromRatio=function(t,n){if(Me(t)=="object"){var r={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?r[o]=t[o]:r[o]=_e(t[o]));t=r}return $(t,n)};function Qt(t){var n={r:0,g:0,b:0},r=1,o=null,l=null,a=null,c=!1,s=!1;return typeof t=="string"&&(t=wr(t)),Me(t)=="object"&&(te(t.r)&&te(t.g)&&te(t.b)?(n=er(t.r,t.g,t.b),c=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):te(t.h)&&te(t.s)&&te(t.v)?(o=_e(t.s),l=_e(t.v),n=rr(t.h,o,l),c=!0,s="hsv"):te(t.h)&&te(t.s)&&te(t.l)&&(o=_e(t.s),a=_e(t.l),n=tr(t.h,o,a),c=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=dt(r),{ok:c,format:t.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function er(t,n,r){return{r:I(t,255)*255,g:I(n,255)*255,b:I(r,255)*255}}function at(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=(o+l)/2;if(o==l)a=c=0;else{var i=o-l;switch(c=s>.5?i/(2-o-l):i/(o+l),o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,l:s}}function tr(t,n,r){var o,l,a;t=I(t,360),n=I(n,100),r=I(r,100);function c(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(n===0)o=l=a=r;else{var s=r<.5?r*(1+n):r+n-r*n,i=2*r-s;o=c(i,s,t+1/3),l=c(i,s,t),a=c(i,s,t-1/3)}return{r:o*255,g:l*255,b:a*255}}function st(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=o,i=o-l;if(c=o===0?0:i/o,o==l)a=0;else{switch(o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,v:s}}function rr(t,n,r){t=I(t,360)*6,n=I(n,100),r=I(r,100);var o=Math.floor(t),l=t-o,a=r*(1-n),c=r*(1-l*n),s=r*(1-(1-l)*n),i=o%6,u=[r,c,a,a,s,r][i],d=[s,r,r,c,a,a][i],f=[a,a,s,r,r,c][i];return{r:u*255,g:d*255,b:f*255}}function it(t,n,r,o){var l=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];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[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function nr(t,n,r,o,l){var a=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16)),q(ft(o))];return l&&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[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ct(t,n,r,o){var l=[q(ft(o)),q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];return l.join("")}$.equals=function(t,n){return!t||!n?!1:$(t).toRgbString()==$(n).toRgbString()},$.random=function(){return $.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function or(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s-=n/100,r.s=ze(r.s),$(r)}function lr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s+=n/100,r.s=ze(r.s),$(r)}function ar(t){return $(t).desaturate(100)}function sr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l+=n/100,r.l=ze(r.l),$(r)}function ir(t,n){n=n===0?0:n||10;var r=$(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),$(r)}function cr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l-=n/100,r.l=ze(r.l),$(r)}function ur(t,n){var r=$(t).toHsl(),o=(r.h+n)%360;return r.h=o<0?360+o:o,$(r)}function dr(t){var n=$(t).toHsl();return n.h=(n.h+180)%360,$(n)}function ut(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=$(t).toHsl(),o=[$(t)],l=360/n,a=1;a<n;a++)o.push($({h:(r.h+a*l)%360,s:r.s,l:r.l}));return o}function fr(t){var n=$(t).toHsl(),r=n.h;return[$(t),$({h:(r+72)%360,s:n.s,l:n.l}),$({h:(r+216)%360,s:n.s,l:n.l})]}function pr(t,n,r){n=n||6,r=r||30;var o=$(t).toHsl(),l=360/r,a=[$(t)];for(o.h=(o.h-(l*n>>1)+720)%360;--n;)o.h=(o.h+l)%360,a.push($(o));return a}function mr(t,n){n=n||6;for(var r=$(t).toHsv(),o=r.h,l=r.s,a=r.v,c=[],s=1/n;n--;)c.push($({h:o,s:l,v:a})),a=(a+s)%1;return c}$.mix=function(t,n,r){r=r===0?0:r||50;var o=$(t).toRgb(),l=$(n).toRgb(),a=r/100,c={r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a};return $(c)},$.readability=function(t,n){var r=$(t),o=$(n);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)},$.isReadable=function(t,n,r){var o=$.readability(t,n),l,a;switch(a=!1,l=Sr(r),l.level+l.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},$.mostReadable=function(t,n,r){var o=null,l=0,a,c,s,i;r=r||{},c=r.includeFallbackColors,s=r.level,i=r.size;for(var u=0;u<n.length;u++)a=$.readability(t,n[u]),a>l&&(l=a,o=$(n[u]));return $.isReadable(t,o,{level:s,size:i})||!c?o:(r.includeFallbackColors=!1,$.mostReadable(t,["#fff","#000"],r))};var Pe=$.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"},hr=$.hexNames=gr(Pe);function gr(t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);return n}function dt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(t,n){yr(t)&&(t="100%");var r=br(t);return t=Math.min(n,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ze(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function yr(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function br(t){return typeof t=="string"&&t.indexOf("%")!=-1}function q(t){return t.length==1?"0"+t:""+t}function _e(t){return t<=1&&(t=t*100+"%"),t}function ft(t){return Math.round(parseFloat(t)*255).toString(16)}function pt(t){return L(t)/255}var K=function(){var t="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+t+")",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",l="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+l),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!!K.CSS_UNIT.exec(t)}function wr(t){t=t.replace(Jt,"").replace(Zt,"").toLowerCase();var n=!1;if(Pe[t])t=Pe[t],n=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=K.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=K.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=K.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=K.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=K.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=K.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=K.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:pt(r[4]),format:n?"name":"hex8"}:(r=K.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:n?"name":"hex"}:(r=K.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:pt(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=K.hex3.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Sr(t){var n,r;return t=t||{level:"AA",size:"small"},n=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function W(t){return e.computed(()=>({style:kr(t.rounded),class:"rounded-[--r-rounded]"}))}function kr(t){const n=/^-?(?:\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"&&n.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const Oe=e.ref([]);function mt(){return Oe}class vr{static show(n){n.hash=Math.random().toString(36),Oe.value=[n,...Oe.value]}}const Fe=Symbol("tabCurrent"),Le=Symbol("direction"),xr=Symbol("tabValueList"),We=Symbol("childrenElementMapSymbol");function Cr(t){const n=$(t).toHsl().l;return X.reduce((r,o)=>Math.abs(o-n)<Math.abs(r-n)?o:r)}function ht(t,n=X){const r=J(t,n);return{...r,colors:r.colors.map(o=>o.toHexString())}}function J(t,n=X){const r=$(t),o=Cr(r),l=n.findIndex(c=>c===o),a=n.map(c=>{const s=$({h:r.toHsl().h,s:r.toHsl().s,l:c}),i=0;return r.toHsl().h>=20&&r.toHsl().h<=200&&s.darken(2),s.saturate(i*100),s});return{baseColorIndex:l,colors:a.map(c=>c)}}function he(t,n=X){return ht(t,n).colors}function _r(t,n){let r,o,l;const a=e.ref(!0),c=()=>{a.value=!0,l()};e.watch(t,c,{flush:"sync"});const s=typeof n=="function"?n:n.get,i=typeof n=="function"?void 0:n.set,u=e.customRef((d,f)=>(o=d,l=f,{get(){return a.value&&(r=s(r),a.value=!1),o(),r},set(p){i==null||i(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function Be(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function gt(){const t=new Set,n=l=>{t.delete(l)};return{on:l=>{t.add(l);const a=()=>n(l);return Be(a),{off:a}},off:n,trigger:(...l)=>Promise.all(Array.from(t).map(a=>a(...l)))}}function P(t){return typeof t=="function"?t():e.unref(t)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Br=t=>t!=null,Er=Object.prototype.toString,$r=t=>Er.call(t)==="[object Object]",Z=()=>{},Mr=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),zr=Ar();function Ar(){var t,n;return re&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function je(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}const yt=t=>t();function Vr(t,n={}){let r,o,l=Z;const a=s=>{clearTimeout(s),l(),l=Z};return s=>{const i=P(t),u=P(n.maxWait);return r&&a(r),i<=0||u!==void 0&&u<=0?(o&&(a(o),o=null),Promise.resolve(s())):new Promise((d,f)=>{l=n.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,d(s())},u)),r=setTimeout(()=>{o&&a(o),o=null,d(s())},i)})}}function Hr(...t){let n=0,r,o=!0,l=Z,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Z)};return p=>{const m=P(c),g=Date.now()-n,h=()=>a=p();return d(),m<=0?(n=Date.now(),h()):(g>m&&(i||!o)?(n=Date.now(),h()):s&&(a=new Promise((w,v)=>{l=u?v:w,r=setTimeout(()=>{n=Date.now(),o=!0,w(h()),d()},Math.max(0,m-g))})),!i&&!r&&(r=setTimeout(()=>o=!0,m)),o=!1,a)}}function Tr(t=yt){const n=e.ref(!0);function r(){n.value=!1}function o(){n.value=!0}const l=(...a)=>{n.value&&t(...a)};return{isActive:e.readonly(n),pause:r,resume:o,eventFilter:l}}function Nr(t){return e.getCurrentInstance()}function bt(t,n=200,r={}){return je(Vr(n,r),t)}function Rr(t,n=200,r={}){const o=e.ref(t.value),l=bt(()=>{o.value=t.value},n,r);return e.watch(t,()=>l()),o}function Ir(t,n=200,r=!1,o=!0,l=!1){return je(Hr(n,r,o,l),t)}function Dr(t,n,r={}){const{eventFilter:o=yt,...l}=r;return e.watch(t,je(o,n),l)}function Pr(t,n,r={}){const{eventFilter:o,...l}=r,{eventFilter:a,pause:c,resume:s,isActive:i}=Tr(o);return{stop:Dr(t,n,{...l,eventFilter:a}),pause:c,resume:s,isActive:i}}function ge(t,n=!0,r){Nr()?e.onMounted(t,r):n?t():e.nextTick(t)}const j=re?window:void 0,Or=re?window.document:void 0;function F(t){var n;const r=P(t);return(n=r==null?void 0:r.$el)!=null?n:r}function T(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=j):[n,r,o,l]=t,!n)return Z;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[F(n),P(l)],([d,f])=>{if(c(),!d)return;const p=$r(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Be(u),u}let wt=!1;function St(t,n,r={}){const{window:o=j,ignore:l=[],capture:a=!0,detectIframe:c=!1}=r;if(!o)return Z;zr&&!wt&&(wt=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Z)),o.document.documentElement.addEventListener("click",Z));let s=!0;const i=m=>P(l).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=F(g);return h&&(m.target===h||m.composedPath().includes(h))}}),u=m=>{const g=F(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(s=!i(m)),!s){s=!0;return}n(m)}};let d=!1;const f=[T(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),u(m))},{passive:!0,capture:a}),T(o,"pointerdown",m=>{const g=F(t);s=!i(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),c&&T(o,"blur",m=>{setTimeout(()=>{var g;const h=F(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}function Fr(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ae(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:l=j,eventName:a="keydown",passive:c=!1,dedupe:s=!1}=o,i=Fr(n);return T(l,a,d=>{d.repeat&&P(s)||i(d)&&r(d)},c)}function Lr(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function Xe(t){const n=Lr();return e.computed(()=>(n.value,!!t()))}function Ge(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"MutationObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const p=P(t),m=(Array.isArray(p)?p:[p]).map(F).filter(Br);return new Set(m)}),u=e.watch(()=>i.value,p=>{s(),c.value&&p.size&&(a=new MutationObserver(n),p.forEach(m=>a.observe(m,l)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Be(f),{isSupported:c,stop:f,takeRecords:d}}function Wr(t,n={}){const{window:r=j}=n,o=Xe(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let l;const a=e.ref(!1),c=u=>{a.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",c):l.removeListener(c))},i=e.watchEffect(()=>{o.value&&(s(),l=r.matchMedia(P(t)),"addEventListener"in l?l.addEventListener("change",c):l.addListener(c),a.value=l.matches)});return Be(()=>{i(),s(),l=void 0}),a}const Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ve="__vueuse_ssr_handlers__",jr=Xr();function Xr(){return Ve in Ae||(Ae[Ve]=Ae[Ve]||{}),Ae[Ve]}function Gr(t,n){return jr[t]||n}function Ur(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 Yr={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()}},kt="vueuse-storage";function qr(t,n,r,o={}){var l;const{flush:a="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=j,eventFilter:p,onError:m=k=>{console.error(k)},initOnMounted:g}=o,h=(d?e.shallowRef:e.ref)(n);if(!r)try{r=Gr("getDefaultStorage",()=>{var k;return(k=j)==null?void 0:k.localStorage})()}catch(k){m(k)}if(!r)return h;const w=P(n),v=Ur(w),y=(l=o.serializer)!=null?l:Yr[v],{pause:C,resume:E}=Pr(h,()=>_(h.value),{flush:a,deep:c,eventFilter:p});f&&s&&ge(()=>{r instanceof Storage?T(f,"storage",B):T(f,kt,A),g&&B()}),g||B();function x(k,z){if(f){const H={key:t,oldValue:k,newValue:z,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",H):new CustomEvent(kt,{detail:H}))}}function _(k){try{const z=r.getItem(t);if(k==null)x(z,null),r.removeItem(t);else{const H=y.write(k);z!==H&&(r.setItem(t,H),x(z,H))}}catch(z){m(z)}}function b(k){const z=k?k.newValue:r.getItem(t);if(z==null)return i&&w!=null&&r.setItem(t,y.write(w)),w;if(!k&&u){const H=y.read(z);return typeof u=="function"?u(H,w):v==="object"&&!Array.isArray(H)?{...w,...H}:H}else return typeof z!="string"?z:y.read(z)}function B(k){if(!(k&&k.storageArea!==r)){if(k&&k.key==null){h.value=w;return}if(!(k&&k.key!==t)){C();try{(k==null?void 0:k.newValue)!==y.write(h.value)&&(h.value=b(k))}catch(z){m(z)}finally{k?e.nextTick(E):E()}}}}function A(k){B(k.detail)}return h}function Kr(t){const n=e.getCurrentInstance(),r=_r(()=>null,()=>n.proxy.$el);return e.onUpdated(r.trigger),e.onMounted(r.trigger),r}function Jr(t,n={}){var r,o;const l=e.ref(!1),a=e.shallowRef(null);let c=0,s=!0;if(re){const i=typeof n=="function"?{onDrop:n}:n,u=(r=i.multiple)!=null?r:!0,d=(o=i.preventDefaultForUnhandled)!=null?o:!1,f=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.files)!=null?v:[]);return y.length===0?null:u?y:[y[0]]},p=h=>{if(i.dataTypes){const w=e.unref(i.dataTypes);return typeof w=="function"?w(h):w?w.some(v=>h.includes(v)):!0}return!0},m=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.items)!=null?v:[]),C=y.filter(_=>_.kind==="file").map(_=>_.type),E=p(C),x=u||y.filter(_=>_.kind==="file").length<=1;return E&&x},g=(h,w)=>{var v,y,C,E;if(s=m(h),!s){d&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const x=f(h);switch(w){case"enter":c+=1,l.value=!0,(v=i.onEnter)==null||v.call(i,null,h);break;case"over":(y=i.onOver)==null||y.call(i,null,h);break;case"leave":c-=1,c===0&&(l.value=!1),(C=i.onLeave)==null||C.call(i,null,h);break;case"drop":c=0,l.value=!1,s&&(a.value=x,(E=i.onDrop)==null||E.call(i,x,h));break}};T(t,"dragenter",h=>g(h,"enter")),T(t,"dragover",h=>g(h,"over")),T(t,"dragleave",h=>g(h,"leave")),T(t,"drop",h=>g(h,"drop"))}return{files:a,isOverDropZone:l}}function Ue(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=P(t);return Array.isArray(f)?f.map(p=>F(p)):[F(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Be(d),{isSupported:c,stop:d}}function ne(t,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0,updateTiming:c="sync"}=n,s=e.ref(0),i=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),p=e.ref(0),m=e.ref(0),g=e.ref(0);function h(){const v=F(t);if(!v){r&&(s.value=0,i.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,g.value=0);return}const y=v.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,d.value=y.right,f.value=y.top,p.value=y.width,m.value=y.x,g.value=y.y}function w(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ue(t,w),e.watch(()=>F(t),v=>!v&&w()),Ge(t,w,{attributeFilter:["style","class"]}),l&&T("scroll",w,{capture:!0,passive:!0}),o&&T("resize",w,{passive:!0}),ge(()=>{a&&w()}),{height:s,bottom:i,left:u,right:d,top:f,width:p,x:m,y:g,update:w}}function ye(t,n={}){const{delayEnter:r=0,delayLeave:o=0,window:l=j}=n,a=e.ref(!1);let c;const s=i=>{const u=i?r:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>a.value=i,u):a.value=i};return l&&(T(t,"mouseenter",()=>s(!0),{passive:!0}),T(t,"mouseleave",()=>s(!1),{passive:!0})),a}const Zr={multiple:!0,accept:"*",reset:!1,directory:!1};function Qr(t={}){const{document:n=Or}=t,r=e.ref(null),{on:o,trigger:l}=gt(),{on:a,trigger:c}=gt();let s;n&&(s=n.createElement("input"),s.type="file",s.onchange=d=>{const f=d.target;r.value=f.files,l(r.value)},s.oncancel=()=>{c()});const i=()=>{r.value=null,s&&s.value&&(s.value="",l(null))},u=d=>{if(!s)return;const f={...Zr,...t,...d};s.multiple=f.multiple,s.accept=f.accept,s.webkitdirectory=f.directory,Mr(f,"capture")&&(s.capture=f.capture),f.reset&&i(),s.click()};return{files:e.readonly(r),open:u,reset:i,onCancel:a,onChange:o}}const vt=1;function en(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=Z,onScroll:a=Z,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=j,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=P(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=P(B))!=null?A:g.value,left:(k=P(b))!=null?k:m.value,behavior:P(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=bt(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-vt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-vt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return T(t,"scroll",r?Ir(_,r,!0,!1):_,s),ge(()=>{try{const b=P(t);if(!b)return;x(b)}catch(b){d(b)}}),T(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=P(t);u&&b&&x(b)}}}function xt(t,n,r={}){const{window:o=j}=r;return qr(t,n,o==null?void 0:o.localStorage,r)}const tn={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function rn(t={}){const{reactive:n=!1,target:r=j,aliasMap:o=tn,passive:l=!0,onEventFired:a=Z}=t,c=e.reactive(new Set),s={toJSON(){return{}},current:c},i=n?e.reactive(s):s,u=new Set,d=new Set;function f(h,w){h in i&&(n?i[h]=w:i[h].value=w)}function p(){c.clear();for(const h of d)f(h,!1)}function m(h,w){var v,y;const C=(v=h.key)==null?void 0:v.toLowerCase(),x=[(y=h.code)==null?void 0:y.toLowerCase(),C].filter(Boolean);C&&(w?c.add(C):c.delete(C));for(const _ of x)d.add(_),f(_,w);C==="meta"&&!w?(u.forEach(_=>{c.delete(_),f(_,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&w&&[...c,...x].forEach(_=>u.add(_))}T(r,"keydown",h=>(m(h,!0),a(h)),{passive:l}),T(r,"keyup",h=>(m(h,!1),a(h)),{passive:l}),T("blur",p,{passive:!0}),T("focus",p,{passive:!0});const g=new Proxy(i,{get(h,w,v){if(typeof w!="string")return Reflect.get(h,w,v);if(w=w.toLowerCase(),w in o&&(w=o[w]),!(w in i))if(/[+_-]/.test(w)){const C=w.split(/[+_-]/g).map(E=>E.trim());i[w]=e.computed(()=>C.every(E=>P(g[E])))}else i[w]=e.ref(!1);const y=Reflect.get(h,w,v);return n?P(y):y}});return g}const nn={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 He(t={}){const{type:n="page",touch:r=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:a=j,target:c=a,scroll:s=!0,eventFilter:i}=t;let u=null;const d=e.ref(l.x),f=e.ref(l.y),p=e.ref(null),m=typeof n=="function"?n:nn[n],g=x=>{const _=m(x);u=x,_&&([d.value,f.value]=_,p.value="mouse")},h=x=>{if(x.touches.length>0){const _=m(x.touches[0]);_&&([d.value,f.value]=_,p.value="touch")}},w=()=>{if(!u||!a)return;const x=m(u);u instanceof MouseEvent&&x&&(d.value=x[0]+a.scrollX,f.value=x[1]+a.scrollY)},v=()=>{d.value=l.x,f.value=l.y},y=i?x=>i(()=>g(x),{}):x=>g(x),C=i?x=>i(()=>h(x),{}):x=>h(x),E=i?()=>i(()=>w(),{}):()=>w();if(c){const x={passive:!0};T(c,["mousemove","dragover"],y,x),r&&n!=="movement"&&(T(c,["touchstart","touchmove"],C,x),o&&T(c,"touchend",v,x)),s&&n==="page"&&T(a,"scroll",E,{passive:!0})}return{x:d,y:f,sourceType:p}}function Ct(t=Kr()){const n=e.shallowRef(),r=()=>{const o=F(t);o&&(n.value=o.parentElement)};return ge(r),e.watch(()=>P(t),r),n}function _t(t){const n=e.ref(0),r=e.computed(()=>F(t)),o=()=>{r.value&&(n.value=r.value.scrollHeight)};return o(),ge(o),Ue(()=>r.value,o),Ge(()=>r.value,o,{childList:!0,subtree:!0,attributes:!0}),n}function Bt(t,n={}){const{initialWidth:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=n,l=e.ref(r),a=e.computed(()=>F(t)),c=()=>{a.value&&(l.value=a.value.clientHeight)};if(c(),ge(c),T("resize",c,{passive:!0}),Ue(()=>a.value,c),Ge(()=>a.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const s=Wr("(orientation: portrait)");e.watch(s,()=>c())}return l}const X=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],se=[1,.99,.95,.9,.7,.5,.4,.2,.1,.075,.05];function on(){if(!re)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(r=>{r.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 ln(){return e.inject("currentThemeScheme",null)}function Et(){return e.inject("currentThemeData",e.ref(tt))}function an(){return e.inject("currentThemeName",e.ref("default"))}function $t(t,n,r={}){const o=X,l=se;return r.primary===void 0&&(r.primary=o),r.secondary===void 0&&(r.secondary=o),r.tertiary===void 0&&(r.tertiary=o),r.error===void 0&&(r.error=o),r.surface===void 0&&(r.surface=l),e.computed(()=>({name:t,colors:{primary:he(e.unref(n.primary),r.primary),secondary:he(e.unref(n.secondary),r.secondary),tertiary:he(e.unref(n.tertiary),r.tertiary),error:he(e.unref(n.error),r.error),surface:he(e.unref(n.surface),r.surface)}}))}function sn(t,n=X){return e.computed(()=>{const r=e.unref(t);return typeof r=="string"?oe(r,n).value.map(o=>o.toHexString()):r})}function Ye(t){const n=e.ref(t);return{...{...Object.keys(n.value.colors).map(a=>{const c=a,s=n.value.colors[c];return sn(s,c==="surface"?se:X).value.reduce((d,f,p)=>{const m=$(f).toRgb();return d[`--r-color-${c}-${p}`]=`${m.r} ${m.g} ${m.b}`,d},{})}).reduce((a,c)=>({...a,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)"}}}function Te(t){const n=e.ref("");return e.onMounted(()=>{t.id?n.value=t.id:n.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),n}const Mt=Symbol("scheme");function zt(){const t=xt("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 qe=9,cn=7,Ke=7,un=7,be=3,dn=6,ie=5,At=6,Je=3,fn=4,Ze=.25,pn=.3,Qe=1,mn=2,we=6,hn=5,Se=4,Vt=5,et=.08,gn=.15,ce=e.ref("#0067cc"),ue=e.ref("#5999A6"),de=e.ref("#F76C22"),fe=e.ref("#F95858"),ee=e.ref("#121212"),Ht=e.computed(()=>O({color:"surface",type:"border",index:{dark:Ke,light:Je}}).value);function yn(t){return $e(t,"text",{dark:be,light:we})}const bn=e.computed(()=>J(e.unref(ce),X).colors),wn=e.computed(()=>J(e.unref(ue),X).colors),Sn=e.computed(()=>J(e.unref(de),X).colors),kn=e.computed(()=>J(e.unref(fe),X).colors),vn=e.computed(()=>J(e.unref(ee),se).colors),tt=$t("default",{primary:ce,secondary:ue,tertiary:de,error:fe,surface:ee});function ke(t,n){return e.computed(()=>{switch(e.unref(t)){case"filled":return xe(n).value;case"light":return Rt(n).value;default:return Ne().value}})}function xn(t){return e.computed(()=>{const n=e.unref(t);switch(n){case"surface":return $(e.unref(ee));case"primary":return $(e.unref(ce));case"secondary":return $(e.unref(ue));case"tertiary":return $(e.unref(de));case"error":return $(e.unref(fe));default:return $(n)}})}const rt=new Map;function oe(t,n=X){return e.computed(()=>{const o=xn(t).value.toHexString();if(rt.has(o))return rt.get(o);function l(){const a=J(o,n).colors;return rt.set(o,a),a}return l()})}function Tt(){return e.computed(()=>J(e.unref(ee),se).colors)}function Ne(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:8,light:1}}),n=O({color:"surface",type:"border",index:{dark:7,light:3}}),r=ve(t,n);return r.value.class=[...r.value.class,"border"],r.value})}function nt(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:7,light:2}}),n=O({color:"surface",type:"border",index:{dark:6,light:4}});return ve(t,n).value})}function ve(...t){return e.computed(()=>({style:t.reduce((n,r)=>({...n,...r.value.style}),{}),class:t.reduce((n,r)=>[...n,...r.value.class],[])}))}function Nt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:5,light:4}}),r=O({color:"surface",type:"border",index:{dark:qe,light:Qe}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function xe(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se}}),r=O({color:t,type:"border",index:{dark:ie,light:Se}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function Rt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se},alpha:.15}),r=O({color:t,type:"text",index:{dark:be,light:we}}),o=O({color:t,type:"border",index:{dark:5,light:4},alpha:0});return ve(n,r,o).value})}function Ee(t,n,r,o,l=1){switch(n){case"outline":return{style:{"--d-outline":t[r].clone().setAlpha(l).toHex8String(),"--l-outline":t[o].clone().setAlpha(l).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[r].clone().setAlpha(l).toHex8String(),"--l-bg":t[o].clone().setAlpha(l).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[r].clone().setAlpha(l).toHex8String(),"--l-border":t[o].clone().setAlpha(l).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[r].clone().setAlpha(l).toHex8String(),"--l-text":t[o].clone().setAlpha(l).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[r].clone().setAlpha(l).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(l).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[r].clone().setAlpha(l).toHexString(),"--l-bg-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[r].clone().setAlpha(l).toHexString(),"--l-border-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[r].clone().setAlpha(l).toHexString(),"--l-text-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function O(t){return t.color==="surface"?Ce(t.type,t.index):$e(t.color,t.type,t.index,t.alpha)}function $e(t,n,r,o=1){return e.computed(()=>{const l=oe(t);return typeof r=="number"?Ee(e.unref(l),n,r,r,o):Ee(e.unref(l),n,r.dark,r.light,o)})}function Ce(t,n,r=1){return e.computed(()=>{const{colors:o}=J(e.unref(ee),se);return typeof n=="number"?Ee(o,t,n,n,r):Ee(o,t,n.dark,n.light,r)})}function Re(t="default",n="primary"){return e.computed(()=>{const r=oe(n).value,o=J(e.unref(ee),se).colors;return{style:{default:()=>Cn(o),filled:()=>_n(r),light:()=>Bn(r),outline:()=>En(r),transparent:()=>$n(r),subtle:()=>Mn(r),contrast:()=>zn(r),white:()=>An(r)}[e.unref(t)](),class:"custom-colors"}})}function Cn(t){return{"--d-bg":t[qe].toHexString(),"--d-bg-h":t[cn].toHexString(),"--d-border":t[un].toHexString(),"--l-bg":t[Qe].toHexString(),"--l-bg-h":t[mn].toHexString(),"--l-border":t[fn].toHexString()}}function _n(t){return{"--d-border":"transparent","--d-bg":t[ie].toHexString(),"--d-bg-h":t[At].toHexString(),"--d-text":"white","--l-bg":t[Se].toHexString(),"--l-bg-h":t[Vt].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Bn(t){return{"--d-border":"transparent","--d-bg":t[ie].clone().setAlpha(Ze).toHex8String(),"--d-bg-h":t[ie].clone().setAlpha(pn).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--l-bg":t[Se].clone().setAlpha(et).toHex8String(),"--l-bg-h":t[Se].clone().setAlpha(gn).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":"transparent"}}function En(t){return{"--d-bg":"transparent","--d-bg-h":t[At].clone().setAlpha(Ze).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--d-border":t[Ke].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Vt].clone().setAlpha(et).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":t[Je].toHexString()}}function $n(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 Mn(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(Ze).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(et).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function zn(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 An(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 ot(t,n="default"){return e.computed(()=>{const r=oe(t).value,o=Tt().value;switch(e.unref(n)){case"default":return{"--d-bg":o[qe].toHexString(),"--d-border-f":r[ie].toHexString(),"--d-border":o[Ke].toHexString(),"--d-placeholder":o[dn].toHexString(),"--d-text":"white","--l-bg":o[Qe].toHexString(),"--l-border-f":r[3].toHexString(),"--l-border":o[Je].toHexString(),"--l-placeholder":o[hn].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":r[5].toHexString(),"--d-bg-h":r[6].toHexString(),"--d-border":"transparent","--l-bg":r[5].toHexString(),"--l-bg-h":r[6].toHexString(),"--l-border":"transparent"}}})}const Vn={key:2,class:"i-fluent-person-24-filled"},It=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 n=t,r=W(n),o=e.computed(()=>n.name||""),l=e.computed(()=>{switch(n.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 n.size=="number"&&!Number.isNaN(Number(n.size))?`--size: ${n.size}rem; --font-size: ${n.size/2}rem;`:"--size: 4rem;"}}),a=e.ref(!1),c=e.ref(null);function s(){a.value=!0}e.onMounted(()=>{var f;(f=c.value)!=null&&f.complete&&s()});function i(f){return f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>n.color),d=ke(n.variant,u);return(f,p)=>f.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant",style:e.normalizeStyle([e.unref(r).style,l.value])},null,4)):f.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.is),e.mergeProps({key:1,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(r).class,e.unref(d).class,{hidden:!a.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(r).style,e.unref(d).style,l.value],src:f.src},f.$attrs,{onLoad:s}),null,16,["alt","class","style","src"])):!a.value||!f.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(r).class,e.unref(d).class]],style:[e.unref(r).style,e.unref(d).style,l.value]},f.$attrs),[f.$slots.default?e.renderSlot(f.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Vn))],16)):e.createCommentVNode("",!0)}}),Ie=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}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.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"}}}),l=e.ref(null),a=ye(l),c=e.computed(()=>n.hoverVariant&&a.value?n.hoverVariant:n.variant??"default"),s=e.computed(()=>n.color??"primary"),i=Re(c,s);return(u,d)=>u.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([e.unref(i).style,e.unref(r).style]),class:e.normalizeClass([o.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant"])},null,6)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.is),e.mergeProps({key:1,ref_key:"btn",ref:l,"data-size":u.size,type:u.type,class:["flex items-center justify-center gap-1 decoration-none",[e.unref(i).class,e.unref(r).class,u.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":u.disabled,"active:translate-y-0.25":u.pressEffect==="translate"}]],style:[e.unref(i).style,e.unref(r).style],disabled:u.disabled},u.$attrs),{default:e.withCtx(()=>[u.$slots.leftSection?e.renderSlot(u.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),u.$slots.rightSection?e.renderSlot(u.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Hn=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 n=t,r=e.computed(()=>n.unselectable===void 0?n.selections.length===1:n.unselectable);function o(d){return typeof d=="string"?d:d.label??d.value}function l(d){return typeof d=="string"?d:d.value}function a(d){return typeof d=="string"?void 0:d.icon}const c=e.useModel(t,"modelValue");function s(d){l(d)===c.value&&r.value?c.value=void 0:c.value=l(d)}const i=e.computed(()=>n.selections.length===1),u=e.computed(()=>i.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 p=Ie;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(n.selections,(m,g)=>(e.openBlock(),e.createBlock(p,{key:l(m),model:c.value,variant:l(m)===c.value?"filled":void 0,color:n.color,class:e.normalizeClass({"border-x-none":g!==0&&g!==n.selections.length-1}),onClick:h=>s(m)},{default:e.withCtx(()=>[a(m)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(a(m))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(m)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Tn=(t,n)=>{const r=t.__vccOpts||t;for(const[o,l]of n)r[o]=l;return r},Nn={},Rn={class:"flex flex-col gap-4 container"};function In(t,n){return e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(t.$slots,"default")])}const Dn=Tn(Nn,[["render",In]]),Pn=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>{const s=It;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":a.position==="right","flex-row":a.position==="left"}]])},[a.$slots.avatar?e.renderSlot(a.$slots,"avatar",{key:0}):a.avatar?(e.openBlock(),e.createBlock(s,{key:1,size:"xs",src:a.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":a.position==="right","rounded-tl":a.position==="left",border:a.withBorder},e.unref(l).class]]),style:e.normalizeStyle([e.unref(l).style])},[e.renderSlot(a.$slots,"default")],6)],2)}}}),On={class:"w-full flex self-center gap-2 text-center"},Fn=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>(e.openBlock(),e.createElementBlock("div",On,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},[e.renderSlot(a.$slots,"default")],6)]))}}),Ln=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.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""}}),l=e.computed(()=>n.variant),a=e.computed(()=>n.color),c=ke(l,a);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(r).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(r).style,e.unref(c).style])},[s.$slots.leftSection?e.renderSlot(s.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.rightSection?e.renderSlot(s.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Dt=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:n.withBorder}]]},e.unref(Ht),{style:{backgroundColor:n.color}}),null,16,["class","style"]))}}),Wn=["id","alt"],jn=["for"],Xn={key:0},Gn=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),r=e.useAttrs(),o=Te(r),l=e.ref(null);return(a,c)=>{const s=Dt;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:l,"onUpdate:modelValue":c[0]||(c[0]=i=>n.value=i),alt:n.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Wn),[[e.vModelText,n.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(s,{"with-border":a.withBorder,class:"cursor-pointer",color:n.value??"#222"},null,8,["with-border","color"]),a.label?(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0)],8,jn)])}}}),Pt=Symbol("rokuProvider");function Un(){return e.inject(Pt,e.ref(null))}function Yn(t){return e.provide(Pt,t)}const lt=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 n=t,r=e.useModel(t,"modelValue"),o=e.ref(null);function l(i){n.persistent||i.target===o.value&&(r.value=!1)}const a=e.computed(()=>{switch(n.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(()=>{r.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)}),typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body);const s=Un();return(i,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(s)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/10 transition-all duration-100 md:items-center",[a.value,i.wrapperClass,{"op0 pointer-events-none":!r.value,op100:r.value}]]),onClick:l},[e.renderSlot(i.$slots,"default")],2)],8,["to"]))}}),qn={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},Kn={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},Jn=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 n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=Ie,c=lt;return e.openBlock(),e.createBlock(c,{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=s=>r.value=s),blur:n.blur,persistent:n.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(()=>[r.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",qn,[e.createVNode(a,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:l[0]||(l[0]=s=>r.value=!1)},{default:e.withCtx(()=>l[2]||(l[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",Kn,[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"])}}}),Zn=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:n}){const r=t,o=n,l=e.ref(),{onChange:a,open:c}=Qr({accept:r.accept});a(d=>{d?o("drop",Array.from(d)):o("drop",null)});const{isOverDropZone:s}=Jr(l,{onDrop:d=>{o("drop",d)}}),i=Re("default"),u=nt();return(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:e.normalizeClass([[e.unref(i).class,e.unref(s)&&e.unref(u).class,{"bg-surface-low":!e.unref(s),"border-dashed":d.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(i).style,e.unref(s)&&e.unref(u).style]),onPointerup:f[0]||(f[0]=()=>e.unref(c)())},[e.renderSlot(d.$slots,"default")],38))}}),Qn=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const n=t,r=e.ref(!1),o=e.ref(null);function l(){r.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&l()});const a=W(n);return(c,s)=>(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(a).style],src:c.src,class:["h-full w-full object-cover",[n.class,e.unref(a).class,{hidden:!r.value}]]},c.$attrs,{onLoad:l}),null,16,["style","src","class"])):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[n.class,e.unref(a).class]]),style:e.normalizeStyle([c.style,e.unref(a).style])},null,6))],4))}}),eo={class:"relative"},to=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const n=t,r=e.computed(()=>{switch(n.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 n.size=="number"||!Number.isNaN(Number(n.size))?`w-${n.size} h-${n.size}`:n.size}}),o=e.useSlots(),l=e.computed(()=>{if(!o.label)return"";switch(n.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"}}),a=e.computed(()=>{switch(n.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(()=>n.color),s=Nt(c);return(i,u)=>(e.openBlock(),e.createElementBlock("div",eo,[e.createElementVNode("div",{class:e.normalizeClass([[a.value,l.value],"absolute z-1"])},[n.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle([e.unref(s).style])},[i.$slots.label?e.renderSlot(i.$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",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle(e.unref(s).style)},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(i.$slots,"default")]))}}),ro=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=lt;return e.openBlock(),e.createBlock(a,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),blur:n.blur,persistent:n.persistent,"wrapper-class":"flex items-end justify-center"},{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(()=>[r.value?e.renderSlot(o.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),no={key:0,class:"text-[var(--l-text)] leading-0 dark:text-[var(--d-text)]"},oo={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},lo={key:1},ao={class:"grow-1"},so={key:1,class:"i-fluent-dismiss-12-filled"},Ot=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"}},emits:["close"],setup(t){const n=t,r=W(n),o=e.computed(()=>n.color),l=xe(o),a=Ne(),c=e.computed(()=>{switch(n.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,i)=>{const u=Ie;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["container-low relative min-w-80 w-full flex items-center gap-2 pl-4",[{"border-0":!s.withBorder},e.unref(r).class,c.value,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(r).style]},e.unref(a)),[s.icon?(e.openBlock(),e.createElementBlock("div",no,[s.loading?(e.openBlock(),e.createElementBlock("i",oo)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))])):(e.openBlock(),e.createElementBlock("div",lo,[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(l)),null,16)])),e.createElementVNode("div",ao,[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.toDisplayString(s.title),3)):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-on-low op-50",{"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(u,{key:2,icon:"",variant:"transparent",onClick:i[0]||(i[0]=d=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",so))]),_:3})):e.createCommentVNode("",!0)],16)}}}),io={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},co=e.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 n=t,r=mt(),o=e.ref([]),l=e.computed(()=>o.value.map(i=>i.getBoundingClientRect())),a=e.computed(()=>{let i=0,u=0,d=0,f=0,p=0,m=0;const g=[];for(let h=0;h<l.value.length;h++){const w=r.value[h];w&&(w.position||(w.position=n.position),w.position==="top-left"?(g.push(i),i+=l.value[h].height+n.gap):w.position==="top-right"?(g.push(u),u+=l.value[h].height+n.gap):w.position==="top"?(g.push(d),d+=l.value[h].height+n.gap):w.position==="bottom-left"?(g.push(f),f+=l.value[h].height+n.gap):w.position==="bottom-right"?(g.push(p),p+=l.value[h].height+n.gap):w.position==="bottom"&&(g.push(m),m+=l.value[h].height+n.gap))}return g});function c(i,u){if(u||(u=n.position),u==="top-left")return{top:`${i+n.pt}px`,left:`${n.pl}px`};if(u==="top-right")return{top:`${i+n.pt}px`,right:`${n.pr}px`};if(u==="top")return{top:`${i+n.pt}px`,left:"50%",transform:"translateX(-50%)"};if(u==="bottom-left")return{bottom:`${i+n.pb}px`,left:`${n.pl}px`};if(u==="bottom-right")return{bottom:`${i+n.pb}px`,right:`${n.pr}px`};if(u==="bottom")return{bottom:`${i+n.pb}px`,left:"50%",transform:"translateX(-50%)"}}const s=e.ref({});return e.watchEffect(()=>{r.value.forEach(i=>{if(i.durationMS&&i.durationMS>0){if(s.value[i.hash])return;s.value[i.hash]=setTimeout(()=>{r.value.splice(r.value.indexOf(i),1)},i.durationMS)}})}),(i,u)=>{const d=Ot;return e.openBlock(),e.createElementBlock("div",io,[e.createVNode(e.TransitionGroup,{"enter-from-class":"op0","enter-to-class":"op100","leave-from-class":"op100","leave-to-class":"op0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.hash,ref_for:!0,ref_key:"notificationRefs",ref:o,class:"absolute transition-top,bottom,opacity",style:e.normalizeStyle(c(a.value[p],f.position))},[e.createVNode(d,{"with-border":"",closeable:"",title:f.title,message:f.message,icon:f.icon,loading:f.loading,color:f.color,onClose:m=>e.unref(r).splice(e.unref(r).indexOf(f),1)},null,8,["title","message","icon","loading","color","onClose"])],4))),128))]),_:1})])}}}),uo={class:"relative"},Ft=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const n=t,r=e.computed(()=>{switch(n.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=W(n),l=e.ref(null),a=$(n.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${a.r}, ${a.g}, ${a.b}, ${n.opacity/100})`}));return(s,i)=>(e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",e.mergeProps(s.$attrs,{ref_key:"wrapperRef",ref:l,class:[[r.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(s.$slots,"content")],16)]))}}),Lt=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 n=t,r=e.computed(()=>n.color),o=e.computed(()=>n.loading),l=W(n),{x:a,y:c}=He({type:"client"}),s=e.ref(null),{width:i,height:u,top:d,left:f}=ne(s),p=e.computed(()=>Math.min(i.value,u.value)),m=e.computed(()=>!i.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 g;const h=e.computed(()=>oe(r.value).value[5]),w=e.computed(()=>{var y;return n.loading?(g?g.play():g=(y=s.value)==null?void 0:y.animate(m.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%"}):(g&&g.pause(),{background:"var(--r-surface-background-color)"})}),v=e.computed(()=>{if(n.traceAnimate){const y=e.computed(()=>({x:f.value+i.value/2,y:d.value+u.value/2})),C=e.computed(()=>{if(a.value<f.value||a.value>f.value+i.value||c.value<d.value||c.value>d.value+u.value)return{x:a.value,y:c.value};const E=y.value.x,x=y.value.y;let _,b;const B=(c.value-x)/(a.value-E);return a.value<E?(_=f.value,b=x+B*(f.value-E)):(_=f.value+i.value,b=x+B*(_-E)),b<d.value?(b=d.value,_=E+(b-x)/B):b>d.value+u.value&&(b=d.value+u.value,_=E+(b-x)/B),{x:_,y:b}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${C.value.x-f.value}px ${C.value.y-d.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(y,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.is),e.mergeProps({ref_key:"paperRef",ref:s,class:["relative border",[{"p-4":!y.noPadding},e.unref(l).class]],style:[e.unref(l).style,w.value,v.value]},y.withBorder&&!y.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16,["class","style"]))}}),fo=["for"],po={key:1},mo=["id","placeholder","type"],Wt=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:n}){const r=t,o=e.useModel(t,"modelValue"),l=e.computed(()=>{switch(r.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"}}}),a=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>r.color),s=ot(c),i=e.computed(()=>r.disabled?"pointer-events-none select-none filter opacity-60":""),u=W(r),d=e.ref(null);n({el:d});const f=e.useAttrs(),p=Te(f);return(m,g)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(s)])},[m.$slots.label||m.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[a.value]])},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(m.label),1))],10,fo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},m.$attrs,{ref_key:"input",ref:d,"onUpdate:modelValue":g[0]||(g[0]=h=>o.value=h),class:["w-full border px-2 py-1 outline-none custom-input-colors",[i.value,e.unref(u).class,l.value.base]],style:[e.unref(u).style],placeholder:m.placeholder,type:r.password?"password":"text"}),null,16,mo),[[e.vModelDynamic,o.value]])],4))}}),ho={class:"flex gap-2"},go=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const n=t,r=e.ref([]);function o(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(d=>d.el===s.target),u=s.target.value??"";s.target.value="",Array.from(u).forEach((d,f)=>{i+f>=r.value.length||(r.value[i+f].el.value=d,i+f+1<r.value.length?(r.value[i+f+1].el.focus(),r.value[i+f+1].el.select()):r.value[i+f].el.blur())})}function l(s){s.preventDefault(),s.stopPropagation();const i=s.target.value!=="";s.target.value="";const u=r.value.findIndex(d=>d.el===s.target);u!==0&&(r.value[u-1].el.focus(),r.value[u-1].el.select(),i||(r.value[u-1].el.value=""))}function a(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i>0&&(r.value[i-1].el.focus(),r.value[i-1].el.select())}function c(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i<r.value.length-1&&(r.value[i+1].el.focus(),r.value[i+1].el.select())}return(s,i)=>(e.openBlock(),e.createElementBlock("div",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.length,u=>(e.openBlock(),e.createBlock(Wt,{ref_for:!0,ref_key:"inputs",ref:r,key:u,class:"w-8 text-center",style:{padding:"0"},password:n.password,onPointerup:i[0]||(i[0]=d=>d.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(l,["backspace"]),e.withKeys(a,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),yo=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 n=t,r=e.ref(null),o=e.ref(null),l=ne(r),a=ne(o),c=e.computed(()=>{switch(n.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=e.computed(()=>{switch(n.position){case"top-start":case"top-end":return{top:`${-a.height.value-n.offset}px`};case"top":return{top:`${-a.height.value-n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${n.offset}px`};case"bottom":return{top:`${l.height.value+n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"left-start":return{left:`${-a.width.value-n.offset}px`,top:0};case"left-end":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value+l.height.value}px`};case"left":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};case"right-start":return{left:`${n.offset+l.width.value}px`,top:0};case"right-end":return{left:`${n.offset+l.width.value}px`,top:`${-a.height.value+l.height.value}px`};case"right":return{left:`${l.width.value+n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};default:return{}}}),i=ye(r),u=e.useModel(t,"modelValue"),d=e.computed(()=>n.trigger==="hover"?i.value:u.value);function f(p){var m;!((m=r.value)!=null&&m.contains(p.target))||p.target===r.value||(u.value=!u.value)}return St(o,p=>{var m;(m=r.value)!=null&&m.contains(p.target)?u.value=!0:u.value=!1}),(p,m)=>{const g=Ft;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative"},[e.createElementVNode("div",{onPointerup:f},[e.renderSlot(p.$slots,"default")],32),d.value&&p.overlay?(e.openBlock(),e.createBlock(g,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:m[0]||(m[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),d.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([s.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),bo=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 n=t,r=e.computed(()=>{switch(n.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(()=>n.color),l=xe(o),a=Ce("bg",{dark:7,light:3}),c=W(n);return(s,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[r.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(a)),[s.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(l)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(l),{style:[{width:`${(Number(s.value)-Number(s.min))/(Number(s.max)-Number(s.min))*100}%`}]}),null,16))],16))}}),wo=["onMouseover","onPointerdown"],So="#ffeb91",ko="text-[var(--d-text)]",vo="text-surface-on-low",xo="text-[var(--d-text-h)]",Co="i-fluent-star-12-filled",_o="i-fluent-star-12-filled",Bo=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:n}){const r=t,o=n,l=e.computed(()=>r.count??5),a=e.useModel(t,"modelValue"),c=e.computed(()=>r.highlightSelectedOnly??!1),s=e.computed(()=>r.unselectable??!1),i=e.ref(-1),u=e.computed(()=>d(r.icons,l.value,Co,_o));function d(y,C,E,x){function _(B){return typeof B=="string"?{active:B,normal:B}:B===void 0?{active:x,normal:E}:{active:B.active||x,normal:B.normal||E}}if(y===void 0)return Array.from({length:C},()=>({active:x,normal:E}));let b;if(typeof y=="string")b={active:y,normal:y};else if(Array.isArray(y)){const B=y.map(A=>_(A));return B.length===1?(b=B[0],Array.from({length:C},()=>({...b}))):B.slice(0,C).concat(Array.from({length:Math.max(0,C-B.length)},()=>({active:x,normal:E})))}else b={active:y.active||x,normal:y.normal||E};return Array.from({length:C},()=>({...b}))}function f(y){return c.value?i.value!==-1?i.value===y+1:a.value===y+1:i.value!==-1?i.value>y:a.value>=y+1}function p(y){const C=u.value[y].normal,E=u.value[y].active;return f(y)?[c.value?xo:ko,E]:[vo,C]}const g=e.computed(()=>{if(typeof r.color=="string")return Array.from({length:l.value}).map(()=>r.color);const y=Array.from({length:l.value}).map(()=>So);return r.color.forEach((C,E)=>{C&&(y[E]=C)}),y}).value.map(y=>ke("filled",y)),h=O({color:"surface",type:"text",index:{dark:6,light:4}});function w(y){a.value===y&&s.value?(o("select",0),a.value=0):(o("select",y+1),a.value=y+1)}const v=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(y,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",v.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"pr-1",onMouseover:_=>i.value=x+1,onMouseleave:C[0]||(C[0]=_=>i.value=-1),onPointerdown:_=>w(x)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},f(x)?e.unref(g)[x].value:e.unref(h),{class:["active:translate-y-1px",[p(x)]]}),null,16)],40,wo))),128))],2))}}),Eo=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:tt.value})}},setup(t){const n=t,r=zt(),o=e.computed(()=>n.themes[n.theme]);e.watchEffect(()=>{ee.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:ee.value,ce.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ce.value,ue.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:ue.value,de.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:de.value,fe.value=typeof o.value.colors.error=="string"?o.value.colors.error:fe.value});const l=e.ref(null),a=e.computed(()=>Ye({colors:{surface:ee.value,primary:ce.value,secondary:ue.value,tertiary:de.value,error:fe.value},name:o.value.name}));return e.provide(Mt,r),e.provide("currentThemeData",e.computed(()=>o.value)),Yn(l),(c,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:l,style:e.normalizeStyle([a.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),$o=["id"],Mo=["for"],zo=["for"],jt=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 n=t,r=e.useModel(t,"modelValue");n.value&&(r.value=n.value);const o=e.ref(null),l=e.ref(!1),a=e.computed(()=>{switch(n.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:l.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:l.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:l.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:l.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:l.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>n.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),s=Te(n),i=Ce("bg",{dark:7,light:3}),u=$e(n.color,"bg",5),d=$e(n.color,"text",5),f=e.computed(()=>({wrapper:r.value?[u.value.class]:[i.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:r.value?u.value.style:i.value.style,indicator:r.value?{}:""})),m=W(n);return(g,h)=>(e.openBlock(),e.createElementBlock("div",{role:"switch",class:e.normalizeClass(["relative flex items-center gap-2",{"pointer-events-none filter-grayscale op-60":n.disabled}])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(s),"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w)},g.$attrs,{class:"hidden",type:"checkbox"}),null,16,$o),[[e.vModelCheckbox,r.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(s)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[a.value.wrapper,...f.value.wrapper,e.unref(m).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(m).style,p.value.wrapper]),onPointerdown:h[1]||(h[1]=w=>l.value=!0),onPointerup:h[2]||(h[2]=w=>l.value=!1),onPointerleave:h[3]||(h[3]=w=>l.value=!1),onPointerenter:h[4]||(h[4]=w=>w.buttons===1&&(l.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[a.value.indicator,f.value.indicator,c.value.indicator,r.value?a.value.active:a.value.inactive,e.unref(m).class]]),style:e.normalizeStyle([e.unref(m).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(()=>[n.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[n.indicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):r.value&&n.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[n.onIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):!r.value&&n.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[n.offIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).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(()=>[r.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{[`left-0 text-${g.color}-on-container-low`]:r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{"right-0":!r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2))]),_:1})],38)],8,Mo),g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(s)},e.toDisplayString(g.label),9,zo)):e.createCommentVNode("",!0)],2))}}),Ao={class:"scheme-switch inline-block"},Vo={class:"dark:hidden"},Ho={class:"light:hidden"},To=e.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(!1);let o;addEventListener("click",c=>o=c),e.watch([r],()=>{if(re){const c=(o==null?void 0:o.clientX)??innerWidth/2,s=(o==null?void 0:o.clientY)??innerHeight/2,i=Math.hypot(Math.max(c,innerWidth-c),Math.max(s,innerHeight-s));if(n.disableViewTranslation)document.documentElement.setAttribute("data-scheme",r.value?"dark":"light"),localStorage.setItem("scheme",r.value?"dark":"light");else{const u=document.startViewTransition(()=>{r.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});n.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${c}px ${s}px)`,`circle(${i}px at ${c}px ${s}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const l=e.ref(!0),a=e.ref(!1);return e.onMounted(()=>{re&&(r.value=localStorage.getItem("scheme")==="dark"),l.value=!1}),e.nextTick(()=>{a.value=!0}),(c,s)=>{const i=jt;return e.openBlock(),e.createElementBlock("div",Ao,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!l.value})},[e.createElementVNode("div",Vo,[e.createVNode(i,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Ho,[e.createVNode(i,{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:l.value})},[e.createVNode(i,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),animate:a.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)])}}}),No=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:n}){const r=t,o=Ct(),l=ne(o),a=e.ref(),c=ne(()=>a.value),s=e.computed(()=>{if(r.height)return typeof r.height=="number"?`${r.height}px`:r.height;const M=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,N=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return`${l.height.value-M-N}px`}),i=e.ref(),u=Bt(()=>i.value),{x:d,y:f}=en(()=>i.value),p=e.computed(()=>{var M;return(((M=i.value)==null?void 0:M.scrollHeight)??0)-(u.value??0)}),m=_t(()=>i.value),g=e.computed(()=>f.value/p.value||0),h=e.computed(()=>i.value?u.value/m.value*u.value:0),w=e.computed(()=>u.value-h.value),v=e.computed(()=>{if(!i.value)return null;const M=g.value*w.value;return{x:d.value,y:f.value,barHeight:h.value,barTop:M}}),y=e.ref(!1),C=e.ref(0),E=e.ref(""),x=e.ref(0),_=He({type:"client"});T(()=>a.value,"pointerdown",M=>{y.value=!0,C.value=M.clientY,x.value=f.value,E.value=document.body.style.userSelect,document.body.style.userSelect="none"}),T(()=>document,"pointermove",()=>{if(!y.value)return;if(r.threshold<c.left.value-_.x.value||_.x.value-c.right.value>r.threshold){f.value=x.value;return}const N=(_.y.value-C.value)/w.value;f.value=x.value+N*p.value}),T(()=>document,"pointerup",()=>{y.value=!1,document.body.style.userSelect=E.value}),n({$el:i});const b=e.ref(),B=ye(b),A=ye(()=>a.value),k=Ce("bg",{dark:2,light:7},.5),z=Ce("bg",{dark:2,light:7},.75);function H(M){var me;const{clientY:N}=M,{top:R,height:Y}=c,V=R.value,D=Y.value,G=V+D/2,Q=N-G;(me=i.value)==null||me.scrollBy({top:Q/D*u.value,behavior:"smooth"})}return(M,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:b,style:e.normalizeStyle({height:s.value}),class:"relative max-h-fit overflow-hidden"},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${M.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:H},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:a,class:e.normalizeClass([[e.unref(k).class,{"op-0":!e.unref(B)&&M.autoHide,"op-100":e.unref(B)&&M.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:e.normalizeStyle([{right:"0px",width:`${M.barWidth}px`,top:`${v.value.barTop}px`,height:`${v.value.barHeight}px`},!e.unref(A)&&!y.value&&e.unref(k).style,(e.unref(A)||y.value)&&e.unref(z).style])},null,6),[[e.vShow,v.value.barHeight<e.unref(u)]])],36)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:i,style:e.normalizeStyle({paddingRight:`${M.floating?0:M.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot(M.$slots,"default")],4)],4))}}),Ro={class:"w-full flex items-center"},Io=["placeholder","readonly","value","aria-label"],Do={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Po=["onPointerdown","onMousemove"],Oo={key:0},Fo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Lo=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,n)=>t.includes(n)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:n}){const r=t,o=n,l=W(r),a=e.useModel(t,"modelValue"),c=e.ref(null),s=e.ref(null),i=e.ref(!1);St(s,()=>{i.value=!1});const u=e.ref(-1),d=e.ref(-1);e.watchEffect(()=>{i.value||(d.value=-1)}),e.watch(a,()=>{o("change",a.value)});const f=e.computed(()=>a.value),p=e.computed(()=>h(f.value)),m=e.computed(()=>r.options.findIndex(V=>z(V,f.value))),g=e.ref(p.value);e.watch(p,()=>{g.value=p.value});function h(V){return V?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?String(V):V.label?V.label:V.id:""}function w(V){if(V)return typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V:V.id}function v(V){i.value=!0;const D=V.target;g.value=D.value,o("input",g.value)}const y=e.computed(()=>r.searchable&&g.value!==p.value?r.options.filter(V=>r.filter(h(V),g.value)):r.options);ae("ArrowDown",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value+1)%r.options.length)}),ae("ArrowUp",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value-1+r.options.length)%r.options.length)}),ae("Enter",()=>{i.value&&d.value!==-1&&(a.value=y.value[d.value],c.value.focus(),i.value=!1)});function C(V){if(c.value.focus(),!i.value){i.value=!0;return}a.value=V,i.value=!1}const E=e.computed(()=>r.color),x=ot(E,"default"),_=e.computed(()=>{switch(r.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"}}}),b=e.ref(null),{height:B}=ne(b),{bottom:A}=ne(c);e.watch([i],()=>{d.value=-1,u.value=-1});const k=e.computed(()=>i.value&&re?B.value===0?!1:document.documentElement.clientHeight-A.value>B.value:!1);function z(V,D){return D?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V===D:typeof D=="string"||typeof D=="symbol"||typeof D=="number"?!1:V.id===D.id:!1}const H=e.computed(()=>r.searchable?"cursor-text":"cursor-pointer"),M=Ne(),N=nt(),R=xe(E);function Y(V){u.value=V,d.value=-1}return(V,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative",style:e.normalizeStyle(e.unref(x))},[e.createElementVNode("div",Ro,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[_.value.wrapper,e.unref(l).class,H.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:V.placeholder,style:e.normalizeStyle([e.unref(l).style,e.unref(x)]),readonly:!V.searchable,value:g.value,"aria-label":V.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:v,onClick:D[0]||(D[0]=G=>i.value=!0)},null,46,Io),D[2]||(D[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),i.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:b,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref(M).class,_.value.dropdown,{"bottom-10":!k.value}]]),style:e.normalizeStyle([e.unref(M).style])},[V.options.length===0?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(V.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(V.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(G,Q)=>(e.openBlock(),e.createElementBlock("div",{key:w(G),class:e.normalizeClass([[d.value===Q&&e.unref(R).class,u.value===Q&&d.value===-1&&e.unref(N).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([d.value===Q&&e.unref(R).style,u.value===Q&&d.value===-1&&e.unref(N).style]),onPointerdown:me=>C(G),onMousemove:me=>Y(Q),onMouseleave:D[1]||(D[1]=me=>u.value=-1)},[e.renderSlot(V.$slots,"item",{data:G,selected:z(G,f.value)},()=>[e.createTextVNode(e.toDisplayString(h(G)),1)]),z(G,f.value)?(e.openBlock(),e.createElementBlock("div",Oo,D[3]||(D[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,Po))),128)),V.searchable&&y.value.length===0?(e.openBlock(),e.createElementBlock("div",Fo,[e.renderSlot(V.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(V.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Wo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:n}){const r=t,o=n,l=e.computed(()=>r.color),a=oe(l),c=e.computed(()=>{const v=a.value[5].setAlpha(.5).toHex8String(),y=a.value[5].setAlpha(.1).toHex8String();return{"--border-color":v,"--fill-color":y}}),{shift:s,control:i}=rn(),u=Ct(),d=e.computed(()=>r.target??u.value),f=He(),p=e.ref({x:0,y:0}),m=e.ref({x:0,y:0}),g=e.ref(!1),h=ne(d);T(d,"pointerdown",v=>{if(v.button!==0)return;const y=v.pageX-h.left.value,C=v.pageY-h.top.value;p.value={x:y,y:C},m.value={x:y,y:C},g.value=!0,o("selectStart",{target:v.target,shift:s.value,ctrl:i.value})},{capture:!0}),T(window,"pointerup",v=>{g.value=!1,o("selectEnd",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value})}),T(d,"pointermove",v=>{const y=v.pageX-h.left.value,C=v.pageY-h.top.value;g.value&&(m.value={x:y,y:C},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))});const w=e.computed(()=>d.value?d.value.parentElement:null);return T(w,"scroll",v=>{g.value&&(m.value={x:f.x.value-h.left.value,y:f.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))}),T(window,"dragend",()=>{g.value=!1}),(v,y)=>d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.value},[g.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,m.value.x)}px`,top:`${Math.min(p.value.y,m.value.y)}px`,width:`${Math.abs(p.value.x-m.value.x)}px`,height:`${Math.abs(p.value.y-m.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),jo={class:"relative w-full"},Xo="dark:bg-white bg-[var(--i-bg)]",Go="dark:bg-[var(--i-bg)] bg-white",Uo=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 n=t;function r(_,b,B){const A=[];for(let k=_;k<=b;k+=B)A.push(k);return A[A.length-1]!==b&&A.push(b),A}function o(_,b){const B=[];if(_===0)return B;B.push(b[0]);const A=(b.length-1)/(_-1);for(let k=1;k<_-1;k++)B.push(b[Math.round(k*A)]);return B.push(b[b.length-1]),B}const l=e.computed(()=>n.options?n.options.length:n.tickNum??0),a=e.computed(()=>n.options===void 0?r(n.min,n.max,n.step):n.options),c=e.computed(()=>o(l.value,a.value)),s=e.useModel(t,"modelValue"),i=e.computed(()=>a.value.length??0),u=e.ref(a.value.includes(s.value)?a.value.indexOf(s.value):0);function d(_){let b=a.value.indexOf(_);if(b===-1)if(typeof _=="number"){let B=1/0;for(let A=0;A<a.value.length;A++){const k=Math.abs(a.value[A]-_);k<B&&(B=k,b=A)}}else b=0;return b}const f=e.computed(()=>n.color),p=oe(f.value),m=e.computed(()=>p.value[4]),g=xe(f);e.watchEffect(()=>{u.value<0||(s.value=a.value[u.value])}),e.watchEffect(()=>{u.value=d(s.value)});const h=e.ref(),w=e.ref(),v=e.ref(!1);function y(_){if(!v.value)return;if(!(_.buttons===1)){v.value=!1;return}_.preventDefault(),_.stopPropagation();const B=ne(h),{clientX:A}=_,k=B.left.value,H=B.right.value-k,M=Math.round((A-k)/H*(i.value-1));if(M<0){u.value=0;return}if(M>i.value-1){u.value=i.value-1;return}u.value=M}e.watchEffect(()=>{u.value=d(s.value)});function C(_){_.preventDefault(),_.stopPropagation(),v.value=!0,y(_)}T(h,"pointerdown",C),e.onMounted(()=>{T(document,"pointermove",y),u.value=Math.max(0,d(s.value))});const E=e.computed(()=>{switch(n.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"}}}),x=e.computed(()=>n.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(_,b)=>(e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",E.value.wrapper]),onTouchmove:b[0]||(b[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",E.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",E.value.content]),style:e.normalizeStyle({width:`${n.width}rem`,minWidth:`${n.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",E.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",[E.value.indicator,x.value.indicator,Xo]]),style:e.normalizeStyle([`--i-bg: ${m.value}`,{left:`${u.value/(i.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[E.value.indicatorInner,Go]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(g).class,E.value.progress,x.value.progress]]),style:e.normalizeStyle([e.unref(g).style,{width:`${u.value/(i.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-surface-on-low relative mx-1 h-1em text-xs",style:e.normalizeStyle({width:`${n.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",E.value.tick])},e.toDisplayString(B),7))),128))],4)):e.createCommentVNode("",!0)]))}}),Yo={class:"h-full py-2"},qo=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const n=t,r=e.computed(()=>n.color),o=e.inject(Fe,e.ref("")),l=e.ref(null),a=e.computed(()=>o.value===n.value);function c(){o.value=n.value}const s=e.inject(We,new Map);e.onMounted(()=>{s.set(n.value,l)});const i=e.inject(Le,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(i.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=e.computed(()=>{switch(i.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=O({color:r.value,type:"bg",index:5}),p=O({color:r.value,type:"outline",index:5});return(m,g)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:l,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}),[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).class,d.value]),style:e.normalizeStyle([e.unref(f).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([d.value])},null,2)),e.createElementVNode("div",Yo,[e.renderSlot(m.$slots,"default")])],16))}}),Ko=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useSlots(),o=e.computed(()=>{var f;const u=(f=r.default)==null?void 0:f.call(r);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var m;return((m=p==null?void 0:p.props)==null?void 0:m.value)!==void 0}).map(p=>p.props.value))??[]}),l=e.useModel(t,"modelValue");!l.value&&o.value.length>0&&(l.value=o.value[0]);const a=e.ref(null);e.onMounted(()=>{n.defaultValue&&(l.value=n.defaultValue)}),e.provide(Fe,l);const c=e.computed(()=>n.direction);e.provide(Le,c);const s=new Map;e.provide(We,s),ae("ArrowLeft",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowRight",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?l.value=o.value[d+1]:l.value=o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowUp",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowDown",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?o.value[d+1]:o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}});const i=e.computed(()=>{switch(n.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:a,class:e.normalizeClass(["flex",[i.value]])},[e.renderSlot(u.$slots,"default")],2))}}),Jo=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const n=t,r=e.computed(()=>{switch(n.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=W(n),l=e.computed(()=>n.color??"primary"),a=e.computed(()=>n.variant),c=Re(a,l);return(s,i)=>(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,r.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[n.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([n.leftIcon,"shrink-0"])},null,2)):s.$slots.leftIcon?e.renderSlot(s.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),n.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([n.rightIcon,"h-container w-container shrink-0"])},null,2)):s.$slots.rightIcon?e.renderSlot(s.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),Zo=["data-scheme","data-theme"],Qo=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const n=t,r=Et(),o=e.computed(()=>Ye(n.theme?n.theme:r.value)),l=xt("scheme","light"),a=e.computed(()=>n.scheme?n.scheme:l.value);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":a.value,"data-theme":e.unref(r).name},[e.renderSlot(c.$slots,"default")],12,Zo))}}),el=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const n=t,r=He(),o=e.ref(null),l=ye(o),a=Rr(l,n.timeout),c=e.ref(0),s=e.ref(0),i=e.ref(null),u=ye(i);return e.watch(a,(d,f)=>{a.value&&d!==f&&(c.value=r.x.value,s.value=r.y.value)}),(d,f)=>{const p=Lt;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(d.$slots,"default")],512),c.value&&s.value&&(e.unref(a)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:i,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${s.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}});function Xt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function U(t){return typeof t=="function"?t():e.unref(t)}const tl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rl=Object.prototype.toString,nl=t=>rl.call(t)==="[object Object]",pe=()=>{};function Gt(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}function ol(t,n={}){let r,o,l=pe;const a=c=>{clearTimeout(c),l(),l=pe};return c=>{const s=U(t),i=U(n.maxWait);return r&&a(r),s<=0||i!==void 0&&i<=0?(o&&(a(o),o=null),Promise.resolve(c())):new Promise((u,d)=>{l=n.rejectOnCancel?d:u,i&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,u(c())},i)),r=setTimeout(()=>{o&&a(o),o=null,u(c())},s)})}}function ll(...t){let n=0,r,o=!0,l=pe,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=pe)};return f=>{const p=U(c),m=Date.now()-n,g=()=>a=f();return d(),p<=0?(n=Date.now(),g()):(m>p&&(i||!o)?(n=Date.now(),g()):s&&(a=new Promise((h,w)=>{l=u?w:h,r=setTimeout(()=>{n=Date.now(),o=!0,h(g()),d()},Math.max(0,p-m))})),!i&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,a)}}function al(t){return e.getCurrentInstance()}function sl(t,n=200,r={}){return Gt(ol(n,r),t)}function il(t,n=200,r=!1,o=!0,l=!1){return Gt(ll(n,r,o,l),t)}function Ut(t,n=!0,r){al()?e.onMounted(t,r):n?t():e.nextTick(t)}function le(t){var n;const r=U(t);return(n=r==null?void 0:r.$el)!=null?n:r}const De=tl?window:void 0;function Yt(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=De):[n,r,o,l]=t,!n)return pe;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[le(n),U(l)],([d,f])=>{if(c(),!d)return;const p=nl(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Xt(u),u}function cl(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ul(t){const n=cl();return e.computed(()=>(n.value,!!t()))}function dl(t,n,r={}){const{window:o=De,...l}=r;let a;const c=ul(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=U(t);return Array.isArray(f)?f.map(p=>le(p)):[le(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Xt(d),{isSupported:c,stop:d}}function fl(t,n={width:0,height:0},r={}){const{window:o=De,box:l="content-box"}=r,a=e.computed(()=>{var f,p;return(p=(f=le(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(n.width),s=e.ref(n.height),{stop:i}=dl(t,([f])=>{const p=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=le(t);if(m){const g=m.getBoundingClientRect();c.value=g.width,s.value=g.height}}else if(p){const m=Array.isArray(p)?p:[p];c.value=m.reduce((g,{inlineSize:h})=>g+h,0),s.value=m.reduce((g,{blockSize:h})=>g+h,0)}else c.value=f.contentRect.width,s.value=f.contentRect.height},r);Ut(()=>{const f=le(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:n.width,s.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=e.watch(()=>le(t),f=>{c.value=f?n.width:0,s.value=f?n.height:0});function d(){i(),u()}return{width:c,height:s,stop:d}}const qt=1;function pl(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=pe,onScroll:a=pe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=De,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=U(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=U(B))!=null?A:g.value,left:(k=U(b))!=null?k:m.value,behavior:U(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=sl(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||le(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-qt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-qt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return Yt(t,"scroll",r?il(_,r,!0,!1):_,s),Ut(()=>{try{const b=U(t);if(!b)return;x(b)}catch(b){d(b)}}),Yt(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=U(t);u&&b&&x(b)}}}const ml=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:n}){const r=t,o=e.useSlots(),l=e.computed(()=>e.unref(r.gap)??16),a=e.computed(()=>e.unref(r.rowCount)??3),c=e.computed(()=>e.unref(r.paddingX)??0),s=e.ref();function i(C){return Array.isArray(C)}const u=e.ref([]),d=e.computed(()=>{const C=u.value;return Array.from(C).map(E=>fl(E))}),f=e.computed(()=>{var C,E;return r.itemWidth?e.unref(r.itemWidth)*a.value+l.value*(a.value-1)+c.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((E=(C=s.value)==null?void 0:C.parentElement)==null?void 0:E.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-c.value*2-l.value*(a.value-1))/a.value);function m(C,E,x,_){const b=e.unref(C),B=Array.from({length:e.unref(E)}).fill(0),A=[],k=Math.max(0,f.value-e.unref(_)*2-p.value*b.length-e.unref(x)*b.length)/2;for(let z=0;z<b.length;z++){const H=b[z],M=B.indexOf(Math.min(...B)),N=M*(p.value+e.unref(x))+e.unref(_)+k,R=B[M];A.push({x:N,y:R,width:H.width.value,height:H.height.value}),B[M]+=H.height.value+e.unref(x)}return A}const g=e.computed(()=>m(d,a,l,c)),h=e.computed(()=>i(g.value)?Math.max(...g.value.map(C=>C.y+C.height)):0),w=e.computed(()=>{var C;return((C=o.default)==null?void 0:C.call(o))??[]}),v=e.computed(()=>{const C=[];return w.value.forEach(E=>{i(E.children)?E.children.forEach(x=>{C.push(x)}):C.push(E)}),C});function y(C){if(!i(g.value))return{};const E=g.value[C];return E?{left:`${E.x??0}px`,top:`${E.y??0}px`,maxWidth:`${p.value}px`}:{}}return n({width:p}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:s,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${f.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(x,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([y(_),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),hl=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:n}){const r=t,o=e.computed(()=>e.unref(r.rangeExpand)??0),l=e.useSlots(),a=e.computed(()=>e.unref(r.gap)??16),c=e.computed(()=>e.unref(r.rowCount)??3),s=e.computed(()=>e.unref(r.paddingX)??0),i=e.ref(),u=e.computed(()=>i.value&&i.value.$el?i.value.$el:i.value);function d(k){return Array.isArray(k)}const f=e.computed(()=>{var k,z;return r.itemWidth?e.unref(r.itemWidth)*c.value+a.value*(c.value-1)+s.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((z=(k=u.value)==null?void 0:k.parentElement)==null?void 0:z.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-s.value*2-a.value*(c.value-1))/c.value),m=e.computed(()=>e.unref(r.items).map(k=>{const z=p.value/k.width;return{width:p.value,height:k.height*z}}));function g(k,z,H,M){const N=e.unref(k),R=Array.from({length:e.unref(z)}).fill(0),Y=[],V=Math.max(0,f.value-e.unref(M)*2-p.value*N.length-e.unref(H)*N.length)/2;for(let D=0;D<N.length;D++){const G=N[D],Q=R.indexOf(Math.min(...R)),me=Q*(p.value+e.unref(H))+e.unref(M)+V,gl=R[Q];Y.push({x:me,y:gl,width:G.width,height:G.height}),R[Q]+=G.height+e.unref(H)}return Y}const h=e.computed(()=>g(m,c,a,s)),w=e.computed(()=>d(h.value)?Math.max(...h.value.map(k=>k.y+k.height)):0),v=e.computed(()=>{var k;return((k=l.default)==null?void 0:k.call(l))??[]});function y(k){if(!d(h.value))return{};const z=h.value[k];return z?{left:`${z.x??0}px`,top:`${z.y??0}px`,maxWidth:`${p.value}px`}:{}}const C=e.ref(!1),E=e.computed(()=>C.value?"smooth":"auto"),x=pl(u,{behavior:E}),_=e.computed(()=>{var k;return[x.y.value-o.value,x.y.value+(((k=u.value)==null?void 0:k.clientHeight)??0)+o.value]}),b=e.computed(()=>h.value.map(k=>{const z=k.y,H=k.y+k.height;return z>=_.value[0]&&z<=_.value[1]||H>=_.value[0]&&H<=_.value[1]||z<=_.value[0]&&H>=_.value[1]})),B=e.computed(()=>{const k=[];return v.value.forEach((z,H)=>{if(d(z.children))z.children.forEach((M,N)=>{b.value[N]&&k.push([M,N])});else{if(!b.value[H])return;k.push([z,H])}}),k});n({scroll:x,scrollTo:(k,z=!1)=>{const H=C.value;C.value=z,x.y.value=k,C.value=H}});const A=e.computed(()=>r.is??"div");return(k,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.value),{ref_key:"wrapper",ref:i,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${w.value}px`,width:`${f.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,([H,M])=>(e.openBlock(),e.createElementBlock("div",{key:H,style:e.normalizeStyle([y(M),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});S.AspectRatio=Kt,S.Avatar=It,S.Btn=Ie,S.BtnGroup=Hn,S.COLOR_LIGHTNESS_MAP=X,S.ChatContainer=Dn,S.ChatMessage=Pn,S.ChatSystem=Fn,S.Chip=Ln,S.ColorInput=Gn,S.ColorSwatch=Dt,S.Drawer=Jn,S.Dropzone=Zn,S.FullscreenOverlay=lt,S.Image=Qn,S.Indicator=to,S.Modal=ro,S.Notification=Ot,S.NotificationSystem=co,S.Notifications=vr,S.Overlay=Ft,S.Paper=Lt,S.PinInput=go,S.Popover=yo,S.Progress=bo,S.Rating=Bo,S.RokuProvider=Eo,S.SURFACE_LIGHTNESS_MAP=se,S.SchemeSwitch=To,S.ScrollArea=No,S.Select=Lo,S.SelectArea=Wo,S.Slider=Uo,S.Switch=jt,S.TabItem=qo,S.Tabs=Ko,S.Tag=Jo,S.TextField=Wt,S.ThemeProvider=Qo,S.Tooltip=el,S.VirtualWaterfall=hl,S.Waterfall=ml,S.borderCS=Ht,S.childrenElementMapSymbol=We,S.defaultTheme=tt,S.directionSymbol=Le,S.errorColor=fe,S.errorColors=kn,S.generateColors=he,S.generateColorsMap=ht,S.generateColorsObjMap=J,S.getCSInner=Ee,S.primaryColor=ce,S.primaryColors=bn,S.schemeSymbol=Mt,S.secondaryColor=ue,S.secondaryColors=wn,S.surfaceColor=ee,S.surfaceColors=vn,S.tabCurrentSymbol=Fe,S.tabValueListSymbol=xr,S.tertiaryColor=de,S.tertiaryColors=Sn,S.useButtonCS=Re,S.useCS=O,S.useClientHeight=Bt,S.useColorCS=$e,S.useColors=oe,S.useContainerCS=ke,S.useContainerDefaultCS=Ne,S.useContainerDefaultVariantCS=nt,S.useContainerFilledCS=xe,S.useContainerLightCS=Rt,S.useCurrentThemeData=Et,S.useCurrentThemeName=an,S.useCurrentThemeScheme=ln,S.useId=Te,S.useIndicatorFilledCS=Nt,S.useInputColorStyle=ot,S.useMergedCS=ve,S.useNotifications=mt,S.useRootTheme=on,S.useRounded=W,S.useSchemeString=zt,S.useScrollHeight=_t,S.useSurfaceCS=Ce,S.useSurfaceColors=Tt,S.useTextCS=yn,S.useThemeData=$t,S.useThemeStyles=Ye,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
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"})});