(function(v,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("lodash-es"),require("dayjs"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","dayjs","ant-design-vue"],d):(v=typeof globalThis<"u"?globalThis:v||self,d(v.index={},v.Vue))})(this,function(v,d){"use strict";const Y={align:{type:String,default:"start"},src:{type:String,default:""},shadow:{type:String,default:"hover"}},x="g";function T(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function R(e,t=!1){const n=t?`.${x}-${e}`:`${x}-${e}`;return{b:()=>T(n),e:o=>o?T(n,o):"",m:o=>o?T(n,"",o):"",em:(o,u)=>o&&u?T(n,o,u):""}}const I="G";for(let e=0;e<=15;e++)e.toString(16);/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function P(e){return Object.prototype.toString.call(e)==="[object Object]"}function J(e){var t,n;return P(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(P(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}function S(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}const N={silent:!1,logLevel:"warn"},z=["validator"],q=Object.prototype,C=q.toString,G=q.hasOwnProperty,E=/^\s*function (\w+)/;function A(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(E);return r?r[1]:""}return""}const g=J,D=e=>e;let l=D;process.env.NODE_ENV!=="production"&&(l=typeof console<"u"?function(t,n=N.logLevel){N.silent===!1&&console[n](`[VueTypes warn]: ${t}`)}:D);const b=(e,t)=>G.call(e,t),H=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},m=Array.isArray||function(e){return C.call(e)==="[object Array]"},O=e=>C.call(e)==="[object Function]",$=e=>g(e)&&b(e,"_vueTypes_name"),L=e=>g(e)&&(b(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>b(e,t)));function V(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function h(e,t,n=!1){let r,i=!0,a="";r=g(e)?e:{type:e};const s=$(r)?r._vueTypes_name+" - ":"";if(L(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return i;m(r.type)?(i=r.type.some(o=>h(o,t,!0)===!0),a=r.type.map(o=>A(o)).join(" or ")):(a=A(r),i=a==="Array"?m(t):a==="Object"?g(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(o){if(o==null)return"";const u=o.constructor.toString().match(E);return u?u[1]:""}(t)===a:t instanceof r.type)}if(!i){const o=`${s}value "${t}" should be of type "${a}"`;return n===!1?(l(o),!1):o}if(b(r,"validator")&&O(r.validator)){const o=l,u=[];if(l=c=>{u.push(c)},i=r.validator(t),l=o,!i){const c=(u.length>1?"* ":"")+u.join(`
* `);return u.length=0,n===!1?(l(c),i):c}}return i}function f(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(i){return i===void 0?(b(this,"default")&&delete this.default,this):O(i)||h(this,i,!0)===!0?(this.default=m(i)?()=>[...i]:g(i)?()=>Object.assign({},i):i,this):(l(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return O(r)&&(n.validator=V(r,n)),n}function p(e,t){const n=f(e,t);return Object.defineProperty(n,"validate",{value(r){return O(this.validator)&&l(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),this.validator=V(r,this),this}})}function F(e,t,n){const r=function(u){const c={};return Object.getOwnPropertyNames(u).forEach(y=>{c[y]=Object.getOwnPropertyDescriptor(u,y)}),Object.defineProperties({},c)}(t);if(r._vueTypes_name=e,!g(n))return r;const{validator:i}=n,a=S(n,z);if(O(i)){let{validator:u}=r;u&&(u=(o=(s=u).__original)!==null&&o!==void 0?o:s),r.validator=V(u?function(c){return u.call(this,c)&&i.call(this,c)}:i,r)}var s,o;return Object.assign(r,a)}function w(e){return e.replace(/^(?!\s*$)/gm,"  ")}const K=()=>p("any",{}),Q=()=>p("function",{type:Function}),U=()=>p("boolean",{type:Boolean}),W=()=>p("string",{type:String}),X=()=>p("number",{type:Number}),Z=()=>p("array",{type:Array}),ee=()=>p("object",{type:Object}),te=()=>f("integer",{type:Number,validator:e=>H(e)}),ne=()=>f("symbol",{validator:e=>typeof e=="symbol"});function re(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return f(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||l(`${this._vueTypes_name} - ${t}`),r}})}function ie(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,i)=>{if(i!=null){const a=i.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return f("oneOf",{type:n.length>0?n:void 0,validator(r){const i=e.indexOf(r)!==-1;return i||l(t),i}})}function ae(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let i=0;i<e.length;i+=1){const a=e[i];if(L(a)){if($(a)&&a._vueTypes_name==="oneOf"&&a.type){n=n.concat(a.type);continue}if(O(a.validator)&&(t=!0),a.type===!0||!a.type){l('oneOfType - invalid usage of "true" or "null" as types.');continue}n=n.concat(a.type)}else n.push(a)}n=n.filter((i,a)=>n.indexOf(i)===a);const r=n.length>0?n:null;return f("oneOfType",t?{type:r,validator(i){const a=[],s=e.some(o=>{const u=h($(o)&&o._vueTypes_name==="oneOf"?o.type||null:o,i,!0);return typeof u=="string"&&a.push(u),u===!0});return s||l(`oneOfType - provided value does not match any of the ${a.length} passed-in validators:
${w(a.join(`
`))}`),s}}:{type:r})}function oe(e){return f("arrayOf",{type:Array,validator(t){let n="";const r=t.every(i=>(n=h(e,i,!0),n===!0));return r||l(`arrayOf - value validation error:
${w(n)}`),r}})}function ue(e){return f("instanceOf",{type:e})}function se(e){return f("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(i=>(n=h(e,t[i],!0),n===!0));return r||l(`objectOf - value validation error:
${w(n)}`),r}})}function ce(e){const t=Object.keys(e),n=t.filter(i=>{var a;return!((a=e[i])===null||a===void 0||!a.required)}),r=f("shape",{type:Object,validator(i){if(!g(i))return!1;const a=Object.keys(i);if(n.length>0&&n.some(s=>a.indexOf(s)===-1)){const s=n.filter(o=>a.indexOf(o)===-1);return l(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return a.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(l(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const o=h(e[s],i[s],!0);return typeof o=="string"&&l(`shape - "${s}" property validation error:
 ${w(o)}`),o===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const le=["name","validate","getter"],de=(()=>{var e;return(e=class{static get any(){return K()}static get func(){return Q().def(this.defaults.func)}static get bool(){return U().def(this.defaults.bool)}static get string(){return W().def(this.defaults.string)}static get number(){return X().def(this.defaults.number)}static get array(){return Z().def(this.defaults.array)}static get object(){return ee().def(this.defaults.object)}static get integer(){return te().def(this.defaults.integer)}static get symbol(){return ne()}static get nullable(){return{type:null}}static extend(t){if(m(t))return t.forEach(u=>this.extend(u)),this;const{name:n,validate:r=!1,getter:i=!1}=t,a=S(t,le);if(b(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=a;if($(s))return delete a.type,Object.defineProperty(this,n,i?{get:()=>F(n,s,a)}:{value(...u){const c=F(n,s,a);return c.validator&&(c.validator=c.validator.bind(c,...u)),c}});let o;return o=i?{get(){const u=Object.assign({},a);return r?p(n,u):f(n,u)},enumerable:!0}:{value(...u){const c=Object.assign({},a);let y;return y=r?p(n,c):f(n,c),c.validator&&(y.validator=c.validator.bind(y,...u)),y},enumerable:!0},Object.defineProperty(this,n,o)}}).defaults={},e.sensibleDefaults=void 0,e.config=N,e.custom=re,e.oneOf=ie,e.instanceOf=ue,e.oneOfType=ae,e.arrayOf=oe,e.objectOf=se,e.shape=ce,e.utils={validate:(t,n)=>h(n,t,!0)===!0,toType:(t,n,r=!1)=>r?p(t,n):f(t,n)},e})();function k(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends de{static get sensibleDefaults(){return _({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?_({},n!==!0?n:e):{}}}).defaults=_({},e),t}class pe extends k(){}k({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0}).extend([{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VNodeChild",getter:!0,type:void 0}]);const ve="",j=d.defineComponent({name:`${I}Card`,props:Y,setup(e,{slots:t}){const{align:n,src:r}=d.toRefs(e),i=R("card"),a=d.computed(()=>({[i.e("actions")]:!0,[i.em("actions",`align-${n.value}`)]:n.value!=="start"}));return()=>{var s,o,u,c,y,B,M;return d.createVNode("div",{class:["card-container",i.b(),i.em("shadow",e.shadow)]},[(s=t.default)==null?void 0:s.call(t),d.createVNode("div",{class:i.e("header")},[(o=t.avatar)!=null&&o.call(t)?d.createVNode("div",{class:i.e("avatar")},[(u=t.avatar)==null?void 0:u.call(t)]):"",d.createVNode("div",null,[d.createVNode("div",{class:i.e("title")},[(c=t.title)==null?void 0:c.call(t)]),d.createVNode("div",{class:i.e("subtitle")},[(y=t.subtitle)==null?void 0:y.call(t)])])]),(r==null?void 0:r.value)!==""?d.createVNode("img",{src:r.value,alt:"",class:i.e("meta")},null):"",d.createVNode("div",{class:i.e("content")},[(B=t.content)==null?void 0:B.call(t)]),d.createVNode("div",{class:a.value},[t.actions?(M=t.actions)==null?void 0:M.call(t):""])])}}});j.install=function(e,t){e.component(t||j.name,j)};const fe={title:"Card 卡片",category:"布局",status:"100%",install(e){e.component(j.name,j)}};v.Card=j,v.default=fe,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
