vue-amazing-ui
Version:
An Amazing Vue3 UI Components Library, Using TypeScript.
14 lines • 843 kB
JavaScript
var VueAmazingUI=(function(be,e){"use strict";function ft(t,n){Sd(t)&&(t="100%");const a=Cd(t);return t=n===360?t:Math.min(n,Math.max(0,parseFloat(t))),a&&(t=parseInt(String(t*n),10)/100),Math.abs(t-n)<1e-6?1:(n===360?t=(t<0?t%n+n:t%n)/parseFloat(String(n)):t=t%n/parseFloat(String(n)),t)}function dl(t){return Math.min(1,Math.max(0,t))}function Sd(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Cd(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Er(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ul(t){return Number(t)<=1?`${Number(t)*100}%`:t}function Ua(t){return t.length===1?"0"+t:String(t)}function xd(t,n,a){return{r:ft(t,255)*255,g:ft(n,255)*255,b:ft(a,255)*255}}function Br(t,n,a){t=ft(t,255),n=ft(n,255),a=ft(a,255);const l=Math.max(t,n,a),o=Math.min(t,n,a);let r=0,i=0;const s=(l+o)/2;if(l===o)i=0,r=0;else{const c=l-o;switch(i=s>.5?c/(2-l-o):c/(l+o),l){case t:r=(n-a)/c+(n<a?6:0);break;case n:r=(a-t)/c+2;break;case a:r=(t-n)/c+4;break}r/=6}return{h:r,s:i,l:s}}function jl(t,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<.16666666666666666?t+(n-t)*(6*a):a<.5?n:a<.6666666666666666?t+(n-t)*(.6666666666666666-a)*6:t}function Ed(t,n,a){let l,o,r;if(t=ft(t,360),n=ft(n,100),a=ft(a,100),n===0)o=a,r=a,l=a;else{const i=a<.5?a*(1+n):a+n-a*n,s=2*a-i;l=jl(s,i,t+.3333333333333333),o=jl(s,i,t),r=jl(s,i,t-.3333333333333333)}return{r:l*255,g:o*255,b:r*255}}function Mr(t,n,a){t=ft(t,255),n=ft(n,255),a=ft(a,255);const l=Math.max(t,n,a),o=Math.min(t,n,a);let r=0;const i=l,s=l-o,c=l===0?0:s/l;if(l===o)r=0;else{switch(l){case t:r=(n-a)/s+(n<a?6:0);break;case n:r=(a-t)/s+2;break;case a:r=(t-n)/s+4;break}r/=6}return{h:r,s:c,v:i}}function Bd(t,n,a){t=ft(t,360)*6,n=ft(n,100),a=ft(a,100);const l=Math.floor(t),o=t-l,r=a*(1-n),i=a*(1-o*n),s=a*(1-(1-o)*n),c=l%6,d=[a,i,r,r,s,a][c],f=[s,a,a,i,r,r][c],m=[r,r,s,a,a,i][c];return{r:d*255,g:f*255,b:m*255}}function $r(t,n,a,l){const o=[Ua(Math.round(t).toString(16)),Ua(Math.round(n).toString(16)),Ua(Math.round(a).toString(16))];return l&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Md(t,n,a,l,o){const r=[Ua(Math.round(t).toString(16)),Ua(Math.round(n).toString(16)),Ua(Math.round(a).toString(16)),Ua(Td(l))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function $d(t,n,a,l){const o=t/100,r=n/100,i=a/100,s=l/100,c=255*(1-o)*(1-s),d=255*(1-r)*(1-s),f=255*(1-i)*(1-s);return{r:c,g:d,b:f}}function Tr(t,n,a){let l=1-t/255,o=1-n/255,r=1-a/255,i=Math.min(l,o,r);return i===1?(l=0,o=0,r=0):(l=(l-i)/(1-i)*100,o=(o-i)/(1-i)*100,r=(r-i)/(1-i)*100),i*=100,{c:Math.round(l),m:Math.round(o),y:Math.round(r),k:Math.round(i)}}function Td(t){return Math.round(parseFloat(t)*255).toString(16)}function Vr(t){return Et(t)/255}function Et(t){return parseInt(t,16)}function Vd(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const Ul={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Nd(t){let n={r:0,g:0,b:0},a=1,l=null,o=null,r=null,i=!1,s=!1;return typeof t=="string"&&(t=Pd(t)),typeof t=="object"&&(Bt(t.r)&&Bt(t.g)&&Bt(t.b)?(n=xd(t.r,t.g,t.b),i=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Bt(t.h)&&Bt(t.s)&&Bt(t.v)?(l=ul(t.s),o=ul(t.v),n=Bd(t.h,l,o),i=!0,s="hsv"):Bt(t.h)&&Bt(t.s)&&Bt(t.l)?(l=ul(t.s),r=ul(t.l),n=Ed(t.h,l,r),i=!0,s="hsl"):Bt(t.c)&&Bt(t.m)&&Bt(t.y)&&Bt(t.k)&&(n=$d(t.c,t.m,t.y,t.k),i=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(t,"a")&&(a=t.a)),a=Er(a),{ok:i,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}}const Ba="(?:"+"[-\\+]?\\d*\\.\\d+%?"+")|(?:"+"[-\\+]?\\d+%?"+")",Gl="[\\s|\\(]+("+Ba+")[,|\\s]+("+Ba+")[,|\\s]+("+Ba+")\\s*\\)?",fl="[\\s|\\(]+("+Ba+")[,|\\s]+("+Ba+")[,|\\s]+("+Ba+")[,|\\s]+("+Ba+")\\s*\\)?",Dt={CSS_UNIT:new RegExp(Ba),rgb:new RegExp("rgb"+Gl),rgba:new RegExp("rgba"+fl),hsl:new RegExp("hsl"+Gl),hsla:new RegExp("hsla"+fl),hsv:new RegExp("hsv"+Gl),hsva:new RegExp("hsva"+fl),cmyk:new RegExp("cmyk"+fl),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 Pd(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let n=!1;if(Ul[t])t=Ul[t],n=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let a=Dt.rgb.exec(t);return a?{r:a[1],g:a[2],b:a[3]}:(a=Dt.rgba.exec(t),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=Dt.hsl.exec(t),a?{h:a[1],s:a[2],l:a[3]}:(a=Dt.hsla.exec(t),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=Dt.hsv.exec(t),a?{h:a[1],s:a[2],v:a[3]}:(a=Dt.hsva.exec(t),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=Dt.cmyk.exec(t),a?{c:a[1],m:a[2],y:a[3],k:a[4]}:(a=Dt.hex8.exec(t),a?{r:Et(a[1]),g:Et(a[2]),b:Et(a[3]),a:Vr(a[4]),format:n?"name":"hex8"}:(a=Dt.hex6.exec(t),a?{r:Et(a[1]),g:Et(a[2]),b:Et(a[3]),format:n?"name":"hex"}:(a=Dt.hex4.exec(t),a?{r:Et(a[1]+a[1]),g:Et(a[2]+a[2]),b:Et(a[3]+a[3]),a:Vr(a[4]+a[4]),format:n?"name":"hex8"}:(a=Dt.hex3.exec(t),a?{r:Et(a[1]+a[1]),g:Et(a[2]+a[2]),b:Et(a[3]+a[3]),format:n?"name":"hex"}:!1))))))))))}function Bt(t){return typeof t=="number"?!Number.isNaN(t):Dt.CSS_UNIT.test(t)}class je{constructor(n="",a={}){if(n instanceof je)return n;typeof n=="number"&&(n=Vd(n)),this.originalInput=n;const l=Nd(n);this.originalInput=n,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=a.format??l.format,this.gradientType=a.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.isValid=l.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3}getLuminance(){const n=this.toRgb();let a,l,o;const r=n.r/255,i=n.g/255,s=n.b/255;return r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*a+.7152*l+.0722*o}getAlpha(){return this.a}setAlpha(n){return this.a=Er(n),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:n}=this.toHsl();return n===0}toHsv(){const n=Mr(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}}toHsvString(){const n=Mr(this.r,this.g,this.b),a=Math.round(n.h*360),l=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?`hsv(${a}, ${l}%, ${o}%)`:`hsva(${a}, ${l}%, ${o}%, ${this.roundA})`}toHsl(){const n=Br(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}}toHslString(){const n=Br(this.r,this.g,this.b),a=Math.round(n.h*360),l=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?`hsl(${a}, ${l}%, ${o}%)`:`hsla(${a}, ${l}%, ${o}%, ${this.roundA})`}toHex(n=!1){return $r(this.r,this.g,this.b,n)}toHexString(n=!1){return"#"+this.toHex(n)}toHex8(n=!1){return Md(this.r,this.g,this.b,this.a,n)}toHex8String(n=!1){return"#"+this.toHex8(n)}toHexShortString(n=!1){return this.a===1?this.toHexString(n):this.toHex8String(n)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const n=Math.round(this.r),a=Math.round(this.g),l=Math.round(this.b);return this.a===1?`rgb(${n}, ${a}, ${l})`:`rgba(${n}, ${a}, ${l}, ${this.roundA})`}toPercentageRgb(){const n=a=>`${Math.round(ft(a,255)*100)}%`;return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}}toPercentageRgbString(){const n=a=>Math.round(ft(a,255)*100);return this.a===1?`rgb(${n(this.r)}%, ${n(this.g)}%, ${n(this.b)}%)`:`rgba(${n(this.r)}%, ${n(this.g)}%, ${n(this.b)}%, ${this.roundA})`}toCmyk(){return{...Tr(this.r,this.g,this.b)}}toCmykString(){const{c:n,m:a,y:l,k:o}=Tr(this.r,this.g,this.b);return`cmyk(${n}, ${a}, ${l}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const n="#"+$r(this.r,this.g,this.b,!1);for(const[a,l]of Object.entries(Ul))if(n===l)return a;return!1}toString(n){const a=!!n;n=n??this.format;let l=!1;const o=this.a<1&&this.a>=0;return!a&&o&&(n.startsWith("hex")||n==="name")?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(l=this.toRgbString()),n==="prgb"&&(l=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(l=this.toHexString()),n==="hex3"&&(l=this.toHexString(!0)),n==="hex4"&&(l=this.toHex8String(!0)),n==="hex8"&&(l=this.toHex8String()),n==="name"&&(l=this.toName()),n==="hsl"&&(l=this.toHslString()),n==="hsv"&&(l=this.toHsvString()),n==="cmyk"&&(l=this.toCmykString()),l||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new je(this.toString())}lighten(n=10){const a=this.toHsl();return a.l+=n/100,a.l=dl(a.l),new je(a)}brighten(n=10){const a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(n/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(n/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(n/100)))),new je(a)}darken(n=10){const a=this.toHsl();return a.l-=n/100,a.l=dl(a.l),new je(a)}tint(n=10){return this.mix("white",n)}shade(n=10){return this.mix("black",n)}desaturate(n=10){const a=this.toHsl();return a.s-=n/100,a.s=dl(a.s),new je(a)}saturate(n=10){const a=this.toHsl();return a.s+=n/100,a.s=dl(a.s),new je(a)}greyscale(){return this.desaturate(100)}spin(n){const a=this.toHsl(),l=(a.h+n)%360;return a.h=l<0?360+l:l,new je(a)}mix(n,a=50){const l=this.toRgb(),o=new je(n).toRgb(),r=a/100,i={r:(o.r-l.r)*r+l.r,g:(o.g-l.g)*r+l.g,b:(o.b-l.b)*r+l.b,a:(o.a-l.a)*r+l.a};return new je(i)}analogous(n=6,a=30){const l=this.toHsl(),o=360/a,r=[this];for(l.h=(l.h-(o*n>>1)+720)%360;--n;)l.h=(l.h+o)%360,r.push(new je(l));return r}complement(){const n=this.toHsl();return n.h=(n.h+180)%360,new je(n)}monochromatic(n=6){const a=this.toHsv(),{h:l}=a,{s:o}=a;let{v:r}=a;const i=[],s=1/n;for(;n--;)i.push(new je({h:l,s:o,v:r})),r=(r+s)%1;return i}splitcomplement(){const n=this.toHsl(),{h:a}=n;return[this,new je({h:(a+72)%360,s:n.s,l:n.l}),new je({h:(a+216)%360,s:n.s,l:n.l})]}onBackground(n){const a=this.toRgb(),l=new je(n).toRgb(),o=a.a+l.a*(1-a.a);return new je({r:(a.r*a.a+l.r*l.a*(1-a.a))/o,g:(a.g*a.a+l.g*l.a*(1-a.a))/o,b:(a.b*a.a+l.b*l.a*(1-a.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(n){const a=this.toHsl(),{h:l}=a,o=[this],r=360/n;for(let i=1;i<n;i++)o.push(new je({h:(l+i*r)%360,s:a.s,l:a.l}));return o}equals(n){const a=new je(n);return this.format==="cmyk"||a.format==="cmyk"?this.toCmykString()===a.toCmykString():this.toRgbString()===a.toRgbString()}}const Dd={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},it=Math.round;function Kl(t,n){const a=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],l=a.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)l[o]=n(l[o]||0,a[o]||"",o);return a[3]?l[3]=a[3].includes("%")?l[3]/100:l[3]:l[3]=1,l}const Nr=(t,n,a)=>a===0?t:t/100;function In(t,n){const a=n||255;return t>a?a:t<0?0:t}class bn{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(n){function a(l){return l[0]in n&&l[1]in n&&l[2]in n}if(n)if(typeof n=="string"){let o=function(r){return l.startsWith(r)};const l=n.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(o("rgb"))this.fromRgbString(l);else if(o("hsl"))this.fromHslString(l);else if(o("hsv")||o("hsb"))this.fromHsvString(l);else{const r=Dd[l.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(n instanceof bn)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._s=n._s,this._l=n._l,this._v=n._v;else if(a("rgb"))this.r=In(n.r),this.g=In(n.g),this.b=In(n.b),this.a=typeof n.a=="number"?In(n.a,1):1;else if(a("hsl"))this.fromHsl(n);else if(a("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const a=this.toHsv();return a.h=n,this._c(a)}getLuminance(){function n(r){const i=r/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const a=n(this.r),l=n(this.g),o=n(this.b);return .2126*a+.7152*l+.0722*o}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=it(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const n=this.getMax()-this.getMin();n===0?this._s=0:this._s=n/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const a=this.getHue(),l=this.getSaturation();let o=this.getLightness()-n/100;return o<0&&(o=0),this._c({h:a,s:l,l:o,a:this.a})}lighten(n=10){const a=this.getHue(),l=this.getSaturation();let o=this.getLightness()+n/100;return o>1&&(o=1),this._c({h:a,s:l,l:o,a:this.a})}mix(n,a=50){const l=this._c(n),o=a/100,r=s=>(l[s]-this[s])*o+this[s],i={r:it(r("r")),g:it(r("g")),b:it(r("b")),a:it(r("a")*100)/100};return this._c(i)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const a=this._c(n),l=this.a+a.a*(1-this.a),o=r=>it((this[r]*this.a+a[r]*a.a*(1-this.a))/l);return this._c({r:o("r"),g:o("g"),b:o("b"),a:l})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const a=(this.r||0).toString(16);n+=a.length===2?a:"0"+a;const l=(this.g||0).toString(16);n+=l.length===2?l:"0"+l;const o=(this.b||0).toString(16);if(n+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const r=it(this.a*255).toString(16);n+=r.length===2?r:"0"+r}return n}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),a=it(this.getSaturation()*100),l=it(this.getLightness()*100);return this.a!==1?`hsla(${n},${a}%,${l}%,${this.a})`:`hsl(${n},${a}%,${l}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(n,a,l){const o=this.clone();return o[n]=In(a,l),o}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const a=n.replace("#","");function l(o,r){return parseInt(a[o]+a[r||o],16)}a.length<6?(this.r=l(0),this.g=l(1),this.b=l(2),this.a=a[3]?l(3)/255:1):(this.r=l(0,1),this.g=l(2,3),this.b=l(4,5),this.a=a[6]?l(6,7)/255:1)}fromHsl({h:n,s:a,l,a:o}){if(this._h=n%360,this._s=a,this._l=l,this.a=typeof o=="number"?o:1,a<=0){const y=it(l*255);this.r=y,this.g=y,this.b=y}let r=0,i=0,s=0;const c=n/60,d=(1-Math.abs(2*l-1))*a,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(r=d,i=f):c>=1&&c<2?(r=f,i=d):c>=2&&c<3?(i=d,s=f):c>=3&&c<4?(i=f,s=d):c>=4&&c<5?(r=f,s=d):c>=5&&c<6&&(r=d,s=f);const m=l-d/2;this.r=it((r+m)*255),this.g=it((i+m)*255),this.b=it((s+m)*255)}fromHsv({h:n,s:a,v:l,a:o}){this._h=n%360,this._s=a,this._v=l,this.a=typeof o=="number"?o:1;const r=it(l*255);if(this.r=r,this.g=r,this.b=r,a<=0)return;const i=n/60,s=Math.floor(i),c=i-s,d=it(l*(1-a)*255),f=it(l*(1-a*c)*255),m=it(l*(1-a*(1-c))*255);switch(s){case 0:this.g=m,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=f;break;case 4:this.r=m,this.g=d;break;default:this.g=d,this.b=f;break}}fromHsvString(n){const a=Kl(n,Nr);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(n){const a=Kl(n,Nr);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(n){const a=Kl(n,(l,o)=>o.includes("%")?it(l/100*255):l);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}}const ml=2,Pr=.16,zd=.05,Ad=.05,Ld=.15,Dr=5,zr=4,Fd=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ar(t,n,a){let l;return Math.round(t.h)>=60&&Math.round(t.h)<=240?l=a?Math.round(t.h)-ml*n:Math.round(t.h)+ml*n:l=a?Math.round(t.h)+ml*n:Math.round(t.h)-ml*n,l<0?l+=360:l>=360&&(l-=360),l}function Lr(t,n,a){if(t.h===0&&t.s===0)return t.s;let l;return a?l=t.s-Pr*n:n===zr?l=t.s+Pr:l=t.s+zd*n,l>1&&(l=1),a&&n===Dr&&l>.1&&(l=.1),l<.06&&(l=.06),Math.round(l*100)/100}function Fr(t,n,a){let l;return a?l=t.v+Ad*n:l=t.v-Ld*n,l=Math.max(0,Math.min(1,l)),Math.round(l*100)/100}function Xl(t,n={}){const a=[],l=new bn(t),o=l.toHsv();for(let r=Dr;r>0;r-=1){const i=new bn({h:Ar(o,r,!0),s:Lr(o,r,!0),v:Fr(o,r,!0)});a.push(i)}a.push(l);for(let r=1;r<=zr;r+=1){const i=new bn({h:Ar(o,r),s:Lr(o,r),v:Fr(o,r)});a.push(i)}return n.theme==="dark"?Fd.map(({index:r,amount:i})=>new bn(n.backgroundColor||"#141414").mix(a[r],i).toHexString()):a.map(r=>r.toHexString())}function Rd(t=Date.now(),n="YYYY-MM-DD HH:mm:ss"){try{let a;if(typeof t=="number"||typeof t=="string"){if(a=new Date(t),isNaN(a.getTime()))throw new Error("Invalid date")}else a=t;const l=(r,i=2)=>String(r).padStart(i,"0"),o=r=>{switch(r){case"YYYY":return l(a.getFullYear());case"YY":return l(a.getFullYear()).slice(2,4);case"MM":return l(a.getMonth()+1);case"M":return String(a.getMonth()+1);case"DD":return l(a.getDate());case"D":return String(a.getDate());case"HH":return l(a.getHours());case"H":return String(a.getHours());case"mm":return l(a.getMinutes());case"m":return String(a.getMinutes());case"ss":return l(a.getSeconds());case"s":return String(a.getSeconds());case"SSS":return l(a.getMilliseconds(),3);default:return r}};return n.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,o)}catch(a){return console.error("Error formatting date:",a),""}}function _l(t,n=2,a=",",l=".",o,r){typeof t!="number"&&typeof t!="string"&&console.warn("Expected value to be of type number or string"),typeof n!="number"&&console.warn("Expected precision to be of type number");const i=Number(t);if(isNaN(i)||!isFinite(i))return"";if(i===0)return i.toFixed(n);let s=i.toFixed(n);if(typeof a=="string"&&a!==""){const[c,d]=s.split(".");s=c.replace(/(\d)(?=(\d{3})+$)/g,"$1"+a)+(d?l+d:"")}return(o||"")+s+(r||"")}function _t(t,n=0,a=!1){let l=null;function o(i){if(l||(l=i),i-l>=n){try{t()}catch(c){console.error("Error executing rafTimeout function:",c)}a&&(l=i,r.id=requestAnimationFrame(o))}else r.id=requestAnimationFrame(o)}const r={id:requestAnimationFrame(o)};return r}function at(t){t&&t.id&&typeof t.id=="number"?cancelAnimationFrame(t.id):console.warn("cancelRaf received an invalid id:",t)}function Rr(t,n=300){let a=!0;return function(...l){if(!a)return!1;a&&(t(...l),a=!1,setTimeout(()=>{a=!0},n))}}function Ga(t,n=300){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{t(...l)},n)}}function wn(t,n){if(Number.isNaN(t)||Number.isNaN(n))throw new Error("Both num1 and num2 must be valid numbers.");const a=t%1!==0,l=n%1!==0;if(!a&&!l)return t+n;const o=String(t).split(".")[1]??"",r=String(n).split(".")[1]??"",i=Math.max(o.length,r.length),s=Math.pow(10,i),c=t.toFixed(i),d=n.toFixed(i);return(+c.replace(".","")+ +d.replace(".",""))/s}function Or(t,n){if(!t){console.error("无效的 url");return}const a=n||t.split("?")[0].split("/").pop()||"download";try{fetch(t).then(l=>{l.ok?l.blob().then(o=>{const r=URL.createObjectURL(o),i=document.createElement("a");i.href=r,i.download=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}):console.error("请求文件失败,状态码:",l.status)})}catch(l){console.error("文件下载失败:",l)}}function Od(){const t=document.documentElement;t.classList.toggle("dark"),t.classList.contains("dark")?t.style.colorScheme="dark":t.style.colorScheme="light"}function Id(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function Ir(t){const n=Id();return e.computed(()=>(n.value,!!t()))}function Ma(t,n,a){e.onMounted(()=>t.addEventListener(n,a)),e.onUnmounted(()=>t.removeEventListener(n,a))}function Ka(t,n,a={}){const l=Ir(()=>window&&"MutationObserver"in window),o=e.ref(!1);let r;const i=e.computed(()=>{const m=e.toValue(t);return m?Array.isArray(m)?m.map(y=>e.toValue(y)).filter(y=>y):[m]:[]}),s=()=>{r&&(r.disconnect(),r=void 0)},c=()=>{l.value&&i.value.length&&!o.value&&(r=new MutationObserver(n),i.value.forEach(m=>r.observe(m,a)))};e.watch(()=>i.value,()=>{s(),c()},{immediate:!0,flush:"post"});const d=()=>{o.value=!1,c()},f=()=>{o.value=!0,s()};return e.onBeforeUnmount(()=>s()),{start:d,stop:f}}function Hr(t=window,n=0,a,l){const o=e.ref(0),r=e.ref(0),i=e.ref(0),s=e.ref(0),c=e.ref(!1),d=e.ref(!1),f=e.ref(!1),m=e.ref(!1),y=e.ref(!1),p=e.ref(0),b=e.ref(0);function w(x){c.value=!0;const E=x.target.documentElement??x.target;o.value=E.scrollLeft,i.value=E.scrollTop,d.value=o.value<p.value,f.value=o.value>p.value,m.value=i.value<b.value,y.value=i.value>b.value,p.value=o.value,b.value=i.value,h(x),a&&a(x)}const v=Rr(w,n);function u(x){c.value&&(c.value=!1,d.value=!1,f.value=!1,m.value=!1,y.value=!1,l&&l(x))}const h=Ga(u,n+200),g=e.computed(()=>{const x=e.toValue(t);return x||null});e.watch(()=>g.value,(x,E)=>{if(E&&S(E),x){const C=x?.document?.documentElement||x?.documentElement||x;r.value=C.scrollWidth-C.clientWidth,s.value=C.scrollHeight-C.clientHeight,C.addEventListener("scroll",v),C.addEventListener("scrollend",h)}},{immediate:!0,flush:"post"});function S(x){const E=x?.document?.documentElement||x?.documentElement||x;E.removeEventListener("scroll",v),E.removeEventListener("scrollend",h)}return e.onBeforeUnmount(()=>S(g.value)),{x:o,xScrollMax:r,y:i,yScrollMax:s,isScrolling:c,left:d,right:f,top:m,bottom:y}}function Hd(){const t=e.ref(0),n=e.ref(0);let a=performance.now();const l=10,o=r=>{if(n.value++,n.value>=l){const i=r-a;t.value=Math.round(1e3/(i/l)),a=r,n.value=0}requestAnimationFrame(o)};return requestAnimationFrame(o),{fps:t}}function Yd(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const n=e.ref(window&&window.matchMedia(t).matches),a=window.matchMedia(t),l=o=>{n.value=o.matches};return e.onMounted(()=>{a.addEventListener("change",l)}),e.onBeforeUnmount(()=>{a.removeEventListener("change",l)}),{match:n}}function Ot(t,n,a={}){const l=Ir(()=>window&&"ResizeObserver"in window);let o;const r=e.ref(!1),i=e.computed(()=>{const m=e.toValue(t);return m?Array.isArray(m)?m.map(y=>e.toValue(y)).filter(y=>y):[m]:[]}),s=()=>{o&&(o.disconnect(),o=void 0)},c=()=>{l.value&&i.value.length&&!r.value&&(o=new ResizeObserver(n),i.value.forEach(m=>o.observe(m,a)))};e.watch(()=>i.value,()=>{s(),c()},{immediate:!0,flush:"post"});const d=()=>{r.value=!1,c()},f=()=>{r.value=!0,s()};return e.onBeforeUnmount(()=>s()),{start:d,stop:f}}function Oe(t){const n=e.useSlots(),a=l=>{const o=n[l]?.(),r=i=>{if(i.type===e.Comment||Array.isArray(i.children)&&!i.children.length)return!1;if(i.type!==e.Text)return!0;if(typeof i.children=="string")return i.children.trim()!==""};return o&&o?.length?o.some(s=>r(s)):!1};if(Array.isArray(t)){const l=e.reactive({});return t.forEach(o=>{const r=e.computed(()=>a(o));l[o]=r}),l}else return e.computed(()=>a(t))}function Ie(t){const n=Wd("#1677ff"),a=e.inject("common",e.reactive({colorPalettes:n,shadowColor:qd(n[0])})),l=e.inject("components",null);return l!==null&&t in l&&l[t].colorPalettes.length?e.toRefs(l[t]):e.toRefs(a)}function Wd(t){return Xl(t)}function Ql(t){return t>=0&&t<=255}function qd(t,n="#ffffff"){const{r:a,g:l,b:o,a:r}=new je(t).toRgb();if(r<1)return t;const{r:i,g:s,b:c}=new je(n).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((a-i*(1-d))/d),m=Math.round((l-s*(1-d))/d),y=Math.round((o-c*(1-d))/d);if(Ql(f)&&Ql(m)&&Ql(y))return new je({r:f,g:m,b:y,a:Math.round(d*100)/100}).toRgbString()}return new je({r:a,g:l,b:o,a:1}).toRgbString()}function Xa(t){const n=e.ref(!1);try{const a={get[t](){return n.value=!0,!1}};window.addEventListener("test",()=>null,a),window.removeEventListener("test",()=>null,a)}catch{n.value=!1}return{isSupported:n}}const jd={key:0,class:"alert-icon"},Ud=["src"],Gd={key:1,class:"icon-svg",focusable:"false","data-icon":"info-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Kd={key:2,class:"icon-svg",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Xd={key:3,class:"icon-svg",focusable:"false","data-icon":"exclamation-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},_d={key:4,class:"icon-svg",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Qd={key:1,class:"big-icon"},Zd=["src"],Jd={key:1,class:"icon-svg",focusable:"false","data-icon":"info-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},eu={key:2,class:"icon-svg",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},tu={key:3,class:"icon-svg",focusable:"false","data-icon":"exclamation-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},au={key:4,class:"icon-svg",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},nu={class:"alert-content"},lu={class:"alert-message"},ou={key:0,class:"alert-description"},ru={key:1,class:"alert-actions"},iu=["onKeydown"],su={key:0},cu={key:1,class:"alert-close",focusable:"false","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},du=e.defineComponent({__name:"Alert",props:{message:{default:void 0},description:{default:void 0},type:{default:"default"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},closeText:{default:void 0},icon:{default:void 0},showIcon:{type:Boolean,default:!1},actions:{type:Function,default:void 0}},emits:["close"],setup(t,{emit:n}){const a=t,l=e.ref(),o=e.ref(!1),{colorPalettes:r}=Ie("Alert"),i=n,s=Oe(["icon","description","actions"]),c=e.computed(()=>s.icon||a.icon||["success","info","warning","error"].includes(a.type)),d=e.computed(()=>s.description||a.description);async function f(m){l.value.style.maxHeight=`${l.value.offsetHeight}px`,await e.nextTick(),o.value=!0,i("close",m)}return(m,y)=>(e.openBlock(),e.createBlock(e.Transition,{name:"alert-motion","leave-from-class":"alert-motion-leave","leave-active-class":"alert-motion-leave alert-motion-leave-active","leave-to-class":"alert-motion-leave alert-motion-leave-active"},{default:e.withCtx(()=>[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"alertRef",ref:l,class:e.normalizeClass(["alert-wrap",[`alert-${t.type}`,{"alert-borderless":!t.bordered,"alert-width-description":d.value}]]),style:e.normalizeStyle(`
--alert-primary-color: ${e.unref(r)[5]};
--alert-primary-bg-color: ${e.unref(r)[0]};
--alert-primary-border-color: ${e.unref(r)[2]};
--alert-success-color: #52c41a;
--alert-success-bg-color: #f6ffed;
--alert-success-border-color: #b7eb8f;
--alert-warning-color: #faad14;
--alert-warning-bg-color: #fffbe6;
--alert-warning-border-color: #ffe58f;
--alert-error-color: #ff4d4f;
--alert-error-bg-color: #fff2f0;
--alert-error-border-color: #ffccc7;
`)},[t.showIcon&&c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.value?(e.openBlock(),e.createElementBlock("span",Qd,[e.renderSlot(m.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.icon,class:"big-icon-img"},null,8,Zd)):t.type==="info"?(e.openBlock(),e.createElementBlock("svg",Jd,[...y[4]||(y[4]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},null,-1),e.createElementVNode("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"},null,-1)])])):t.type==="success"?(e.openBlock(),e.createElementBlock("svg",eu,[...y[5]||(y[5]=[e.createElementVNode("path",{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"},null,-1),e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},null,-1)])])):t.type==="warning"?(e.openBlock(),e.createElementBlock("svg",tu,[...y[6]||(y[6]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},null,-1),e.createElementVNode("path",{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"},null,-1)])])):t.type==="error"?(e.openBlock(),e.createElementBlock("svg",au,[...y[7]||(y[7]=[e.createElementVNode("path",{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"},null,-1),e.createElementVNode("path",{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},null,-1)])])):e.createCommentVNode("",!0)],!0)])):(e.openBlock(),e.createElementBlock("span",jd,[e.renderSlot(m.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.icon,class:"icon-img"},null,8,Ud)):t.type==="info"?(e.openBlock(),e.createElementBlock("svg",Gd,[...y[0]||(y[0]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"},null,-1)])])):t.type==="success"?(e.openBlock(),e.createElementBlock("svg",Kd,[...y[1]||(y[1]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"},null,-1)])])):t.type==="warning"?(e.openBlock(),e.createElementBlock("svg",Xd,[...y[2]||(y[2]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"},null,-1)])])):t.type==="error"?(e.openBlock(),e.createElementBlock("svg",_d,[...y[3]||(y[3]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"},null,-1)])])):e.createCommentVNode("",!0)],!0)]))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",nu,[e.createElementVNode("div",lu,[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.message),1)],!0)]),d.value?(e.openBlock(),e.createElementBlock("div",ou,[e.renderSlot(m.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),e.unref(s).actions?(e.openBlock(),e.createElementBlock("div",ru,[e.renderSlot(m.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("a",{key:2,tabindex:"0",class:"alert-close",onClick:f,onKeydown:e.withKeys(e.withModifiers(f,["prevent"]),["enter"])},[e.renderSlot(m.$slots,"closeText",{},()=>[t.closeText?(e.openBlock(),e.createElementBlock("span",su,e.toDisplayString(t.closeText),1)):(e.openBlock(),e.createElementBlock("svg",cu,[...y[8]||(y[8]=[e.createElementVNode("path",{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"},null,-1)])]))],!0)],40,iu)):e.createCommentVNode("",!0)],6))]),_:3}))}}),Ce=(t,n)=>{const a=t.__vccOpts||t;for(const[l,o]of n)a[l]=o;return a},uu=Ce(du,[["__scopeId","data-v-a8544be4"]]),Se=t=>{const n=t;return n.install=function(a){a.component(n.__name,t)},t},Yr=Se(uu),fu=["src","alt"],Zl=Se(Ce(e.defineComponent({__name:"Avatar",props:{color:{default:"rgba(0, 0, 0, 0.25)"},shape:{default:"circle"},size:{default:"middle"},src:{default:void 0},alt:{default:void 0},icon:{type:[Object,Function],default:void 0},href:{default:void 0},target:{default:"_self"}},setup(t){const n=t,a=e.ref(window.innerWidth),l=Oe(["default","icon"]),o=e.computed(()=>n.src?!1:!!(l.icon||n.icon)),r=e.computed(()=>{if(typeof n.size=="number")return o.value?{backgroundColor:n.color,width:`${n.size}px`,height:`${n.size}px`,lineHeight:`${n.size}px`,fontSize:`${n.size/2}px`}:{backgroundColor:n.color,width:`${n.size}px`,height:`${n.size}px`,lineHeight:`${n.size}px`,fontSize:"18px"};if(typeof n.size=="object"){let d=32;return a.value>=1600&&n.size.xxl!==void 0?d=n.size.xxl:a.value>=1200&&n.size.xl!==void 0?d=n.size.xl:a.value>=992&&n.size.lg!==void 0?d=n.size.lg:a.value>=768&&n.size.md!==void 0?d=n.size.md:a.value>=576&&n.size.sm!==void 0?d=n.size.sm:a.value<576&&n.size.xs!==void 0&&(d=n.size.xs),{backgroundColor:n.color,width:`${d}px`,height:`${d}px`,lineHeight:`${d}px`,fontSize:`${d/2}px`}}return{backgroundColor:n.color}}),i=e.computed(()=>!n.src&&!o.value?l.default:!1),s=e.computed(()=>{if(typeof n.size=="string")return{transform:"scale(1) translateX(-50%)"};if(typeof n.size=="number"){const d=Math.min(1,Math.max(.022222222222222223,(1+(n.size-9)*1)/45));return{lineHeight:`${n.size}px`,transform:`scale(${d}) translateX(-50%)`}}return{}});Ma(window,"resize",c);function c(){a.value=window.innerWidth}return(d,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{class:e.normalizeClass(["avatar-wrap",[`avatar-${t.shape}`,{[`avatar-${t.size}`]:typeof t.size=="string"&&["small","middle","large"].includes(t.size),"avatar-image":t.src,"avatar-link":t.href}]]),style:e.normalizeStyle(r.value),href:t.href,target:t.target},{default:e.withCtx(()=>[t.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"image-item",src:t.src,alt:t.alt},null,8,fu)):e.createCommentVNode("",!0),!t.src&&o.value?e.renderSlot(d.$slots,"icon",{key:1},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],!0):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:"string-item",style:e.normalizeStyle(s.value)},[e.renderSlot(d.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0)]),_:3},8,["class","style","href","target"]))}}),[["__scopeId","data-v-5a0b276f"]])),It=Se(Ce(e.defineComponent({__name:"Tooltip",props:{maxWidth:{default:240},content:{default:void 0},contentClass:{default:void 0},contentStyle:{default:()=>({})},tooltip:{default:void 0},tooltipClass:{default:void 0},tooltipStyle:{default:()=>({})},bgColor:{default:"rgba(0, 0, 0, 0.85)"},arrow:{type:Boolean,default:!0},placement:{default:"top"},flip:{type:Boolean,default:!0},trigger:{default:"hover"},keyboard:{type:Boolean,default:!1},to:{type:[String,Boolean],default:"body"},transitionDuration:{default:100},showDelay:{default:100},hideDelay:{default:100},show:{type:Boolean,default:!1},showControl:{type:Boolean,default:!1}},emits:["update:show","openChange","animationend"],setup(t,{expose:n,emit:a}){const l=t,o=e.ref(!1),r=e.ref(!1),i=e.ref(),s=e.ref(null),c=e.ref(0),d=e.ref(0),f=e.ref(0),m=e.ref("top"),y=e.ref(null),p=e.ref(),b=e.ref(null),w=e.ref(null),v=e.ref(),u=e.ref(null),h=e.ref(),g=e.ref(document.documentElement.clientWidth),S=e.ref(document.documentElement.clientHeight),{isSupported:x}=Xa("passive"),{isSupported:E}=Xa("capture"),C=a,k=Oe(["tooltip"]),B=e.computed(()=>typeof l.maxWidth=="number"?`${l.maxWidth}px`:l.maxWidth),$=e.computed(()=>k.tooltip||l.tooltip),M=e.computed(()=>{const ne=p.value?.top??0,I=v.value?.top??0,W=ne-I,se=p.value?.left??0,A=v.value?.left??0,K=se-A;switch(m.value){case"top":return{transformOrigin:`50% ${d.value}px`,top:`${W-d.value}px`,left:`${K-f.value}px`};case"bottom":return{transformOrigin:`50% ${l.arrow?-4:-6}px`,top:`${W+d.value}px`,left:`${K-f.value}px`};case"left":return{transformOrigin:`${f.value}px 50%`,top:`${W-d.value}px`,left:`${K-f.value}px`};case"right":return{transformOrigin:`${l.arrow?-4:-6}px 50%`,top:`${W-d.value}px`,left:`${K+f.value}px`};default:return{transformOrigin:`50% ${d.value}px`,top:`${W-d.value}px`,left:`${K-f.value}px`}}});e.watch(()=>[l.placement,l.arrow,l.flip],()=>{ee()},{deep:!0}),e.watch(()=>$.value&&r.value,ne=>{ne&&!o.value&&(o.value=!0)},{immediate:!0}),e.watch(()=>l.show,ne=>{ne&&!r.value&&le(),!ne&&r.value&&ae()},{immediate:!0}),e.onMounted(()=>{O()}),e.onBeforeUnmount(()=>{U()});const T=Ka(s,()=>{c.value!==s.value?.scrollTop&&(c.value=s.value?.scrollTop??0,ee())},{subtree:!0,attributes:!0});Ma(window,"resize",D),Ot([u,y],ne=>{if($.value&&r.value){if(ne.length===1&&ne[0].target.classList.contains("tooltip-card")){const{blockSize:I,inlineSize:W}=ne[0].borderBoxSize[0];if(Math.round(I)===Math.round(h.value.height)&&Math.round(W)===Math.round(h.value.width))return}ee()}});function N(){let ne=b.value?.parentElement;for(;ne;){if(ne===document.documentElement){w.value=document.documentElement;return}const{position:I}=getComputedStyle(ne);if(I!=="static"){w.value=ne;return}ne=ne.parentElement}}function D(){g.value=document.documentElement.clientWidth,S.value=document.documentElement.clientHeight,O(),ee()}function O(){U(),s.value=F(y.value),s.value&&s.value.addEventListener("scroll",ee,x.value?{passive:!0}:void 0),s.value===document.documentElement?T.start():T.stop()}function U(){s.value&&s.value.removeEventListener("scroll",ee),s.value=null}function P(ne){return ne===document.documentElement?null:ne.parentElement}function F(ne){if(ne===null)return null;const I=P(ne);return I===null?null:I===document.documentElement?document.documentElement:(se=>{const{overflow:A,overflowX:K,overflowY:V}=getComputedStyle(se);return/(auto|scroll|overlay)/.test(A+V+K)})(I)?I:F(I)}function ee(){r.value&&te()}async function te(){await e.nextTick(),N(),v.value=w.value?.getBoundingClientRect(),p.value=y.value?.getBoundingClientRect(),h.value=u.value?.getBoundingClientRect(),l.flip&&(m.value=J()),m.value==="top"?(d.value=h.value.height+(l.arrow?16:6),f.value=(h.value.width-p.value.width)/2):m.value==="bottom"?(d.value=p.value.height+(l.arrow?4:6),f.value=(h.value.width-p.value.width)/2):m.value==="left"?(d.value=(h.value.height-p.value.height)/2,f.value=h.value.width+(l.arrow?16:6)):m.value==="right"&&(d.value=(h.value.height-p.value.height)/2,f.value=p.value.width+(l.arrow?4:6))}function Y(){if(s.value){const ne=s.value.getBoundingClientRect();return{top:ne.top<0?0:ne.top,left:ne.left<0?0:ne.left,bottom:ne.bottom>S.value?S.value:ne.bottom,right:ne.right>g.value?g.value:ne.right}}return{top:0,left:0,bottom:S.value,right:g.value}}function J(){const{top:ne,bottom:I,left:W,right:se}=p.value,{top:A,bottom:K,left:V,right:X}=Y(),H=ne-A-(l.arrow?12:0),me=K-I-(l.arrow?12:0),q=W-V-(l.arrow?12:0),R=X-se-(l.arrow?12:0),L=(h.value.width-p.value.width)/2,oe=(h.value.height-p.value.height)/2;return de(l.placement,[]);function de(Ee,ve){if(Ee==="top"){if(ve.includes("top"))return ve.includes("bottom")?ve.includes("left")?de("right",ve):de("left",ve):de("bottom",ve);if(H<h.value.height+(l.arrow?4:6)&&ve.length!==3)return de("bottom",[...ve,"top"]);if(q>=L&&R>=L)return"top";if(ve.length!==3){if(q>=L)return de("left",["top","bottom","right"]);if(R>=L)return de("right",["top","bottom","left"])}}else if(Ee==="bottom"){if(ve.includes("bottom"))return ve.includes("top")?ve.includes("left")?de("right",ve):de("left",ve):de("top",ve);if(me<h.value.height+(l.arrow?4:6)&&ve.length!==3)return de("top",[...ve,"bottom"]);if(q>=L&&R>=L)return"bottom";if(ve.length!==3){if(q>=L)return de("left",["top","bottom","right"]);if(R>=L)return de("right",["top","bottom","left"])}}else if(Ee==="left"){if(ve.includes("left"))return ve.includes("right")?ve.includes("top")?de("bottom",ve):de("top",ve):de("right",ve);if(q<h.value.width+(l.arrow?4:6)&&ve.length!==3)return de("right",[...ve,"left"]);if(H>=oe&&me>=oe)return"left";if(ve.length!==3){if(H>=oe)return de("top",["left","right","bottom"]);if(me>=oe)return de("bottom",["left","right","top"])}}else if(Ee==="right"){if(ve.includes("right"))return ve.includes("left")?ve.includes("top")?de("bottom",ve):de("top",ve):de("left",ve);if(R<h.value.width+(l.arrow?4:6)&&ve.length!==3)return de("left",[...ve,"right"]);if(H>=oe&&me>=oe)return"right";if(ve.length!==3){if(H>=oe)return de("top",["left","right","bottom"]);if(me>=oe)return de("bottom",["left","right","top"])}}return l.placement}}function le(){i.value&&at(i.value),r.value||(i.value=_t(()=>{r.value=!0,te(),C("update:show",!0),C("openChange",!0),$.value&&l.trigger==="click"&&document.addEventListener("click",he,E.value?{capture:!0}:!0)},l.showDelay))}function ae(){i.value&&at(i.value),r.value&&(i.value=_t(()=>{r.value=!1,C("update:show",!1),C("openChange",!1),$.value&&l.trigger==="click"&&document.removeEventListener("click",he,E.value?{capture:!0}:!0)},l.hideDelay))}function re(){r.value?ae():le()}function he(ne){b.value?.contains(ne.target)||ae()}function we(){$.value&&l.trigger==="hover"&&!l.showControl&&le()}function ie(){$.value&&l.trigger==="hover"&&!l.showControl&&ae()}function ge(){C("animationend",r.value)}function z(){l.trigger==="hover"&&!l.showControl&&le()}function G(){l.trigger==="hover"&&!l.showControl&&ae()}return n({show:le,hide:ae,observeScroll:O}),(ne,I)=>(e.openBlock(),e.createElementBlock("div",{class:"tooltip-wrap",onMouseenter:we,onMouseleave:ie},[(e.openBlock(),e.createBlock(e.Teleport,{disabled:t.to===!1,to:t.to===!1?null:t.to},[e.createVNode(e.Transition,{name:"zoom","enter-from-class":"zoom-enter","enter-active-class":"zoom-enter","enter-to-class":"zoom-enter zoom-enter-active","leave-from-class":"zoom-leave","leave-active-class":"zoom-leave zoom-leave-active","leave-to-class":"zoom-leave zoom-leave-active",onAnimationend:ge},{default:e.withCtx(()=>[o.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:b,class:e.normalizeClass(["tooltip-card-container",{[`tooltip-${m.value}-padding`]:t.arrow}]),style:e.normalizeStyle({...M.value,"--tooltip-max-width":B.value,"--tooltip-background-color":t.bgColor,"--tooltip-transition-duration":`${t.transitionDuration}ms`}),onMouseenter:z,onMouseleave:G,onKeydown:I[0]||(I[0]=e.withKeys(W=>t.trigger==="click"&&t.keyboard&&r.value?ae():()=>!1,["esc"]))},[e.createElementVNode("div",{ref_key:"tooltipCardRef",ref:u,class:e.normalizeClass(["tooltip-card",t.tooltipClass]),style:e.normalizeStyle(t.tooltipStyle)},[e.renderSlot(ne.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(t.tooltip),1)],!0)],6),t.arrow?(e.openBlock(),e.createElementBlock(