kui-vue
Version:
A lightweight desktop UI component library suitable for Vue.js 2.
7 lines • 237 kB
JavaScript
/*!
* kui-vue v3.6.2
* Copyright 2017-present, kui-vue.
* All rights reserved.
* Author: Qiu / https://chuchur.com
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("dayjs")):"function"==typeof define&&define.amd?define(["exports","vue","dayjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).kui={},e.Vue,e.dayjs)}(this,function(e,t,a){"use strict";var l="3.6.2",r={name:"zh-cn",k:{datePicker:{year:"年",month:"月",selectYear:"请选择年",selectMonth:"请选择月",selectDate:"请选择日期",selectTime:"请选择时间",startDate:"开始日期",endDate:"结束日期",today:"今天",now:"此刻",ok:"确定",back:"返回"},form:{required:"请输入 {label}",email:"请输入有效的邮箱地址",phone:"请输入有效的手机号码",number:"请输入有效的数字",num_min:"数值不能小于 {min}",num_max:"数值不能大于 {max}"},empty:{description:"暂无数据"},common:{ok:"确定",cancel:"取消"},page:{page:"页",pageSize:"条/页",goto:"跳至",items:"条数据",total:"共"},select:{placeholder:"请选择",loading:"加载中...",emptyText:"暂无数据"},table:{emptyText:"暂无数据"},upload:{successful:"上传成功",failed:"上传失败",errorFileSize:"文件尺寸不合法"},image:{preview:"预览"}}},n=t.observable({currentLang:"zhCN",messages:{zhCN:r},vueI18nInstance:null});var o,i,s={t:function(e,t){var a=n.vueI18nInstance;if(a&&"function"==typeof a.t)return a.t(e,t);var l=n.messages[n.currentLang]||{};return e.split(".").reduce((e,t)=>e?e[t]:void 0,l)||e},use:function(e){n.currentLang=e},setI18n:function(e){n.vueI18nInstance=e,n.currentLang=e.locale,Object.defineProperty(e,"locale",{get:()=>n.currentLang,set(e){n.currentLang=e}})}};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c=function(){if(i)return o;function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t,a=1;a<arguments.length;a++)for(var l in t=arguments[a])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},e.apply(this,arguments)}i=1;var t=["attrs","props","domProps"],a=["class","style","directives"],l=["on","nativeOn"],r=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};return o=function(n){return n.reduce(function(n,o){for(var i in o)if(n[i])if(-1!==t.indexOf(i))n[i]=e({},n[i],o[i]);else if(-1!==a.indexOf(i)){var s=n[i]instanceof Array?n[i]:[n[i]],u=o[i]instanceof Array?o[i]:[o[i]];n[i]=[].concat(s,u)}else if(-1!==l.indexOf(i))for(var c in o[i])if(n[i][c]){var d=n[i][c]instanceof Array?n[i][c]:[n[i][c]],v=o[i][c]instanceof Array?o[i][c]:[o[i][c]];n[i][c]=[].concat(d,v)}else n[i][c]=o[i][c];else if("hook"===i)for(var p in o[i])n[i][p]=n[i][p]?r(n[i][p],o[i][p]):o[i][p];else n[i]=o[i];else n[i]=o[i];return n},{})}}(),d=u(c);function v(e,t,a,l,r,n,o){try{var i=e[n](o),s=i.value}catch(e){return void a(e)}i.done?t(s):Promise.resolve(s).then(l,r)}function p(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach(function(t){p(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var m=e=>(e.install=function(t){t.component(e.name,e)},e);function k(e,a,l){var r=new t({parent:l,render:t=>t(e,f({},a))});return r.$mount(),r.$children[0]}function g(e,a){if(e instanceof t)a.appendChild(e.$el);else{var l=new t({render:()=>e});l.$mount(),a.appendChild(l.$el)}}var y=["class","staticClass","style","staticStyle","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","ref","key","refInFor"];function b(e){var t,a,l=(t=e.data,a=y,t&&"object"==typeof t?a.reduce((e,a)=>(a in t&&(e[a]=t[a]),e),{}):{}),{componentOptions:r}=e;return r&&function(e){e&&"object"==typeof e||(e={});for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];for(var r of a)if(r&&"object"==typeof r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}(l,{props:r.propsData,on:r.listeners}),l}function w(e){var a,l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0;if(!e)return e;if(!e.tag)return e.text;var i=(null===(a=e.componentOptions)||void 0===a?void 0:a.Ctor)||e.tag,s=b(e),u=(null===(l=e.componentOptions)||void 0===l?void 0:l.children)||e.children||[];if(o&&(u=u.concat(o)),n)for(var c in r)"class"==c?s[c]=[s[c],r[c]]:["ref","key"].includes(c)?s[c]=r[c]:s[c]=f(f({},s[c]),r[c]);var d=t.h(i,s,u);return d.context=e.context,s.scopedSlots&&(d.data.scopedSlots=s.scopedSlots),d}function x(e){return e&&"object"==typeof e&&e.hasOwnProperty("tag")&&e.hasOwnProperty("componentOptions")}var S=m(t.defineComponent({name:"Icon",props:{type:[String,Array],size:[String,Number],color:String,spin:Boolean,strokeWidth:[String,Number]},setup(e,a){var{emit:l,slots:r,attrs:n,listeners:o}=a;return()=>{var a,l=["k-icon",{"k-load-loop":e.spin}],i={color:e.color};e.size&&(i.fontSize="".concat(e.size,"px"));var s=f(f({},n),{},{style:i,class:l,on:f({},o)});return t.h("i",d([{},s]),[t.h("svg",{attrs:{viewBox:"0 0 512 512",width:"1em",height:"1em"}},[(Array.isArray(e.type)?e.type:[]).map(a=>{var l,r,n=a.s?a.s:"fill:currentColor";if(e.strokeWidth){var o=(l=n.replace(/ /g,"").split(";"),r={},l.map(e=>{var[t,a]=e.split(":");t&&(r[t]=a)}),r);o["stroke-width"]&&(o["stroke-width"]=e.strokeWidth,n=(e=>{var t="";for(var a in e)t+="".concat(a,":").concat(e[a],";");return t})(o))}return t.h("path",{attrs:{d:a.d},style:n})})]),null===(a=r.default)||void 0===a?void 0:a.call(r)])}}}));S.install=function(e){e.component(S.name,S)};let M=[{d:"M448 256c0-106-86-192-192-192s-192 86-192 192 86 192 192 192 192-86 192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 176l0 160 M336 256l-160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],z=[{d:"M256 112l0 288 M400 256l-288 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],C=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m0 319.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20z m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.94v-0.05a21.74 21.74 0 1 1 43.44 0z",s:"fill:currentcolor;"}],T=[{d:"M112 268l144 144 144-144 M256 392l0-292",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],B=[{d:"M268 112l144 144-144 144 M392 256l-292 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],O=[{d:"M112 244l144-144 144 144 M256 120l0 292",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],A=[{d:"M48 128a48 48 0 0 1 48-48h320a48 48 0 0 1 48 48v288a48 48 0 0 1-48 48h-320a48 48 0 0 1-48-48z M464 160l-416 0",s:"fill:none;stroke:currentcolor;stroke-width:32px;stroke-linejoin:round;"},{d:"M272 232a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M352 232a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M272 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M352 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M112 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M192 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M112 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M192 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M272 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z",s:"fill:currentcolor;"},{d:"M128 48l0 32 M384 48l0 32",s:"fill:none;stroke:currentcolor;stroke-width:32px;stroke-linecap:round;stroke-linejoin:round;"}],j=[{d:"M98 190.06l139.78 163.12a24 24 0 0 0 36.44 0l139.78-163.12c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z",s:"fill:currentcolor;"}],L=[{d:"M414 321.94l-139.78-163.12a24 24 0 0 0-36.44 0l-139.78 163.12c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z",s:"fill:currentcolor;"}],N=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m108.25 138.29l-134.4 160a16 16 0 0 1-12 5.71h-0.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z",s:"fill:currentcolor;"}],D=[{d:"M210.35 384a21.33 21.33 0 0 1-15.58-6.83l-103.68-110.29a21.33 21.33 0 1 1 31.15-29.23l87.89 93.66 179.42-196.27a21.33 21.33 0 1 1 31.57 28.59l-194.99 213.33a21.33 21.33 0 0 1-15.57 7.04z",s:"fill:currentcolor;"}],P=[{d:"M328 112l-144 144 144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],E=[{d:"M256 112l-144 144 144 144 M408 112l-144 144 144 144",s:"fill:none;stroke:currentcolor;stroke-width:48;stroke-linecap:round;stroke-linejoin:round;"}],I=[{d:"M264 400l144-144-144-144 M112 400l144-144-144-144",s:"fill:none;stroke:currentcolor;stroke-width:48;stroke-linecap:round;stroke-linejoin:round;"}],Y=[{d:"M112 184l144 144 144-144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],K=[{d:"M184 112l144 144-144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],_=[{d:"M112 328l144-144 144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],F=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m75.31 260.69a16 16 0 1 1-22.62 22.62l-52.69-52.68-52.69 52.68a16 16 0 0 1-22.62-22.62l52.68-52.69-52.68-52.69a16 16 0 0 1 22.62-22.62l52.69 52.68 52.69-52.68a16 16 0 0 1 22.62 22.62l-52.68 52.69z",s:"fill:currentcolor;"}],R=[{d:"M368 368l-224-224 M368 144l-224 224",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],$=[{d:"M416 221.25v194.75a48 48 0 0 1-48 48h-224a48 48 0 0 1-48-48v-320a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z",s:"fill:none;stroke:currentcolor;stroke-linejoin:round;stroke-width:32;"},{d:"M256 56v120a32 32 0 0 0 32 32h120 M176 288l160 0 M176 368l160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],H=[{d:"M208 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z M368 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z M48 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z",s:"fill:currentcolor;"}],U=[{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352a16 16 0 0 1-11.31 27.31z M255.66 384c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91l0-0.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 0.14-2.94l-19.92-19.89a2 2 0 0 0-2.71-0.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-0.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65 42.65 27.63 88.55 41.63 136.31 41.63a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 0.77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47z M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53-42.57-27.52-89.57-42.07-135.91-42.07a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-0.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a0.13 0.13 0 0 1 0 0.16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-0.15 2.95l19.9 19.89a2 2 0 0 0 2.7 0.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-0.1-34.78z M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1 96 96 0 0 0-93.6-117.34z M165.78 233.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z",s:"fill:currentcolor;"}],W=[{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-0.27 17.77c48.36 75.7 127.24 134.9 221.1 134.9 92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47c-48.56-75-129.65-135.28-221.79-135.28z",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"},{d:"M176 256a80 80 0 1 0 160 0 80 80 0 1 0-160 0z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"}],q=[{d:"M384 80h-256c-26 0-43 14-48 40l-32 152v112a48.14 48.14 0 0 0 48 48h320a48.14 48.14 0 0 0 48-48v-112l-32-152c-5-27-23-40-48-40z",s:"fill:none;stroke:currentcolor;stroke-linejoin:round;stroke-width:32;"},{d:"M48 272l144 0 M320 272l144 0 M192 272a64 64 0 0 0 128 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],G=[{d:"M256 64c-106 0-192 86-192 192s86 192 192 192 192-86 192-192-86-192-192-192z m-6 304a20 20 0 1 1 20-20 20 20 0 0 1-20 20z m33.44-102c-16.21 10.88-18.44 20.85-18.44 30a14 14 0 0 1-28 0c0-21.91 10.08-39.33 30.82-53.26 19.28-12.94 30.18-21.14 30.18-39.17 0-12.26-7-21.57-21.49-28.46-3.41-1.62-11-3.2-20.34-3.09-11.72 0.15-20.82 2.95-27.83 8.59-13.22 10.64-14.34 22.22-14.34 22.39a14 14 0 1 1-28-1.35c0.11-2.43 1.8-24.32 24.77-42.8 11.91-9.58 27.06-14.56 45-14.78 12.7-0.15 24.63 2 32.72 5.82 24.21 11.45 37.51 30.54 37.51 53.68 0 33.83-22.61 49.02-42.56 62.43z",s:"fill:currentcolor;"}],V=[{d:"M416 64h-320a64.07 64.07 0 0 0-64 64v256a64.07 64.07 0 0 0 64 64h320a64.07 64.07 0 0 0 64-64v-256a64.07 64.07 0 0 0-64-64z m-80 64a48 48 0 1 1-48 48 48.05 48.05 0 0 1 48-48z m-240 288a32 32 0 0 1-32-32v-67.63l94.84-84.3a48.06 48.06 0 0 1 65.8 1.9l64.95 64.81-117.22 117.22z m352-32a32 32 0 0 1-32 32h-198.37l121.42-121.42a47.72 47.72 0 0 1 61.64-0.16l47.31 39.42z",s:"fill:currentcolor;"}],X=[{d:"M256 56c-110.28 0-200 89.72-200 200s89.72 200 200 200 200-89.72 200-200-89.72-200-200-200z m0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26z m48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z",s:"fill:currentcolor;"}],Z=[{d:"M480 223.5q-5.5-76.5-60-130.75t-130.5-60.25q-8-0.5-13.74 4.75t-5.74 13.25q0 7.01 4.75 12.25t11.74 5.75q27.5 2 53.51 13 30.5 13.01 54.49 36.76t37.01 54.75q11.01 25.5 13.01 53.01 0.5 7.01 5.74 11.74t12.26 4.75q7.5 0 13.01-5.5 5.5-6 4.49-13.51z",s:"fill:currentcolor;"}],J=[{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 58l80 80-80 80",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],Q=[{d:"M448 256c0-106-86-192-192-192s-192 86-192 192 86 192 192 192 192-86 192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M336 256l-160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],ee=[{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09 157.1 157.1 0 0 0-157.09-157.09z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M338.29 338.29l109.71 109.71",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32;"}],te=[{d:"M454.05 176.55l-126.95-18.45-56.75-115.05c-1.55-3.15-4.1-5.7-7.25-7.25-7.9-3.9-17.5-0.65-21.45 7.25l-56.75 115.05-126.95 18.45c-3.5 0.5-6.7 2.15-9.15 4.65-6.15 6.35-6.05 16.45 0.3 22.65l91.85 89.55-21.7 126.45c-0.6 3.45-0.05 7.05 1.6 10.15 4.1 7.8 13.8 10.85 21.6 6.7l113.55-59.7 113.55 59.7c3.1 1.65 6.7 2.2 10.15 1.6 8.7-1.5 14.55-9.75 13.05-18.45l-21.7-126.45 91.85-89.55c2.5-2.45 4.15-5.65 4.65-9.15 1.35-8.75-4.75-16.85-13.5-18.15z",s:"fill:currentcolor;"}],ae=[{d:"M434.67 285.59v-29.8c0-98.73-80.24-178.79-179.2-178.79a179 179 0 0 0-140.14 67.36m-38.53 82v29.8c0 98.84 80.2 178.84 179.2 178.84a180.45 180.45 0 0 0 140-66.92 M32 256l44-44 46 44 M480 256l-44 44-46-44",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],le=[{d:"M256 64c-106 0-192 86-192 192s86 192 192 192 192-86 192-192-86-192-192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 128l0 144 96 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}];function re(e){return{attrs:{name:e},on:{beforeEnter(e){e.style.height=0,e.style.opacity=.1},enter(e){0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.opacity=1):(e.style.height="",e.style.opacity="")},afterEnter(e){e.style.height="",e.style.overflow="",e.style.opacity=""},beforeLeave(e){e.style.height=e.scrollHeight+"px",e.style.opacity=1},leave(e){0!==e.scrollHeight&&(e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.style.opacity=0)},afterLeave(e){e.style.height="",e.style.paddingTop="",e.style.paddingBottom="",e.style.marginTop="",e.style.marginBottom="",e.style.opacity="",e.style.overflow=""}}}}var ne=m(t.defineComponent({name:"Alert",props:{type:{type:String,default:"warning"},closable:Boolean,showIcon:Boolean,icon:[String,Object,Array],message:String,description:String},setup(e,a){var{emit:l,slots:r}=a,n=t.ref(!1),o=()=>{n.value=!0,l("close")},i=t.computed(()=>["k-alert",{["k-alert-".concat(e.type)]:e.type,"k-alert-has-icon":e.showIcon,"k-alert-has-close":e.closable,"k-alert-has-description":e.description}]),s={info:X,error:F,success:N,warning:C},u=re("k-alert-slide");return()=>{var a,l=e.showIcon?t.h(S,{attrs:{type:e.icon?e.icon:s[e.type]},class:"k-alert-icon"}):null,c=e.closable?t.h(S,{class:"k-alert-close",attrs:{type:R},on:{click:o}}):null,v=e.description?t.h("div",{class:"k-alert-description"},[e.description]):null,p=t.h("div",{class:"k-alert-message"},[e.message||(null===(a=r.default)||void 0===a?void 0:a.call(r))]);return t.h("transition",d([{},u]),[t.h("div",{class:i.value,directives:[{name:"show",value:!n.value}]},[l,t.h("div",{class:"k-alert-content"},[p,v]),c])])}}})),oe={bind(e,t){var{value:a}=t;"function"==typeof a&&window.addEventListener("resize",a)},unbind(e,t){var{value:a}=t;"function"==typeof a&&window.removeEventListener("resize",a)}},ie=m(t.defineComponent({name:"Affix",directives:{resize:oe},props:{offsetTop:{type:Number,default:0},offsetBottom:Number,target:{type:Function,default:()=>window}},setup(e,a){var{slots:l,emit:r}=a,n=e.target(),o=t.ref(),i=t.ref(!1),s=t.ref({}),u=t.ref({}),c=null,d=()=>{if(o.value&&n){var t=o.value.getBoundingClientRect(),a=n===window?{top:0,bottom:window.innerHeight}:n.getBoundingClientRect(),l=!1;if(null!=e.offsetBottom)a.bottom-t.bottom-e.offsetBottom<=0?(l=!0,s.value={bottom:"".concat(window.innerHeight-a.bottom+e.offsetBottom,"px"),width:"".concat(t.width,"px")}):(l=!1,s.value={});else t.top-a.top-e.offsetTop<=0?(l=!0,s.value={top:"".concat(a.top+e.offsetTop,"px"),width:"".concat(t.width,"px")}):(l=!1,s.value={});u.value=l?{height:"".concat(t.height,"px"),width:"".concat(t.width,"px")}:null,i.value!==l&&(i.value=l,r("change",l))}};return t.onBeforeUnmount(()=>{var e;null===(e=n)||void 0===e||e.removeEventListener("scroll",d),null!=c&&c.disconnect()}),t.onMounted(()=>{t.nextTick(()=>{var t,a;null===(a=n=(null===(t=e.target())||void 0===t?void 0:t.value)||e.target())||void 0===a||a.addEventListener("scroll",d),d(),n&&n!==window&&"ResizeObserver"in window&&(c=new ResizeObserver(d)).observe(n)})}),t.watch(()=>[e.offsetTop,e.offsetBottom,e.target],()=>{t.nextTick(d)}),()=>{var e;return t.h("div",{style:u.value,ref:o,directives:[{name:"resize",value:d}]},[t.h("div",{style:s.value,class:{"k-affix":i.value}},[null===(e=l.default)||void 0===e?void 0:e.call(l)])])}}})),se=t.defineComponent({name:"Avatar",props:{icon:[String,Array],shape:{type:String},size:{type:[Number,String],default:"default",validator:e=>"number"==typeof e||["large","small","default"].indexOf(e)>=0},src:String},setup(e,a){var{slots:l}=a,r=t.inject("KAvatarGroup",null),n=t.ref(),o=t.ref(),i=t.computed(()=>(null==r?void 0:r.size.value)||e.size),s=t.computed(()=>(null==r?void 0:r.shape.value)||e.shape),u=()=>{if(n.value&&o.value){var e=o.value.offsetWidth-8,t=n.value.offsetWidth||n.value.scrollWidth;if(t>e){var a=e/t;n.value.style.transform="scale(".concat(a,") translateX(-50%)")}else n.value.style.transform="scale(1) translateX(-50%)"}};return t.onMounted(u),t.onUpdated(u),()=>{var a,r=i.value,u=s.value,{src:c,icon:d}=e,v={};"number"==typeof r&&(v={width:"".concat(r,"px"),height:"".concat(r,"px"),lineHeight:"".concat(r,"px"),fontSize:"".concat(r/2,"px")});var p=null===(a=l.default)||void 0===a?void 0:a.call(l),h=null==p?void 0:p.filter(e=>{var t;return"Icon"===(null===(t=e.componentOptions)||void 0===t?void 0:t.tag)}).length,f=1===(null==p?void 0:p.length)&&"string"==typeof p[0].text&&""!==p[0].text.trim(),m=["k-avatar",{"k-avatar-lg":"large"==r,"k-avatar-sm":"small"==r,"k-avatar-image":c,"k-avatar-icon":d||h,"k-avatar-square":"square"==u}];return t.h("div",{ref:o,class:m,style:v},[d?t.h(S,{attrs:{type:d}}):c?t.h("img",{attrs:{src:c}}):f?t.h("span",{class:"k-avatar-string",ref:n},[p[0].text||p]):p])}}}),ue=m(se),ce=m(t.defineComponent({name:"Breadcrumb",props:{separator:{type:[String,Object],default:"/"}},setup(e,a){var l,{slots:r}=a;return t.provide("separator",(null===(l=r.separator)||void 0===l?void 0:l.call(r))||e.separator),()=>{var e;return t.h("nav",{class:"k-breadcrumb"},[t.h("ol",[null===(e=r.default)||void 0===e?void 0:e.call(r)])])}}})),de=m(t.defineComponent({name:"BreadcrumbItem",props:{href:String,icon:[String,Array,Object]},setup(e,a){var{slots:l,emit:r}=a,n=t.inject("separator",null);return()=>{var a,o,i=l.icon?l.icon():e.icon?t.h(S,{attrs:{type:e.icon}}):null;return t.h("li",{class:"k-breadcrumb-item",on:{click:e=>r("click",e)}},[e.href?t.h("a",{class:"k-breadcrumb-link",attrs:{href:e.href}},[i,null===(a=l.default)||void 0===a?void 0:a.call(l)]):t.h("span",{class:"k-breadcrumb-link"},[i,null===(o=l.default)||void 0===o?void 0:o.call(l)]),t.h("span",{class:"k-breadcrumb-separator"},[n])])}}}));function ve(e,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return 1==e.length?w(e[0],a,l):w(t.h("span",[e]),a,l,r)}function pe(e){var t=[],a=e=>{null==e||e.forEach(e=>{var l;x(e)&&(e.isComment||(e.tag||""!==(null===(l=e.text)||void 0===l?void 0:l.toString().trim()))&&(e.tag||!Array.isArray(e.children)?t.push(e):a(e.children)))})};return a(e),t}var he=["default","red","orange","yellow","olive","green","teal","blue","volcano","violet","cyan","gold","lime","magenta","purple","pink","brown","gray"],fe=["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-top","right-bottom"],me=["small","default","large","middle"],ke=e=>me.includes(e)?e:null,ge=m(t.defineComponent({name:"Button",props:{htmlType:{default:"button",validator:e=>["button","submit","reset"].includes(e)},icon:[String,Array],block:Boolean,size:{size:String,validator:e=>me.includes(e)},color:{validator:e=>he.includes(e)},loading:Boolean,type:{validator:e=>["primary","danger","warning","default","text","link"].includes(e),default:"default"},disabled:{type:Boolean,default:!1},theme:{type:String,validator:e=>["outline","solid","light","dashed","card"].includes(e)},shape:String,href:String,target:String},emits:["click"],setup(e,a){var{emit:l,slots:r,attrs:n,listeners:o}=a,i=t.inject("KButtonGroup",null),s=t.inject("size",null),u=t.computed(()=>{var t;return e.size||(null==i||null===(t=i.size)||void 0===t?void 0:t.value)||ke(s)||"default"}),c=t.computed(()=>{var t;return e.shape||(null==i||null===(t=i.shape)||void 0===t?void 0:t.value)}),v=t=>{e.loading||e.disabled?t.preventDefault():l("click",t)};return()=>{var a,l,i,s=pe(null===(a=r.default)||void 0===a?void 0:a.call(r)),p=["k-btn",{["k-btn-".concat(e.type)]:!!e.type&&!e.color,"k-btn-outline":"outline"==e.theme,"k-btn-sm":"small"===u.value,"k-btn-block":!!e.block,"k-btn-loading":e.loading,"k-btn-icon-only":(i=s.filter(e=>{var t;return"transition"!==(null===(t=e.componentOptions)||void 0===t?void 0:t.tag)}),null!=i&&i.length?1===i.length&&"Icon"===(null===(l=i[0].componentOptions)||void 0===l?void 0:l.tag):e.icon||e.loading),["k-btn-".concat(e.color)]:he.includes(e.color),"k-btn-lg":"large"===u.value,"k-btn-circle":"circle"===c.value,["k-btn-".concat(e.theme)]:!!e.theme&&"default"!==e.theme}],h=[],m=e.loading?Z:e.icon;m&&h.push(t.h(S,{attrs:{type:m,spin:e.loading}}));var k=null==s?void 0:s.map(e=>"string"==typeof e.text?t.h("span",[e.text.trim()]):e);k&&(h=h.concat(k));var g={class:p,attrs:f(f({},n),{},{href:e.href,target:e.target,disabled:e.disabled,type:e.htmlType}),on:f(f({},o),{},{click:v})};return"link"===e.type&&e.href&&!e.disabled?t.h("a",d([{},g]),[h]):t.h("button",d([{},g]),[h])}}})),ye=m(t.defineComponent({name:"ButtonGroup",props:{size:{type:String,validator:e=>me.indexOf(e)>=0},shape:String},setup(e,a){var{slots:l}=a,{size:r,shape:n}=t.toRefs(e),o=t.inject("size",null);return t.provide("KButtonGroup",{size:e.size||ke(o),shape:n}),()=>{var e,a=["k-btn-group",{"k-btn-group-sm":"small"==r.value,"k-btn-group-lg":"large"==r.value,"k-btn-group-circle":"circle"==n.value}];return t.h("div",{class:a},[null===(e=l.default)||void 0===e?void 0:e.call(l)])}}})),be=t.defineComponent({name:"Badge",props:{count:[String,Number],dot:Boolean,color:String,status:{type:String,default:"default",validator:e=>["default","success","error","warning"].indexOf(e)>-1},text:String,maxCount:{type:Number,default:99}},setup(e,a){var{slots:l}=a;return()=>{var a,{maxCount:r,count:n,dot:o,color:i,status:s,text:u}=e,c=null===(a=l.default)||void 0===a?void 0:a.call(l),d=c&&c.length>0,v=null;"number"==typeof n&&n>0?v=n>r?"".concat(r,"+"):n:"string"==typeof n&&n.length>0&&(v=n);var p=[];if(!d&&(s||i)&&!o&&!v){var h=i&&/^#/.test(i),f=["k-badge-status-dot",{["k-badge-status-".concat(s)]:!!s,["k-badge-status-".concat(i)]:i&&!h}],m={backgroundColor:h?i:null};p.push(t.h("span",{class:f,style:m})),u&&p.push(t.h("span",{class:"k-badge-status-text"},[u]))}var k=null;if(null!==v||o){var g={"k-badge-count":!o&&null!==v,"k-badge-dot":o,"k-badge-no-child":!d,["k-badge-".concat(s)]:!!s&&!i},y={backgroundColor:i};k=t.h("sup",{class:g,style:y},[o?null:v])}return t.h("div",{class:"k-badge"},[c,k,p])}}}),we=m(be),xe={bind(e,t){var{value:a}=t;"function"==typeof a&&window.addEventListener("scroll",a)},unbind(e,t){var{value:a}=t;"function"==typeof a&&window.removeEventListener("scroll",a)}},Se=m(t.defineComponent({name:"BackTop",directives:{scroll:xe},props:{height:{type:[Number],default:100},right:[Number],bottom:[Number],target:{type:Function,default:()=>document.body}},setup(e,a){var l,{emit:r,slots:n}=a,o=t.ref(!1),i=()=>{var t=document.body.scrollTop||document.documentElement.scrollTop||window.scrollY;o.value=t>=e.height},s=t=>{var a;r("click",t),null===(a=e.target)||void 0===a||a.call(e).scrollIntoView({behavior:"smooth",block:"start"})},u=null===(l=n.default)||void 0===l?void 0:l.call(n);u&&0!=u.length||(u=t.h("div",{class:"k-backtop-content"},[t.h(S,{attrs:{type:O}})]));var c={bottom:"".concat(e.bottom,"px"),left:"".concat(e.right,"px")};return()=>t.h("transition",{attrs:{name:"k-backtop-fade"}},[t.h("div",{class:"k-backtop",on:{click:s},directives:[{name:"show",value:o.value},{name:"scroll",value:i}],style:c},[u])])}})),Me={inserted(e,t,a){var{value:l}=t;if(l){var r=e.parentNode;if(!r)return!1;(l.$el?l.$el:(!0===l?document.body:l)||document.body).appendChild(e),e.__data={parentNode:r}}},unbind(e,t){var{value:a}=t;a&&(e.__data.parentNode.appendChild(e),e.__data=null)}};function ze(e){var{refSelection:t,refPopper:a,currentPlacement:l,position:r=null,transOrigin:n,top:o,left:i,offset:s=3}=e;if(a.value){var u=null,c=r&&"number"==typeof r.x&&"number"==typeof r.y;if(c)u={width:0,height:0,top:r.y,bottom:r.y,left:r.x,right:r.x};else{if(!t||!t.value)return;u=(t.value.$el||t.value).getBoundingClientRect()}var d=a.value.offsetHeight,v=a.value.offsetWidth,{clientHeight:p,clientWidth:h,scrollTop:f,scrollLeft:m}=document.documentElement,k=u.left+u.width/2-v/2,g=u.top+u.height/2-d/2,y=u.top>d+s,b=p-u.bottom>d+s,w=u.left>v+s,x=h-u.right>v+s,S=h-u.left>v,M=u.right>v,z=p-u.top>d,C=u.bottom>d,T=k>0&&k+v<h,B=g>0&&g+d<p,[O,A]=l.value.split("-");c&&!A&&("top"===O||"bottom"===O?A="left":"left"!==O&&"right"!==O||(A="top")),"top"===O&&!y&&b?O="bottom":"bottom"===O&&!b&&y?O="top":"left"===O&&!w&&x?O="right":"right"===O&&!x&&w&&(O="left"),"top"===O||"bottom"===O?"left"===A&&!S&&M?A="right":"right"===A&&!M&&S?A="left":A||T||(S?A="left":M&&(A="right")):"left"!==O&&"right"!==O||("top"===A&&!z&&C?A="bottom":"bottom"===A&&!C&&z?A="top":A||B||(z?A="top":C&&(A="bottom")));var j=A?"".concat(O,"-").concat(A):O,L=0,N=0,D="center",P="center";"top"===O?(L=u.top-d-s,P="bottom"):"bottom"===O?(L=u.bottom+s,P="top"):"top"===A?(L=u.top,P="top"):"bottom"===A?(L=u.bottom-d,P="bottom"):(L=u.top+(u.height-d)/2,P="center"),"left"===O?(N=u.left-v-s,D="right"):"right"===O?(N=u.right+s,D="left"):"left"===A?(N=u.left,D="left"):"right"===A?(N=u.right-v,D="right"):(N=u.left+(u.width-v)/2,D="center"),N<0?N=0:N+v>h&&(N=h-v),L<0?L=0:L+d>p&&(L=p-d),o.value=L+f,i.value=N+m,n.value="".concat(D," ").concat(P),l.value!==j&&(l.value=j)}}function Ce(e){return null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length}function Te(e){if(Ce(e))return!1;var t=String(e).trim();return/^[+-]?((\d+(\.\d*)?)|(\.\d+))([eE][+-]?\d+)?$/.test(t)}function Be(e){var t=String(e);return/e/i.test(t)?Number(e).toFixed(20).replace(/\.?0+$/,""):e}function Oe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().split(".");return e[1]?e[1].length:0}function Ae(e,t){var a=Be(e),l=Be(t),r=Math.max(Oe(a),Oe(l)),n=Math.pow(10,r);return Le((Math.round(Number(a)*n)+Math.round(Number(l)*n))/n)}function je(e){return/e/i.test(String(e))}function Le(e){return je(e)?Be(e):e}function Ne(e,t){var a=Be(e),l=Be(t),r=Math.max(Oe(a),Oe(l)),n=Math.pow(10,r);return Le((Math.round(Number(a)*n)-Math.round(Number(l)*n))/n)}function De(e,t){var a=Be(e),l=Be(t),r=Oe(a)+Oe(l);return Le(Number(String(a).replace(".",""))*Number(String(l).replace(".",""))/Math.pow(10,r))}var Pe=m(t.defineComponent({name:"InputGroup",props:{block:Boolean,compact:{type:Boolean,default:!0},size:{type:String,validator:e=>me.indexOf(e)>=0}},setup(e,a){var{slots:l}=a,r=t.inject("size",null);return t.provide("size",e.size||ke(r)),()=>{var a,{size:r,compact:n,block:o}=e,i={style:{},class:["k-input-group",{"k-input-group-compact":n,"k-input-group-block":o,"k-input-group-lg":"large"==r,"k-input-group-sm":"small"==r}]};if(r||n||(i.style.gap="8px"),!n)if(Array.isArray(r))i.style={gap:"".concat(r[1],"px ").concat(r[0],"px")};else if(/small|middle|large/.test(r)){i.style.gap={small:8,middle:16,large:24}[r]+"px"}else null!=r&&(i.style.gap="".concat(r,"px"));var s=pe(null===(a=l.default)||void 0===a?void 0:a.call(l));return n&&(s=s.map((e,t)=>w(e,{class:{"k-input-group-first-item":0==t,"k-input-group-item":t>0&&t<s.length-1,"k-input-group-last-item":t==s.length-1}},!0))),t.h("div",d([{},i]),[s])}}})),Ee=t.defineComponent({name:"InputBox",props:{multiple:Boolean,disabled:Boolean,size:String,type:String,theme:String,shape:String,inputType:String,value:[String,Number,Object],showPassword:Boolean,inputRef:Object},setup(e,a){var{emit:l,slots:r,attrs:n,listeners:o}=a,i=e=>{l("input",e)},s=e=>{l("focus",e)},u=e=>{l("blur",e)};return()=>{var{disabled:a,multiple:l,size:r,type:c,theme:v,shape:p,inputType:h}=e,m={ref:e.inputRef,class:[{["k-".concat(h)]:!l,["k-".concat(h,"-text")]:l,["k-".concat(h,"-disabled")]:a,["k-".concat(h,"-sm")]:"small"==r&&!l,["k-".concat(h,"-lg")]:"large"==r&&!l,["k-".concat(h,"-").concat(v)]:"solid"!=v&&!l&&v,["k-".concat(h,"-circle")]:"circle"==p&&!l}],attrs:f(f({},n),{},{disabled:a,type:c}),domProps:{value:e.value},on:f(f({},o),{},{focus:s,blur:u,input:i})};return!0===e.showPassword&&"password"==c&&(m.attrs.type="text"),t.h("input",d([{},m,{attrs:{single:!0}}]))}}}),Ie=t.defineComponent({name:"Input",props:{clearable:{type:Boolean,default:!0},visiblePasswordIcon:{type:Boolean,default:!0},size:{type:String,validator:e=>me.indexOf(e)>=0},value:{type:[String,Number,Array,Object]},disabled:Boolean,type:{validator:e=>["text","textarea","password","url","email","date","search","hidden"].indexOf(e)>=0,default:"text"},icon:[String,Array],suffix:String,prefix:String,theme:String,shape:String,formatter:Function,parser:Function,inputType:{type:String,default:"input"}},setup(e,a){var{slots:l,emit:r,attrs:n,expose:o,listeners:i}=a,s=t.ref(e.value),u=t.ref(!1),c=t.ref(!1),v=t.ref(),p=t.inject("size",null);t.provide("size",e.size||ke(p)),t.watch(()=>e.value,e=>{s.value=e});var h=()=>{null==v||v.value.focus()};o({focus:h,blur:()=>{null==v||v.value.blur()}});var m=()=>{r("input",""),s.value="",t.nextTick(()=>{h()})},k=()=>{!e.disabled&&r("icon-click")},g=t=>{e.disabled||(c.value=!c.value)},y=t=>{e.disabled||r("search",s.value)};return()=>{var a,o,{icon:h,size:b=ke(p),disabled:w,type:x,clearable:M,suffix:z,theme:C,prefix:T,shape:B,inputType:O}=e,A=null===(a=l.suffix)||void 0===a?void 0:a.call(l),j=null===(o=l.prefix)||void 0===o?void 0:o.call(l),L=(h||"search"in i||A||z||j||T||"password"==x||M||l.controls)&&"hidden"!==x,N={attrs:f({},n),props:{disabled:w,multiple:L,size:b,type:x,theme:C,shape:B,inputRef:v,inputType:O,value:s.value,showPassword:c.value},on:f(f({},i),{},{input:e=>{var t=e.target.value;s.value=t,r("input",t)},focus:e=>{u.value=!0,r("focus",e)},blur:e=>{u.value=!1,r("blur",e)}})},D=t.h(Ee,d([{},N]));if(!L)return D;var P=M&&!Ce(s.value)&&"password"!=x&&void 0===n.readonly,E={class:{["k-".concat(O)]:!0,["k-".concat(O,"-focus")]:u.value,["k-".concat(O,"-disabled")]:w,["k-".concat(O,"-has-clear")]:P,["k-".concat(O,"-sm")]:"small"==b,["k-".concat(O,"-lg")]:"large"==b,["k-".concat(O,"-").concat(C)]:C&&"solid"!=C,["k-".concat(O,"-circle")]:"circle"==B}};if(j||A){var I,Y=[];j&&Y.push(t.h("div",{class:"k-input-group-prefix"},[j]));var K=[];h&&K.push(t.h(S,{attrs:{type:h},class:"k-".concat(O,"-icon"),on:{click:k}})),T&&K.push(t.h("div",{class:"k-".concat(O,"-prefix")},[T])),K.push(D),M&&K.push(t.h(S,{attrs:{type:F},class:["k-".concat(O,"-clearable"),{["k-".concat(O,"-clearable-hidden")]:!P}],on:{click:m}}));var _=[];return A&&_.push(t.h("div",{class:"k-input-group-suffix"},[A])),l.controls&&K.push(null===(I=l.controls)||void 0===I?void 0:I.call(l)),t.h(Pe,{attrs:{size:b}},[Y,t.h("div",d([{},E,{attrs:{mult:!0}}]),[K]),_])}var R,$=(()=>{var a,{suffix:r,visiblePasswordIcon:n,type:o,inputType:s}=e,u="search"in i?t.h(S,{attrs:{type:ee},class:"k-input-search-icon",on:{click:y}}):null,d="password"==o&&n?t.h(S,{class:"k-input-password-icon",attrs:{type:c.value?U:W},on:{click:g}}):null,v=(null===(a=l.suffix)||void 0===a?void 0:a.call(l))||(r?t.h("div",{class:"k-input-suffix"},[r]):null);return d||u||v})(),H=[];return h&&H.push(t.h(S,{attrs:{type:h},class:"k-".concat(O,"-icon"),on:{click:k}})),T&&H.push(t.h("div",{class:"k-".concat(O,"-prefix")},[T])),H.push(D),M&&H.push(t.h(S,{attrs:{type:F},class:["k-".concat(O,"-clearable"),{["k-".concat(O,"-clearable-hidden")]:!P}],on:{click:m}})),$&&H.push($),l.controls&&H.push(null===(R=l.controls)||void 0===R?void 0:R.call(l)),t.h("div",d([{},E,{attrs:{mult:!0}}]),[...H])}}}),Ye=m(Ie),Ke=m(t.defineComponent({props:{value:[Array,Number,String],min:{type:Number,default:-1/0},max:{type:Number,default:1/0},disabled:Boolean,clearable:Boolean,readonly:Boolean,formatter:Function,parser:Function,size:{type:String,validator:e=>me.indexOf(e)>=0},precision:Number,suffix:String,prefix:String,controls:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},step:{type:Number,default:1},theme:String,icon:[String,Array],id:String},setup(e,a){var{slots:l,attrs:r,emit:n,listeners:o}=a,i=t.inject("size",null),s=(t,a,l)=>{var r="",n="",{min:o,max:i,precision:s,formatter:u,parser:c}=e;if(Te(t)?(/e/i.test(t)&&l&&(t=Be(t)),r=String(t),n=t):Ce(t)?(r="",n=""):(r=String(t),n=u?(null==c?void 0:c(String(t)))||t:String(t)),u){var d=(null==c?void 0:c(String(r)))||r;r=u(String(d))}return a&&(s>0&&(n=function(e,t){var a=Number(e).toFixed(t);return je(e)?a:Number(a)}(n,s)),n>i?(n=i,r=(null==u?void 0:u(String(i)))||i):n<o&&(n=o,r=(null==u?void 0:u(String(o)))||o)),{input:r,output:n}},{input:u,output:c}=s(e.value),v=t.ref(u),p=t.ref(c),h=(t,a)=>{if(!e.disabled){var{step:l}=e;Te(p.value)&&!Ce(p.value)||(p.value=0);var r=1==a?Ae(String(p.value),String(l)):Ne(String(p.value),String(l)),{input:o,output:i}=s(r,!0);v.value=o,p.value=i,t.preventDefault(),n("input",i),n("change",{target:{value:i}})}};t.watch(()=>e.value,e=>{var{input:t,output:a}=s(e,!1);v.value=t,p.value=a});return()=>{var a={attrs:f(f({},r),{},{readonly:e.readonly}),props:{inputType:"input-number",value:v.value,clearable:!1,size:e.size||ke(i),disabled:e.disabled,suffix:e.suffix,prefix:e.prefix,icon:e.icon,theme:e.theme},on:f(f({},o),{},{input:t=>{(t=>{var a=t,{input:l,output:r}=s(a,!1,!1);if(v.value=l,Te(r)||Ce(a)){var{max:o,min:i}=e;r&&r>o||r&&r<i||(p.value=r,n("input",r))}})(t)},change:e=>{},blur:e=>(e=>{var{input:t,output:a}=s(p.value,!0,!0);v.value=t,p.value=a,n("input",a),n("blur",e)})(e),keydown:t=>(t=>{e.keyboard&&("ArrowUp"===t.key?h(t,1):"ArrowDown"===t.key&&h(t,0))})(t)})};return t.h(Ye,d([{},a,{scopedSlots:{suffix:()=>{var e;return null===(e=l.suffix)||void 0===e?void 0:e.call(l)},prefix:()=>{var e;return null===(e=l.prefix)||void 0===e?void 0:e.call(l)},controls:()=>e.controls&&!e.readonly?t.h("div",{class:"k-input-number-controls"},[t.h("span",{class:"k-input-number-control",on:{click:e=>h(e,1)}},[t.h(S,{attrs:{type:_}})]),t.h("span",{class:"k-input-number-control",on:{click:e=>h(e)}},[t.h(S,{attrs:{type:_}})])]):null}}]))}}})),_e=t.defineComponent({name:"TextArea",props:{value:[String,Number,Object,Array],theme:String,size:String,disabled:Boolean},setup(e,a){var{attrs:l,emit:r,listeners:n}=a,o=t.ref(e.value);return t.watch(()=>e.value,e=>{o.value=e}),()=>{var{theme:a,disabled:i,size:s}=e,u={class:["k-textarea",{["k-textarea-".concat(a)]:"light"==a,"k-textarea-sm":"small"==s,"k-textarea-lg":"large"==s}],attrs:f(f({},l),{},{disabled:i}),domProps:{value:o.value},on:f(f({},n),{},{input:e=>{var t=e.target.value;r("input",t)}})};return t.h("textarea",d([{},u]))}}}),Fe=m(_e),Re=m(t.defineComponent({name:"Option",props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:Boolean,checked:Boolean,active:Boolean,multiple:Boolean},methods:{},setup(e,a){var l,{slots:r,emit:n}=a,o=e.label||(null===(l=r.default)||void 0===l?void 0:l.call(r))||e.value,i=t.computed(()=>e.checked),s=()=>{e.disabled||n("select",{value:e.value,label:o})};return()=>{var{multiple:a,disabled:l}=e,r=["k-select-item",{"k-select-item-selected":i.value,"k-select-item-active":e.active,"k-select-item-disabled":l}];return t.h("li",{class:r,on:{click:s}},[t.h("span",[o,a?t.h(S,{attrs:{type:D}}):null])])}}})),$e=t.defineComponent({name:"Empty",props:{description:String,image:String,imageStyle:Object},setup(e,a){var{slots:l}=a,n=t.inject("locale",r),o=t.computed(()=>n instanceof Object&&"value"in n?n.value:n);return()=>{var a,{image:r,imageStyle:n,description:i}=e;return t.h("div",{class:"k-empty"},[t.h("div",{class:"k-empty-content"},[r||l.image?l.image?l.image():t.h("img",{attrs:{src:r},class:"k-empty-image",style:n}):t.h(S,{attrs:{type:q},class:"k-empty-icon"}),null!==i?t.h("p",{class:"k-empty-description"},[i||(null===(a=l.description)||void 0===a?void 0:a.call(l))||(null==o?void 0:o.value.k.empty.description)]):null,l.default?t.h("div",{class:"k-empty-footer"},[l.default()]):null])])}}}),He=m($e),Ue=t.defineComponent({name:"Select",directives:{transfer:Me,resize:oe},props:{placeholder:String,size:{default:"default",validator:e=>["small","large","default"].indexOf(e)>=0},placement:{validator:e=>["top","top-left","top-right","bottom","bottom-left","bottom-right"].includes(e),default:"bottom-left"},width:Number,maxTagCount:Number,value:[String,Number,Array],clearable:{type:Boolean,default:!0},filterable:Boolean,block:Boolean,disabled:Boolean,multiple:Boolean,loading:Boolean,bordered:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},options:Array,theme:String,emptyText:String,loadingText:String,icon:[String,Array],shape:String,arrowIcon:[String,Array]},setup(e,a){var{slots:l,emit:n,attrs:o,listeners:i}=a,s=t.computed(()=>{var e=t.inject("locale",r);return e instanceof Object&&"value"in e?e.value:e}),u=t.ref(!1),c=t.ref(!1),v=t.ref(e.multiple?e.value||[]:Ce(e.value)?[]:[e.value]),p=t.ref(!1),h=t.ref(""),m=t.ref(),k=t.ref(""),g=t.ref(!1),y=t.ref(),b="search"in i,w=t.ref(),x=t.ref("bottom"),M=t.ref(),z=t.ref(0),C=t.ref(0),T=t.ref(e.placement),B=t.ref(),O=t.ref(-1),A=t.ref(0),j=t.ref(!1),L=t.ref(0);t.onBeforeUpdate(()=>{L.value++}),t.watch(()=>e.placement,e=>{T.value=e,u.value&&E()}),t.watch(()=>e.options,e=>{u.value&&E()},{deep:!0}),t.watch(()=>e.value,t=>{v.value=e.multiple?t||[]:Ce(t)?[]:[t],u.value&&E()});var N=()=>{var e=w.value,t=w.value.children[0].children[O.value],a=t.offsetTop,l=t.offsetHeight,r=a-e.clientHeight/2+l/2;e.scrollTop=r},D=e=>{var t=e.key;if(u.value&&0!=G.value.size||!j.value){if(u.value){if("ArrowDown"===t){var a=O.value;return a<A.value-1?a+=1:a=0,O.value=a,N(),void e.preventDefault()}if("ArrowUp"===t){var l=O.value;return l>=1?l-=1:l=A.value-1,O.value=l,N(),void e.preventDefault()}if("Enter"===t&&O.value>=0&&(j.value||g.value)){var{label:r,value:n}=G.value[O.value];return _({label:r,value:n}),void e.preventDefault()}"Escape"==t&&(j.value||g.value)&&(u.value=!1,K(),e.preventDefault())}}else"ArrowDown"!==t&&"ArrowUp"!==t||q()};t.onBeforeMount(()=>{document.removeEventListener("keydown",D),document.removeEventListener("click",I)});var P=t.computed(()=>G.value.filter(e=>v.value.includes(e.value)).map(e=>e.label)),E=()=>{t.nextTick(()=>{var e;k.value=null===(e=M.value)||void 0===e?void 0:e.offsetWidth,ze({refSelection:M,refPopper:w,currentPlacement:T,transOrigin:x,top:C,left:z})})};t.onMounted(()=>{t.nextTick(()=>{var e;k.value=null===(e=M.value)||void 0===e?void 0:e.offsetWidth}),document.addEventListener("keydown",D)});var I=e=>{var t,a=(null===(t=M.value)||void 0===t?void 0:t.$el)||M.value;w.value&&!w.value.contains(e.target)&&a&&!a.contains(e.target)&&(u.value=!1,K())},K=()=>{O.value=-1,(e.filterable||b)&&setTimeout(()=>{h.value="",y.value&&(y.value.value="",y.value.style.width=""),p.value=!1},300)},_=t=>{var a,{value:l,label:r}=f({},t),o=!0;e.multiple?((null===(a=v.value)||void 0===a?void 0:a.indexOf(l))>=0?(o=!1,v.value=v.value.filter(e=>e!==l)):v.value.push(l),E(),(b||e.filterable)&&(y.value.value="",h.value="",W())):(v.value=[l],u.value=!1,n("openChange",!1),K(),O.value=-1);var i=e.multiple?v.value:v.value[0];n("input",i),n("change",i),n("select",{value:l,label:r,selected:o})},$=e=>{h.value=e.target.value,O.value=-1,t.nextTick(()=>{e.target.style.width=m.value.offsetWidth+"px",E()}),b&&(clearTimeout(B.value),B.value=setTimeout(()=>{c.value?(u.value=!0,n("openChange",!0),E()):(c.value=!0,document.addEventListener("click",I),t.nextTick(()=>{u.value=!0,n("openChange",!0),E()})),n("search",e)},500))},H=e=>{p.value&&t.nextTick(e=>{y.value.focus(),g.value=!0})},U=t=>{v.value=[],n("input",e.multiple?[]:""),n("change",e.multiple?[]:""),K(),t.stopPropagation()},W=()=>{(e.filterable||b)&&(p.value=!0,t.nextTick(()=>{var e;null===(e=y.value)||void 0===e||e.focus(),g.value=!0}))},q=function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.disabled||(b?W():c.value?(u.value=a||!u.value,n("openChange",u.value),u.value?(E(),W()):K()):(c.value=!0,document.addEventListener("click",I),t.nextTick(()=>{u.value=!0,n("openChange",!0),E(),W()})))},G=t.computed(()=>{L.value;var t,{options:a,loading:r}=e;if(r)return[];a||(a=[],pe(null===(t=l.default)||void 0===t?void 0:t.call(l)).forEach((e,t)=>{var l,r,{label:n,value:o,disabled:i}=(null==e||null===(l=e.componentOptions)||void 0===l?void 0:l.propsData)||{},{children:s=[]}=null==e?void 0:e.componentOptions;a.push({value:o,disabled:i,label:n||(null===(r=s[0])||void 0===r?void 0:r.text)||o})}));return a}),V=()=>{var a,l=[],r=(a=h.value,e.filterable&&""!==a.trim()?G.value.filter(e=>e.label.toLowerCase().includes(a.toLowerCase())):G.value);return A.value=r.length,r.forEach((a,r)=>{var{label:n,value:o,disabled:i}=f({},a),s=(t=>{var a;return e.multiple?(null===(a=v.value)||void 0===a?void 0:a.indexOf(t))>=0:!Ce(v.value)&&v.value[0]===t})(o);l.push(t.h(Re,{on:{select:_,mouseenter:()=>(e=>{O.value=e})(r)},key:"".concat(o,"-").concat(n),attrs:{active:O.value==r,value:o,label:n,disabled:i,checked:s,multiple:e.multiple}}))}),l},X=t=>{var{key:a}=t;"Backspace"===a&&""==h.value&&e.multiple&&v.value.length>0&&(v.value=v.value.slice(0,-1),n("input",v.value),n("change",e.multiple?v.value:v.value[0]||""),E())},J=t.computed(()=>e.clearable&&!e.disabled&&!Ce(v.value)&&!Ce(P.value)),Q=()=>{var a=null;if(c.value){var l=V(),r={ref:w,style:{minWidth:"".concat(k.value,"px"),left:"".concat(z.value,"px"),top:"".concat(C.value,"px"),transformOrigin:x.value},class:["k-select-dropdown","k-scroll",{"k-select-dropdown-multiple":e.multiple,"k-select-dropdown-sm":"small"==e.size}]},n=t.h("div",{class:"k-select-loading"},[t.h(S,{attrs:{type:Z,spin:!0}}),t.h("span",[s.value.k.select.loading])]);a=t.h("transition",{attrs:{name:"".concat("k-select")}},[t.h("div",d([{directives:[{name:"transfer",value:!0},{name:"show",value:u.value}]},r]),[e.loading?n:l.length?t.h("ul",[l]):t.h(He,{on:{click:H},attrs:{description:s.value.k.select.emptyText}})])])}return a};return()=>{var{disabled:a,size:l,multiple:r,placeholder:n,showArrow:o,bordered:i,theme:c,arrowIcon:f,icon:k,shape:w,filterable:x}=e,z=[];void 0===f&&(f=Y);var C,T={ref:y,class:"k-select-search",autoComplete:"off",on:{change:e=>e.stopPropagation(),keydown:X,input:$,blur:()=>{u.value||(p.value=!1)}}},B=t.h("div",{directives:[{name:"show",value:p.value}],key:"search",class:"k-select-search-wrap"},[t.h("input",d([{},T])),t.h("span",{class:"k-select-search-mirror",ref:m},[h.value])]),O=n||(null==s?void 0:s.value.k.select.placeholder),A=O&&Ce(P.value)&&!h.value?t.h("div",{class:"k-select-placeholder"},[O]):null,L={display:h.value.length?"none":""},N=r?t.h("div",{class:"k-select-labels",attrs:{name:"k-select-tag"}},[(C=P.value.map((a,l)=>t.h("span",{class:"k-select-tag",key:a},[a,t.h(S,{attrs:{type:R},on:{click:t=>((t,a)=>{e.disabled||(v.value.splice(a,1),t.stopPropagation(),E())})(t,l)}})])),e.maxTagCount&&e.maxTagCount>0&&C.length>e.maxTagCount&&(C=C.slice(0,e.maxTagCount)).push(t.h("span",{class:"k-select-tag"},["+",P.value.length-e.maxTagCount,"..."])),C),B]):Ce(P.value)?null:t.h("div",{class:"k-select-label",style:L},[P.value[0]]);z.push(N),A&&z.push(A),!x&&!b||r||z.push(B);var D={width:"".concat(e.width,"px")},I=!b&&o?t.h(S,{class:"k-select-arrow",attrs:{type:f}}):null,K=["k-select",{"k-select-disabled":a,"k-select-block":e.block,"k-select-opened":u.value,"k-select-borderless":!1===i,"k-select-lg":"large"==l,"k-select-sm":"small"==l,"k-select-light":"light"==c,"k-select-has-icon":!!k,"k-select-circle":"circle"==w&&!r,"k-select-multiple":r,"k-select-show-search":g.value,"k-select-show-tags":r&&!Ce(P.value),"k-select-has-clear":J.value}],_=J.value?t.h(S,{class:"k-select-clearable",attrs:{type:F},on:{click:U}}):null;return t.h("div",{attrs:{tabIndex:"0"},class:K,style:D,directives:[{name:"resize",value:E}],on:{click:q,focus:()=>j.value=!0,blur:()=>j.value=!1},ref:M},[k?t.h(S,{attrs:{type:k},class:"k-select-icon"}):null,t.h("div",{class:"k-select-selection"},[z]),t.h("span",{class:"k-select-suffix"},[I,_]),Q()])}}}),We=m(Ue),qe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[