qcinfo-ui
Version:
An Amazing Vue3 UI Components Library.
1 lines • 554 kB
JavaScript
var VueAmazingUI=function(X,e){"use strict";const e8="";function Di(a=Date.now(),t="YYYY-MM-DD HH:mm:ss"){if(typeof a=="number"||typeof a=="string")var n=new Date(a);else var n=a;function r(s){return s<10?"0"+s:String(s)}var o=t;if(o.includes("SSS")){const s=n.getMilliseconds();o=o.replace("SSS","0".repeat(3-String(s).length)+s)}if(o.includes("YY")){const s=n.getFullYear();o=o.includes("YYYY")?o.replace("YYYY",String(s)):o.replace("YY",String(s).slice(2,4))}if(o.includes("M")){const s=n.getMonth()+1;o=o.includes("MM")?o.replace("MM",r(s)):o.replace("M",String(s))}if(o.includes("D")){const s=n.getDate();o=o.includes("DD")?o.replace("DD",r(s)):o.replace("D",String(s))}if(o.includes("H")){const s=n.getHours();o=o.includes("HH")?o.replace("HH",r(s)):o.replace("H",String(s))}if(o.includes("m")){var l=n.getMinutes();o=o.includes("mm")?o.replace("mm",r(l)):o.replace("m",String(l))}if(o.includes("s")){var i=n.getSeconds();o=o.includes("ss")?o.replace("ss",r(i)):o.replace("s",String(i))}return o}const Le=typeof window<"u"?window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame:()=>{},kn=typeof window<"u"?window.cancelAnimationFrame||window.mozCancelAnimationFrame:()=>{};function Ie(a,t=0,n=!1){const r=typeof window<"u"?window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame:()=>{};var o=null;function l(s){o||(o=s),s-o>=t?(a(),n&&(o=null,i.id=r(l))):i.id=r(l)}const i={id:r(l)};return i}function Xe(a){const t=typeof window<"u"?window.cancelAnimationFrame||window.mozCancelAnimationFrame:()=>{};a&&a.id&&t(a.id)}function Vi(a,t=300){var n=!0;return function(){return n&&(n=!1,Ie(()=>{a(),n=!0},t)),!1}}function xi(a,t=300){let n=null;return function(){n&&Xe(n),n=Ie(a,t)}}function zi(a,t){const n=String(a).split(".")[1],r=String(t).split(".")[1];let o=Math.max((n==null?void 0:n.length)||0,(r==null?void 0:r.length)||0),l=a.toFixed(o),i=t.toFixed(o);return(+l.replace(".","")+ +i.replace(".",""))/Math.pow(10,o)}function Pi(a,t){var n="";if(t)n=t;else{const o=a.split("?")[0].split("/");n=o[o.length-1]}var r=new XMLHttpRequest;r.open("GET",a,!0),r.responseType="blob",r.onload=function(){if(r.status===200){const o=r.response,l=document.createElement("a"),i=document.querySelector("body");l.href=window.URL.createObjectURL(o),l.download=n,l.style.display="none",i==null||i.appendChild(l),l.click(),i==null||i.removeChild(l),window.URL.revokeObjectURL(l.href)}},r.send()}function To(a,t=2,n=","){function r(s){const d=s.length;return d<=3?s:r(s.slice(0,d-3))+n+s.slice(d-3,d)}const o=String(a);if(isFinite(parseFloat(o))){if(parseFloat(o)===0)return parseFloat(o).toFixed(t);var l="",i=o.indexOf(".");if(i===-1)t===0?l=r(o):l=r(o)+"."+"0".repeat(t);else{const s=String((Math.round(parseFloat(o)*Math.pow(10,t))/Math.pow(10,t)).toFixed(t)),d=s.slice(i,i+t+1);l=r(s.slice(0,i))+d}return l}else return"--"}function Ai(){document.documentElement.classList.toggle("dark")}const Oe=a=>(e.pushScopeId("data-v-91e83039"),a=a(),e.popScopeId(),a),Li={key:0,class:"m-icon"},Ii=["src"],Oi={key:1,focusable:"false",class:"u-icon","data-icon":"info-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Fi=[Oe(()=>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))],Ri={key:2,focusable:"false",class:"u-icon","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Hi=[Oe(()=>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))],Yi={key:3,focusable:"false",class:"u-icon","data-icon":"exclamation-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Ui=[Oe(()=>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))],Wi={key:4,focusable:"false",class:"u-icon","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},ji=[Oe(()=>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))],qi={key:1,class:"m-big-icon"},Gi=["src"],Ki={key:1,focusable:"false",class:"u-icon","data-icon":"info-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Xi=[Oe(()=>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)),Oe(()=>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))],Qi={key:2,focusable:"false",class:"u-icon","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},Zi=[Oe(()=>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)),Oe(()=>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))],Ji={key:3,focusable:"false",class:"u-icon","data-icon":"exclamation-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},es=[Oe(()=>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)),Oe(()=>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))],ts={key:4,focusable:"false",class:"u-icon","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},as=[Oe(()=>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)),Oe(()=>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))],ns={class:"m-content"},rs={class:"u-message"},os={key:0},ls={key:1,focusable:"false",class:"u-close","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},is=[Oe(()=>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))],ss=e.defineComponent({__name:"Alert",props:{message:{default:""},description:{default:""},type:{default:"info"},closable:{type:Boolean,default:!1},closeText:{default:""},icon:{default:""},showIcon:{type:Boolean,default:!1}},emits:["close"],setup(a,{emit:t}){const n=a,r=e.ref(),o=e.ref(),l=e.ref(1);e.onMounted(()=>{l.value=o.value.offsetHeight,n.closable&&e.nextTick(()=>{r.value.style.height=r.value.offsetHeight+"px",r.value.style.opacity=1})});function i(s){r.value.style.height=0,r.value.style.opacity=0,t("close",s)}return(s,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"alert",ref:r,class:"m-alert-wrapper"},[e.createElementVNode("div",{class:e.normalizeClass(["m-alert",[`${s.type}`,{"width-description":l.value}]])},[s.showIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.value?(e.openBlock(),e.createElementBlock("span",qi,[e.renderSlot(s.$slots,"icon",{},()=>[s.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.icon,class:"u-big-icon-img"},null,8,Gi)):s.type==="info"?(e.openBlock(),e.createElementBlock("svg",Ki,Xi)):s.type==="success"?(e.openBlock(),e.createElementBlock("svg",Qi,Zi)):s.type==="warning"?(e.openBlock(),e.createElementBlock("svg",Ji,es)):s.type==="error"?(e.openBlock(),e.createElementBlock("svg",ts,as)):e.createCommentVNode("",!0)],!0)])):(e.openBlock(),e.createElementBlock("span",Li,[e.renderSlot(s.$slots,"icon",{},()=>[s.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.icon,class:"u-icon-img"},null,8,Ii)):s.type==="info"?(e.openBlock(),e.createElementBlock("svg",Oi,Fi)):s.type==="success"?(e.openBlock(),e.createElementBlock("svg",Ri,Hi)):s.type==="warning"?(e.openBlock(),e.createElementBlock("svg",Yi,Ui)):s.type==="error"?(e.openBlock(),e.createElementBlock("svg",Wi,ji)):e.createCommentVNode("",!0)],!0)]))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",ns,[e.createElementVNode("div",rs,[e.renderSlot(s.$slots,"message",{},()=>[e.createTextVNode(e.toDisplayString(s.message),1)],!0)]),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"u-description",ref_key:"descRef",ref:o},[e.renderSlot(s.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(s.description),1)],!0)],512)):e.createCommentVNode("",!0)]),s.closable?(e.openBlock(),e.createElementBlock("a",{key:1,class:"m-close",onClick:i},[e.renderSlot(s.$slots,"closeText",{},()=>[s.closeText?(e.openBlock(),e.createElementBlock("span",os,e.toDisplayString(s.closeText),1)):(e.openBlock(),e.createElementBlock("svg",ls,is))],!0)])):e.createCommentVNode("",!0)],2)],512))}}),m8="",ne=(a,t)=>{const n=a.__vccOpts||a;for(const[r,o]of t)n[r]=o;return n},ra=ne(ss,[["__scopeId","data-v-91e83039"]]);ra.install=a=>{a.component(ra.__name,ra)};const ds=["src","alt"],cs=e.defineComponent({__name:"Avatar",props:{shape:{default:"circle"},size:{default:"default"},src:{default:""},alt:{default:""},icon:{default:void 0}},setup(a){const t=a,n=e.ref(document.documentElement.clientWidth),r=e.ref(),o=e.ref(1),l=e.ref(),i=e.ref(1);e.onMounted(()=>{window.addEventListener("resize",s),t.src||(o.value=r.value.offsetHeight,e.nextTick(()=>{o.value||(i.value=l.value.offsetHeight)}))}),e.onUnmounted(()=>{window.removeEventListener("resize",s)});function s(){n.value=document.documentElement.clientWidth}const d=e.computed(()=>{if(typeof t.size=="string")return null;if(typeof t.size=="number")return o.value?{width:t.size+"px",height:t.size+"px",lineHeight:t.size+"px",fontSize:t.size/2+"px"}:{width:t.size+"px",height:t.size+"px",lineHeight:t.size+"px",fontSize:"18px"};if(typeof t.size=="object"){let c=32;return n.value>=1600&&t.size.xxl?c=t.size.xxl:n.value>=1200&&t.size.xl?c=t.size.xl:n.value>=992&&t.size.lg?c=t.size.lg:n.value>=768&&t.size.md?c=t.size.md:n.value>=576&&t.size.sm?c=t.size.sm:n.value<576&&t.size.xs&&(c=t.size.xs),{width:c+"px",height:c+"px",lineHeight:c+"px",fontSize:c/2+"px"}}}),u=e.computed(()=>{if(typeof t.size=="string")return{transform:"scale(1) translateX(-50%)"};if(typeof t.size=="number"){const c=Math.min(1,Math.max(.022222222222222223,(1+(t.size-9)*1)/45));return{lineHeight:t.size+"px",transform:`scale(${c}) translateX(-50%)`}}});return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-avatar",[d.value===null?"avatar-"+c.size:"","avatar-"+c.shape,{"avatar-image":c.src}]]),style:e.normalizeStyle(d.value||{})},[c.src?(e.openBlock(),e.createElementBlock("img",{key:0,class:"u-image",src:c.src,alt:c.alt},null,8,ds)):e.createCommentVNode("",!0),!c.src&&o.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:"m-icon",ref_key:"iconRef",ref:r},[e.renderSlot(c.$slots,"icon",{},void 0,!0)],512)):e.createCommentVNode("",!0),!c.src&&!o.value&&i.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:"m-string",style:e.normalizeStyle(u.value),ref_key:"strRef",ref:l},[e.renderSlot(c.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0)],6))}}),h8="",oa=ne(cs,[["__scopeId","data-v-43bfdb99"]]);oa.install=a=>{a.component(oa.__name,oa)};const us={class:"u-status-text"},fs=["title"],ps={key:0,class:"m-number",style:{transition:"none 0s ease 0s"}},ms={class:"u-number"},hs=e.defineComponent({__name:"Badge",props:{color:{default:""},count:{default:0},max:{default:99},showZero:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},status:{default:void 0},text:{default:""},countStyle:{default:()=>({})},title:{default:""},ripple:{type:Boolean,default:!0}},setup(a){const t=a,n=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],r=e.computed(()=>{if(t.color&&!n.includes(t.color))return{color:t.color,backgroundColor:t.color}}),o=e.ref(),l=e.ref(1),i=e.ref(),s=e.ref(1);return e.onMounted(()=>{!t.status&&!t.color&&(l.value=o.value.offsetHeight,s.value=i.value.offsetHeight)}),(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-badge",{"badge-status":d.status}])},[d.status||d.color?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(["u-status-dot",[`status-${d.status||d.color}`,{"dot-ripple":d.ripple}]]),style:e.normalizeStyle(r.value)},null,6),e.createElementVNode("span",us,[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.text),1)],!0)])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"contentRef",ref:o},[e.renderSlot(d.$slots,"default",{},void 0,!0)],512)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("span",{key:1,ref_key:"countRef",ref:i,class:e.normalizeClass(["m-count",{"only-number":!l.value}])},[e.renderSlot(d.$slots,"count",{},void 0,!0)],2)):(e.openBlock(),e.createBlock(e.Transition,{key:2,name:"zoom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["m-badge-count",{"small-num":d.count<10,"only-number":!l.value,"only-dot":d.count===0&&!d.showZero}]),style:e.normalizeStyle(d.countStyle),title:d.title||String(d.count)},[d.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ps,[e.createElementVNode("span",ms,e.toDisplayString(d.count>d.max?d.max+"+":d.count),1)]))],14,fs),[[e.vShow,d.showZero||d.count!==0||d.dot]])]),_:1}))],64))],2))}}),g8="",la=ne(hs,[["__scopeId","data-v-e30dbdc9"]]);la.install=a=>{a.component(la.__name,la)};const $o=a=>(e.pushScopeId("data-v-cfeff53f"),a=a(),e.popScopeId(),a),gs=["href","title","target"],ys={key:0,class:"u-separator"},ws={key:1,class:"u-arrow",viewBox:"64 64 896 896","data-icon":"right","aria-hidden":"true",focusable:"false"},vs=[$o(()=>e.createElementVNode("path",{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"},null,-1))],ks=$o(()=>e.createElementVNode("div",{class:"assist"},null,-1)),_s=e.defineComponent({__name:"Breadcrumb",props:{routes:{default:()=>[]},fontSize:{default:14},height:{default:21},maxWidth:{default:180},separator:{default:""},target:{default:"_self"}},setup(a){const t=a,n=e.computed(()=>t.routes.length);function r(o){var l=o.path;if(o.query&&JSON.stringify(o.query)!=="{}"){const i=o.query;Object.keys(i).forEach((s,d)=>{d===0?l=l+"?"+s+"="+i[s]:l=l+"&"+s+"="+i[s]})}return l}return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:"m-breadcrumb",style:e.normalizeStyle(`height: ${o.height}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.routes,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"m-bread",key:s},[e.createElementVNode("a",{class:e.normalizeClass(["u-route",{active:s===n.value-1}]),style:e.normalizeStyle(`font-size: ${o.fontSize}px; max-width: ${o.maxWidth}px;`),href:s===n.value-1?"javascript:;":r(i),title:i.name,target:s===n.value-1?"_self":o.target},e.toDisplayString(i.name||"--"),15,gs),s!==n.value-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.separator?(e.openBlock(),e.createElementBlock("span",ys,e.toDisplayString(o.separator),1)):(e.openBlock(),e.createElementBlock("svg",ws,vs))],64)):e.createCommentVNode("",!0)]))),128)),ks],4))}}),w8="",ia=ne(_s,[["__scopeId","data-v-cfeff53f"]]);ia.install=a=>{a.component(ia.__name,ia)};const bs=["href","target","disabled"],Ss={class:"u-spin-circle"},Cs={class:"u-text"},Es=e.defineComponent({__name:"Button",props:{name:{default:"按钮"},type:{default:"default"},effect:{default:"fade"},size:{default:"middle"},route:{default:()=>({})},target:{default:"_self"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:["click"],setup(a,{emit:t}){const n=a,r=e.computed(()=>JSON.stringify(n.route)!=="{}");function o(i){r.value||t("click",i)}function l(i){var s=i.path;if(i.query&&JSON.stringify(i.query)!=="{}"){const d=i.query;Object.keys(d).forEach((u,c)=>{c===0?s=s+"?"+u+"="+d[u]:s=s+"&"+u+"="+d[u]})}return s}return(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-btn-wrap",{center:i.center}])},[e.createElementVNode("a",{onClick:o,href:l(i.route),target:r.value?i.target:"_self",disabled:i.disabled,class:e.normalizeClass(["m-btn",[i.type,i.size,{[i.effect]:i.type==="default",disabled:i.disabled,"m-btn-loading":!r.value&&i.loading}]])},[e.withDirectives(e.createElementVNode("span",{class:e.normalizeClass(["m-loading-icon",{"show-spin":i.loading}])},[e.withDirectives(e.createElementVNode("span",Ss,null,512),[[e.vShow,i.loading]])],2),[[e.vShow,!r.value]]),e.createElementVNode("span",Cs,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(i.name),1)],!0)])],10,bs)],2))}}),v8="",We=ne(Es,[["__scopeId","data-v-5dd12c42"]]);We.install=a=>{a.component(We.__name,We)};const Bs={class:"u-title"},Ms={class:"u-extra"},Ts=e.defineComponent({__name:"Card",props:{width:{default:"auto"},bordered:{type:Boolean,default:!0},extra:{default:""},size:{default:"default"},title:{default:""},headStyle:{default:()=>({})},bodyStyle:{default:()=>({})}},setup(a){const t=a,n=e.computed(()=>typeof t.width=="number"?t.width+"px":t.width),r=e.ref(),o=e.ref(1);return e.onMounted(()=>{o.value=r.value.offsetHeight}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-card",{bordered:l.bordered,"m-small-card":l.size==="small"}]),style:e.normalizeStyle(`width: ${n.value};`)},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-card-head",style:e.normalizeStyle(l.headStyle)},[e.createElementVNode("div",{class:"m-head-wrapper",ref_key:"headRef",ref:r},[e.createElementVNode("div",Bs,[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(l.title),1)],!0)]),e.createElementVNode("div",Ms,[e.renderSlot(l.$slots,"extra",{},()=>[e.createTextVNode(e.toDisplayString(l.extra),1)],!0)])],512)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"m-card-body",style:e.normalizeStyle(l.bodyStyle)},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4)],6))}}),k8="",sa=ne(Ts,[["__scopeId","data-v-be988ef0"]]);sa.install=a=>{a.component(sa.__name,sa)};const da=a=>(e.pushScopeId("data-v-8078b85a"),a=a(),e.popScopeId(),a),$s={class:"m-spin"},Ns={class:"m-spin-box"},Ds={key:0,class:"m-spin-dot"},Vs=[da(()=>e.createElementVNode("span",{class:"u-dot-item"},null,-1)),da(()=>e.createElementVNode("span",{class:"u-dot-item"},null,-1)),da(()=>e.createElementVNode("span",{class:"u-dot-item"},null,-1)),da(()=>e.createElementVNode("span",{class:"u-dot-item"},null,-1))],xs={key:1,class:"u-quarter-circle"},zs={key:2,class:"u-three-quarters-circle"},Ps={key:3,class:"m-dynamic-circle"},As=[da(()=>e.createElementVNode("svg",{class:"circular",viewBox:"0 0 50 50"},[e.createElementVNode("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})],-1))],Ls=e.defineComponent({__name:"Spin",props:{spinning:{type:Boolean,default:!0},size:{default:"default"},tip:{default:""},indicator:{default:"dot"},color:{default:"#1677FF"}},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`m-spin-wrap ${t.size}`),style:e.normalizeStyle(`--color: ${t.color};`)},[e.withDirectives(e.createElementVNode("div",$s,[e.createElementVNode("div",Ns,[t.indicator==="dot"?(e.openBlock(),e.createElementBlock("div",Ds,Vs)):e.createCommentVNode("",!0),t.indicator==="quarter-circle"?(e.openBlock(),e.createElementBlock("div",xs)):e.createCommentVNode("",!0),t.indicator==="three-quarters-circle"?(e.openBlock(),e.createElementBlock("div",zs)):e.createCommentVNode("",!0),t.indicator==="dynamic-circle"?(e.openBlock(),e.createElementBlock("div",Ps,As)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("p",{class:"u-tip"},e.toDisplayString(t.tip),513),[[e.vShow,t.tip]])])],512),[[e.vShow,t.spinning]]),e.createElementVNode("div",{class:e.normalizeClass(["m-spin-content",{"m-spin-mask":t.spinning}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],6))}}),B8="",Ve=ne(Ls,[["__scopeId","data-v-8078b85a"]]);Ve.install=a=>{a.component(Ve.__name,Ve)};const No=a=>(e.pushScopeId("data-v-157da14d"),a=a(),e.popScopeId(),a),Is=["href","target"],Os=["onLoad","src","alt"],Fs={key:0,class:"m-image"},Rs=["href","target"],Hs=["src","alt"],Ys=[No(()=>e.createElementVNode("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z"},null,-1))],Us=[No(()=>e.createElementVNode("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z"},null,-1))],Ws={key:1,class:"m-switch"},js=["onClick"],qs=e.defineComponent({__name:"Carousel",props:{images:{default:()=>[]},interval:{default:3e3},width:{default:"100%"},height:{default:"100vh"},navigation:{type:Boolean,default:!0},navColor:{default:"#FFF"},navSize:{default:36},pagination:{type:Boolean,default:!0},pageActiveColor:{default:"#1677FF"},pageSize:{default:10},pageStyle:{default:()=>({})},disableOnInteraction:{type:Boolean,default:!0},pauseOnMouseEnter:{type:Boolean,default:!0}},setup(a){const t=a,n=e.ref(!0),r=e.ref(0),o=e.ref(!1),l=e.ref(),i=e.ref(),s=e.ref(),d=e.ref(!1),u=e.ref(),c=e.ref(1),f=e.computed(()=>typeof t.width=="number"?t.width+"px":t.width),y=e.computed(()=>typeof t.height=="number"?t.height+"px":t.height),h=e.computed(()=>(t.images.length+1)*S.value),k=e.computed(()=>t.images.length);e.onMounted(()=>{w(),$(),document.addEventListener("keydown",C)}),e.onUnmounted(()=>{document.removeEventListener("keydown",C)});const p=e.ref(Array(k.value).fill(!1)),_=e.ref(),v=e.ref(60),g=e.computed(()=>v.value===60?12:12*(v.value/60));function m(I){p.value[I]=!0}e.watch(()=>p.value[0],I=>{I&&b()});function w(){var I=null;function Q(ee){I?(v.value=Math.floor(1e3/(ee-I)),console.log("fps",v.value)):(_.value>10&&(I=ee),_.value=Le(Q))}_.value=Le(Q)}const S=e.ref(),N=e.ref();function $(){S.value=u.value.offsetWidth,N.value=u.value.offsetHeight}function C(I){I.preventDefault(),k.value>1&&((I.key==="ArrowLeft"||I.key==="ArrowUp")&&Y(),(I.key==="ArrowRight"||I.key==="ArrowDown")&&M())}function b(){k.value>1&&p.value[0]&&(n.value=!0,o.value=!1,V(),console.log("imageSlider start"))}function P(){Xe(l.value),l.value=null,n.value?T():x(),console.log("imageSlider stop")}function T(){kn(i.value),o.value=!0,r.value=Math.ceil(r.value/S.value)*S.value}function x(){kn(i.value),o.value=!0,r.value=Math.floor(r.value/S.value)*S.value}function V(){l.value=Ie(()=>{const I=r.value%(k.value*S.value)+S.value;c.value=c.value%k.value+1,z(I)},t.interval)}function A(I){n.value?T():(x(),n.value=!0),o.value=!1,F(I)}function O(I){n.value?(T(),n.value=!1):x(),o.value=!1,j(I)}function Y(){const I=(c.value+k.value-2)%k.value*S.value;c.value=c.value-1>0?c.value-1:k.value,O(I)}function M(){const I=c.value*S.value;c.value=c.value%k.value+1,A(I)}function E(){if(r.value>=s.value)V();else{var I=Math.ceil((s.value-r.value)/g.value);r.value+=I,i.value=Le(E)}}function z(I){r.value===k.value*S.value&&(r.value=0),s.value=I,i.value=Le(E)}function B(){if(r.value>=s.value)d.value&&(d.value=!1,!t.disableOnInteraction&&!t.pauseOnMouseEnter&&b());else{var I=Math.ceil((s.value-r.value)/g.value);r.value+=I,i.value=Le(B)}}function F(I){r.value===k.value*S.value&&(r.value=0),s.value=I,i.value=Le(B)}function D(){if(r.value<=s.value)d.value&&(d.value=!1,!t.disableOnInteraction&&!t.pauseOnMouseEnter&&b());else{var I=Math.floor((s.value-r.value)/g.value);r.value+=I,i.value=Le(D)}}function j(I){r.value===0&&(r.value=k.value*S.value),s.value=I,i.value=Le(D)}function W(I){if(c.value!==I){d.value=!0;const Q=(I-1)*S.value;I<c.value&&(c.value=I,O(Q)),I>c.value&&(c.value=I,A(Q))}}return(I,Q)=>(e.openBlock(),e.createElementBlock("div",{class:"m-slider",ref_key:"carousel",ref:u,style:e.normalizeStyle(`--navColor: ${I.navColor}; --pageActiveColor: ${I.pageActiveColor}; width: ${f.value}; height: ${y.value};`),onMouseenter:Q[1]||(Q[1]=ee=>I.pauseOnMouseEnter?P():()=>!1),onMouseleave:Q[2]||(Q[2]=ee=>I.pauseOnMouseEnter?b():()=>!1)},[e.createElementVNode("div",{class:e.normalizeClass({transition:o.value}),style:e.normalizeStyle(`width: ${h.value}px; height: 100%; will-change: transform; transform: translateX(${-r.value}px);`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.images,(ee,ae)=>(e.openBlock(),e.createElementBlock("div",{class:"m-image",key:ae},[e.createVNode(e.unref(Ve),{spinning:!p.value[ae],indicator:"dynamic-circle"},{default:e.withCtx(()=>[e.createElementVNode("a",{href:ee.link?ee.link:"javascript:;",target:ee.link?"_blank":"_self",class:"m-link"},[(e.openBlock(),e.createElementBlock("img",{onLoad:ie=>m(ae),src:ee.src,key:ee.src,alt:ee.title,class:"u-img",style:e.normalizeStyle(`width: ${S.value}px; height: ${N.value}px;`)},null,44,Os))],8,Is)]),_:2},1032,["spinning"])]))),128)),k.value?(e.openBlock(),e.createElementBlock("div",Fs,[e.createVNode(e.unref(Ve),{spinning:!p.value[0],indicator:"dynamic-circle"},{default:e.withCtx(()=>[e.createElementVNode("a",{href:I.images[0].link?I.images[0].link:"javascript:;",target:I.images[0].link?"_blank":"_self",class:"m-link"},[(e.openBlock(),e.createElementBlock("img",{onLoad:Q[0]||(Q[0]=ee=>m(0)),src:I.images[0].src,key:I.images[0].src,alt:I.images[0].title,class:"u-img",style:e.normalizeStyle(`width: ${S.value}px; height: ${N.value}px;`)},null,44,Hs))],8,Rs)]),_:1},8,["spinning"])])):e.createCommentVNode("",!0)],6),I.navigation?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createElementBlock("svg",{class:"arrow-left",style:e.normalizeStyle(`width: ${I.navSize}px; height: ${I.navSize}px;`),onClick:Y,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Ys,4)),(e.openBlock(),e.createElementBlock("svg",{class:"arrow-right",style:e.normalizeStyle(`width: ${I.navSize}px; height: ${I.navSize}px;`),onClick:M,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Us,4))],64)):e.createCommentVNode("",!0),I.pagination?(e.openBlock(),e.createElementBlock("div",Ws,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,ee=>(e.openBlock(),e.createElementBlock("div",{onClick:ae=>W(ee),class:e.normalizeClass(["u-circle",{active:c.value===ee}]),style:e.normalizeStyle([{width:`${I.pageSize}px`,height:`${I.pageSize}px`},I.pageStyle]),key:ee},null,14,js))),128))])):e.createCommentVNode("",!0)],36))}}),$8="",ca=ne(qs,[["__scopeId","data-v-157da14d"]]);ca.install=a=>{a.component(ca.__name,ca)};const Gs={class:"m-empty"},Ks=[e.createStaticVNode('<g fill="none" fill-rule="evenodd" data-v-6276d362><g transform="translate(24 31.67)" data-v-6276d362><ellipse fill-opacity=".8" fill="#F5F5F7" cx="67.797" cy="106.89" rx="67.797" ry="12.668" data-v-6276d362></ellipse><path d="M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z" fill="#AEB8C2" data-v-6276d362></path><path d="M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z" fill="url(#linearGradient-1)" transform="translate(13.56)" data-v-6276d362></path><path d="M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z" fill="#F5F5F7" data-v-6276d362></path><path d="M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z" fill="#DCE0E6" data-v-6276d362></path></g><path d="M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z" fill="#DCE0E6" data-v-6276d362></path><g transform="translate(149.65 15.383)" fill="#FFF" data-v-6276d362><ellipse cx="20.654" cy="3.167" rx="2.849" ry="2.815" data-v-6276d362></ellipse><path d="M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" data-v-6276d362></path></g></g>',1)],Xs=[e.createStaticVNode('<g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-6276d362><ellipse fill="#f5f5f5" cx="32" cy="33" rx="32" ry="7" data-v-6276d362></ellipse><g fill-rule="nonzero" stroke="#d9d9d9" data-v-6276d362><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-6276d362></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" data-v-6276d362></path></g></g>',1)],Qs=["src"],Zs=e.defineComponent({__name:"Empty",props:{description:{default:"暂无数据"},image:{default:"1"},imageStyle:{default:()=>({})}},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock("div",Gs,[t.image==="1"?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"u-empty-1",style:e.normalizeStyle(t.imageStyle),viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ks,4)):t.image==="2"?(e.openBlock(),e.createElementBlock("svg",{key:1,class:"u-empty-2",style:e.normalizeStyle(t.imageStyle),viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Xs,4)):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createElementVNode("img",{class:"u-empty",src:t.image,style:e.normalizeStyle(t.imageStyle),alt:"image"},null,12,Qs)],!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(["u-description",{gray:t.image==="2"}])},[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)],2)):e.createCommentVNode("",!0)]))}}),V8="",Ct=ne(Zs,[["__scopeId","data-v-6276d362"]]);Ct.install=a=>{a.component(Ct.__name,Ct)};const Qn=a=>(e.pushScopeId("data-v-15e8ce35"),a=a(),e.popScopeId(),a),Js=["title"],ed=["placeholder"],td=[Qn(()=>e.createElementVNode("path",{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"},null,-1))],ad=[Qn(()=>e.createElementVNode("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"},null,-1))],nd=["onClick"],rd=[Qn(()=>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))],od=["title","onMouseenter","onClick"],ld=e.defineComponent({__name:"Select",props:{options:{default:()=>[]},label:{default:"label"},value:{default:"value"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},search:{type:Boolean,default:!1},filter:{type:[Function,Boolean],default:!0},width:{default:120},height:{default:32},maxDisplay:{default:6},modelValue:{default:null}},emits:["update:modelValue","change"],setup(a,{emit:t}){const n=a,r=e.ref(),o=e.ref(),l=e.ref(),i=e.ref(),s=e.ref(!1),d=e.ref(!0),u=e.ref(!0),c=e.ref(!1),f=e.ref(!1),y=e.ref();e.watchEffect(()=>{n.search?(r.value=n.options.filter($=>typeof n.filter=="function"?n.filter(l.value,$):$[n.label].includes(l.value)),r.value.length&&l.value?i.value=r.value[0][n.value]:i.value=null):r.value=n.options}),e.watchEffect(()=>{h()}),e.watch(s,$=>{!$&&n.search&&(l.value=o.value)});function h(){if(n.modelValue){const $=n.options.find(C=>C[n.value]===n.modelValue);$?(o.value=$[n.label],i.value=$[n.value]):(o.value=n.modelValue,i.value=null)}else o.value=null,i.value=null;n.search&&(l.value=o.value)}function k(){s.value&&(s.value=!1),n.search&&(f.value=!1,u.value=!0)}function p(){n.allowClear&&o.value&&(u.value=!1,c.value=!0,n.search&&(f.value=!1))}function _(){n.allowClear&&c.value&&(c.value=!1,n.search||(u.value=!0)),n.search&&(s.value?(f.value=!0,u.value=!1,y.value.focus()):(f.value=!1,u.value=!0))}function v($){i.value=$}function g(){d.value=!1}function m(){i.value=null,d.value=!0,y.value.focus()}function w(){if(s.value=!s.value,l.value="",!i.value&&o.value){const $=n.options.find(C=>C[n.label]===o.value);i.value=$?$[n.value]:null}n.search&&(c.value||(u.value=!s.value,f.value=s.value))}function S(){c.value=!1,o.value=null,i.value=null,s.value=!1,u.value=!0,t("update:modelValue"),t("change")}function N($,C,b){n.modelValue!==$&&(o.value=C,i.value=$,t("update:modelValue",$),t("change",$,C,b)),s.value=!1,n.search&&(f.value=!1,u.value=!0)}return($,C)=>(e.openBlock(),e.createElementBlock("div",{class:"m-select",style:e.normalizeStyle(`height: ${$.height}px;`)},[e.createElementVNode("div",{class:e.normalizeClass(["m-select-wrap",{hover:!$.disabled,focus:s.value,disabled:$.disabled}]),style:e.normalizeStyle(`width: ${$.width}px; height: ${$.height}px;`),tabindex:"1",ref_key:"selectRef",ref:y,onMouseenter:p,onMouseleave:_,onBlur:C[1]||(C[1]=b=>d.value&&!$.disabled?k():()=>!1),onClick:C[2]||(C[2]=b=>$.disabled?()=>!1:w())},[$.search?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"u-search",style:e.normalizeStyle(`line-height: ${$.height-2}px;`),autocomplete:"off","onUpdate:modelValue":C[0]||(C[0]=b=>l.value=b),placeholder:o.value||$.placeholder},null,12,ed)),[[e.vModelText,l.value,void 0,{number:!0,trim:!0}]]):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["u-select-input",{placeholder:!o.value}]),style:e.normalizeStyle(`line-height: ${$.height-2}px;`),title:o.value},e.toDisplayString(o.value||$.placeholder),15,Js)),(e.openBlock(),e.createElementBlock("svg",{focusable:"false",class:e.normalizeClass(["u-svg",{show:f.value}]),"data-icon":"search","aria-hidden":"true",viewBox:"64 64 896 896"},td,2)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["u-svg",{rotate:s.value,show:u.value}]),viewBox:"64 64 896 896","data-icon":"down","aria-hidden":"true",focusable:"false"},ad,2)),(e.openBlock(),e.createElementBlock("svg",{onClick:e.withModifiers(S,["stop"]),class:e.normalizeClass(["close",{show:c.value}]),focusable:"false","data-icon":"close-circle","aria-hidden":"true",viewBox:"64 64 896 896"},rd,10,nd))],38),e.createVNode(e.TransitionGroup,{name:"fade",tag:"div"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"m-options-panel",onMouseenter:g,onMouseleave:m,key:"1",style:e.normalizeStyle(`top: ${$.height+4}px; line-height: ${$.height-10}px; max-height: ${$.maxDisplay*$.height+9}px; width: ${$.width}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(b,P)=>(e.openBlock(),e.createElementBlock("p",{key:P,class:e.normalizeClass(["u-option",{"option-hover":!b.disabled&&b[$.value]===i.value,"option-selected":b[$.label]===o.value,"option-disabled":b.disabled}]),title:b[$.label],onMouseenter:T=>v(b[$.value]),onClick:T=>b.disabled?()=>!1:N(b[$.value],b[$.label],P)},e.toDisplayString(b[$.label]),43,od))),128))],36),[[e.vShow,s.value&&r.value&&r.value.length]]),e.withDirectives(e.createElementVNode("div",{key:"2",class:"m-empty-wrap",style:e.normalizeStyle(`top: ${$.height+4}px; width: ${$.width}px;`)},[e.createVNode(e.unref(Ct),{image:"2",key:"2"})],4),[[e.vShow,s.value&&r.value&&!r.value.length]])]),_:1})],4))}}),A8="",pt=ne(ld,[["__scopeId","data-v-15e8ce35"]]);pt.install=a=>{a.component(pt.__name,pt)};const id=e.defineComponent({__name:"Cascader",props:{options:{default:()=>[]},label:{default:"label"},value:{default:"value"},children:{default:"children"},placeholder:{default:"请选择"},changeOnSelect:{type:Boolean,default:!1},gap:{default:8},width:{default:120},height:{default:32},disabled:{type:[Boolean,Array],default:!1},allowClear:{type:Boolean,default:!1},search:{type:Boolean,default:!1},filter:{type:[Function,Boolean],default:!0},maxDisplay:{default:6},selectedValue:{default:()=>[]}},emits:["update:selectedValue","change"],setup(a,{emit:t}){const n=a,r=e.ref([]),o=e.ref([]),l=e.ref([]),i=e.ref([]),s=e.ref([]);e.watchEffect(()=>{l.value=[...n.options]}),e.watchEffect(()=>{r.value=[...n.selectedValue]}),e.watchEffect(()=>{u(r.value),f(r.value)});function d(p,_){const v=p.length;for(let g=0;g<v;g++)if(p[g][n.value]===r.value[_])return p[g][n.children]||[];return[]}function u(p){i.value=d(l.value,0),s.value=[],p.length>1&&(s.value=d(i.value,1))}function c(p,_){const v=p.length;for(let g=0;g<v;g++)if(p[g][n.value]===r.value[_])return p[g][n.label];return r.value[_]}function f(p){o.value[0]=c(l.value,0),p.length>1&&(o.value[1]=c(i.value,1)),p.length>2&&(o.value[2]=c(s.value,2))}function y(p,_){n.changeOnSelect?(t("update:selectedValue",[p]),t("change",[p],[_])):(r.value=[p],o.value=[_])}function h(p,_){n.changeOnSelect?(t("update:selectedValue",[r.value[0],p]),t("change",[r.value[0],p],[o.value[0],_])):(r.value=[r.value[0],p],o.value=[o.value[0],_])}function k(p,_){t("update:selectedValue",[...r.value.slice(0,2),p]),t("change",[...r.value.slice(0,2),p],[...o.value.slice(0,2),_])}return(p,_)=>(e.openBlock(),e.createElementBlock("div",{class:"m-cascader",style:e.normalizeStyle(`height: ${p.height}px; gap: ${p.gap}px;`)},[e.createVNode(e.unref(pt),{options:l.value,label:p.label,value:p.value,placeholder:Array.isArray(p.placeholder)?p.placeholder[0]:p.placeholder,disabled:Array.isArray(p.disabled)?p.disabled[0]:p.disabled,"allow-clear":p.allowClear,search:p.search,filter:p.filter,width:Array.isArray(p.width)?p.width[0]:p.width,height:p.height,"max-display":p.maxDisplay,modelValue:r.value[0],"onUpdate:modelValue":_[0]||(_[0]=v=>r.value[0]=v),onChange:y},null,8,["options","label","value","placeholder","disabled","allow-clear","search","filter","width","height","max-display","modelValue"]),e.createVNode(e.unref(pt),{options:i.value,label:p.label,value:p.value,placeholder:Array.isArray(p.placeholder)?p.placeholder[1]:p.placeholder,disabled:Array.isArray(p.disabled)?p.disabled[1]:p.disabled,"allow-clear":p.allowClear,search:p.search,filter:p.filter,width:Array.isArray(p.width)?p.width[1]:p.width,height:p.height,"max-display":p.maxDisplay,modelValue:r.value[1],"onUpdate:modelValue":_[1]||(_[1]=v=>r.value[1]=v),onChange:h},null,8,["options","label","value","placeholder","disabled","allow-clear","search","filter","width","height","max-display","modelValue"]),e.createVNode(e.unref(pt),{options:s.value,label:p.label,value:p.value,placeholder:Array.isArray(p.placeholder)?p.placeholder[2]:p.placeholder,disabled:Array.isArray(p.disabled)?p.disabled[2]:p.disabled,"allow-clear":p.allowClear,search:p.search,filter:p.filter,width:Array.isArray(p.width)?p.width[2]:p.width,height:p.height,"max-display":p.maxDisplay,modelValue:r.value[2],"onUpdate:modelValue":_[2]||(_[2]=v=>r.value[2]=v),onChange:k},null,8,["options","label","value","placeholder","disabled","allow-clear","search","filter","width","height","max-display","modelValue"])],4))}}),L8="",ua=ne(id,[["__scopeId","data-v-a6cc1868"]]);ua.install=a=>{a.component(ua.__name,ua)};const sd=["onClick"],dd={class:"u-label"},cd={key:1,class:"m-checkbox-wrap"},ud={class:"u-label"},fd=e.defineComponent({__name:"Checkbox",props:{options:{default:()=>[]},disabled:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},value:{default:()=>[]},gap:{default:8},width:{default:"auto"},height:{default:"auto"},indeterminate:{type:Boolean,default:!1},checked:{type:Boolean,default:!1}},emits:["update:value","update:checked","change"],setup(a,{emit:t}){const n=a,r=e.computed(()=>n.options.length),o=e.computed(()=>typeof n.width=="number"?n.width+"px":n.width),l=e.computed(()=>typeof n.height=="number"?n.height+"px":n.height),i=e.ref(n.value);e.watch(()=>n.value,c=>{i.value=c});const s=e.computed(()=>n.vertical?{marginBottom:n.gap+"px"}:{marginRight:n.gap+"px"});function d(c){if(n.value.includes(c)){const f=i.value.filter(y=>y!==c);t("update:value",f),t("change",f)}else{const f=[...i.value,c];t("update:value",f),t("change",f)}}function u(){t("update:checked",!n.checked)}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:"m-checkbox",style:e.normalizeStyle(`max-width: ${o.value}; max-height: ${l.value};`)},[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.options,(y,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-checkbox-wrap",{vertical:c.vertical}]),style:e.normalizeStyle(r.value!==h+1?s.value:""),key:h},[e.createElementVNode("div",{class:e.normalizeClass(["m-box",{disabled:c.disabled||y.disabled}]),onClick:k=>c.disabled||y.disabled?()=>!1:d(y.value)},[e.createElementVNode("span",{class:e.normalizeClass(["u-checkbox",{"u-checkbox-checked":i.value.includes(y.value)}])},null,2),e.createElementVNode("span",dd,[e.renderSlot(c.$slots,"default",{label:y.label},()=>[e.createTextVNode(e.toDisplayString(y.label),1)],!0)])],10,sd)],6))),128)):(e.openBlock(),e.createElementBlock("div",cd,[e.createElementVNode("div",{class:e.normalizeClass(["m-box",{disabled:c.disabled}]),onClick:u},[e.createElementVNode("span",{class:e.normalizeClass(["u-checkbox",{"u-checkbox-checked":c.checked&&!c.indeterminate,indeterminate:c.indeterminate}])},null,2),e.createElementVNode("span",ud,[e.renderSlot(c.$slots,"default",{},()=>[e.createTextVNode("Check all")],!0)])],2)]))],4))}}),I8="",fa=ne(fd,[["__scopeId","data-v-d8baf8f7"]]);fa.install=a=>{a.component(fa.__name,fa)};const pd=e.defineComponent({__name:"Col",props:{span:{default:void 0},offset:{default:0},flex:{default:""},xs:{default:void 0},sm:{default:void 0},md:{default:void 0},lg:{default:void 0},xl:{default:void 0},xxl:{default:void 0}},setup(a){const t=a,n=e.computed(()=>typeof t.flex=="number"?`${t.flex} ${t.flex} auto`:t.flex),r=e.computed(()=>{if(o.value>=1600&&t.xxl)return typeof t.xxl=="object"?t.xxl:{span:t.xxl,offset:void 0};if(o.value>=1200&&t.xl)return typeof t.xl=="object"?t.xl:{span:t.xl,offset:void 0};if(o.value>=992&&t.lg)return typeof t.lg=="object"?t.lg:{span:t.lg,offset:void 0};if(o.value>=768&&t.md)return typeof t.md=="object"?t.md:{span:t.md,offset:void 0};if(o.value>=576&&t.sm)return typeof t.sm=="object"?t.sm:{span:t.sm,offset:void 0};if(o.value<576&&t.xs)return typeof t.xs=="object"?t.xs:{span:t.xs,offset:void 0}}),o=e.ref(document.documentElement.clientWidth);e.onMounted(()=>{window.addEventListener("resize",l)}),e.onUnmounted(()=>{window.removeEventListener("resize",l)});function l(){o.value=document.documentElement.clientWidth}return(i,s)=>{var d,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`m-col col-${((d=r.value)==null?void 0:d.span)||i.span} offset-${((u=r.value)==null?void 0:u.offset)||i.offset}`),style:e.normalizeStyle([{"padding-left":"var(--xGap)","padding-right":"var(--xGap)"},`flex: ${n.value}`])},[e.renderSlot(i.$slots,"default",{},void 0,!0)],6)}}}),O8="",pa=ne(pd,[["__scopeId","data-v-4f2e22f3"]]);pa.install=a=>{a.component(pa.__name,pa)};const md=a=>(e.pushScopeId("data-v-70cf9610"),a=a(),e.popScopeId(),a),hd={class:"m-collapse"},gd=["onClick"],yd={key:0,focusable:"false",class:"u-arrow","data-icon":"right","aria-hidden":"true",viewBox:"64 64 896 896"},wd=[md(()=>e.createElementVNode("path",{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"},null,-1))],vd={class:"u-lang"},kd=e.defineComponent({__name:"Collapse",props:{collapseData:{default:()=>[]},activeKey:{default:null},copyable:{type:Boolean,default:!1},lang:{default:""},fontSize:{default:14},headerFontSize:{default:0},textFontSize:{default:0},showArrow:{type:Boolean,default:!0}},emits:["update:activeKey","change"],setup(a,{emit:t}){const n=a;e.watchEffect(()=>{l(n.collapseData.length)},{flush:"post"});const r=e.ref(),o=e.ref([]);function l(f){for(let y=0;y<f;y++)o.value.push(r.value[y].offsetHeight)}function i(f){t("update:activeKey",f),t("change",f)}function s(f){if(d(f))if(Array.isArray(n.activeKey)){const y=n.activeKey.filter(h=>h!==f);i(y)}else i(null);else Array.isArray(n.activeKey)?i([...n.activeKey,f]):i(f)}function d(f){return Array.isArray(n.activeKey)?n.activeKey.includes(f):n.activeKey===f}const u=e.ref("Copy");function c(f){navigator.clipboard.writeText(r.value[f].innerText||"").then(()=>{u.value="Copied",Ie(()=>{u.value="Copy"},3e3)},y=>{u.value=y})}return(f,y)=>{const h=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",hd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.collapseData,(k,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m-collapse-item",{"u-collapse-item-active":d(k.key||p)}]),key:p},[e.createElementVNode("div",{class:"u-collapse-header",onClick:_=>s(k.key||p)},[f.showArrow?(e.openBlock(),e.createElementBlock("svg",yd,wd)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["u-header",{ml24:f.showArrow}]),style:e.normalizeStyle(`font-size: ${f.headerFontSize||f.fontSize}px;`)},[e.renderSlot(f.$slots,"header",{header:k.header,key:k.key||p},()=>[e.createTextVNode(e.toDisplayString(k.header||"--"),1)],!0)],6)],8,gd),e.createElementVNode("div",{class:e.normalizeClass(["u-collapse-content",{"u-collapse-copyable":f.copyable}]),style:e.normalizeStyle(`height: ${d(k.key||p)?o.value[p]:0}px; opacity: ${d(k.key||p)?1:0};`)},[e.createElementVNode("div",vd,[e.renderSlot(f.$slots,"lang",{lang:f.lang,key:k.key||p},()=>[e.createTextVNode(e.toDisplayString(f.lang),1)],!0)]),e.createVNode(h,{size:"small",class:"u-copy",type:"primary",onClick:_=>c(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:2},1032,["onClick"]),e.createElementVNode("div",{ref_for:!0,ref_key:"text",ref:r,class:"u-text",style:e.normalizeStyle(`font-size: ${f.textFontSize||f.fontSize}px;`)},[e.renderSlot(f.$slots,"text",{text:k.text,key:k.key||p},()=>[e.createTextVNode(e.toDisplayString(k.text),1)],!0)],4)],6)],2))),128))])}}}),R8="",ma=ne(kd,[["__scopeId","data-v-70cf9610"]]);ma.install=a=>{a.component(ma.__name,ma)};const _d={class:"m-countdown"},bd={class:"m-time"},Sd=e.defineComponent({__name:"Countdown",props:{title:{default:"Countdown"},value:{default:void 0},format:{default:"HH:mm:ss"},prefix:{default:""},suffix:{default:""},titleStyle:{default:()=>({})},valueStyle:{default:()=>({})},finishedText:{default:"Finished"}},emits:["finish"],setup(a,{emit:t}){const n=a,r=e.ref(),o=e.ref(),l=e.ref(1),i=e.ref(1);e.onMounted(()=>{l.value=r.value.offsetWidth,i.value=o.value.offsetWidth});const s=e.ref(),d=e.ref(),u=e.computed(()=>({showMillisecond:n.format.includes("SSS"),showYear:n.format.includes("Y"),showMonth:n.format.includes("M"),showDay:n.format.includes("D"),showHour:n.format.includes("H"),showMinute:n.format.includes("m"),showSecond:n.format.includes("s")}));function c(h){return h<10?"0"+h:String(h)}function f(h){if(h===null)return"--";let k=n.format;if(u.value.showMillisecond){var p=h%1e3;k=k.replace("SSS","0".repeat(